From 7e5ffa605e5922d95ed1ebe7da7a9c157e59fb10 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Fri, 13 Dec 2024 13:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E5=BA=8F=E5=88=97=E5=8C=96=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../backend/workflow/enums/NodeTypeEnums.java | 2 +- .../resources/db/migration/V1.0.1__init_data.sql | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/src/main/java/com/qqchen/deploy/backend/workflow/enums/NodeTypeEnums.java b/backend/src/main/java/com/qqchen/deploy/backend/workflow/enums/NodeTypeEnums.java index a65b4183..fd87906a 100644 --- a/backend/src/main/java/com/qqchen/deploy/backend/workflow/enums/NodeTypeEnums.java +++ b/backend/src/main/java/com/qqchen/deploy/backend/workflow/enums/NodeTypeEnums.java @@ -98,7 +98,7 @@ public enum NodeTypeEnums { "数据确认" ), new WorkflowNodeGraph() - .setShape("rectangle") + .setShape("rect") .setSize(120, 60) .setStyle("#ffffff", "#1890ff", "user") .configPorts(Arrays.asList("in", "out")) diff --git a/backend/src/main/resources/db/migration/V1.0.1__init_data.sql b/backend/src/main/resources/db/migration/V1.0.1__init_data.sql index ee47442c..8abfca78 100644 --- a/backend/src/main/resources/db/migration/V1.0.1__init_data.sql +++ b/backend/src/main/resources/db/migration/V1.0.1__init_data.sql @@ -170,7 +170,7 @@ INSERT INTO workflow_definition ( ( '简单脚本流程', 'simple_script_flow', 1, '一个包含脚本任务的简单流程', 'test', '{ - "nodes": [{"id":"startEvent1","code":"START_EVENT","type":"START_EVENT","name":"开始","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#e8f7ff","stroke":"#1890ff","icon":"play-circle","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["out"]}},"config":{"name":"开始节点","description":"启动流程"}},{"id":"scriptTask1","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"执行脚本","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务","description":"执行一个简单的Shell脚本","language":"shell","script":"echo ''Hello World''"}},{"id":"endEvent1","code":"END_EVENT","type":"END_EVENT","name":"结束","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#fff1f0","stroke":"#ff4d4f","icon":"stop","iconColor":"#ff4d4f","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in"]}},"config":{"name":"结束节点","description":"流程结束"}}],"edges":[{"id":"flow1","from":"startEvent1","to":"scriptTask1","name":"开始到脚本","config":{"type":"sequence"},"properties":null},{"id":"flow2","from":"scriptTask1","to":"endEvent1","name":"脚本到结束","config":{"type":"sequence"},"properties":null}]}', + "nodes": [{"id":"startEvent1","code":"START_EVENT","type":"START_EVENT","name":"开始","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#e8f7ff","stroke":"#1890ff","icon":"play-circle","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["out"]}},"config":{"name":"开始节点","description":"启动流程"}},{"id":"scriptTask1","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"执行脚本","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务","description":"执行一个简单的Shell脚本","language":"shell","script":"echo ''Hello World''"}},{"id":"endEvent1","code":"END_EVENT","type":"END_EVENT","name":"结束","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#fff1f0","stroke":"#ff4d4f","icon":"stop","iconColor":"#ff4d4f","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in"]}},"config":{"name":"结束节点","description":"流程结束"}}],"edges":[{"id":"flow1","from":"startEvent1","to":"scriptTask1","name":"开始到脚本","config":{"type":"sequence"},"properties":null},{"id":"flow2","from":"scriptTask1","to":"endEvent1","name":"脚本到结束","config":{"type":"sequence"},"properties":null}]}', '{"formItems":[]}', '["simple","script","test"]', 'DRAFT', TRUE, 'http://www.flowable.org/test', @@ -181,7 +181,7 @@ INSERT INTO workflow_definition ( ( '复杂业务流程', 'complex_business_flow', 1, '包含多种任务节点的复杂业务流程', 'business', '{ - "nodes": [{"id":"startEvent1","code":"START_EVENT","type":"START_EVENT","name":"开始","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#e8f7ff","stroke":"#1890ff","icon":"play-circle","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["out"]}},"config":{"name":"开始节点","description":"启动流程"}},{"id":"serviceTask1","code":"SERVICE_TASK","type":"SERVICE_TASK","name":"调用服务","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"api","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"method":"POST","name":"服务任务","description":"调用外部服务","url":"http://api.example.com/service"}},{"id":"userTask1","code":"USER_TASK","type":"USER_TASK","name":"人工审批","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"user","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"用户任务","description":"人工审批","assignee":"admin"}},{"id":"scriptTask1","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"执行脚本","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务","description":"执行脚本","language":"shell","script":"process_data.sh"}},{"id":"endEvent1","code":"END_EVENT","type":"END_EVENT","name":"结束","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#fff1f0","stroke":"#ff4d4f","icon":"stop","iconColor":"#ff4d4f","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in"]}},"config":{"name":"结束节点","description":"流程结束"}}],"edges":[{"id":"flow1","from":"startEvent1","to":"serviceTask1","name":"开始到服务","config":{"type":"sequence"},"properties":null},{"id":"flow2","from":"serviceTask1","to":"userTask1","name":"服务到用户","config":{"type":"sequence"},"properties":null},{"id":"flow3","from":"userTask1","to":"scriptTask1","name":"用户到脚本","config":{"type":"sequence"},"properties":null},{"id":"flow4","from":"scriptTask1","to":"endEvent1","name":"脚本到结束","config":{"type":"sequence"},"properties":null}]}', + "nodes": [{"id":"startEvent1","code":"START_EVENT","type":"START_EVENT","name":"开始","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#e8f7ff","stroke":"#1890ff","icon":"play-circle","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["out"]}},"config":{"name":"开始节点","description":"启动流程"}},{"id":"serviceTask1","code":"SERVICE_TASK","type":"SERVICE_TASK","name":"调用服务","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"api","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"method":"POST","name":"服务任务","description":"调用外部服务","url":"http://api.example.com/service"}},{"id":"userTask1","code":"USER_TASK","type":"USER_TASK","name":"人工审批","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"user","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"用户任务","description":"人工审批","assignee":"admin"}},{"id":"scriptTask1","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"执行脚本","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务","description":"执行脚本","language":"shell","script":"process_data.sh"}},{"id":"endEvent1","code":"END_EVENT","type":"END_EVENT","name":"结束","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#fff1f0","stroke":"#ff4d4f","icon":"stop","iconColor":"#ff4d4f","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in"]}},"config":{"name":"结束节点","description":"流程结束"}}],"edges":[{"id":"flow1","from":"startEvent1","to":"serviceTask1","name":"开始到服务","config":{"type":"sequence"},"properties":null},{"id":"flow2","from":"serviceTask1","to":"userTask1","name":"服务到用户","config":{"type":"sequence"},"properties":null},{"id":"flow3","from":"userTask1","to":"scriptTask1","name":"用户到脚本","config":{"type":"sequence"},"properties":null},{"id":"flow4","from":"scriptTask1","to":"endEvent1","name":"脚本到结束","config":{"type":"sequence"},"properties":null}]}', '{"formItems":[{"type":"input","label":"业务参数","name":"businessParam","required":true}]}', '["complex","business","multi-task"]', 'DRAFT', TRUE, 'http://www.flowable.org/test', @@ -192,7 +192,7 @@ INSERT INTO workflow_definition ( ( '网关处理流程', 'gateway_process_flow', 1, '包含排他网关和并行网关的数据处理流程', 'gateway', '{ - "nodes": [{"id":"startEvent1","code":"START_EVENT","type":"START_EVENT","name":"开始","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#e8f7ff","stroke":"#1890ff","icon":"play-circle","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["out"]}},"config":{"name":"开始节点","description":"启动流程"}},{"id":"serviceTask1","code":"SERVICE_TASK","type":"SERVICE_TASK","name":"获取数据","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"api","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"method":"GET","name":"服务任务","description":"获取数据","url":"http://api.example.com/data"}},{"id":"exclusiveGateway1","code":"EXCLUSIVE_GATEWAY","type":"EXCLUSIVE_GATEWAY","name":"数据路由","graph":{"shape":"diamond","size":{"width":50,"height":50},"style":{"fill":"#fff7e6","stroke":"#faad14","icon":"fork","iconColor":"#faad14","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"排他网关","description":"根据数据量选择处理方式"}},{"id":"userTask1","code":"USER_TASK","type":"USER_TASK","name":"人工处理","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"user","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"用户任务A","description":"人工处理","assignee":"expert"}},{"id":"userTask2","code":"USER_TASK","type":"USER_TASK","name":"快速处理","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"user","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"用户任务B","description":"快速处理","assignee":"operator"}},{"id":"parallelGateway1","code":"PARALLEL_GATEWAY","type":"PARALLEL_GATEWAY","name":"并行处理","graph":{"shape":"diamond","size":{"width":50,"height":50},"style":{"fill":"#fff7e6","stroke":"#faad14","icon":"branches","iconColor":"#faad14","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"并行网关","description":"并行处理数据"}},{"id":"scriptTask1","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"数据分析","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务A","description":"数据分析","language":"python","script":"analyze_data.py"}},{"id":"scriptTask2","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"生成报告","graph":{"shape":"rectangle","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务B","description":"生成报告","language":"python","script":"generate_report.py"}},{"id":"endEvent1","code":"END_EVENT","type":"END_EVENT","name":"结束","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#fff1f0","stroke":"#ff4d4f","icon":"stop","iconColor":"#ff4d4f","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in"]}},"config":{"name":"结束节点","description":"流程结束"}}],"edges":[{"id":"flow1","from":"startEvent1","to":"serviceTask1","name":"开始到服务","config":{"type":"sequence"},"properties":null},{"id":"flow2","from":"serviceTask1","to":"exclusiveGateway1","name":"服务到网关","config":{"type":"sequence"},"properties":null},{"id":"flow3","from":"exclusiveGateway1","to":"userTask1","name":"大数据量处理","config":{"condition":"#{dataSize > 1000}","conditionExpression":"#{dataSize > 1000}","type":"sequence"},"properties":null},{"id":"flow4","from":"exclusiveGateway1","to":"userTask2","name":"小数据量处理","config":{"condition":"#{dataSize <= 1000}","conditionExpression":"#{dataSize <= 1000}","type":"sequence"},"properties":null},{"id":"flow5","from":"userTask1","to":"parallelGateway1","name":"处理完成","config":{"type":"sequence"},"properties":null},{"id":"flow6","from":"userTask2","to":"parallelGateway1","name":"处理完成","config":{"type":"sequence"},"properties":null},{"id":"flow7","from":"parallelGateway1","to":"scriptTask1","name":"执行分析","config":{"type":"sequence"},"properties":null},{"id":"flow8","from":"parallelGateway1","to":"scriptTask2","name":"生成报告","config":{"type":"sequence"},"properties":null},{"id":"flow9","from":"scriptTask1","to":"endEvent1","name":"分析完成","config":{"type":"sequence"},"properties":null},{"id":"flow10","from":"scriptTask2","to":"endEvent1","name":"报告完成","config":{"type":"sequence"},"properties":null}]}', + "nodes": [{"id":"startEvent1","code":"START_EVENT","type":"START_EVENT","name":"开始","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#e8f7ff","stroke":"#1890ff","icon":"play-circle","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["out"]}},"config":{"name":"开始节点","description":"启动流程"}},{"id":"serviceTask1","code":"SERVICE_TASK","type":"SERVICE_TASK","name":"获取数据","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"api","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"method":"GET","name":"服务任务","description":"获取数据","url":"http://api.example.com/data"}},{"id":"exclusiveGateway1","code":"EXCLUSIVE_GATEWAY","type":"EXCLUSIVE_GATEWAY","name":"数据路由","graph":{"shape":"diamond","size":{"width":50,"height":50},"style":{"fill":"#fff7e6","stroke":"#faad14","icon":"fork","iconColor":"#faad14","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"排他网关","description":"根据数据量选择处理方式"}},{"id":"userTask1","code":"USER_TASK","type":"USER_TASK","name":"人工处理","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"user","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"用户任务A","description":"人工处理","assignee":"expert"}},{"id":"userTask2","code":"USER_TASK","type":"USER_TASK","name":"快速处理","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"user","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"用户任务B","description":"快速处理","assignee":"operator"}},{"id":"parallelGateway1","code":"PARALLEL_GATEWAY","type":"PARALLEL_GATEWAY","name":"并行处理","graph":{"shape":"diamond","size":{"width":50,"height":50},"style":{"fill":"#fff7e6","stroke":"#faad14","icon":"branches","iconColor":"#faad14","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"并行网关","description":"并行处理数据"}},{"id":"scriptTask1","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"数据分析","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务A","description":"数据分析","language":"python","script":"analyze_data.py"}},{"id":"scriptTask2","code":"SCRIPT_TASK","type":"SCRIPT_TASK","name":"生成报告","graph":{"shape":"rect","size":{"width":120,"height":60},"style":{"fill":"#ffffff","stroke":"#1890ff","icon":"code","iconColor":"#1890ff","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}},"out":{"position":"right","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in","out"]}},"config":{"name":"脚本任务B","description":"生成报告","language":"python","script":"generate_report.py"}},{"id":"endEvent1","code":"END_EVENT","type":"END_EVENT","name":"结束","graph":{"shape":"circle","size":{"width":40,"height":40},"style":{"fill":"#fff1f0","stroke":"#ff4d4f","icon":"stop","iconColor":"#ff4d4f","strokeWidth":2},"ports":{"groups":{"in":{"position":"left","attrs":{"circle":{"r":4,"fill":"#ffffff","stroke":"#1890ff"}}}},"types":["in"]}},"config":{"name":"结束节点","description":"流程结束"}}],"edges":[{"id":"flow1","from":"startEvent1","to":"serviceTask1","name":"开始到服务","config":{"type":"sequence"},"properties":null},{"id":"flow2","from":"serviceTask1","to":"exclusiveGateway1","name":"服务到网关","config":{"type":"sequence"},"properties":null},{"id":"flow3","from":"exclusiveGateway1","to":"userTask1","name":"大数据量处理","config":{"condition":"#{dataSize > 1000}","conditionExpression":"#{dataSize > 1000}","type":"sequence"},"properties":null},{"id":"flow4","from":"exclusiveGateway1","to":"userTask2","name":"小数据量处理","config":{"condition":"#{dataSize <= 1000}","conditionExpression":"#{dataSize <= 1000}","type":"sequence"},"properties":null},{"id":"flow5","from":"userTask1","to":"parallelGateway1","name":"处理完成","config":{"type":"sequence"},"properties":null},{"id":"flow6","from":"userTask2","to":"parallelGateway1","name":"处理完成","config":{"type":"sequence"},"properties":null},{"id":"flow7","from":"parallelGateway1","to":"scriptTask1","name":"执行分析","config":{"type":"sequence"},"properties":null},{"id":"flow8","from":"parallelGateway1","to":"scriptTask2","name":"生成报告","config":{"type":"sequence"},"properties":null},{"id":"flow9","from":"scriptTask1","to":"endEvent1","name":"分析完成","config":{"type":"sequence"},"properties":null},{"id":"flow10","from":"scriptTask2","to":"endEvent1","name":"报告完成","config":{"type":"sequence"},"properties":null}]}', '{"formItems":[{"type":"input","label":"数据大小","name":"dataSize","required":true}]}', '["gateway","parallel","exclusive"]', 'DRAFT', TRUE, 'http://www.flowable.org/test', @@ -327,7 +327,7 @@ VALUES "required": ["code", "name"] }, "uiSchema": { - "shape": "rectangle", + "shape": "rect", "size": {"width": 120, "height": 60}, "style": { "fill": "#ffffff", @@ -386,7 +386,7 @@ VALUES "required": ["code", "name"] }, "uiSchema": { - "shape": "rectangle", + "shape": "rect", "size": {"width": 120, "height": 60}, "style": { "fill": "#ffffff", @@ -459,7 +459,7 @@ VALUES "required": ["code", "name", "script", "language"] }, "uiSchema": { - "shape": "rectangle", + "shape": "rect", "size": {"width": 120, "height": 60}, "style": { "fill": "#ffffff", @@ -640,7 +640,7 @@ VALUES "required": ["code", "name"] }, "uiSchema": { - "shape": "rectangle", + "shape": "rect", "size": {"width": 120, "height": 60}, "style": { "fill": "#ffffff", @@ -700,7 +700,7 @@ VALUES "required": ["code", "name"] }, "uiSchema": { - "shape": "rectangle", + "shape": "rect", "size": {"width": 120, "height": 60}, "style": { "fill": "#ffffff",