根据实例Id获取流程实例信息

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20190827000001";
ResultEntity<WorkflowInstance> resultEntity = client.getWorkflowInstanceByProcId(procId);
String resultStr = JSONObject.fromObject(resultEntity,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL调用
curl -X GET "URL/engine/getWorkflowInstanceByProcId?procId=20190827000001" -H "accept: application/json"
  • 响应示例
{
  "businessObject": {
    "appCode": "08202",
    "appName": "test_ys2",
    "beginTime": "2019-08-27 10:14:05",
    "businessDataId": "e673556464514c9784f71757360c4b20",
    "createOrgId": "2dc9f805-f0df-42e7-b312-d7395da2018a",
    "createOrgName": "广州轨道交通建设监理有限公司财务部",
    "createUserId": "27b3f6ef-2647-4232-b064-3b5721e51dd5",
    "createUserName": "唐琪",
    "currentSeqId": 4,
    "currentTaskId": 4,
    "currentTaskNames": "各部门会签",
    "currentTaskUsers": "",
    "currentWorkItem": null,
    "endTime": null,
    "extendedFieldOne": "",
    "extendedFieldThree": "",
    "extendedFieldTwo": "",
    "important": 0,
    "procId": "20190827000001",
    "procName": "0827test",
    "secret": 0,
    "status": "executing",
    "workflowId": 0,
    "workflowVersion": ""
  },
  "message": "成功",
  "statusCode": 200,
  "success": true
}