我发起的流程
功能介绍
查询我发起的流程。
URI
GET /services/workflow/myprocesses/{pageSize}/{curPage}
示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/myprocesses/2/1
参数 |
是否必选 |
参数类型 |
描述 |
---|---|---|---|
pageSize |
是 |
String |
分页大小 |
curPage |
是 |
String |
当前页 |
请求头
使用机机认证调用接口时需传入header:Authorization,其值为机机鉴权token。
请求参数
无
响应参数
状态码: 200
参数 |
参数类型 |
描述 |
---|---|---|
orderId |
String |
请求跟踪流水号 |
msg |
String |
接口响应信息 |
code |
Integer |
接口返回码 |
data |
Array of ProcessInstanceVO objects |
接口响应数据,JSON对象或数组 |
pageInfo |
PageVo object |
标准响应体分页信息 |
参数 |
参数类型 |
描述 |
---|---|---|
processInstanceId |
String |
流程实例ID |
processDefinitionName |
String |
流程定义名称 |
processDefinitionNameCn |
String |
流程定义中文名称 |
businessKey |
String |
业务流水号 |
title |
String |
流程标题 |
category |
String |
流程类型 |
createdByName |
String |
创建人账号 |
processInstanceStartTime |
String |
流程实例开始时间 |
processInstanceEndTime |
String |
流程实例结束时间 |
state |
String |
流程实例状态:"挂起:SUSPENDED;未完成:ACTIVE;已完成:COMPLETED;取消:INTERNALLY_TERMINATED |
lifeCycleState |
String |
生命周期状态 |
taskList |
Array of Task objects |
任务信息列表 |
site |
String |
引擎站点标识 |
参数 |
参数类型 |
描述 |
---|---|---|
processInstanceId |
String |
流程实例ID |
taskId |
String |
任务ID |
taskDefinitionKey |
String |
节点Key |
taskDefinitionName |
String |
任务节点名称 |
handlers |
String |
任务处理人短工号集合,有多个时使用","号分隔 |
userIds |
String |
任务处理人ID集合,有多个时使用","号分隔 |
groupIds |
String |
群组ID集合,有多个时使用","号分隔 |
ccuserIds |
String |
抄送用户ID集合,有多个时使用","号分隔 |
ccUserNames |
String |
抄送用户账号集合,有多个时使用","号分隔 |
startTime |
String |
任务开始时间 |
endTime |
String |
任务结束时间 |
status |
String |
任务状态:suspended、finished、doing |
createdBy |
String |
创建人ID |
createName |
String |
任务创建人 |
approvalUserName |
String |
审批人用户名 |
请求示例
无
响应示例
状态码: 200
接口返参
{ "msg" : null, "code" : 0, "data" : [ { "processInstanceId" : "7a6cc4d2-d620-11ee-b2c3-7804e3968f51", "processDefinitionName" : "Test0228_01", "processDefinitionNameCn" : "Test0228_01", "businessKey" : "P10000494", "title" : "Test0228_01_2024-02-28T18:02:26.255+0800", "category" : "http://bpmn.io/schema/bpmn", "createdByName" : "hid_fje4j2nvnue3xwp", "processInstanceStartTime" : 1709114547631, "processInstanceEndTime" : null, "state" : "ACTIVE", "lifeCycleState" : null, "taskList" : [ { "processInstanceId" : "7a6cc4d2-d620-11ee-b2c3-7804e3968f51", "taskId" : "7aa9f4f4-d620-11ee-b2c3-7804e3968f51", "taskDefinitionKey" : "Activity_1k7n1lw", "taskDefinitionName" : "用户任务2", "handlers" : "u.hid_fje4j2nvnue3xwp", "userIds" : "1008600000065234815", "groupIds" : "", "ccuserIds" : "", "ccUserNames" : null, "startTime" : 1709114548032, "endTime" : null, "status" : "doing", "createdBy" : "1008600000065234815", "createName" : null, "approvalUserName" : null }, { "processInstanceId" : "7a6cc4d2-d620-11ee-b2c3-7804e3968f51", "taskId" : "7a799620-d620-11ee-b2c3-7804e3968f51", "taskDefinitionKey" : "Activity_08slzxq", "taskDefinitionName" : "用户任务1", "handlers" : "u.hid_fje4j2nvnue3xwp", "userIds" : "1008600000065234815", "groupIds" : "", "ccuserIds" : "", "ccUserNames" : null, "startTime" : 1709114547715, "endTime" : null, "status" : "doing", "createdBy" : "1008600000065234815", "createName" : null, "approvalUserName" : null } ], "site" : null }, { "processInstanceId" : "1327a78c-d61f-11ee-b2c3-7804e3968f51", "processDefinitionName" : "Test0228_01", "processDefinitionNameCn" : "Test0228_01", "businessKey" : "P10000493", "title" : "Test0228_01_2024-02-28T17:52:23.390+0800", "category" : "http://bpmn.io/schema/bpmn", "createdByName" : "hid_fje4j2nvnue3xwp", "processInstanceStartTime" : 1709113944876, "processInstanceEndTime" : null, "state" : "ACTIVE", "lifeCycleState" : null, "taskList" : [ { "processInstanceId" : "1327a78c-d61f-11ee-b2c3-7804e3968f51", "taskId" : "13665e4e-d61f-11ee-b2c3-7804e3968f51", "taskDefinitionKey" : "Activity_1k7n1lw", "taskDefinitionName" : "用户任务2", "handlers" : "u.hid_fje4j2nvnue3xwp", "userIds" : "1008600000065234815", "groupIds" : "", "ccuserIds" : "", "ccUserNames" : null, "startTime" : 1709113945287, "endTime" : null, "status" : "doing", "createdBy" : "1008600000065234815", "createName" : null, "approvalUserName" : null }, { "processInstanceId" : "1327a78c-d61f-11ee-b2c3-7804e3968f51", "taskId" : "133451ca-d61f-11ee-b2c3-7804e3968f51", "taskDefinitionKey" : "Activity_08slzxq", "taskDefinitionName" : "用户任务1", "handlers" : "u.hid_fje4j2nvnue3xwp", "userIds" : "1008600000065234815", "groupIds" : "", "ccuserIds" : "", "ccUserNames" : null, "startTime" : 1709113944959, "endTime" : null, "status" : "doing", "createdBy" : "1008600000065234815", "createName" : null, "approvalUserName" : null } ], "site" : null } ], "pageInfo" : { "totalRows" : 31, "curPage" : 1, "pageSize" : 2, "totalPages" : 16 }, "orderID" : "4297a6ba778a420b89b06cbd351adf68" }
状态码
状态码 |
描述 |
---|---|
200 |
接口返参 |
错误码
请参见错误码。