文档
测试

流程定义

POST
/workflow/wfDefineProcess/mapDynamic?menuId=0&formId=20&atyId=0

接口描述

用于事件流程仲---流程图得回显

请求参数

参数名
类型
描述
必填
formId
String
表单ID 例如 20
可选

响应参数json

```json { "successful": true, "code": 200, "message": "操作成功!", "timestamp": 1670670995554, "data": { "mapJson": "{\"ii\":1,\"nodes\":[{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"事件上报\"}},\"height\":27,\"id\":\"4\",\"itemId\":\"492d8a60-efa4-4ee6-b2d7-61b9e4\",\"shape\":\"flow-chart-rect\",\"type\":\"start round\",\"width\":99,\"x\":1136,\"y\":360},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"服务台处理\"}},\"height\":24,\"id\":\"3\",\"itemId\":\"492d8a60-efa4-4ee6-b2d7-61b9e3\",\"shape\":\"flow-chart-rect\",\"type\":\"task\",\"width\":86,\"x\":1122,\"y\":200},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"一线运维受理11111\"}},\"height\":1110,\"id\":\"2\",\"itemId\":\"3309d122-89b9-4bc0-b5fc-504a380\",\"shape\":\"flow-chart-rect\",\"type\":\"start round\",\"width\":2220,\"x\":11111,\"y\":1111},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"一线运维处理\"}},\"height\":24,\"id\":\"12\",\"itemId\":\"492d8a60-efa4-4ee6-b2d7-61b9e12\",\"shape\":\"flow-chart-rect\",\"type\":\"task\",\"width\":86,\"x\":1122,\"y\":200},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"二线运维受理\"}},\"height\":24,\"id\":\"13\",\"itemId\":\"492d8a60-efa4-4ee6-b2d7-61b9e13\",\"shape\":\"flow-chart-rect\",\"type\":\"task\",\"width\":86,\"x\":1122,\"y\":200},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"二线运维处理\"}},\"height\":100,\"id\":\"30\",\"itemId\":\"492d8a60-efa4-4ee6-b2d7-61b9e30\",\"shape\":\"flow-chart-rect\",\"type\":\"task\",\"width\":100,\"x\":100,\"y\":100},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"回访\"}},\"height\":100,\"id\":\"31\",\"itemId\":\"492d8a60-efa4-4ee6-b2d7-61b9e31\",\"shape\":\"flow-chart-rect\",\"type\":\"task\",\"width\":100,\"x\":100,\"y\":100},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"结束\"}},\"height\":100,\"id\":\"32\",\"itemId\":\"492d8a60-efa4-4ee6-b2d7-61b9e32\",\"shape\":\"flow-chart-rect\",\"type\":\"end round\",\"width\":100,\"x\":100,\"y\":100},{\"attrs\":{\"body\":{\"rx\":24,\"ry\":24},\"text\":{\"text\":\"回访1\"}},\"height\":100,\"id\":\"57\",\"itemId\":\"4b2d76b3-7161-403f-b6d3-c2ba7e5\",\"shape\":\"flow-chart-rect\",\"type\":\"task\",\"width\":100,\"x\":100,\"y\":100},{\"attrs\":{\"text\":{\"text\":\"node_10(任务节点)\"}},\"height\":0,\"id\":\"59\",\"itemId\":\"c4385894-c59e-40aa-ab1b-c7b1b76\",\"shape\":\"flow-chart-rect\",\"type\":\"\",\"width\":0,\"x\":100,\"y\":100},{\"attrs\":{\"text\":{\"text\":\"node_11(任务节点)\"}},\"height\":42,\"id\":\"60\",\"itemId\":\"9221a5b5-a39a-44cb-a37e-ea9d356\",\"shape\":\"flow-chart-rect\",\"type\":\"\",\"width\":80,\"x\":169,\"y\":242}],\"lise_data\":[{\"userOn\":\"\",\"id\":1,\"state\":\"活动\",\"time\":\"2022-11-18\",\"title\":\"测试上报\",\"user\":\"管理员\",\"opinion\":\"同意\"},{\"userOn\":\"\",\"id\":2,\"state\":\"完成\",\"time\":\"2022-11-24\",\"title\":\"测试申请\",\"user\":\"管理员\",\"opinion\":\"同意\"}],\"data\":{\"id\":[\"21\",\"29\"]},\"initNum\":22,\"areas\":\"\",\"title\":\"系统管理\",\"lines\":[{\"id\":\"31\",\"shape\":\"edge\",\"source\":{\"cell\":\"4\",\"port\":\"\"},\"target\":{\"cell\":\"1\"}},{\"id\":\"32\",\"shape\":\"edge\",\"source\":{\"cell\":\"3\",\"port\":\"\"},\"target\":{\"cell\":\"2\"}},{\"id\":\"33\",\"shape\":\"edge\",\"source\":{\"cell\":\"3\",\"port\":\"\"},\"target\":{\"cell\":\"13\"}},{\"id\":\"34\",\"shape\":\"edge\",\"source\":{\"cell\":\"2\",\"port\":\"\"},\"target\":{\"cell\":\"12\"}},{\"id\":\"35\",\"shape\":\"edge\",\"source\":{\"cell\":\"12\",\"port\":\"\"},\"target\":{\"cell\":\"31\"}},{\"id\":\"36\",\"shape\":\"edge\",\"source\":{\"cell\":\"12\",\"port\":\"\"},\"target\":{\"cell\":\"13\"}},{\"id\":\"37\",\"shape\":\"edge\",\"source\":{\"cell\":\"13\",\"port\":\"\"},\"target\":{\"cell\":\"30\"}},{\"id\":\"38\",\"shape\":\"edge\",\"source\":{\"cell\":\"30\",\"port\":\"\"},\"target\":{\"cell\":\"31\"}},{\"id\":\"39\",\"shape\":\"edge\",\"source\":{\"cell\":\"2\",\"port\":\"\"},\"target\":{\"cell\":\"32\"}},{\"id\":\"40\",\"shape\":\"edge\",\"source\":{\"cell\":\"31\",\"port\":\"\"},\"target\":{\"cell\":\"32\"}}]}" } } //mapjson { "ii": 1, "nodes": [{ //活动节点 "attrs": { "body": { "rx": 24, "ry": 24 }, "text": { "text": "事件上报" //活动名称 } }, "height": 27, //高 "id": "4", //活动iD "itemId": "492d8a60-efa4-4ee6-b2d7-61b9e4", //连接桩ID "shape": "flow-chart-rect",//表明是节点形状 "type": "start round", "width": 99, "x": 1136, "y": 360 }, { "attrs": { "body": { "rx": 24, "ry": 24 }, "text": { "text": "服务台处理" } }, "height": 24, "id": "3", "itemId": "492d8a60-efa4-4ee6-b2d7-61b9e3", "shape": "flow-chart-rect", "type": "task", "width": 86, "x": 1122, "y": 200 }], "lise_data": [{//跟踪信息栏内容 "userOn": "",//经办人 "id": 1,//排序 从1 开始然后 递+1,高亮顺序按照这个来排 "state": "活动", //活动状态 "time": "2022-11-18", //办理时间 "title": "测试上报",//活动名称 "user": "管理员",//办理人 "opinion": "同意" //意见 }, { "userOn": "", "id": 2, "state": "完成", "time": "2022-11-24", "title": "测试申请", "user": "管理员", "opinion": "同意" }], "data": { "id": ["21", "29"] //活动实例得ID }, "initNum": 22, //活动数+路由数+1 "areas": "", "title": "系统管理",//标题 "lines": [{ "id": "31", //路由 "shape": "edge", //edge 为线得类型 "source": { //来源点 "cell": "4", //来源活动点ID "port": "" 来源点链接桩ID }, "target": { //目标点 "cell": "1" //目标活动点点ID } }, { "id": "32", "shape": "edge", "source": { "cell": "3", "port": "" }, "target": { "cell": "2" } }] }

swagger 及功能定位

![image.png](https://cos.easydoc.net/97781918/files/laq8mtom.png) ![image.png](https://cos.easydoc.net/97781918/files/laq8rbr4.png)