优化flowable接口

This commit is contained in:
2025-12-01 10:47:48 +08:00
parent 789bd1b926
commit a2796f7bee
15 changed files with 255 additions and 117 deletions

View File

@@ -0,0 +1,161 @@
{
"process": {
"id": "auto_process_001",
"name": "网关串并行+人工节点+异步回调混合流程"
},
"flowElements": [
{
"id": "start",
"type": "startEvent",
"name": "第1步-流程启动",
"outgoingFlows": ["flow1"]
},
{
"id": "task_script",
"type": "serviceTask",
"name": "第2步-HPC异步执行",
"incomingFlows": ["flow1"],
"outgoingFlows": ["flow2"],
"extensionElements": {
"executeConfig": {
"executeType": "HPC",
"asyncCallback": true,
"waitUser":true
}
}
},
{
"id": "task_http",
"type": "serviceTask",
"name": "第3步-HTTP请求",
"incomingFlows": ["flow2"],
"outgoingFlows": ["flow3", "flow4"],
"extensionElements": {
"executeConfig": {
"executeType": "http"
}
}
},
{
"id": "task_backup",
"type": "serviceTask",
"name": "第3步后-并行分支1-数据备份",
"incomingFlows": ["flow3"],
"outgoingFlows": ["flow5"],
"extensionElements": {
"executeConfig": {
"executeType": "http"
}
}
},
{
"id": "task_log",
"type": "serviceTask",
"name": "第3步后-并行第分支2-日志记录",
"incomingFlows": ["flow4"],
"outgoingFlows": ["flow6"],
"extensionElements": {
"executeConfig": {
"executeType": "http"
}
}
},
{
"id": "task_parallel_join",
"type": "serviceTask",
"name": "第4步-并行汇总",
"incomingFlows": ["flow5", "flow6"],
"outgoingFlows": ["flow7"],
"extensionElements": {
"executeConfig": {
"executeType": "dataProcess"
}
}
},
{
"id": "task_manual_approval",
"type": "userTask",
"name": "第5步-人工操作节点-数据确认",
"incomingFlows": ["flow7"],
"outgoingFlows": ["flow8"],
"extensionElements": {
"executeConfig": {
"executeType": "manual",
"description": "人工确认数据处理"
}
}
},
{
"id": "task_data_process",
"type": "serviceTask",
"name": "第6步-数据处理",
"incomingFlows": ["flow8"],
"outgoingFlows": ["flow9"],
"extensionElements": {
"executeConfig": {
"executeType": "dataProcess"
}
}
},
{
"id": "end",
"type": "endEvent",
"name": "第7步-流程结束",
"incomingFlows": ["flow9"]
},
{
"id": "flow1",
"type": "sequenceFlow",
"sourceRef": "start",
"targetRef": "task_script"
},
{
"id": "flow2",
"type": "sequenceFlow",
"sourceRef": "task_script",
"targetRef": "task_http"
},
{
"id": "flow3",
"type": "sequenceFlow",
"sourceRef": "task_http",
"targetRef": "task_backup"
},
{
"id": "flow4",
"type": "sequenceFlow",
"sourceRef": "task_http",
"targetRef": "task_log"
},
{
"id": "flow5",
"type": "sequenceFlow",
"sourceRef": "task_backup",
"targetRef": "task_parallel_join"
},
{
"id": "flow6",
"type": "sequenceFlow",
"sourceRef": "task_log",
"targetRef": "task_parallel_join"
},
{
"id": "flow7",
"type": "sequenceFlow",
"sourceRef": "task_parallel_join",
"targetRef": "task_manual_approval"
},
{
"id": "flow8",
"type": "sequenceFlow",
"sourceRef": "task_manual_approval",
"targetRef": "task_data_process"
},
{
"id": "flow9",
"type": "sequenceFlow",
"sourceRef": "task_data_process",
"targetRef": "end"
}
]
}