强制完成流程实例项

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20190102000005";
Integer[] taskId = {4};
Result result = client.forceToFinishWorkItem(procId, taskId);
System.out.println(JSONObject.fromObject(result,JsonHelper.getJsonConfig(Result.class)));
  • CURL 调用
curl -X  POST  "URL/engine/forceToFinishWorkItem"  -H "accept: application/json" -H "Content-Type: application/json" -d \
"{   \
  \"procId\": \"20190102000005\",    \
  \"taskId\": [   \   4   \
  ]   \
}"
  • 响应示例
{
  "message": "强制完成流程工作项成功",
  "statusCode": 200,
  "success": true
}