获取流程所有传阅项

  • SDK调用
WorkflowEngineClient client = new WorkflowEngineClient();
client.setUrl(URL+"/engine");  //引擎客户端
String procId = "20190828000022";
//构建查询参数
Map<String, Object> params = new HashMap<String, Object>();
params.put("userName", "张虎航");
params.put("passTaskId ",2);
params.put("taskName", "审批步骤-传阅");
ResultEntity<List<WorkItem>> resultEntity = client.queryWorkflowCirculatedItems(procId, params);
String resultStr = JSONObject.fromObject(resultEntity,getJsonConfig()).toString();
System.out.println(resultStr);
  • CURL 调用
curl -X  POST  "URL/engine/queryWorkflowCirculatedItems"  -H "accept: application/json" -H "Content-Type: application/json" -d \
"{    \
    \"procId\": \"20190828000022\" ,   \
    \"parameter\": {    \
         \"taskName\": \"审批步骤-传阅\",    \
         \"passTaskId\":2,    \
         \"userName\": \"张虎航\"
    }    \
}"

 注:parameter 下的字段为所有的查询参数,可以选填

  • 响应示例
{
  "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": "广州轨道交通建设监理有限公司财务部",
      "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
}