更新时间:2024-05-27 GMT+08:00
分享

我的任务

功能介绍

查询我的任务。

URI

GET /services/workflow/mytasks/{pageSize}/{curPage}

示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/mytasks/2/1

表1 路径参数

参数

是否必选

参数类型

描述

pageSize

String

分页大小

curPage

String

当前页数

请求头

使用机机认证调用接口时需传入header:Authorization,其值为机机鉴权token。

请求参数

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

msg

String

接口响应信息

code

Integer

接口返回码

data

Array of Data objects

接口响应数据

pageInfo

PageInfo object

分页信息

orderID

String

请求跟踪流水号

表3 Data

参数

参数类型

描述

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

截止日期

表4 PageInfo

参数

参数类型

描述

totalRows

Integer

总共行数

curPage

Integer

当前页数

pageSize

Integer

分页大小

totalPages

Integer

总共页数

请求示例

响应示例

状态码: 200

ok

{ 
  "msg" : null, 
  "code" : 0, 
  "data" : [ { 
    "processInstanceId" : "25e13259-d605-11ee-9cb2-7804e3968f51", 
    "processDefinitionId" : "Test0228:2:7158d7797cb844c3b0433e8d45508b17", 
    "processDefinitionName" : "Test0228", 
    "processDefinitionNameCn" : "Test0228", 
    "businessKey" : "P10000490", 
    "taskDefinitionKey" : "Activity_05eonal", 
    "taskDefinitionName" : "用户任务", 
    "startTime" : 1709117409498, 
    "title" : "Test0228_2024-02-28T14:46:46.701+0800", 
    "state" : "用户任务", 
    "lifeCycleState" : null, 
    "handlers" : "u.hid_fje4j2nvnue3xwp", 
    "userIds" : "1008600000065234815", 
    "lastUpdateDate" : 1709117409498, 
    "suspensionState" : "1", 
    "processInstanceStartTime" : 1709102809386, 
    "processInstanceEndTime" : null, 
    "createdBy" : "hid_fje4j2nvnue3xwp", 
    "createdByName" : "hid_fje4j2nvnue3xwp", 
    "endTime" : null, 
    "tenantId" : "definition_micro", 
    "userId" : null, 
    "createStartTime" : null, 
    "createEndTime" : null, 
    "createTaskTime" : 1709117409498, 
    "completeStartTime" : null, 
    "category" : "http://bpmn.io/schema/bpmn", 
    "completeEndTime" : null, 
    "transferSign" : null, 
    "taskId" : "243b049e-d627-11ee-b2c3-7804e3968f51", 
    "startUserId" : "1008600000065234815", 
    "startUserName" : "hid_fje4j2nvnue3xwp", 
    "taskUrl" : null, 
    "groupIds" : "", 
    "lookUpId" : null, 
    "filterResult" : null, 
    "groupIdList" : null, 
    "sequenceCount" : 2, 
    "lastUpdateBy" : "1008600000065234815", 
    "lastUpdateName" : "hid_fje4j2nvnue3xwp", 
    "operationState" : null, 
    "site" : null, 
    "dueDate" : null 
  }, { 
    "processInstanceId" : "7a6cc4d2-d620-11ee-b2c3-7804e3968f51", 
    "processDefinitionId" : "Test0228_01:4:10f3deaebb1249e0be7037093a525951", 
    "processDefinitionName" : "Test0228_01", 
    "processDefinitionNameCn" : "Test0228_01", 
    "businessKey" : "P10000494", 
    "taskDefinitionKey" : "Activity_1k7n1lw", 
    "taskDefinitionName" : "用户任务2", 
    "startTime" : 1709114548032, 
    "title" : "Test0228_01_2024-02-28T18:02:26.255+0800", 
    "state" : "用户任务2", 
    "lifeCycleState" : null, 
    "handlers" : "u.hid_fje4j2nvnue3xwp", 
    "userIds" : "1008600000065234815", 
    "lastUpdateDate" : 1709114548032, 
    "suspensionState" : "1", 
    "processInstanceStartTime" : 1709114548125, 
    "processInstanceEndTime" : null, 
    "createdBy" : "hid_fje4j2nvnue3xwp", 
    "createdByName" : "hid_fje4j2nvnue3xwp", 
    "endTime" : null, 
    "tenantId" : "definition_micro", 
    "userId" : null, 
    "createStartTime" : null, 
    "createEndTime" : null, 
    "createTaskTime" : 1709114548032, 
    "completeStartTime" : null, 
    "category" : "http://bpmn.io/schema/bpmn", 
    "completeEndTime" : null, 
    "transferSign" : null, 
    "taskId" : "7aa9f4f4-d620-11ee-b2c3-7804e3968f51", 
    "startUserId" : "1008600000065234815", 
    "startUserName" : "hid_fje4j2nvnue3xwp", 
    "taskUrl" : null, 
    "groupIds" : "", 
    "lookUpId" : null, 
    "filterResult" : null, 
    "groupIdList" : null, 
    "sequenceCount" : 1, 
    "lastUpdateBy" : "1008600000065234815", 
    "lastUpdateName" : "hid_fje4j2nvnue3xwp", 
    "operationState" : null, 
    "site" : null, 
    "dueDate" : null 
  } ], 
  "pageInfo" : { 
    "totalRows" : 22, 
    "curPage" : 1, 
    "pageSize" : 2, 
    "totalPages" : 11 
  }, 
  "orderID" : "17c7c1e56da34810be46ef89369a6004" 
}

状态码

状态码

描述

200

ok

错误码

请参见错误码

分享:

    相关文档

    相关产品