读取流程工作项参数

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

  },
  "message": "成功",
  "statusCode": 200,
  "success": true
}