强制结束流程

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20181229000001";
Result result = client.forceToEndWorkflow(procId, "强制退回", "强制退回")
String resultStr = JSONObject.fromObject(result,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL 调用
curl -X GET "URL/engine/forceToEndWorkflow?procId=20190102000007&taskId=4&opinionContent=强制退回&opinionArea=强制退回" -H "accept: application/json"
  • 响应示例
{
  "message": "成功",
  "statusCode": 200,
  "success": true
}