获取传阅项详情

根据流程实例编号和工作项编号获取传阅项详情

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20190828000022";
int taskId = 1000;
ResultEntity<WorkItem> resultEntity = client.getWorkflowCirculatedItem(procId, taskId);
String resultStr = JSONObject.fromObject(resultEntity,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL调用
curl -X GET "URL/engine/getWorkflowCirculatedItem?procId=20190828000022&taskId=1000" -H "accept: application/json"
  • 响应示例
{
  "businessObject": {
    "addTask": false,
    "alertTime": null,
    "appCode": "",
    "appName": "",
    "appType": "",
    "appTypeName": "",
    "assigneeOrgId": "",
    "assigneeOrgName": "",
    "assigneeUserId": "",
    "assigneeUserName": "",
    "autoFinish": false,
    "businessDataId": "",
    "createOrgId": "",
    "createOrgName": "",
    "createUserName": "",
    "currentTaskNames": "",
    "currentTaskUsers": "",
    "expiredTime": null,
    "extendedFieldOne": "",
    "extendedFieldThree": "",
    "extendedFieldTwo": "",
    "finishTime": "2019-08-28 17:11:57",
    "important": 0,
    "itemId": "f3d356a8-c96f-11e9-bb47-d00dadbb603a",
    "opinionArea": "",
    "opinionContent": "",
    "passOrgId": "2dc9f805-f0df-42e7-b312-d7395da2018a",
    "passOrgName": "XX轨道交通建设监理有限公司财务部",
    "passTaskId": 2,
    "passUserId": "27b3f6ef-2647-4232-b064-3b5721e51dd5",
    "passUserName": "唐琪",
    "pcPageUrl": "",
    "procId": "20190828000022",
    "procName": "",
    "readTime": "2019-08-28 17:11:57",
    "receiveTime": "2019-08-28 16:44:06",
    "secret": 0,
    "status": "finished",
    "taskId": 1000,
    "taskName": "审批步骤-传阅",
    "taskText": "审批步骤-传阅",
    "userChoice": "",
    "userId": "0816ffed-26aa-495b-9987-6190a5777944",
    "userName": "张虎航",
    "userOrgId": "843b22ca-bfb6-4637-b872-bf449b17dbb7",
    "userOrgName": "领导",
    "workItemType": 0,
    "workflowStatus": ""
  },
  "message": "成功",
  "statusCode": 200,
  "success": true
}