文档
测试

活动定义-新增页面

GET
/workflow/wfDefineActivity/add

接口描述

活动定义-新增页面

请求参数

参数名
类型
描述
必填
processId
String
流程ID
必填
processName
String
流程名字
必填

响应参数JSOn

```json { "successful": true, "code": 200, "message": "操作成功!", "timestamp": 1666322326299, "data": { "candidate": { "id": null, "activityId": null, "candidateId": null, "candidateName": null, "personId": null, "personName": null, "objCandidateId": null, "objCandidateIdValue": null, "objCandidateName": null, "objCandidateNameValue": null, "objPersonId": null, "objPersonIdValue": null, "objPersonName": null, "objPersonNameValue": null, "relateRoleId": null, "relateRoleName": null, "relateCondition": null, "relateVariable": null, "relateVariableValue": null, "relateExplain": null, "isSelect": null, "limitPersonId": null, "limitPersonName": null, "limitRoleId": null, "limitRoleName": null, "limitOrgId": null, "limitOrgName": null, "candidateRoleId": null, "candidateRoleName": null, "personRoleId": null, "personRoleName": null, "candidateIsself": null, "personIsself": null, "candidateUsergroupId": null, "candidateUsergroupName": null, "personUsergroupId": null, "personUsergroupName": null, "candidateIsGroupresp": null, "personIsGroupresp": null, "candidateIsCugroupresp": null, "personIsCugroupresp": null, "candidateIsCreater": null, "copyFrom": null, "tenantId": null, "uuidCode": "fjdsklfjlerw" }, "activity": { "id": 3, "createdBy": 1, "createdName": "管理员", "createdTime": "2022-10-13 15:39:24", "processId": 1, "activityName": "结束", "activityAlias": "结束", "activityType": "T", "supportAutoRoute": "n", "autoRouteConditionFields": "1,2", "endOtherTodo": "y", "taskFlag": "Y", "taskPercent": 100, "forkJoin": "G", "forkNode": "Y", "joinActivityCount": 3, "timeLimit": 0, "swimActivityId": 1, "gobackType": "A", "backActivityId": 1, "queryHistory": "Y", "hideAgent": "Y", "copyBtn": "Y", "signBtn": "Y", "authorizeBtn": "Y", "takebackBtn": "Y", "stopBtn": "Y", "invalidBtn": "Y", "turntoBtn": "Y", "urgeBtn": "Y", "emailRemind": "Y", "smsRemind": "Y", "remindUserId": "11", "remindUserName": "李小龙", "opinionCustomFlag": "S", "opinionCustomDesc": "已知公司规则", "submitProjectValidate": "Y", "orderBy": 11, "remark": "备足", "copyFrom": "11", "nodeLeft": 1122, "nodeTop": 200, "nodeWidth": 86, "nodeHeight": 24, "activityCode": "ACCIDENT_REPORT", "activityStatname": "状态名称", "isApp": "n", "autoRouteCustomFields": "1,2", "tenantId": 1, "swimActivityName": null,//*以下为临时字段* "opinionList": [], "remarkContent": null, "currHandler": null, "creater": null, "otherPersonId": null, "uuidCode" : "dfsfsdfdsafdasfdsa" }, "processName": "系统管理", "list": [ //**用于 遍历出回退 活动的ID, 与遍历出泳道的选项** { "id": 1, "createdBy": 0, "createdName": null, "createdTime": "2022-10-10 15:10:53", "processId": 1, "activityName": "活动", "activityAlias": null, "activityType": null, "supportAutoRoute": "n", "autoRouteConditionFields": null, "endOtherTodo": "y", "taskFlag": null, "taskPercent": null, "forkJoin": null, "forkNode": null, "joinActivityCount": null, "timeLimit": null, "swimActivityId": null, "gobackType": null, "backActivityId": null, "queryHistory": null, "hideAgent": null, "copyBtn": null, "signBtn": null, "authorizeBtn": null, "takebackBtn": null, "stopBtn": null, "invalidBtn": null, "turntoBtn": null, "urgeBtn": null, "emailRemind": null, "smsRemind": null, "remindUserId": null, "remindUserName": null, "opinionCustomFlag": null, "opinionCustomDesc": null, "submitProjectValidate": "", "orderBy": null, "remark": null, "copyFrom": null, "nodeLeft": null, "nodeTop": null, "nodeWidth": null, "nodeHeight": null, "activityCode": null, "activityStatname": null, "isApp": "n", "autoRouteCustomFields": null, "tenantId": 1, "swimActivityName": null, "opinionList": [], "remarkContent": null, "currHandler": null, "creater": null, "otherPersonId": null }, { "id": 4, "createdBy": 1, "createdName": "管理员", "createdTime": "2022-10-13 16:38:25", "processId": 1, "activityName": "string", "activityAlias": "string", "activityType": null, "supportAutoRoute": "n", "autoRouteConditionFields": null, "endOtherTodo": "y", "taskFlag": null, "taskPercent": null, "forkJoin": null, "forkNode": null, "joinActivityCount": null, "timeLimit": null, "swimActivityId": 1, "gobackType": null, "backActivityId": null, "queryHistory": null, "hideAgent": null, "copyBtn": null, "signBtn": null, "authorizeBtn": null, "takebackBtn": null, "stopBtn": null, "invalidBtn": null, "turntoBtn": null, "urgeBtn": null, "emailRemind": null, "smsRemind": null, "remindUserId": null, "remindUserName": null, "opinionCustomFlag": null, "opinionCustomDesc": null, "submitProjectValidate": "", "orderBy": null, "remark": null, "copyFrom": null, "nodeLeft": null, "nodeTop": null, "nodeWidth": null, "nodeHeight": null, "activityCode": null, "activityStatname": null, "isApp": "n", "autoRouteCustomFields": null, "tenantId": 1, "swimActivityName": null, "opinionList": [], "remarkContent": null, "currHandler": null, "creater": null, "otherPersonId": null }, { "id": 2, "createdBy": 1, "createdName": "管理员", "createdTime": "2022-10-13 15:39:24", "processId": 1, "activityName": "开始", "activityAlias": null, "activityType": null, "supportAutoRoute": "n", "autoRouteConditionFields": null, "endOtherTodo": "y", "taskFlag": null, "taskPercent": 100, "forkJoin": "G", "forkNode": null, "joinActivityCount": null, "timeLimit": 0, "swimActivityId": 1, "gobackType": null, "backActivityId": 0, "queryHistory": null, "hideAgent": null, "copyBtn": null, "signBtn": null, "authorizeBtn": null, "takebackBtn": "Y", "stopBtn": null, "invalidBtn": null, "turntoBtn": null, "urgeBtn": null, "emailRemind": null, "smsRemind": null, "remindUserId": null, "remindUserName": null, "opinionCustomFlag": "S", "opinionCustomDesc": null, "submitProjectValidate": "", "orderBy": 11, "remark": null, "copyFrom": null, "nodeLeft": 1136, "nodeTop": 200, "nodeWidth": 86, "nodeHeight": 24, "activityCode": "ACCIDENT_REPORT", "activityStatname": "状态名称", "isApp": "n", "autoRouteCustomFields": null, "tenantId": 1, "swimActivityName": null, "opinionList": [], "remarkContent": null, "currHandler": null, "creater": null, "otherPersonId": null }, { "id": 3, "createdBy": 1, "createdName": "管理员", "createdTime": "2022-10-13 15:39:24", "processId": 1, "activityName": "结束", "activityAlias": null, "activityType": null, "supportAutoRoute": "n", "autoRouteConditionFields": null, "endOtherTodo": "y", "taskFlag": null, "taskPercent": 100, "forkJoin": "G", "forkNode": null, "joinActivityCount": null, "timeLimit": 0, "swimActivityId": 1, "gobackType": null, "backActivityId": 0, "queryHistory": null, "hideAgent": null, "copyBtn": null, "signBtn": null, "authorizeBtn": null, "takebackBtn": "Y", "stopBtn": null, "invalidBtn": null, "turntoBtn": null, "urgeBtn": null, "emailRemind": null, "smsRemind": null, "remindUserId": null, "remindUserName": null, "opinionCustomFlag": "S", "opinionCustomDesc": null, "submitProjectValidate": "", "orderBy": 11, "remark": null, "copyFrom": null, "nodeLeft": 1122, "nodeTop": 200, "nodeWidth": 86, "nodeHeight": 24, "activityCode": "ACCIDENT_REPORT", "activityStatname": "状态名称", "isApp": "n", "autoRouteCustomFields": null, "tenantId": 1, "swimActivityName": null, "opinionList": [], "remarkContent": null, "currHandler": null, "creater": null, "otherPersonId": null } ] } }

swagger 功能定位

![image.png](https://cos.easydoc.net/97781918/files/l9hxdisd.png) ![image.png](https://cos.easydoc.net/97781918/files/l9hxiegv.png) ![image.png](https://cos.easydoc.net/97781918/files/l9sabfw1.png) ![image.png](https://cos.easydoc.net/97781918/files/l9sabys3.png)