流程实例工作项是否能撤回

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20181229000001";
int taskId = 2;
Result result = client.enableRollBack(procId, taskId, false);
String resultStr = JSONObject.fromObject(result,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL 调用
curl -X GET "URL/engine/enableRollBack?procId=20181229000001&taskId=1&force=false" -H "accept: application/json"
  • 响应示例
{
  "message": "流程实例工作项未完成,不能进行撤回操作!",
  "statusCode": 400,
  "success": false
}