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

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