华为云用户手册

  • 请求参数 表2 请求body参数,筛选条件 参数 是否必选 参数类型 描述 pageSize 否 Integer 每页的条数 curPage 否 Integer 当前页数 processSearchType 否 String 查询类型 approvalUserName 否 String 审批人 processInstanceId 否 String 流程实例ID processInstanceIds 否 Array of strings 流程实例ID集合 category 否 String 流程分类 title 否 String 流程名称 titleCn 否 String 流程标题中文 titles 否 Array of strings 流程标题列表 processDefinitionName 否 String 流程类型名称 processDefinitionNameCn 否 String 流程类型名称中文 processDefinitionNames 否 Array of strings 流程类型名称集合 businessKey 否 String 流程编码 businessKeys 否 Array of strings 流程编码集合 createdByName 否 String 流程的创建人 creatBy 否 String 流程的创建人短工号 state 否 String 流程实例状态 states 否 Array of strings 流程状态集合 startTimeStart 否 String 流程实例创建时间 startTimeEnd 否 String 流程实例创建时间 endTimeStart 否 String 流程实例结束时间 endTimeEnd 否 String 流程实例结束时间 taskStatus 否 String 任务状态 taskDefinitionKey 否 String 任务节点Key taskDefinitionKeys 否 Array of strings 任务节点Key集合 taskDefinitionName 否 String 任务名称 taskDefinitionNames 否 Array of strings 任务名称集合 handlers 否 Array of strings 处理人短工号集合 ccUserNames 否 Array of strings 当前任务抄送人 includeColumn 否 String 需要展示任务列表 i18n 否 Integer 国际化标识 lifeCycleState 否 String 生命周期状态 lifeCycleStates 否 Array of strings 生命周期状态集合 sites 否 Array of strings 引擎站点标识 unionQuery 否 String 查询标识
  • URI POST /services/workflow/queryProcessesList/{pageSize}/{curPage} 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/queryProcessesList/2/1 表1 路径参数 参数 是否必选 参数类型 描述 pageSize 是 String 分页大小 curPage 是 String 当前页数
  • 响应示例 状态码: 200 带分页的标准响应体 { "msg": null, "code": 0, "data": { "pageVO": { "totalRows": 70, "curPage": 1, "pageSize": 1, "resultMode": 0, "startIndex": 1, "endIndex": 1, "orderBy": null, "filterStr": null, "totalPages": 70 }, "result": [ { "rejectDecisionLogic": null, "enableAutoRefreshForm": 0, "lastUpdatedBy": "05209014da3a49faa68056102da7ba35", "endNodeValueSource": null, "lastUpdateDate": 1714024735000, "isResetStatus": 0, "creationUserAccount": "isc_ipdc_hwx", "reserve1": null, "showStartCarbonCopy": 0, "lastUpdateUserAccount": "isc_ipdc_hwx", "reserve3": null, "includeEndNode": null, "reserve2": null, "templateId": "Test0425", "creationDate": 1714024632000, "displayMode": "vertical", "templateStatus": "STARTED", "createdBy": "05209014da3a49faa68056102da7ba35", "templateName": "Test0425", "showTips": 0, "showTodoTaskNum": 0, "templateVersion": "4", "id": 1520, "navJson": "{}" } ] }, "orderID": "c7b7950885794e5c99c1699f70b49235" }
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 msg String 接口响应信息 code Integer 接口返回码 data Data object 返回数据 orderID String 请求跟踪流水号 表3 Data 参数 参数类型 描述 pageVO PageVO object 分页 result Array of Result objects - 表4 PageVO 参数 参数类型 描述 totalRows Integer 共多少数据 curPage Integer 当前第几页 pageSize Integer 每页大小 resultMode Integer - startIndex Integer 开始序号 endIndex Integer 结束序号 orderBy String - filterStr String - totalPages Integer 共多少页 表5 Result 参数 参数类型 描述 rejectDecisionLogic String 驳回处理逻辑 enableAutoRefreshForm Integer 表单内容区自动刷新开关 lastUpdatedBy String 最后更新人userID endNodeValueSource String 结束节点取值来源 lastUpdateDate Integer 最后更新时间 isResetStatus Integer 重新提交是否重置已完成的状态 creationUserAccount String 创建人短工号 reserve1 String - showStartCarbonCopy Integer 启动流程是否抄送 lastUpdateUserAccount String 更新人短工号 reserve3 String - includeEndNode String 包含结束节点 reserve2 String - templateId String 流程模板ID creationDate Integer 创建时间 displayMode String 导航树展示方式 templateStatus String 流程模板状态 createdBy String 创建人userID templateName String 流程模板名称 showTips Integer 是否展示Tips提示 showTodoTaskNum Integer 是否展示任务数量 templateVersion String 流程模板版本 id Integer 流程模板配置表ID navJson String 流程模板导航节点json
  • URI GET /services/workflow/navtree/processConfig/findMaxTemplates/{pageSize}/{curPage} 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/navtree/processConfig/findMaxTemplates/2/1 表1 路径参数 参数 是否必选 参数类型 描述 pageSize 是 String 分页大小 curPage 是 String 当前页数
  • 响应示例 状态码: 200 { "code": 0, "data": { "processInstanceId": "867272db-037c-11ef-8a3a-fa163eaf0a4f", "businessKey": "P10000391", "taskList": [ { "processDefinitionId": "Test0425:6:16af0ffb1a224173923d045b9ff8ed60", "processInstanceId": "867272db-037c-11ef-8a3a-fa163eaf0a4f", "suspensionState": 1, "taskDefinitionKey": "Activity_06c4khx", "transferSign": false, "businessKey": "P10000391", "name": "用户任务", "assignee": "xxx@ipdctest.huaweiapaas.com", "id": "86733638-037c-11ef-8a3a-fa163eaf0a4f", "priority": 50 } ], "processDefinitionName": "Test0425", "version": 6 }, "orderID": "8d8aca68fade4c63aed344a47c6a0f25" }
  • 请求示例 [{ "blockType": "start_process", "nodeId": "", "blockId": "", "data": [{ "processTemplateName": "Test0425", "processTemplateVersion": "6" }] }, { "nodeId": "StartEvent_1", "blockType": "participant", "blockId": "eb3b8c37", "data": [{ "mainReview": "1008600000063295115", "expertReview": "05209014da3a49faa68056102da7ba35" }] }, { "nodeId": "StartEvent_1", "blockType": "attachment", "blockId": "67c0f8e6", "data": [] }, { "nodeId": "StartEvent_1", "blockType": "EcChangeTypeTemplate", "blockId": "fee5a374", "data": [{ "EcChangeType": "1212", "Version": "2222" }] }]
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 code Integer 接口返回码 data Data object 接口响应数据 orderID String 请求跟踪流水号 表4 Data 参数 参数类型 描述 processInstanceId String 流程实例ID businessKey String 申请单key taskList Array of TaskList objects 任务列表 processDefinitionName String 流程模板定义名称 version Integer 流程模板定义版本 表5 TaskList 参数 参数类型 描述 processDefinitionId String 流程模板ID processInstanceId String 实例ID suspensionState Integer 挂起状态 taskDefinitionKey String 任务节点key businessKey String 业务单据ID name String 名称 assignee String 审核人 priority Integer 优先级
  • URI POST /console/servicetask/api/localMethod/start_process/startProcessInstance 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/console/servicetask/api/localMethod/start_process/startProcessInstance
  • 请求参数 表1 请求Body参数 参数 是否必选 参数类型 描述 [数组元素] 否 Array of DefinitionArrayParam objects DefinitionArrayParam 表2 DefinitionArrayParam 参数 是否必选 参数类型 描述 blockId 否 String 区块ID或页面组件的ref nodeId 否 String 节点ID blockType 否 String 区块类型:xdm/业务组件serverKey。为xdm时需要将数据保存到xdm对应模块中,详情参见表3 data 否 JSONArray object 携带模型数据
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 msg String 接口响应信息 code Integer 接口返回码 data Array of Data objects 接口响应数据 pageInfo PageInfo object 分页信息 orderID String 请求跟踪流水号 表3 Data 参数 参数类型 描述 lastUpdateDate Integer 最后更新时间 modifier String 修改人UUID processTemplateName String 流程模板名 templateId String 流程模板编号 productLine String 产品线 currentUserId Integer 当前用户ID bizCategory String 业务类型 bizSeqExtAttrs Array of strings 业务对象拓展属性集合 lastUpdateUserCN String 最后更新人用户名 processTitle String 流程实例名称 bizSeqExtType String 业务对象拓展类型名称 id String ID state String 状态 lastUpdatedBy String 最后更新人ID processInstanceId String 流程实例ID finished Boolean 是否完成 creationDate Integer 创建日期 ccByUuid String 抄送人UUID:如果有多个人,使用","号分割 processTemplateNameCn String 流程模版中文名 reserve10 String - lifeCycleState String 生命周期状态 reserve9 String - creationUserCN String 创建user名 reserve8 String - creator String 创建人UUID product String 产品 reserve5 String - reserve4 String - appName String 微服务名称 processTemplateVersion String 流程模板版本 reserve7 String - reserve6 String - reserve1 String - subItem String 子项 reserve3 String - reserve2 String - creationUserUuid String 创建人UUID createdBy String 创建人 businessKey String 业务流水号 ccBy String 抄送人短工号:如果有多个人,使用","号分割 comment String 备注 productTeam String 产品团队 lifeCycleStateKey String 生命周期状态对应的key parentBusinessKey String 父业务流水号 taskId String 当前任务ID 表4 PageInfo 参数 参数类型 描述 totalRows Integer 总共行数 curPage Integer 当前页数 pageSize Integer 分页大小 totalPages Integer 总共页数
  • 响应示例 状态码: 200 findDraftList返参 { "msg" : null, "code" : 0, "data" : [ { "lastUpdateDate" : 1710851310295, "modifier" : "1008600000065234815", "processTemplateName" : "ProcessSyyy240122_01", "templateId" : "ProcessSyyy240122_01", "productLine" : null, "currentUserId" : 0, "bizCategory" : null, "bizSeqExtAttrs" : [ ], "lastUpdateUserCN" : null, "processTitle" : "ProcessSyyy240122_01_2024-03-19T20:28:29.303+0800", "bizSeqExtType" : "WfBusinessSeq", "id" : "611656531317895168", "state" : "DRAFT", "lastUpdatedBy" : "1008600000065234815", "processInstanceId" : null, "entityType" : "business", "holdableList" : [ "com.huawei.it.plm.workflow.framework.model.WfFormData", "com.huawei.it.plm.workflow.framework.model.WfAttachment", "com.huawei.it.plm.workflow.framework.model.WfBusinessObject" ], "finished" : false, "creationDate" : 1710851081514, "ccByUuid" : null, "processTemplateNameCn" : "流程实例表格表单NULL校验", "reserve10" : null, "scope" : "otc", "rowIdx" : -1, "lifeCycleState" : null, "reserve9" : null, "creationUserCN" : "", "reserve8" : null, "creator" : "1008600000065234815", "product" : null, "reserve5" : null, "reserve4" : null, "appName" : "WfWorkflowDemoService", "processTemplateVersion" : "7", "reserve7" : null, "reserve6" : null, "reserve1" : null, "subItem" : null, "reserve3" : null, "reserve2" : null, "creationUserUuid" : "1008600000065234815", "createdBy" : "1008600000065234815", "businessKey" : "P10011128", "ccBy" : null, "comment" : null, "productTeam" : null, "lifeCycleStateKey" : null, "parentBusinessKey" : null, "taskId" : null }, { "lastUpdateDate" : 1710834762166, "modifier" : "1008600000065234815", "processTemplateName" : "Test0220", "templateId" : "Test0220", "productLine" : null, "currentUserId" : 0, "bizCategory" : null, "bizSeqExtAttrs" : [ ], "lastUpdateUserCN" : null, "processTitle" : "Test0220_2024-03-19T15:52:42.114+0800", "bizSeqExtType" : "WfBusinessSeq", "id" : "601704798319812608", "state" : "DRAFT", "lastUpdatedBy" : "1008600000065234815", "processInstanceId" : null, "entityType" : "business", "holdableList" : [ "com.huawei.it.plm.workflow.framework.model.WfFormData", "com.huawei.it.plm.workflow.framework.model.WfAttachment", "com.huawei.it.plm.workflow.framework.model.WfBusinessObject" ], "finished" : false, "creationDate" : 1708478403070, "ccByUuid" : null, "processTemplateNameCn" : "Test0220", "reserve10" : null, "scope" : "otc", "rowIdx" : -1, "lifeCycleState" : null, "reserve9" : null, "creationUserCN" : "", "reserve8" : null, "creator" : "1008600000065234815", "product" : null, "reserve5" : null, "reserve4" : null, "appName" : "WfWorkflowDemoService", "processTemplateVersion" : "1", "reserve7" : null, "reserve6" : null, "reserve1" : null, "subItem" : null, "reserve3" : null, "reserve2" : null, "creationUserUuid" : "1008600000065234815", "createdBy" : "1008600000065234815", "businessKey" : "P10010662", "ccBy" : null, "comment" : null, "productTeam" : null, "lifeCycleStateKey" : null, "parentBusinessKey" : null, "taskId" : null } ], "pageInfo" : { "totalRows" : 29, "curPage" : 1, "pageSize" : 2, "totalPages" : 15 }, "orderID" : "a6903f8109d547faaff11134dd872585" }
  • URI GET /services/workflow/findDraftList/{pageSize}/{curPage} 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/findDraftList/2/1 表1 路径参数 参数 是否必选 参数类型 描述 pageSize 是 String 分页大小 curPage 是 String 当前页数
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 code Integer 接口返回码 data Data object 接口响应数据 orderID String 请求跟踪流水号 表3 Data 参数 参数类型 描述 resultInfo ResultInfo object 结果 表4 ResultInfo 参数 参数类型 描述 successProcessInstanceIds Array of strings 成功的实例ID allSucceeded Boolean 是否都成功 failedProcessInfos Array of strings 失败的实例
  • 响应示例 状态码: 200 接口返参 { "code": 0, "data": { "resultInfo": { "successProcessInstanceIds": [ "d04d662f-02c9-11ef-8a3a-fa163eaf0a4f" ], "allSucceeded": true, "failedProcessInfos": [] } }, "orderID": "8b4426d92a744af9a18f69ab5e896364" }
  • URI POST /console/servicetask/api/localMethod/assessment_trilogy/revokeProcessInstance 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/console/servicetask/api/localMethod/assessment_trilogy/revokeProcessInstance
  • URI GET /services/workflow/myprocesses/{pageSize}/{curPage} 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/myprocesses/2/1 表1 路径参数 参数 是否必选 参数类型 描述 pageSize 是 String 分页大小 curPage 是 String 当前页
  • 响应参数 状态码: 200 表2 响应Body参数 参数 参数类型 描述 orderId String 请求跟踪流水号 msg String 接口响应信息 code Integer 接口返回码 data Array of ProcessInstanceVO objects 接口响应数据,JSON对象或数组 pageInfo PageVo object 标准响应体分页信息 表3 ProcessInstanceVO 参数 参数类型 描述 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 引擎站点标识 表4 Task 参数 参数类型 描述 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 审批人用户名 表5 PageVo 参数 参数类型 描述 totalRows Integer 总共有多少条数据 curPage Integer 当前是第几页 pageSize Integer 一页有多少条数据 totalPages Integer 总共有多少页
  • 响应示例 状态码: 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" }
  • 响应示例 { "msg": null, "code": 0, "data": [ { "processInstanceId": "bf04e6fb-06c8-11ef-9d67-fa163e227a9b", "processDefinitionName": "Interface_show", "processDefinitionNameCn": "接口showcase", "businessKey": "P10001721", "title": "Interface_show_2024-04-30T16:07:53.811+0800", "category": "http://bpmn.io/schema/bpmn", "createdByName": "xxx@ipdcenter203.huaweiapaas.com", "processInstanceStartTime": 1714464473978, "processInstanceEndTime": null, "state": "ACTIVE", "lifeCycleState": null, "taskList": [ { "processInstanceId": "bf04e6fb-06c8-11ef-9d67-fa163e227a9b", "taskId": "bf075807-06c8-11ef-9d67-fa163e227a9b", "taskDefinitionKey": "Activity_0c3pfp1", "taskDefinitionName": "用户任务", "handlers": "xxx@ipdcenter203.huaweiapaas.com", "userIds": "1008600000026143011", "groupIds": "", "ccuserIds": "", "ccUserNames": null, "startTime": 1714464473993, "endTime": null, "status": "doing", "createdBy": "1008600000026143011", "createName": null, "approvalUserName": null } ], "site": null }, { "processInstanceId": "1d2fe857-06b9-11ef-9d67-fa163e227a9b", "processDefinitionName": "New_EC", "processDefinitionNameCn": "新EC流程", "businessKey": "P10001720", "title": "Py_New_EC_2024-04-30T14:15:59.689+0800", "category": "http://bpmn.io/schema/bpmn", "createdByName": "xxx@ipdcenter203.huaweiapaas.com", "processInstanceStartTime": 1714457760018, "processInstanceEndTime": null, "state": "ACTIVE", "lifeCycleState": null, "taskList": [ { "processInstanceId": "1d2fe857-06b9-11ef-9d67-fa163e227a9b", "taskId": "2106ba08-06b9-11ef-9d67-fa163e227a9b", "taskDefinitionKey": "Activity_1pxq6vg", "taskDefinitionName": "项目经理审核", "handlers": "xxx@ipdcenter203.huaweiapaas.com", "userIds": "1008600000026143011", "groupIds": "", "ccuserIds": "", "ccUserNames": null, "startTime": 1714457766458, "endTime": null, "status": "doing", "createdBy": "1008600000026143011", "createName": null, "approvalUserName": null }, { "processInstanceId": "1d2fe857-06b9-11ef-9d67-fa163e227a9b", "taskId": "1d331cbc-06b9-11ef-9d67-fa163e227a9b", "taskDefinitionKey": "Activity_120d57p", "taskDefinitionName": "修改变更对象", "handlers": "xxx@ipdcenter203.huaweiapaas.com", "userIds": "1008600000026143011", "groupIds": "", "ccuserIds": "", "ccUserNames": null, "startTime": 1714457760038, "endTime": 1714457766435, "status": "finished", "createdBy": "1008600000026143011", "createName": null, "approvalUserName": "xxx@ipdcenter203.huaweiapaas.com" } ], "site": null } ], "pageInfo": { "totalRows": 1307, "curPage": 1, "pageSize": 2, "totalPages": 654 }, "orderID": "9769704e48794f4694460d642deaad05" }
  • 响应参数 状态码: 200 表3 响应Body参数 参数 参数类型 描述 orderId String 请求跟踪流水号 msg String 接口响应信息 code Integer 接口返回码 data Array of HistoricProcessInstanceVO objects 接口响应数据,JSON对象或数组 pageInfo PageVo object 标准响应体分页信息 表4 HistoricProcessInstanceVO 参数 参数类型 描述 processInstanceId String 流程实例ID processDefinitionId String 流程定义ID(拼接字段:流程模板key+版本+流程实例ID) processDefinitionName String 流程模板ID 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 截止日期 表5 PageVo 参数 参数类型 描述 totalRows Integer 总共有多少条数据 curPage Integer 当前是第几页 pageSize Integer 一页有多少条数据 totalPages Integer 总共有多少页
  • 请求参数 表2 请求body,筛选条件 参数 是否必选 参数类型 描述 processInstanceStartTime 否 String 流程创建开始时间 processInstanceEndTime 否 String 流程创建结束时间 createStartTime 否 String 任务启动开始时间 createEndTime 否 String 任务启动结束时间 processDefinitionId 否 String 流程模板ID businessKeys 否 String 业务流水号,多个以逗号隔开 processDefinitionName 否 String 流程模板名称 processDefinitionNameCn 否 String 流程模板名称中文 processDefinitionNames 否 String 流程模板名称 taskDefinitionKey 否 String 任务定义编码 taskDefinitionName 否 String 任务定义名称 pageSize 否 Integer 每页的条数 curPage 否 Integer 当前页数 businessKey 否 String 业务流水号 i18n 否 Integer 国际化标识 title 否 String 流程标题 titleCn 否 String 流程标题中文 titles 否 Array of strings 流程标题列表 createdBy 否 String 创建人 category 否 String 流程类型 lastUpdateName 否 String 最后修改人 taskHandler 否 String 任务处理人 requestSource 否 String 请求源 startUserId 否 String 发起流程的用户 lifeCycleState 否 String 生命周期状态 sites 否 String 站点查询 state 否 String 状态 userId 否 String 用户
  • URI POST /services/workflow/queryTaskList/{pageSize}/{curPage} 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/queryTaskList/2/1 表1 路径参数 参数 是否必选 参数类型 描述 pageSize 是 String 分页大小 curPage 是 String 当前页数
  • 请求示例 { "taskId": "86733638-037c-11ef-8a3a-fa163eaf0a4f", "processInstanceId": "867272db-037c-11ef-8a3a-fa163eaf0a4f", "internalOperate": "", "variables": { "sequenceFlow": "Flow_1tshzet" }, "operation": "通过", "formList": [{ "data": { "conclusion": "Flow_1tshzet", "approlAllData": [], "routerIdAry": [{ "id": "Flow_1tshzet", "routerNameCn": "通过", "routerNameEn": "pass" }], "formApprolData": { "opinion": "wewew111122", "customOpinion": "" } }, "holderType": "task", "name": "routeInfo" }, { "name": "EcChangeTypeTemplate", "formDataId": "624968230686953472", "data": [{ "Version": "2", "EcChangeType": "1" }] }], "comment": "wewew11111", "attachmentList": [] }
  • 响应示例 状态码: 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" }
  • URI GET /services/workflow/mytasks/{pageSize}/{curPage} 示例接口地址:{域名(有文根需带文根)}/pdmcore/ipdcworkflowservice/services/workflow/mytasks/2/1 表1 路径参数 参数 是否必选 参数类型 描述 pageSize 是 String 分页大小 curPage 是 String 当前页数
  • 响应参数 状态码: 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 接口返参 { "code": 0, "data": { "currentUserCN": "isc_ipdc_hwx", "lastUpdateDate": 1714016191581, "modifier": "05209014da3a49faa68056102da7ba35", "processTemplateName": "Test0425", "templateId": "Test0425", "currentUserUuid": "05209014da3a49faa68056102da7ba35", "currentUserId": 0, "bizSeqExtAttrs": [], "lastUpdateUserCN": " ", "scope": "otc", "rowIdx": -1, "processTitle": "Test0425_2024-04-25T11:36:31.527+0800", "bizSeqExtType": "WfBusinessSeq", "id": "624931966843621376", "state": "DRAFT", "creationUserCN": " ", "creator": "05209014da3a49faa68056102da7ba35", "appName": "IpdcWorkflowService", "entityType": "business", "processTemplateVersion": "1", "holdableList": [ "com.huawei.it.plm.workflow.framework.model.WfFormData", "com.huawei.it.plm.workflow.framework.model.WfAttachment", "com.huawei.it.plm.workflow.framework.model.WfBusinessObject" ], "finished": false, "creationDate": 1714016191581, "creationUserUuid": "05209014da3a49faa68056102da7ba35", "holderId": 624931966843621376, "businessKey": "P10000372", "holderType": "business" }, "orderID": "947bef1124974ea8bf5f380a0ca291a5" }
  • 请求示例 [{ "blockType": "start_process", "nodeId": "", "blockId": "", "data": [{ "processTemplateName": "Test0425", "processTemplateVersion": "4" }] }, { "nodeId": "StartEvent_1", "blockType": "participant", "blockId": "256cf56f", "data": [{ "mainReview": "05209014da3a49faa68056102da7ba35" }] }, { "nodeId": "StartEvent_1", "blockType": "attachment", "blockId": "67c0f8e6", "data": [] }, { "nodeId": "StartEvent_1", "blockType": "EcChangeTypeTemplate", "blockId": "fee5a374", "data": [{ "EcChangeType": "11", "Version": "22" }] }]
  • 响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 code Integer 接口返回码 data Data object 接口响应数据 orderID String 请求跟踪流水号 表5 Data 参数 参数类型 描述 currentUserCN String 当前用户 lastUpdateDate Integer 最新修改时间 modifier String 修改人UUID processTemplateName String 流程模板名称 templateId String 流程模板编号 currentUserUuid String 当前用户UUID currentUserId Integer 当前用户ID bizSeqExtAttrs Array of strings 业务对象拓展属性集合 lastUpdateUserCN String 最新修改用户 processTitle String 流程实例名称 bizSeqExtType String 业务对象拓展类型名称 state String 状态 creationUserCN String 创建用户 lastUpdatedBy Integer 最新更新人 creator String 创建人UUID processTemplateVersion String 流程模板版本 finished Boolean 流程是否完成 creationDate Integer 创建日期 creationUserUuid String 创建人UUID createdBy Integer 创建人
共100000条