强制撤回/追回流程实例工作项

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20181229000001";
int taskId = 2;
Result result = client.forceRollbackWorkflow(procId, taskId);
String resultStr = JSONObject.fromObject(result,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL 调用
curl -X  POST  "URL/engine/forceRollbackWorkflow"  -H "accept: application/x-www-form-urlencoded;charset=utf-8" -H "Content-Type: application/json" -d \
"procId=20181229000001&taskId=2"
  • 响应示例
{
    "success": true,
    "message": "强制撤回成功",
    "statusCode": 0
}