我的任务
功能介绍
查询我的任务。
URI
GET /services/workflow/mytasks/{pageSize}/{curPage}
示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/mytasks/2/1
|
参数 |
是否必选 |
参数类型 |
描述 |
|---|---|---|---|
|
pageSize |
是 |
String |
分页大小 |
|
curPage |
是 |
String |
当前页数 |
请求头
使用机机认证调用接口时需传入header:Authorization,其值为机机鉴权token。
请求参数
无
响应参数
状态码: 200
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
msg |
String |
接口响应信息 |
|
code |
Integer |
接口返回码 |
|
data |
Array of Data objects |
接口响应数据 |
|
pageInfo |
PageInfo object |
分页信息 |
|
orderID |
String |
请求跟踪流水号 |
|
参数 |
参数类型 |
描述 |
|---|---|---|
|
processInstanceId |
String |
流程实例ID |
|
processDefinitionId |
String |
流程定义ID(拼接字段:流程模板key+版本+流程实例ID) |
|
processDefinitionName |
String |
流程模板名称 |
|
processDefinitionNameCn |
String |
流程模板名称 |
|
businessKey |
String |
业务流水号 |
|
taskDefinitionKey |
String |
任务节点流水号 |
|
taskDefinitionName |
String |
任务节点名称 |
|
startTime |
String |
开始时间 |
|
title |
String |
流程标题 |
|
state |
String |
流程实例运行状态 |
|
lifeCycleState |
String |
生命周期状态 |
|
handlers |
String |
处理人 |
|
userIds |
String |
用户ID集合 |
|
lastUpdateDate |
String |
最后更新时间 |
|
suspensionState |
String |
流程暂停状态 |
|
processInstanceStartTime |
String |
流程实例开始时间 |
|
processInstanceEndTime |
String |
流程实例结束时间 |
|
createdBy |
String |
创建人ID |
|
createdByName |
String |
创建人账号 |
|
endTime |
String |
结束时间 |
|
tenantId |
String |
租户ID |
|
userId |
String |
用户ID |
|
createStartTime |
String |
创建开始时间 |
|
createEndTime |
String |
创建结束时间 |
|
createTaskTime |
String |
任务创建时间 |
|
completeStartTime |
String |
审批结束的开始时间 |
|
category |
String |
流程类型 |
|
completeEndTime |
String |
审批结束的结束时间 |
|
transferSign |
String |
代办标志:0代表全部我的代办,1代表可以转审的 |
|
taskId |
String |
任务ID |
|
startUserId |
String |
启动用户ID |
|
startUserName |
String |
启动用户名称 |
|
taskUrl |
String |
任务的URL |
|
filterResult |
Array of strings |
定制返回结果 |
|
groupIdList |
Array of strings |
group ID集合 |
|
sequenceCount |
Integer |
序列数 |
|
lastUpdateBy |
String |
最后更新人 |
|
lastUpdateName |
String |
最后更新人名称 |
|
operationState |
String |
流程操作状态 |
|
site |
String |
引擎站点标识 |
|
dueDate |
String |
截止日期 |
|
groupIds |
String |
- |
|
lookUpId |
String |
- |
|
processStatus |
String |
- |
请求示例
无
响应示例
状态码: 200
ok
{
"msg": null,
"code": 0,
"data": [
{
"processInstanceId": "f6483177-0a16-11f0-8e03-d24aa7462b46",
"processDefinitionId": "Test20250326001:1:88c99420548b4f3bb3104329d136c35d",
"processDefinitionName": "Test20250326001",
"processDefinitionNameCn": "测试20250326001",
"businessKey": "P10000031",
"taskDefinitionKey": "Activity_0sqf3co",
"taskDefinitionName": "用户任务001",
"startTime": "2025-03-26T07:50:18.775+0000",
"title": "Test20250326001_2025-03-26T15:50:18.552+0800",
"state": "ACTIVE",
"lifeCycleState": null,
"handlers": "u.sysadmin",
"userIds": "1000001",
"lastUpdateDate": "2025-03-26T07:50:18.775+0000",
"suspensionState": "1",
"processInstanceStartTime": "2025-03-26T07:50:18.598+0000",
"processInstanceEndTime": null,
"createdBy": "sysadmin",
"createdByName": "1000001",
"endTime": null,
"tenantId": "10000001",
"userId": null,
"createStartTime": null,
"createEndTime": null,
"createTaskTime": "2025-03-26T07:50:18.775+0000",
"completeStartTime": null,
"category": "http://bpmn.io/schema/bpmn",
"completeEndTime": null,
"transferSign": null,
"taskId": "f6635aac-0a16-11f0-8e03-d24aa7462b46",
"startUserId": "1000001",
"startUserName": "1000001",
"taskUrl": null,
"groupIds": "",
"lookUpId": null,
"filterResult": null,
"groupIdList": null,
"sequenceCount": 1,
"lastUpdateBy": "1000001",
"lastUpdateName": "sysadmin",
"operationState": null,
"site": null,
"dueDate": null,
"processStatus": null
},
{
"processInstanceId": "1a63945f-0a15-11f0-8e03-d24aa7462b46",
"processDefinitionId": "Test20250326001:1:88c99420548b4f3bb3104329d136c35d",
"processDefinitionName": "Test20250326001",
"processDefinitionNameCn": "测试20250326001",
"businessKey": "P10000030",
"taskDefinitionKey": "Activity_0sqf3co",
"taskDefinitionName": "用户任务001",
"startTime": "2025-03-26T07:37:00.425+0000",
"title": "Test20250326001_2025-03-26T15:37:00.131+0800",
"state": "ACTIVE",
"lifeCycleState": null,
"handlers": "u.sysadmin",
"userIds": "1000001",
"lastUpdateDate": "2025-03-26T07:37:00.425+0000",
"suspensionState": "1",
"processInstanceStartTime": "2025-03-26T07:37:00.181+0000",
"processInstanceEndTime": null,
"createdBy": "sysadmin",
"createdByName": "1000001",
"endTime": null,
"tenantId": "10000001",
"userId": null,
"createStartTime": null,
"createEndTime": null,
"createTaskTime": "2025-03-26T07:37:00.425+0000",
"completeStartTime": null,
"category": "http://bpmn.io/schema/bpmn",
"completeEndTime": null,
"transferSign": null,
"taskId": "1a88cfb4-0a15-11f0-8e03-d24aa7462b46",
"startUserId": "1000001",
"startUserName": "1000001",
"taskUrl": null,
"groupIds": "",
"lookUpId": null,
"filterResult": null,
"groupIdList": null,
"sequenceCount": 1,
"lastUpdateBy": "1000001",
"lastUpdateName": "sysadmin",
"operationState": null,
"site": null,
"dueDate": null,
"processStatus": null
}
],
"pageInfo": {
"totalRows": 12,
"curPage": 1,
"pageSize": 2,
"totalPages": 6
},
"orderID": "e9ae7c62-5b33-4b0f-9968-bcfd3dc35018"
}
状态码
|
状态码 |
描述 |
|---|---|
|
200 |
ok |
错误码
请参见错误码。