退回第一步流程实例工作项

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20190102000006";
int taskId = 4;
Result result = client.pushbackToRootWorkflow (procId,taskId," 退回第一步骤","退回第一步骤");
String resultStr = JSONObject.fromObject(result,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL 调用
curl -X  POST  "URL/engine/pushbackToRootWorkflow"  -H "accept: application/json" -H "Content-Type: application/json" -d \
"{    \
    \"procId\": \"20190102000006\",    \
    \"taskId\": 4 ,   \  
    \"opinionContent\": \"退回第一步骤\",    \
    \"opinionArea\": \"退回第一步骤\",    \
}"
  • 响应示例
{
  "message": "退回成功",
  "statusCode": 200,
  "success": true
}