mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 19:30:48 +08:00
Integrate Flowgram visual workflow editor: update data models and add dependencies
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
co-authored by
whyour
parent
3b95ea64d3
commit
fffc1e4fd1
@@ -30,13 +30,14 @@ export default (app: Router) => {
|
||||
body: Joi.object({
|
||||
name: Joi.string().required(),
|
||||
description: Joi.string().optional().allow(''),
|
||||
workflowGraph: Joi.object().optional(),
|
||||
triggerType: Joi.string()
|
||||
.valid('variable', 'webhook', 'task_status', 'time', 'system_event')
|
||||
.required(),
|
||||
.optional(),
|
||||
triggerConfig: Joi.object().optional(),
|
||||
conditionLogic: Joi.string().valid('AND', 'OR').default('AND'),
|
||||
conditions: Joi.array().optional().default([]),
|
||||
actions: Joi.array().required(),
|
||||
actions: Joi.array().optional(),
|
||||
retryStrategy: Joi.object({
|
||||
maxRetries: Joi.number().min(0).max(10),
|
||||
retryDelay: Joi.number().min(1),
|
||||
@@ -67,6 +68,7 @@ export default (app: Router) => {
|
||||
id: Joi.number().required(),
|
||||
name: Joi.string().optional(),
|
||||
description: Joi.string().optional().allow(''),
|
||||
workflowGraph: Joi.object().optional(),
|
||||
triggerType: Joi.string()
|
||||
.valid('variable', 'webhook', 'task_status', 'time', 'system_event')
|
||||
.optional(),
|
||||
|
||||
Reference in New Issue
Block a user