获取下一步骤
- SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine"); //引擎客户端
String procId = "20190828000002";
int taskId = 1;
ResultEntity<List<NextStep>> nextSteps = client.queryWorkflowNextSteps(procId, taskId, new HashMap<String,Object>());
String resultStr = JSONObject.fromObject(nextSteps,getJsonConfig()).toString();
System.out.println(resultStr);
- CURL调用
curl -X POST "URL/engine/queryWorkflowNextSteps " -H "accept: application/json" -H "Content-Type: application/json" -d \
"{ \
\"procId\": \"20190828000002\", \
\"taskId\":1 \
}"
- 响应示例
[{
"stepName": "部门经理审批",
"stepLabel": "开始步骤->审批步骤",
"stepDescription": "",
"multipleSelectTag": null,
"orderby": 0,
"allowSelect": true,
"allowSelectAll": false,
"autoSelectAll": false,
"singleSelect": false,
"needUser": true,
"exception": null,
"autoSend": false,
"stepOrgs": [{
"orgId": "e3d414ea-2393-4306-9bfb-bd4a96f9832a",
"orgName": "综合办公室",
"orgOrderBy": 2,
"stepUsers": [{
"userId": "a7b26d12-91dc-407b-822d-84110999f18b",
"userName": "钟欣",
"userOrderBy": 4727,
"roleId": "c96f3bdb-696a-4e98-99e7-c7af8b948a0d",
"roleName": "HR_分管领导",
"roleOrderby": 0,
"loginId": null
}]
}]
}]
{
"businessObject": [
{
"activityExt": {
"ext4": "",
"ext3": "",
"ext2": "1",
"ext1": ""
},
"activityType": "approval",
"allowSelect": true,
"allowSelectAll": false,
"appCode": "",
"autoSelectAll": false,
"autoSend": false,
"exception": "",
"lineExt": {
"ext4": null,
"ext3": null,
"ext2": null,
"ext1": null
},
"multipleSelectTag": "",
"needUser": true,
"orderby": 0,
"singleSelect": false,
"stepDescription": "",
"stepLabel": "流程开始->会议通知",
"stepName": "会议通知",
"stepOrgs": [
{
"orgId": "2dc9f805-f0df-42e7-b312-d7395da2018a",
"orgName": "XX轨道交通建设监理有限公司财务部",
"orgOrderBy": 100,
"stepUsers": [
{
"orgId": "",
"roleOrderby": 9999,
"userId": "cc99aba7-3667-4980-b971-024101938318",
"userName": "何颖思",
"userOrderBy": 999
},
{
"orgId": "",
"roleOrderby": 9999,
"userId": "b203f5b3-4246-49a2-902a-19c899f00ea2",
"userName": "黄燕君",
"userOrderBy": 999
}
]
}
],
"stepText": "发起会议通知",
"stepType": "forward"
}
],
"message": "成功",
"statusCode": 200,
"success": true
}