有关前端流程引擎提问

174 阅读1分钟

公司最近有一个项目,类似于仿轻流的流程引擎

image.png

向导式的工作流,前端现再渲染的是通过对象children无限向下渲染,后端需要的数据是每个节点对应进出入的流向,请问这种能转为bpmn结构的数据吗

{ "procFormId": "0a060a3b-7cb6-1a3e-817c-b60c42140005", "processDefinitionId": null, "nodeList": [ { "nodeId": "Activity_1spa87p", "name": "10月25测试数据", "type": "LAUNCH", "incomingList": [ "Flow_1pbr8j8" ], "outgoingList": [ "Flow_1odyfu9" ], "nodeConfig": { "initiator": "李四", "label": "单行文本", "buttonPermissionList": [ { "buttonId": 1, "defaultButtonName": "提交", "buttonName": "提交啦啦啦" } ] } }, { "nodeId": "StartEvent_1", "name": "开始节点", "type": "START", "outgoingList": [ "Flow_1pbr8j8" ] }, { "nodeId": "Flow_1pbr8j8", "name": "FLOW", "type": "FLOW", "incomingList": [ "StartEvent_1" ], "outgoingList": [ "Activity_1spa87p" ] }, { "nodeId": "Flow_1odyfu9", "name": "FLOW", "type": "FLOW", "incomingList": [ "Activity_1spa87p" ], "outgoingList": [ "Event_0ukzftf" ] }, { "nodeId": "Event_0ukzftf", "name": "结束节点", "type": "END", "incomingList": [ "Flow_1odyfu9" ] } ] }