读取流程实例参数

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20181229000001";
ResultEntity<Map<String, Object>> result = client.getWorkflowParameters(procId);
String resultStr = JSONObject.fromObject(result,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL 调用
curl -X GET "URL/engine/getWorkflowParameters?procId=20181229000001" -H "accept: application/json"
  • 响应示例
{
  "businessObject": {
    "passTaskId": 1,
    "taskName": "请",
    "userOrgName": "",
    "userName": "张",
    "taskSeqId": 1,
    "taskId": 2,
    "taskText": "请"
  },
  "message": "成功",
  "statusCode": 200,
  "success": true
}