活动定义-保存页面 websocket测试 POST /workflow/wfDefineActivity/save 接口描述 保存活动定义得 列表 响应参数JSON body ```json { "activity" :{ "id": 3, "createdBy": 1, "createdName": "管理员", "createdTime": "2022-10-13 15:39:24", "processId": 1, "activityName": "结束", "activityAlias": "结束", "activityType": "T",//活动类型,S:开始,T:任务,M:多人任务,E:结束 "supportAutoRoute": "n", "autoRouteConditionFields": "1,2", "endOtherTodo": "y", "taskFlag": "Y",//任务标志,Y:强制、N:非强制 "taskPercent": 100, "forkJoin": "G",分支聚合,F:分支、J:聚合、B:聚合分支、G:普通 "forkNode": "Y", "joinActivityCount": 3, "timeLimit": 0, "swimActivityId": 1, "gobackType": "A", "backActivityId": 1, "queryHistory": "Y",//查询历史办理人按钮 "hideAgent": "Y",//隐藏经办人按钮 "copyBtn": "Y",//抄送按钮,Y:是 "signBtn": "Y",//会签按钮,Y:是 "authorizeBtn": "Y",//委托按钮,Y:是 "takebackBtn": "Y",//收回按钮,Y:是 "stopBtn": "Y",//终止按钮,Y:是 "invalidBtn": "Y",//作废按钮 "turntoBtn": "Y",//转交 "urgeBtn": "Y",// 催办,Y:是 "emailRemind": "Y",//邮件提醒,Y:是 "smsRemind": "Y",//短信提醒,Y:是 "remindUserId": "11",//提醒用户ID "remindUserName": "李小龙",//提醒用户名称 "opinionCustomFlag": "S",//意见自定义标志,S:show显示、H:hide隐藏意见、C: "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" : "564654165sdfdsfds" } }, "candidate": { "id": 3, "activityId": 3, "candidateId": "1", "candidateName": "测试2", "personId": "1", "personName": "王小明", "objCandidateId": "选择类别", "objCandidateIdValue": "btnSelectCategory", "objCandidateName": "所属系统", "objCandidateNameValue": "category", "objPersonId": "所属系统", "objPersonIdValue": "category", "objPersonName": "摘要", "objPersonNameValue": "summary", "relateRoleId": "1", "relateRoleName": "研发", "relateCondition": "S", "relateVariable": "事故来源", "relateVariableValue": "source", "relateExplain": "范德萨发", "isSelect": "N", "limitPersonId": "1", "limitPersonName": "测试2", "limitRoleId": "2", "limitRoleName": "产品", "limitOrgId": "1", "limitOrgName": "财务部", "candidateRoleId": "1", "candidateRoleName": "软件开发", "personRoleId": "1", "personRoleName": "测试", "candidateIsself": "N",//主办人得当前人员 "personIsself": "N",//经办人得当前人员 "candidateUsergroupId": "1", "candidateUsergroupName": "测试任务组04", "personUsergroupId": "1", "personUsergroupName": "测试任务组04"//, "candidateIsGroupresp": "n", "personIsGroupresp": "n", "candidateIsCugroupresp": "n",//主办人得班组负责人 "personIsCugroupresp": "n",//经办人得班组负责人 "candidateIsCreater": "n",//流程创建人 "copyFrom": "1", "tenantId": 1 }, "msgAction": [{ "id": 0, "activityId": 0, "triggerType": "string", "triggerTimeLimit": "string", "elementName": "string", "triggerValue": "string", "conditionExpression": "string", "triggerAction": "string", "nextActivityUserFrom": "string", "nextActivityUserId": 0, "nextActivityUserName": "string", "routeCtrlType": "string", "nextRouteId": 0, "nextRouteName": "string", "candidateElementsName": "string", "tenantId": 0, "emailRemind": "string", "smsRemind": "string", "autoRouteConditionFields": "string", "processId": "string" }] } 请求 JSON { "successful": true, "code": 200, "message": "操作成功!", "timestamp": 1667877586892, "data": { "state": "success" } } 开发请求测试body ```json { "activity": { "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, "uuidCode": "fjdsklfjlerw" }, "candidate": { "id": 8, "activityId": 3, "candidateId": "1", "candidateName": "测试2", "personId": "1", "personName": "王小明", "objCandidateId": "选择类别", "objCandidateIdValue": "btnSelectCategory", "objCandidateName": "所属系统", "objCandidateNameValue": "category", "objPersonId": "所属系统", "objPersonIdValue": "category", "objPersonName": "摘要", "objPersonNameValue": "summary", "relateRoleId": "1", "relateRoleName": "研发", "relateCondition": "S", "relateVariable": "事故来源", "relateVariableValue": "source", "relateExplain": "范德萨发", "isSelect": "N", "limitPersonId": "1", "limitPersonName": "测试2", "limitRoleId": "2", "limitRoleName": "产品", "limitOrgId": "1", "limitOrgName": "财务部", "candidateRoleId": "1", "candidateRoleName": "软件开发", "personRoleId": "1", "personRoleName": "测试", "candidateIsself": "N", "personIsself": "N", "candidateUsergroupId": "1", "candidateUsergroupName": "测试任务组04", "personUsergroupId": "1", "personUsergroupName": "测试任务组04", "candidateIsGroupresp": "n", "personIsGroupresp": "n", "candidateIsCugroupresp": "n", "personIsCugroupresp": "n", "candidateIsCreater": "n", "copyFrom": "1", "tenantId": 1 }, "msgAction": [{ "id": 1, "activityId": 1, "triggerType": "4", "triggerTimeLimit": "60", "elementName": "isMajor", "conditionExpression": "isMajor=='n'", "routeCtrlType": "2", "nextRouteId": 2, "nextRouteName": "一线运维受理", "tenantId": 1 }, { "id": 13, "activityId": 0, "triggerType": "4", "triggerTimeLimit": "60", "elementName": "isMajor", "conditionExpression": "isMajor=='n'", "routeCtrlType": "2", "nextRouteId": 2, "nextRouteName": "2线运维受理", "tenantId": 1 }, { "id": 14, "activityId": 0, "triggerType": "4", "triggerTimeLimit": "60", "elementName": "isMajor", "conditionExpression": "isMajor=='n'", "triggerAction": null, "routeCtrlType": "2", "nextRouteId": 2, "nextRouteName": "3线运维受理", "tenantId": 1 } ] }
```json { "activity" :{ "id": 3, "createdBy": 1, "createdName": "管理员", "createdTime": "2022-10-13 15:39:24", "processId": 1, "activityName": "结束", "activityAlias": "结束", "activityType": "T",//活动类型,S:开始,T:任务,M:多人任务,E:结束 "supportAutoRoute": "n", "autoRouteConditionFields": "1,2", "endOtherTodo": "y", "taskFlag": "Y",//任务标志,Y:强制、N:非强制 "taskPercent": 100, "forkJoin": "G",分支聚合,F:分支、J:聚合、B:聚合分支、G:普通 "forkNode": "Y", "joinActivityCount": 3, "timeLimit": 0, "swimActivityId": 1, "gobackType": "A", "backActivityId": 1, "queryHistory": "Y",//查询历史办理人按钮 "hideAgent": "Y",//隐藏经办人按钮 "copyBtn": "Y",//抄送按钮,Y:是 "signBtn": "Y",//会签按钮,Y:是 "authorizeBtn": "Y",//委托按钮,Y:是 "takebackBtn": "Y",//收回按钮,Y:是 "stopBtn": "Y",//终止按钮,Y:是 "invalidBtn": "Y",//作废按钮 "turntoBtn": "Y",//转交 "urgeBtn": "Y",// 催办,Y:是 "emailRemind": "Y",//邮件提醒,Y:是 "smsRemind": "Y",//短信提醒,Y:是 "remindUserId": "11",//提醒用户ID "remindUserName": "李小龙",//提醒用户名称 "opinionCustomFlag": "S",//意见自定义标志,S:show显示、H:hide隐藏意见、C: "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" : "564654165sdfdsfds" } }, "candidate": { "id": 3, "activityId": 3, "candidateId": "1", "candidateName": "测试2", "personId": "1", "personName": "王小明", "objCandidateId": "选择类别", "objCandidateIdValue": "btnSelectCategory", "objCandidateName": "所属系统", "objCandidateNameValue": "category", "objPersonId": "所属系统", "objPersonIdValue": "category", "objPersonName": "摘要", "objPersonNameValue": "summary", "relateRoleId": "1", "relateRoleName": "研发", "relateCondition": "S", "relateVariable": "事故来源", "relateVariableValue": "source", "relateExplain": "范德萨发", "isSelect": "N", "limitPersonId": "1", "limitPersonName": "测试2", "limitRoleId": "2", "limitRoleName": "产品", "limitOrgId": "1", "limitOrgName": "财务部", "candidateRoleId": "1", "candidateRoleName": "软件开发", "personRoleId": "1", "personRoleName": "测试", "candidateIsself": "N",//主办人得当前人员 "personIsself": "N",//经办人得当前人员 "candidateUsergroupId": "1", "candidateUsergroupName": "测试任务组04", "personUsergroupId": "1", "personUsergroupName": "测试任务组04"//, "candidateIsGroupresp": "n", "personIsGroupresp": "n", "candidateIsCugroupresp": "n",//主办人得班组负责人 "personIsCugroupresp": "n",//经办人得班组负责人 "candidateIsCreater": "n",//流程创建人 "copyFrom": "1", "tenantId": 1 }, "msgAction": [{ "id": 0, "activityId": 0, "triggerType": "string", "triggerTimeLimit": "string", "elementName": "string", "triggerValue": "string", "conditionExpression": "string", "triggerAction": "string", "nextActivityUserFrom": "string", "nextActivityUserId": 0, "nextActivityUserName": "string", "routeCtrlType": "string", "nextRouteId": 0, "nextRouteName": "string", "candidateElementsName": "string", "tenantId": 0, "emailRemind": "string", "smsRemind": "string", "autoRouteConditionFields": "string", "processId": "string" }] }
{ "successful": true, "code": 200, "message": "操作成功!", "timestamp": 1667877586892, "data": { "state": "success" } }
```json { "activity": { "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, "uuidCode": "fjdsklfjlerw" }, "candidate": { "id": 8, "activityId": 3, "candidateId": "1", "candidateName": "测试2", "personId": "1", "personName": "王小明", "objCandidateId": "选择类别", "objCandidateIdValue": "btnSelectCategory", "objCandidateName": "所属系统", "objCandidateNameValue": "category", "objPersonId": "所属系统", "objPersonIdValue": "category", "objPersonName": "摘要", "objPersonNameValue": "summary", "relateRoleId": "1", "relateRoleName": "研发", "relateCondition": "S", "relateVariable": "事故来源", "relateVariableValue": "source", "relateExplain": "范德萨发", "isSelect": "N", "limitPersonId": "1", "limitPersonName": "测试2", "limitRoleId": "2", "limitRoleName": "产品", "limitOrgId": "1", "limitOrgName": "财务部", "candidateRoleId": "1", "candidateRoleName": "软件开发", "personRoleId": "1", "personRoleName": "测试", "candidateIsself": "N", "personIsself": "N", "candidateUsergroupId": "1", "candidateUsergroupName": "测试任务组04", "personUsergroupId": "1", "personUsergroupName": "测试任务组04", "candidateIsGroupresp": "n", "personIsGroupresp": "n", "candidateIsCugroupresp": "n", "personIsCugroupresp": "n", "candidateIsCreater": "n", "copyFrom": "1", "tenantId": 1 }, "msgAction": [{ "id": 1, "activityId": 1, "triggerType": "4", "triggerTimeLimit": "60", "elementName": "isMajor", "conditionExpression": "isMajor=='n'", "routeCtrlType": "2", "nextRouteId": 2, "nextRouteName": "一线运维受理", "tenantId": 1 }, { "id": 13, "activityId": 0, "triggerType": "4", "triggerTimeLimit": "60", "elementName": "isMajor", "conditionExpression": "isMajor=='n'", "routeCtrlType": "2", "nextRouteId": 2, "nextRouteName": "2线运维受理", "tenantId": 1 }, { "id": 14, "activityId": 0, "triggerType": "4", "triggerTimeLimit": "60", "elementName": "isMajor", "conditionExpression": "isMajor=='n'", "triggerAction": null, "routeCtrlType": "2", "nextRouteId": 2, "nextRouteName": "3线运维受理", "tenantId": 1 } ] }