流程管理后端接口文档 - processAdmin
| Version | Update Time | Status | Author | Description |
|---|---|---|---|---|
| 1.0 | 2021/5/10 | 创建 | mengjuhua,zhaobo | 创建后端接口文档 |
| 2.0 | 2022/4/10 | 更新 | qinman,shidaobang,dingzhaojun | 更新后端接口文档 |
流程图接口
删除流程图模型
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/deleteModel
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除流程图模型
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| modelId | string | true | 模型id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/deleteModelResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据流程图模型部署流程
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/deployModel
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程图模型部署流程
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| modelId | string | true | 模型id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/deployModelResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}获取流程图字节数据
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/genProcessDiagram
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取流程图字节数据
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/genProcessDiagramResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取流程图模型数据
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getBpmnModel
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取流程图模型数据
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getBpmnModel?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─flowNodeModelList | array | flowNodeModelList | - |
| └─key | string | 节点key | - |
| └─category | string | 类别 | - |
| └─text | string | 节点名称 | - |
| └─figure | string | 图形 | - |
| └─fill | string | 填充颜色 | - |
| └─stepType | string | stepType | - |
| └─loc | string | 位置 | - |
| └─remark | string | 评论 | - |
| └─linkNodeModelList | array | linkNodeModelList | - |
| └─from | string | 起点 | - |
| └─to | string | 终点 | - |
| └─txtFlowPath | string | txtFlowPath | - |
| └─completed | boolean | 是否办结 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"flowNodeModelList": [
{
"key": "",
"category": "",
"text": "",
"figure": "",
"fill": "",
"stepType": "",
"loc": "",
"remark": ""
}
],
"linkNodeModelList": [
{
"from": "",
"to": ""
}
],
"txtFlowPath": "",
"completed": true
}
}获取流程图数据
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getFlowChart
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取流程图数据
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getFlowChart?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 唯一标示 | - |
| └─parentId | string | 父节点唯一标示 | - |
| └─name | string | 名称 | - |
| └─title | string | 标题 | - |
| └─className | string | 填充颜色 | - |
| └─num | int32 | 序号 | - |
| └─endTime | int64 | 结束时间 | - |
| └─collapsed | boolean | No comments found. | - |
| └─children | array | No comments found. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"parentId": "",
"name": "",
"title": "",
"className": "",
"num": 0,
"endTime": 0,
"collapsed": true,
"children": [
{
"$ref": ".."
}
]
}
}获取流程模型列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getModelList
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取流程模型列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getModelList?tenantId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 流程模型唯一标示 | - |
| └─key | string | 流程模型key | - |
| └─name | string | 流程模型名称 | - |
| └─version | int32 | 版本 | - |
| └─createTime | string | 创建时间 | - |
| └─lastUpdateTime | string | 最后修改时间 | - |
| └─xml | string | 模型xml信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"key": "",
"name": "",
"version": 0,
"createTime": "",
"lastUpdateTime": "",
"xml": ""
}
]
}获取流程设计模型xml
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getModelXml
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取流程设计模型xml
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| modelId | string | true | 模型id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/getModelXml?tenantId=&modelId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 流程模型唯一标示 | - |
| └─key | string | 流程模型key | - |
| └─name | string | 流程模型名称 | - |
| └─version | int32 | 版本 | - |
| └─createTime | string | 创建时间 | - |
| └─lastUpdateTime | string | 最后修改时间 | - |
| └─xml | string | 模型xml信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"key": "",
"name": "",
"version": 0,
"createTime": "",
"lastUpdateTime": "",
"xml": ""
}
}导入流程模型文件
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/import
Type: POST
Author: qinman,zhangchongjie
Content-Type: multipart/form-data
Description: 导入流程模型文件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 用户id | - |
| file | file | true | 模型文件 | - |
Request-example:
curl -X POST -k -H 'Content-Type: multipart/form-data' -F 'file=' -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/import --data 'tenantId=&userId='Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}保存模型xml
URL: https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/saveModelXml
Type: POST
Author: qinman,zhangchongjie
Content-Type: multipart/form-data
Description: 保存模型xml
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 用户id | - |
| modelId | string | true | 模型id | - |
| file | file | true | 模型文件 | - |
Request-example:
curl -X POST -k -H 'Content-Type: multipart/form-data' -F 'file=' -i https://demo.youshengyun.com/processAdmin/services/rest/bpmnModel/saveModelXml --data 'tenantId=&userId=&modelId='Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}解析表达式条件接口
解析表达式条件是否满足
URL: https://demo.youshengyun.com/processAdmin/services/rest/conditionParser/parser
Type: GET
Author: qinman
Content-Type: application/json
Description: 解析表达式条件是否满足
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| conditionExpression | string | true | 网关上的表达式 | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X GET -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/conditionParser/parser?tenantId=&conditionExpression= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | boolean | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": true
}获取历史节点实例
根据流程实例获取历史节点实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicActivity/getByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例获取历史节点实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicActivity/getByProcessInstanceId?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─activityId | string | 节点id | - |
| └─activityName | string | 节点名称 | - |
| └─activityType | string | 节点类型 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processInstanceId | string | 流程实例id | - |
| └─executionId | string | 执行实例id | - |
| └─taskId | string | 任务id | - |
| └─calledProcessInstanceId | string | 调用流程实例id | - |
| └─assignee | string | 办理人ID | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─tenantId | string | 租户id | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"activityId": "",
"activityName": "",
"activityType": "",
"processDefinitionId": "",
"processInstanceId": "",
"executionId": "",
"taskId": "",
"calledProcessInstanceId": "",
"assignee": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"deleteReason": "",
"tenantId": ""
}
]
}根据年份,流程实例获取历史节点实例
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据年份,流程实例获取历史节点实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| year | string | true | 年度 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicActivity/getByProcessInstanceIdAndYear?tenantId=&processInstanceId=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─activityId | string | 节点id | - |
| └─activityName | string | 节点名称 | - |
| └─activityType | string | 节点类型 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processInstanceId | string | 流程实例id | - |
| └─executionId | string | 执行实例id | - |
| └─taskId | string | 任务id | - |
| └─calledProcessInstanceId | string | 调用流程实例id | - |
| └─assignee | string | 办理人ID | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─tenantId | string | 租户id | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"activityId": "",
"activityName": "",
"activityType": "",
"processDefinitionId": "",
"processInstanceId": "",
"executionId": "",
"taskId": "",
"calledProcessInstanceId": "",
"assignee": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"deleteReason": "",
"tenantId": ""
}
]
}流程实例相关接口
删除流程实例,在办件设为暂停,办结件加删除标识
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/deleteProcessInstance
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除流程实例,在办件设为暂停,办结件加删除标识
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/deleteProcessInstanceResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据流程实例id获取实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getById
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例id获取实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getById?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
}根据流程实例id和年度获取实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getByIdAndYear
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例id和年度获取实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| year | string | true | 年份 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getByIdAndYear?tenantId=&processInstanceId=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
}根据父流程实例获取所有历史子流程实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getBySuperProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据父流程实例获取所有历史子流程实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| superProcessInstanceId | string | true | 父流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getBySuperProcessInstanceId?tenantId=&superProcessInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
]
}根据流程实例获取父流程实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getSuperProcessInstanceById
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例获取父流程实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 父流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/getSuperProcessInstanceById?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
}恢复流程实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/recoveryProcess
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 恢复流程实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/recoveryProcessResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}彻底删除流程实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/removeProcess
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 彻底删除流程实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/removeProcessResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置流程优先级
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/setPriority
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置流程优先级
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| priority | string | true | 优先级 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicProcess/setPriorityResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}历史任务相关接口
根据流程实例id获取历史任务(结束时间升序)
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例id获取历史任务(结束时间升序)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| year | string | true | 年份 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/findTaskByProcessInstanceIdOrByEndTimeAsc?tenantId=&processInstanceId=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─owner | string | 拥有者ID | - |
| └─assignee | string | 办理者ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─taskDefinitionKey | string | 任务节点KEY | - |
| └─dueDate | string | 过期时间 | - |
| └─parentTaskId | string | 父任务ID | - |
| └─claimTime | string | 签收时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─tenantId | string | 租户ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"taskDefinitionKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"parentTaskId": "",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"deleteReason": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"tenantId": ""
}
]
}根据流程实例id获取历史任务(开始时间升序)
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例id获取历史任务(开始时间升序)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| year | string | false | 年份 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/findTaskByProcessInstanceIdOrderByStartTimeAsc?tenantId=&processInstanceId=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─owner | string | 拥有者ID | - |
| └─assignee | string | 办理者ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─taskDefinitionKey | string | 任务节点KEY | - |
| └─dueDate | string | 过期时间 | - |
| └─parentTaskId | string | 父任务ID | - |
| └─claimTime | string | 签收时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─tenantId | string | 租户ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"taskDefinitionKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"parentTaskId": "",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"deleteReason": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"tenantId": ""
}
]
}根据任务Id获取任务实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getById
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据任务Id获取任务实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getById?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─owner | string | 拥有者ID | - |
| └─assignee | string | 办理者ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─taskDefinitionKey | string | 任务节点KEY | - |
| └─dueDate | string | 过期时间 | - |
| └─parentTaskId | string | 父任务ID | - |
| └─claimTime | string | 签收时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─tenantId | string | 租户ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"name": "",
"description": "",
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"taskDefinitionKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"parentTaskId": "",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"deleteReason": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"tenantId": ""
}
}根据流程实例获取所有历史任务实例(开始时间正序)
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例获取所有历史任务实例(开始时间正序)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| year | string | false | 年份 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getByProcessInstanceId?tenantId=&processInstanceId=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─owner | string | 拥有者ID | - |
| └─assignee | string | 办理者ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─taskDefinitionKey | string | 任务节点KEY | - |
| └─dueDate | string | 过期时间 | - |
| └─parentTaskId | string | 父任务ID | - |
| └─claimTime | string | 签收时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─tenantId | string | 租户ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"taskDefinitionKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"parentTaskId": "",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"deleteReason": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"tenantId": ""
}
]
}根据流程实例获取所有历史任务实例(办结时间倒序)
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例获取所有历史任务实例(办结时间倒序)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| year | string | false | 年份 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getByProcessInstanceIdOrderByEndTimeDesc?tenantId=&processInstanceId=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─owner | string | 拥有者ID | - |
| └─assignee | string | 办理者ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─taskDefinitionKey | string | 任务节点KEY | - |
| └─dueDate | string | 过期时间 | - |
| └─parentTaskId | string | 父任务ID | - |
| └─claimTime | string | 签收时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─tenantId | string | 租户ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"taskDefinitionKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"parentTaskId": "",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"deleteReason": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"tenantId": ""
}
]
}根据执行实例获取已经办理完成的任务数量
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getFinishedCountByExecutionId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据执行实例获取已经办理完成的任务数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| executionId | string | true | 执行实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getFinishedCountByExecutionId?tenantId=&executionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}获取当前任务的上一个任务节点,当前任务只可以是正在运行的任务实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getThePreviousTask
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取当前任务的上一个任务节点,当前任务只可以是正在运行的任务实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getThePreviousTask?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─owner | string | 拥有者ID | - |
| └─assignee | string | 办理者ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─taskDefinitionKey | string | 任务节点KEY | - |
| └─dueDate | string | 过期时间 | - |
| └─parentTaskId | string | 父任务ID | - |
| └─claimTime | string | 签收时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─tenantId | string | 租户ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"name": "",
"description": "",
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"taskDefinitionKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"parentTaskId": "",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"deleteReason": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"tenantId": ""
}
}获取当前任务的上一个任务节点产生的所有任务,当前任务只可以是正在运行的任务实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getThePreviousTasks
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取当前任务的上一个任务节点产生的所有任务,当前任务只可以是正在运行的任务实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/getThePreviousTasks?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─owner | string | 拥有者ID | - |
| └─assignee | string | 办理者ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─taskDefinitionKey | string | 任务节点KEY | - |
| └─dueDate | string | 过期时间 | - |
| └─parentTaskId | string | 父任务ID | - |
| └─claimTime | string | 签收时间 | - |
| └─deleteReason | string | 删除原因 | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─tenantId | string | 租户ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"taskDefinitionKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"parentTaskId": "",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"deleteReason": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"tenantId": ""
}
]
}设置历史任务TANENT_ID_字段,存放协办任务是否被强制办结标识
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicTask/setTenantId
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置历史任务TANENT_ID_字段,存放协办任务是否被强制办结标识
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicTask/setTenantIdResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}历史变量相关接口
根据流程实例Id,获取历史流程变量集合
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例Id,获取历史流程变量集合
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getByProcessInstanceId?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─variableName | string | 变量名称 | - |
| └─variableTypeName | string | 变量类型名称 | - |
| └─value | object | 变量值 | - |
| └─processInstanceId | string | 流程实例id | - |
| └─taskId | string | 任务id | - |
| └─createTime | string | 创建时间 | - |
| └─lastUpdatedTime | string | 最后更新时间 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"variableName": "",
"variableTypeName": "",
"value": {
"object": "any object"
},
"processInstanceId": "",
"taskId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"lastUpdatedTime": "yyyy-MM-dd HH:mm:ss"
}
]
}根据流程实例Id和流程变量的Key,获取历史流程变量的值
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例Id和流程变量的Key,获取历史流程变量的值
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| variableName | string | true | 变量名 | - |
| year | string | false | 年份 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getByProcessInstanceIdAndVariableName?tenantId=&processInstanceId=&variableName=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─variableName | string | 变量名称 | - |
| └─variableTypeName | string | 变量类型名称 | - |
| └─value | object | 变量值 | - |
| └─processInstanceId | string | 流程实例id | - |
| └─taskId | string | 任务id | - |
| └─createTime | string | 创建时间 | - |
| └─lastUpdatedTime | string | 最后更新时间 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"variableName": "",
"variableTypeName": "",
"value": {
"object": "any object"
},
"processInstanceId": "",
"taskId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"lastUpdatedTime": "yyyy-MM-dd HH:mm:ss"
}
}根据任务Id,获取历史任务变量的值集合
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getByTaskId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据任务Id,获取历史任务变量的值集合
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getByTaskId?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─variableName | string | 变量名称 | - |
| └─variableTypeName | string | 变量类型名称 | - |
| └─value | object | 变量值 | - |
| └─processInstanceId | string | 流程实例id | - |
| └─taskId | string | 任务id | - |
| └─createTime | string | 创建时间 | - |
| └─lastUpdatedTime | string | 最后更新时间 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"variableName": "",
"variableTypeName": "",
"value": {
"object": "any object"
},
"processInstanceId": "",
"taskId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"lastUpdatedTime": "yyyy-MM-dd HH:mm:ss"
}
]
}根据任务Id和变量Key,获取历史任务变量的值
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getByTaskIdAndVariableName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据任务Id和变量Key,获取历史任务变量的值
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| variableName | string | true | 变量名 | - |
| year | string | false | 年份 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getByTaskIdAndVariableName?tenantId=&taskId=&variableName=&year=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─variableName | string | 变量名称 | - |
| └─variableTypeName | string | 变量类型名称 | - |
| └─value | object | 变量值 | - |
| └─processInstanceId | string | 流程实例id | - |
| └─taskId | string | 任务id | - |
| └─createTime | string | 创建时间 | - |
| └─lastUpdatedTime | string | 最后更新时间 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"variableName": "",
"variableTypeName": "",
"value": {
"object": "any object"
},
"processInstanceId": "",
"taskId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"lastUpdatedTime": "yyyy-MM-dd HH:mm:ss"
}
}根据流程实例Id,获取指定的流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getVariables
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 根据流程实例Id,获取指定的流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | array | false | 操作成功返回的数据 | - |
Request-example:
curl -X GET -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/historicVariable/getVariables?tenantId=&processInstanceId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": [
"",
""
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─mapKey | object | A map key. | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}流转用户信息接口
获取任务的用户信息
URL: https://demo.youshengyun.com/processAdmin/services/rest/identity/getIdentityLinksForTask
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取任务的用户信息
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/identity/getIdentityLinksForTask?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─type | string | 参与者类型 | - |
| └─userId | string | 参与者ID | - |
| └─groupId | string | 参与者组ID | - |
| └─taskId | string | 任务ID | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"type": "",
"userId": "",
"groupId": "",
"taskId": "",
"processInstanceId": "",
"processDefinitionId": ""
}
]
}监控流程实例接口
根据流程定义Key获取监控在办件统计数量
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingCountByProcessDefinitionKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key获取监控在办件统计数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingCountByProcessDefinitionKey?tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据系统英文名称获取监控在办件数量
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingCountBySystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统英文名称获取监控在办件数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| systemName | string | true | 系统英文名称 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingCountBySystemName?tenantId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据流程定义Key获取监控在办件
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingListByProcessDefinitionKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key获取监控在办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingListByProcessDefinitionKey?page=0&rows=0&tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据系统名称获取监控在办件
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingListBySystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统名称获取监控在办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| systemName | string | true | 系统英文名称 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoingListBySystemName?page=0&rows=0&tenantId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据流程定义Key获取监控办结件统计数量
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoneCountByProcessDefinitionKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key获取监控办结件统计数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getDoneCountByProcessDefinitionKey?tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据流程定义Key获取监控回收站统计数量
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key获取监控回收站统计数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleCountByProcessDefinitionKey?tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据系统英文名称获取监控回收站统计数量
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleCountBySystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统英文名称获取监控回收站统计数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| systemName | string | true | 系统英文名称 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleCountBySystemName?tenantId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据人员Id,流程定义Key获取监控回收站统计数量
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员Id,流程定义Key获取监控回收站统计数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleCountByUserIdAndProcessDefinitionKey?tenantId=&userId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据人员id获取监控回收站统计数量
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleCountByUserIdAndSystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员id获取监控回收站统计数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员Id | - |
| systemName | string | true | 系统英文名称 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleCountByUserIdAndSystemName?tenantId=&userId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据流程定义key获取回收站列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleListByProcessDefinitionKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义key获取回收站列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleListByProcessDefinitionKey?page=0&rows=0&tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据系统英文名称获取回收站列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleListBySystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统英文名称获取回收站列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| systemName | string | true | 系统英文名称 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleListBySystemName?page=0&rows=0&tenantId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据流程定义Key获取传入用户id相关的回收站列表
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key获取传入用户id相关的回收站列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 用户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleListByUserIdAndProcessDefinitionKey?page=0&rows=0&tenantId=&userId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据人员id,系统英文名称获取回收站列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleListByUserIdAndSystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员id,系统英文名称获取回收站列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员Id | - |
| systemName | string | true | 系统英文名称 | - |
| page | int32 | true | 当前页 | - |
| rows | int32 | true | 总条数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/getRecycleListByUserIdAndSystemName?page=0&rows=0&tenantId=&userId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据流程定义Key和其他条件搜索在办件
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key和其他条件搜索在办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchDoingListByProcessDefinitionKey?page=0&rows=0&tenantId=&processDefinitionKey=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据系统英文名称和其他条件搜索在办件
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchDoingListBySystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统英文名称和其他条件搜索在办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| systemName | string | true | 系统英文名称 | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchDoingListBySystemName?page=0&rows=0&tenantId=&systemName=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据流程定义Key和其他条件搜索回收站件
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key和其他条件搜索回收站件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchRecycleListByProcessDefinitionKey?page=0&rows=0&tenantId=&processDefinitionKey=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据系统英文名称和其他条件搜索回收站件
URL: https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchRecycleListBySystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统英文名称和其他条件搜索回收站件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| systemName | string | true | 系统英文名称 | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchRecycleListBySystemName?page=0&rows=0&tenantId=&systemName=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据用户Id,流程定义Key和其他条件搜索回收站件
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据用户Id,流程定义Key和其他条件搜索回收站件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 用户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchRecycleListByUserIdAndProcessDefinitionKey?page=0&rows=0&tenantId=&userId=&processDefinitionKey=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据用户Id,系统英文名称和其他条件搜索回收站件
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据用户Id,系统英文名称和其他条件搜索回收站件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 用户Id | - |
| systemName | string | true | 系统英文名称 | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/monitor/searchRecycleListByUserIdAndSystemName?page=0&rows=0&tenantId=&userId=&systemName=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─durationInMillis | int64 | 持续时间 | - |
| └─endActivityId | string | 结束节点id | - |
| └─startUserId | string | 启动用户id | - |
| └─startActivityId | string | 启动节点id | - |
| └─deleteReason | string | 删除原因 | - |
| └─superProcessInstanceId | string | 超级流程实例id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─variables | map | 变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"durationInMillis": 0,
"endActivityId": "",
"startUserId": "",
"startActivityId": "",
"deleteReason": "",
"superProcessInstanceId": "",
"name": "",
"description": "",
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}流程定义数据复制接口
复制拷贝流程定义数据
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDataCopy/copyModel
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 复制拷贝流程定义数据
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| sourceTenantId | string | true | 源租户id | - |
| targetTenantId | string | true | 目标租户id | - |
| modelKey | string | true | 定义key | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDataCopy/copyModelResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}流程定义相关接口
获取有办结权限的UserTask
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取有办结权限的UserTask
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getContainEndEvent4UserTask?tenantId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
| └─multiInstance | string | 多实例类型 | - |
| └─type | string | 节点类型 | - |
| └─conditionExpression | string | 条件表达式 | - |
| └─realTaskDefName | string | 实际任务名称 | - |
| └─commonButtonNames | string | 节点绑定的普通按钮 | - |
| └─sendButtonNames | string | 节点绑定的发送按钮 | - |
| └─opinionFrameNames | string | 节点绑定的意见框名称 | - |
| └─bindNames | string | 节点绑定的编号信息 | - |
| └─roleNames | string | 节点绑定的角色信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": "",
"multiInstance": "",
"type": "",
"conditionExpression": "",
"realTaskDefName": "",
"commonButtonNames": "",
"sendButtonNames": "",
"opinionFrameNames": "",
"bindNames": "",
"roleNames": ""
}
]
}获取某一任务所在节点的目标是结束节点的目标节点Key
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getEndNodeKeyByTaskId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取某一任务所在节点的目标是结束节点的目标节点Key
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getEndNodeKeyByTaskId?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}根据流程定义Id获取节点,路由信息 isContainStartNode为true时,不包含开始节点
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getFlowElement
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id获取节点,路由信息 isContainStartNode为true时,不包含开始节点
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| isContainStartNode | boolean | true | 是否包含开始节点 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getFlowElement?isContainStartNode=true&tenantId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─elementKey | string | 元素key | - |
| └─elementName | string | 元素名称 | - |
| └─multiInstance | string | 元素类型 UserTask SequenceFlow | - |
| └─type | string | 节点类型 | - |
| └─bind | boolean | No comments found. | - |
| └─condition | string | No comments found. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"elementKey": "",
"elementName": "",
"multiInstance": "",
"type": "",
"bind": true,
"condition": ""
}
]
}根据流程定义Id获取节点信息 isContainStartNode为true时,不包含开始节点
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getNodes
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id获取节点信息 isContainStartNode为true时,不包含开始节点
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| isContainStartNode | boolean | true | 是否包含开始节点 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getNodes?isContainStartNode=true&tenantId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
| └─multiInstance | string | 多实例类型 | - |
| └─type | string | 节点类型 | - |
| └─conditionExpression | string | 条件表达式 | - |
| └─realTaskDefName | string | 实际任务名称 | - |
| └─commonButtonNames | string | 节点绑定的普通按钮 | - |
| └─sendButtonNames | string | 节点绑定的发送按钮 | - |
| └─opinionFrameNames | string | 节点绑定的意见框名称 | - |
| └─bindNames | string | 节点绑定的编号信息 | - |
| └─roleNames | string | 节点绑定的角色信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": "",
"multiInstance": "",
"type": "",
"conditionExpression": "",
"realTaskDefName": "",
"commonButtonNames": "",
"sendButtonNames": "",
"opinionFrameNames": "",
"bindNames": "",
"roleNames": ""
}
]
}获取具体流程的某个节点类型
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getNodeType
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取具体流程的某个节点类型
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getNodeType?tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}根据taskId获取某个节点除去end节点和默认路由节点的所有的输出线路的个数
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getOutPutNodeCount
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据taskId获取某个节点除去end节点和默认路由节点的所有的输出线路的个数
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getOutPutNodeCount?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int32 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据流程定义Id和流程节点Key获取目标任务节点集合
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getParallelGatewayList
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id和流程节点Key获取目标任务节点集合
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getParallelGatewayList?tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": ""
}
]
}根据流程定义id获取开始节点
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义id获取开始节点
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getStartNodeKeyByProcessDefinitionId?tenantId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}根据流程定义key获取最新版本的流程定义的启动节点的taskdefineKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义key获取最新版本的流程定义的启动节点的taskdefineKey
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getStartNodeKeyByProcessDefinitionKey?tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}根据流程定义Id和流程节点Key获取目标任务节点集合
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getTargetNodes
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id和流程节点Key获取目标任务节点集合
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getTargetNodes?tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
| └─multiInstance | string | 多实例类型 | - |
| └─type | string | 节点类型 | - |
| └─conditionExpression | string | 条件表达式 | - |
| └─realTaskDefName | string | 实际任务名称 | - |
| └─commonButtonNames | string | 节点绑定的普通按钮 | - |
| └─sendButtonNames | string | 节点绑定的发送按钮 | - |
| └─opinionFrameNames | string | 节点绑定的意见框名称 | - |
| └─bindNames | string | 节点绑定的编号信息 | - |
| └─roleNames | string | 节点绑定的角色信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": "",
"multiInstance": "",
"type": "",
"conditionExpression": "",
"realTaskDefName": "",
"commonButtonNames": "",
"sendButtonNames": "",
"opinionFrameNames": "",
"bindNames": "",
"roleNames": ""
}
]
}根据流程定义Id和流程节点Key获取目标任务节点集合,去除名称相等的节点,并且加上结束节点
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getTargetNodes1
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id和流程节点Key获取目标任务节点集合,去除名称相等的节点,并且加上结束节点
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getTargetNodes1?tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
| └─multiInstance | string | 多实例类型 | - |
| └─type | string | 节点类型 | - |
| └─conditionExpression | string | 条件表达式 | - |
| └─realTaskDefName | string | 实际任务名称 | - |
| └─commonButtonNames | string | 节点绑定的普通按钮 | - |
| └─sendButtonNames | string | 节点绑定的发送按钮 | - |
| └─opinionFrameNames | string | 节点绑定的意见框名称 | - |
| └─bindNames | string | 节点绑定的编号信息 | - |
| └─roleNames | string | 节点绑定的角色信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": "",
"multiInstance": "",
"type": "",
"conditionExpression": "",
"realTaskDefName": "",
"commonButtonNames": "",
"sendButtonNames": "",
"opinionFrameNames": "",
"bindNames": "",
"roleNames": ""
}
]
}根据流程定义Id和流程节点Key获取目标任务节点集合
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id和流程节点Key获取目标任务节点集合
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getTargetNodes4ParallelGateway?tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": ""
}
]
}根据流程定义Id和流程节点Key获取目标任务节点集合(可设置是否包含结束节点)
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getTargetNodes4UserTask
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id和流程节点Key获取目标任务节点集合(可设置是否包含结束节点)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
| isContainEndNode | boolean | true | 是否包含结束节点 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/getTargetNodes4UserTask?isContainEndNode=true&tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
| └─multiInstance | string | 多实例类型 | - |
| └─type | string | 节点类型 | - |
| └─conditionExpression | string | 条件表达式 | - |
| └─realTaskDefName | string | 实际任务名称 | - |
| └─commonButtonNames | string | 节点绑定的普通按钮 | - |
| └─sendButtonNames | string | 节点绑定的发送按钮 | - |
| └─opinionFrameNames | string | 节点绑定的意见框名称 | - |
| └─bindNames | string | 节点绑定的编号信息 | - |
| └─roleNames | string | 节点绑定的角色信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": "",
"multiInstance": "",
"type": "",
"conditionExpression": "",
"realTaskDefName": "",
"commonButtonNames": "",
"sendButtonNames": "",
"opinionFrameNames": "",
"bindNames": "",
"roleNames": ""
}
]
}判断流程定义的节点是否是callActivity节点
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/isCallActivity
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 判断流程定义的节点是否是callActivity节点
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/isCallActivity?tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | boolean | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": true
}查找当前任务节点的输出目标节点中是否包含某一类型的特定节点
URL: https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/isContainNodeType
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 查找当前任务节点的输出目标节点中是否包含某一类型的特定节点
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| taskId | string | true | 任务id | - |
| nodeType | string | true | 节点类型 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processDefinition/isContainNodeType?tenantId=&taskId=&nodeType=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | boolean | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": true
}在办件列表
根据人员id获取在办件统计
URL: https://demo.youshengyun.com/processAdmin/services/rest/doing/getCountByUserId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员id获取在办件统计
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员Id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/getCountByUserId?tenantId=&userId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据人员Id获取用户的在办任务(分页,包含流程变量)
URL: https://demo.youshengyun.com/processAdmin/services/rest/doing/getListByUserId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员Id获取用户的在办任务(分页,包含流程变量)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/getListByUserId?page=0&rows=0&tenantId=&userId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}根据人员Id,事项ID获取用户的在办列表(分页,包含流程变量)
URL: https://demo.youshengyun.com/processAdmin/services/rest/doing/getListByUserIdAndProcessDefinitionKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员Id,事项ID获取用户的在办列表(分页,包含流程变量)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/getListByUserIdAndProcessDefinitionKey?page=0&rows=0&tenantId=&userId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}获取已办件列表,按办理的时间排序
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取已办件列表,按办理的时间排序
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| processDefinitionKey | string | true | 流程定义key | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/getListByUserIdAndProcessDefinitionKeyOrderBySendTime?page=0&rows=0&tenantId=&userId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}根据人员Id,系统标识获取用户的在办列表(分页,包含流程变量)
URL: https://demo.youshengyun.com/processAdmin/services/rest/doing/getListByUserIdAndSystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员Id,系统标识获取用户的在办列表(分页,包含流程变量)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| systemName | string | true | 英文系统名称 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/getListByUserIdAndSystemName?page=0&rows=0&tenantId=&userId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}条件搜索在办件
URL: https://demo.youshengyun.com/processAdmin/services/rest/doing/searchListByUserId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 条件搜索在办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/searchListByUserId?page=0&rows=0&tenantId=&userId=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}根据流程定义key和其他条件搜索在办件
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义key和其他条件搜索在办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| searchTerm | string | false | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/searchListByUserIdAndProcessDefinitionKey?page=0&rows=0&tenantId=&userId=&processDefinitionKey=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}根据系统名称和其他条件搜索在办件
URL: https://demo.youshengyun.com/processAdmin/services/rest/doing/searchListByUserIdAndSystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统名称和其他条件搜索在办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员id | - |
| systemName | string | true | 英文系统名称 | - |
| searchTerm | string | true | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/doing/searchListByUserIdAndSystemName?page=0&rows=0&tenantId=&userId=&systemName=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}流程设计相关接口
删除模型
URL: https://demo.youshengyun.com/processAdmin/services/rest/processModel/deleteModel
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除模型
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| modelId | string | true | 模型id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/processModel/deleteModelResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据modelId部署流程
URL: https://demo.youshengyun.com/processAdmin/services/rest/processModel/deployModel
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据modelId部署流程
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| modelId | string | true | 模型id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/processModel/deployModelResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}获取模型列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/processModel/getModelList
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取模型列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processModel/getModelList?tenantId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 流程模型唯一标示 | - |
| └─key | string | 流程模型key | - |
| └─name | string | 流程模型名称 | - |
| └─version | int32 | 版本 | - |
| └─createTime | string | 创建时间 | - |
| └─lastUpdateTime | string | 最后修改时间 | - |
| └─xml | string | 模型xml信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"key": "",
"name": "",
"version": 0,
"createTime": "",
"lastUpdateTime": "",
"xml": ""
}
]
}获取模型xml
URL: https://demo.youshengyun.com/processAdmin/services/rest/processModel/getModelXml
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取模型xml
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| modelId | string | true | 模型id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processModel/getModelXml?tenantId=&modelId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}导入模型文件
URL: https://demo.youshengyun.com/processAdmin/services/rest/processModel/saveModelXml
Type: POST
Author: qinman,zhangchongjie
Content-Type: multipart/form-data
Description: 导入模型文件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 用户id | - |
| file | file | false | 文件 | - |
Request-example:
curl -X POST -k -H 'Content-Type: multipart/form-data' -F 'file=' -i https://demo.youshengyun.com/processAdmin/services/rest/processModel/saveModelXml --data 'tenantId=&userId='Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}待办件列表
根据岗位id获取待办数量
URL: https://demo.youshengyun.com/processAdmin/services/rest/processTodo/countByOrgUnitId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据岗位id获取待办数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/countByOrgUnitId?tenantId=&orgUnitId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据人员、岗位id,流程定义Key获取对应事项的办件统计(包括待办件,在办件,办结件)
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员、岗位id,流程定义Key获取对应事项的办件统计(包括待办件,在办件,办结件)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getCountByUserIdAndProcessDefinitionKey?tenantId=&userId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─todoCount | int64 | 待办数量 | - |
| └─doingCount | int64 | 在办数量 | - |
| └─doneCount | int64 | 办结数量 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"todoCount": 0,
"doingCount": 0,
"doneCount": 0
}
}根据人员、岗位id,系统标识获取对应事项的办件统计(包括待办件,在办件,办结件)
URL: https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getCountByUserIdAndSystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员、岗位id,系统标识获取对应事项的办件统计(包括待办件,在办件,办结件)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| systemName | string | true | 系统名称 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getCountByUserIdAndSystemName?tenantId=&userId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─todoCount | int64 | 待办数量 | - |
| └─doingCount | int64 | 在办数量 | - |
| └─doneCount | int64 | 办结数量 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"todoCount": 0,
"doingCount": 0,
"doneCount": 0
}
}根据人员、岗位id,流程定义Key获取用户的待办任务(分页)
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员、岗位id,流程定义Key获取用户的待办任务(分页)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getListByUserIdAndProcessDefinitionKey?page=0&rows=0&tenantId=&userId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据人员、岗位id,系统标识获取用户的待办任务(分页)
URL: https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getListByUserIdAndSystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员、岗位id,系统标识获取用户的待办任务(分页)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| systemName | string | true | 系统名称 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getListByUserIdAndSystemName?page=0&rows=0&tenantId=&userId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}获取待办件列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getListByUserIdAndSystemName4xxx
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取待办件列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员、岗位id | - |
| systemName | string | false | 系统名称 | - |
| processDefinitionKey | string | false | 流程定义key | - |
| target | string | false | 目标 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getListByUserIdAndSystemName4xxx?page=0&rows=0&tenantId=&userId=&systemName=&target=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据人员、岗位id,流程定义key获取对应事项的待办数量
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员、岗位id,流程定义key获取对应事项的待办数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员、岗位id | - |
| processDefinitionKey | string | true | 流程定义key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getTodoCountByUserIdAndProcessDefinitionKey?tenantId=&userId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据人员、岗位id,系统标识获取对应事项的待办数量
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员、岗位id,系统标识获取对应事项的待办数量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| systemName | string | true | 系统名称 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/getTodoCountByUserIdAndSystemName?tenantId=&userId=&systemName=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | int64 | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": 0
}根据人员、岗位id获取用户的待办任务(分页)
URL: https://demo.youshengyun.com/processAdmin/services/rest/processTodo/pageByUserId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据人员、岗位id获取用户的待办任务(分页)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/pageByUserId?page=0&rows=0&tenantId=&userId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据流程定义Key和其他条件搜索待办件
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key和其他条件搜索待办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| processDefinitionKey | string | true | 流程定义Key | - |
| searchTerm | string | false | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/searchListByUserIdAndProcessDefinitionKey?page=0&rows=0&tenantId=&userId=&processDefinitionKey=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}根据系统英文名称和其他条件搜索待办件
URL: https://demo.youshengyun.com/processAdmin/services/rest/processTodo/searchListByUserIdAndSystemName
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据系统英文名称和其他条件搜索待办件
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| userId | string | true | 人员、岗位id | - |
| systemName | string | true | 系统英文名称 | - |
| searchTerm | string | false | 搜索词 | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/processTodo/searchListByUserIdAndSystemName?page=0&rows=0&tenantId=&userId=&systemName=&searchTerm=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}部署流程相关接口
删除部署的流程
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/delete
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除部署的流程
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| deploymentId | string | true | 部署id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/deleteResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}部署流程
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/deploy
Type: POST
Author: qinman,zhangchongjie
Content-Type: multipart/form-data
Description: 部署流程
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| file | file | false | 流程文件 | - |
Request-example:
curl -X POST -k -H 'Content-Type: multipart/form-data' -F 'file=' -i https://demo.youshengyun.com/processAdmin/services/rest/repository/deploy --data 'tenantId='Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据流程定义key获取最新部署的流程定义
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/getLademoProcessDefinitionByKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义key获取最新部署的流程定义
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionKey | string | true | 流程定义key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/getLademoProcessDefinitionByKey?tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─category | string | 类别 | - |
| └─name | string | 名称 | - |
| └─key | string | key | - |
| └─description | string | 描述 | - |
| └─version | int32 | 版本 | - |
| └─resourceName | string | 资源名称 | - |
| └─deploymentId | string | 部署id | - |
| └─diagramResourceName | string | 图表资源名称 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─engineVersion | string | 引擎版本 | - |
| └─deploymentTime | string | 部署时间 | - |
| └─sortTime | int64 | 部署时间(毫秒)用于排序 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"category": "",
"name": "",
"key": "",
"description": "",
"version": 0,
"resourceName": "",
"deploymentId": "",
"diagramResourceName": "",
"suspended": true,
"engineVersion": "",
"deploymentTime": "",
"sortTime": 0
}
}获取所有流程定义最新版本的集合
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/getLademoProcessDefinitionList
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取所有流程定义最新版本的集合
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/getLademoProcessDefinitionList?tenantId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─category | string | 类别 | - |
| └─name | string | 名称 | - |
| └─key | string | key | - |
| └─description | string | 描述 | - |
| └─version | int32 | 版本 | - |
| └─resourceName | string | 资源名称 | - |
| └─deploymentId | string | 部署id | - |
| └─diagramResourceName | string | 图表资源名称 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─engineVersion | string | 引擎版本 | - |
| └─deploymentTime | string | 部署时间 | - |
| └─sortTime | int64 | 部署时间(毫秒)用于排序 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"category": "",
"name": "",
"key": "",
"description": "",
"version": 0,
"resourceName": "",
"deploymentId": "",
"diagramResourceName": "",
"suspended": true,
"engineVersion": "",
"deploymentTime": "",
"sortTime": 0
}
]
}根据流程定义Id获取上一个版本的流程定义,如果当前版本是1,则返回自己
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/getPreviousProcessDefinitionById
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id获取上一个版本的流程定义,如果当前版本是1,则返回自己
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionId | string | true | 流程定义Id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/getPreviousProcessDefinitionById?tenantId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─category | string | 类别 | - |
| └─name | string | 名称 | - |
| └─key | string | key | - |
| └─description | string | 描述 | - |
| └─version | int32 | 版本 | - |
| └─resourceName | string | 资源名称 | - |
| └─deploymentId | string | 部署id | - |
| └─diagramResourceName | string | 图表资源名称 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─engineVersion | string | 引擎版本 | - |
| └─deploymentTime | string | 部署时间 | - |
| └─sortTime | int64 | 部署时间(毫秒)用于排序 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"category": "",
"name": "",
"key": "",
"description": "",
"version": 0,
"resourceName": "",
"deploymentId": "",
"diagramResourceName": "",
"suspended": true,
"engineVersion": "",
"deploymentTime": "",
"sortTime": 0
}
}根据流程定义Id获取流程定义
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/getProcessDefinitionById
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Id获取流程定义
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionId | string | true | 流程定义Id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/getProcessDefinitionById?tenantId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─category | string | 类别 | - |
| └─name | string | 名称 | - |
| └─key | string | key | - |
| └─description | string | 描述 | - |
| └─version | int32 | 版本 | - |
| └─resourceName | string | 资源名称 | - |
| └─deploymentId | string | 部署id | - |
| └─diagramResourceName | string | 图表资源名称 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─engineVersion | string | 引擎版本 | - |
| └─deploymentTime | string | 部署时间 | - |
| └─sortTime | int64 | 部署时间(毫秒)用于排序 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"category": "",
"name": "",
"key": "",
"description": "",
"version": 0,
"resourceName": "",
"deploymentId": "",
"diagramResourceName": "",
"suspended": true,
"engineVersion": "",
"deploymentTime": "",
"sortTime": 0
}
}根据流程定义key获取最新部署的流程定义
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/getProcessDefinitionListByKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义key获取最新部署的流程定义
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionKey | string | true | 流程定义key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/getProcessDefinitionListByKey?tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─category | string | 类别 | - |
| └─name | string | 名称 | - |
| └─key | string | key | - |
| └─description | string | 描述 | - |
| └─version | int32 | 版本 | - |
| └─resourceName | string | 资源名称 | - |
| └─deploymentId | string | 部署id | - |
| └─diagramResourceName | string | 图表资源名称 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─engineVersion | string | 引擎版本 | - |
| └─deploymentTime | string | 部署时间 | - |
| └─sortTime | int64 | 部署时间(毫秒)用于排序 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"category": "",
"name": "",
"key": "",
"description": "",
"version": 0,
"resourceName": "",
"deploymentId": "",
"diagramResourceName": "",
"suspended": true,
"engineVersion": "",
"deploymentTime": "",
"sortTime": 0
}
]
}获取流程定义xml
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/getXmlByProcessInstance
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取流程定义xml
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| resourceType | string | true | xml | - |
| processInstanceId | string | true | 流程实例id | - |
| processDefinitionId | string | true | 流程定义id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/getXmlByProcessInstance?tenantId=&resourceType=&processInstanceId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取已部署流程定义列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/list
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取已部署流程定义列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/list?tenantId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─category | string | 类别 | - |
| └─name | string | 名称 | - |
| └─key | string | key | - |
| └─description | string | 描述 | - |
| └─version | int32 | 版本 | - |
| └─resourceName | string | 资源名称 | - |
| └─deploymentId | string | 部署id | - |
| └─diagramResourceName | string | 图表资源名称 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─engineVersion | string | 引擎版本 | - |
| └─deploymentTime | string | 部署时间 | - |
| └─sortTime | int64 | 部署时间(毫秒)用于排序 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"category": "",
"name": "",
"key": "",
"description": "",
"version": 0,
"resourceName": "",
"deploymentId": "",
"diagramResourceName": "",
"suspended": true,
"engineVersion": "",
"deploymentTime": "",
"sortTime": 0
}
]
}激活/挂起流程的状态
URL: https://demo.youshengyun.com/processAdmin/services/rest/repository/switchSuspendOrActive
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 激活/挂起流程的状态
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| state | string | true | 状态 | - |
| processDefinitionId | string | true | 流程定义Id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/repository/switchSuspendOrActiveResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}正在运行流程实例操作接口
加签
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/addMultiInstanceExecution
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 加签
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| activityId | string | true | 活动节点id | - |
| parentExecutionId | string | true | 父执行实例id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/addMultiInstanceExecution?tenantId=&activityId=&parentExecutionId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}真办结
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/complete
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 真办结
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| processInstanceId | string | true | 流程实例id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/completeResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}减签
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/deleteMultiInstanceExecution
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 减签
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| executionId | string | true | 执行实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/deleteMultiInstanceExecutionResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据执行Id获取当前活跃的节点信息
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/getActiveActivityIds
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据执行Id获取当前活跃的节点信息
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| executionId | string | true | 执行实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/getActiveActivityIds?tenantId=&executionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
"",
""
]
}根据执行实例Id查找执行实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/getExecutionById
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据执行实例Id查找执行实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| executionId | string | true | 执行实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/getExecutionById?tenantId=&executionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─activityId | string | 活动id | - |
| └─processInstanceId | string | 流程实例id | - |
| └─parentId | string | 父活动id | - |
| └─superExecutionId | string | 超级执行实例id | - |
| └─rootProcessInstanceId | string | 根流程实例id | - |
| └─tenantId | string | 租户id | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"suspended": true,
"ended": true,
"activityId": "",
"processInstanceId": "",
"parentId": "",
"superExecutionId": "",
"rootProcessInstanceId": "",
"tenantId": "",
"name": "",
"description": ""
}
}根据父流程实例获取子流程实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/getListBySuperProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据父流程实例获取子流程实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| superProcessInstanceId | string | true | 父流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/getListBySuperProcessInstanceId?tenantId=&superProcessInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
]
}根据流程实例Id获取流程实例信息
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/getProcessInstance
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例Id获取流程实例信息
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/getProcessInstance?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
}根据流程定义id获取流程实例列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/getProcessInstancesByDefId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义id获取流程实例列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionId | string | true | 流程定义id | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/getProcessInstancesByDefId?page=0&rows=0&tenantId=&processDefinitionId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}根据流程定义Key获取流程实例列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/getProcessInstancesByKey
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程定义Key获取流程实例列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionKey | string | true | 流程定义key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/getProcessInstancesByKey?tenantId=&processDefinitionKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
]
}真办结后恢复流程实例为待办状态
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/recovery4Completed
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 真办结后恢复流程实例为待办状态
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| processInstanceId | string | true | 流程实例id | - |
| year | string | true | 年份 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/recovery4CompletedResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}恢复流程实例为待办状态,其实是先激活,再设置流程实例的结束时间为null
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/recovery4SetUpCompleted
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 恢复流程实例为待办状态,其实是先激活,再设置流程实例的结束时间为null
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/recovery4SetUpCompletedResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}获取正在运行流程实例列表
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/runningList
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取正在运行流程实例列表
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| page | int32 | true | 页吗 | - |
| rows | int32 | true | 条数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/runningList?page=0&rows=0&tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
],
"code": 0,
"msg": "",
"success": true
}
}设置流程实例为办结的状态,其实是先暂停,再设置流程结束时间为当前时间
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/setUpCompleted
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置流程实例为办结的状态,其实是先暂停,再设置流程结束时间为当前时间
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/setUpCompletedResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据流程实例id设置流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/setVariable
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 根据流程实例id设置流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| key | string | true | 变量key | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/setVariable?tenantId=&processInstanceId=&key= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据执行实例id设置流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/setVariables
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 根据执行实例id设置流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| executionId | string | true | 执行实例id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/setVariables?tenantId=&executionId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据流程定义Key启动流程实例,设置流程变量,并返回流程实例,流程启动人是人员Id
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/startProcessInstanceByKey
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 根据流程定义Key启动流程实例,设置流程变量,并返回流程实例,流程启动人是人员Id
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| processDefinitionKey | string | true | 流程定义key | - |
| systemName | string | true | 系统名称 | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/startProcessInstanceByKey?tenantId=&orgUnitId=&processDefinitionKey=&systemName= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─suspended | boolean | 是否挂起 | - |
| └─ended | boolean | 是否结束 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─processDefinitionId | string | 流程定义id | - |
| └─processDefinitionName | string | 流程定义名称 | - |
| └─processDefinitionKey | string | 流程定义key | - |
| └─processDefinitionVersion | int32 | 流程定义版本 | - |
| └─deploymentId | string | 部署id | - |
| └─startTime | string | 开始时间 | - |
| └─endTime | string | 结束时间 | - |
| └─startUserId | string | 开始用户id | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─activityName | string | 活动节点 | - |
| └─startUserName | string | 启动用户名称 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"suspended": true,
"ended": true,
"name": "",
"description": "",
"processDefinitionId": "",
"processDefinitionName": "",
"processDefinitionKey": "",
"processDefinitionVersion": 0,
"deploymentId": "",
"startTime": "yyyy-MM-dd HH:mm:ss",
"endTime": "yyyy-MM-dd HH:mm:ss",
"startUserId": "",
"variables": {
"mapKey": {}
},
"activityName": "",
"startUserName": ""
}
}判断是否是挂起实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/suspendedByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 判断是否是挂起实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/suspendedByProcessInstanceId?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | boolean | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": true
}挂起或者激活流程实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/runtime/switchSuspendOrActive
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 挂起或者激活流程实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| state | string | true | 状态 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/runtime/switchSuspendOrActiveResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}退回,收回,重定向,特殊办结接口
重定向
URL: https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/reposition
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 重定向
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| taskId | string | true | 任务id | - |
| repositionToTaskId | string | true | 任务key | - |
| userChoice | array | true | 岗位id集合,[array of string] | - |
| reason | string | false | 重定向原因 | - |
| sponsorGuid | string | false | 主办人id | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/reposition --data 'tenantId=&orgUnitId=&taskId=&repositionToTaskId=&userChoice=&reason=&sponsorGuid='Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}退回
URL: https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/rollBack
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 退回
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| taskId | string | true | 任务id | - |
| reason | string | false | 退回的原因 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/rollBackResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}发回给发送人
URL: https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/rollbackToSender
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 发回给发送人
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/rollbackToSenderResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}返回拟稿人
URL: https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/rollbackToStartor
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 返回拟稿人
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| taskId | string | true | 任务id | - |
| reason | string | false | 原因 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/rollbackToStartorResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}特殊办结
URL: https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/specialComplete
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 特殊办结
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| taskId | string | true | 任务id | - |
| reason | string | false | 原因 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/specialCompleteResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}收回
URL: https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/takeBack
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 收回
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位id | - |
| taskId | string | true | 任务id | - |
| reason | string | false | 收回的原因 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/specialOperation/takeBackResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}正在运行任务相关接口
签收任务
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/claim
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 签收任务
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| userId | string | true | 人员、岗位id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/claimResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}完成任务(不设置流程变量)
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/complete
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 完成任务(不设置流程变量)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/completeResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}完成按钮的任务完结
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/completeTask
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 完成按钮的任务完结
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/completeTaskResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}完成按钮的任务完结(相关参与人员的人任务办结)
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/completeTaskWithoutAssignee
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 完成按钮的任务完结(相关参与人员的人任务办结)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位Id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/completeTaskWithoutAssigneeResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}完成任务(设置流程变量)
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/completeWithVariables
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 完成任务(设置流程变量)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| orgUnitId | string | true | 人员、岗位Id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/task/completeWithVariables?tenantId=&taskId=&orgUnitId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}创建变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/createWithVariables
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 创建变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| orgUnitId | string | true | 人员、岗位Id | - |
| routeToTaskId | string | true | 任务id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| any object | object | false | any object. | - |
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | array | false | 操作成功返回的数据 | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/task/createWithVariables?tenantId=&orgUnitId=&routeToTaskId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": [
"",
""
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置任务代理
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/delegateTask
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置任务代理
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| assignee | string | true | 受让人 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/delegateTaskResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}删除任务的候选人
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/deleteCandidateUser
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除任务的候选人
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| assignee | string | true | 受让人 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/deleteCandidateUserResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}查找所有的任务实例
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/findAll
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 查找所有的任务实例
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/findAll?tenantId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
]
}根据任务id查找任务
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/findById
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据任务id查找任务
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/findById?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
}根据流程实例Id查找任务
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/findByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例Id查找任务
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/findByProcessInstanceId?tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
]
}根据流程实例Id和是否激活状态查找任务
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/findByProcessInstanceId1
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例Id和是否激活状态查找任务
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例Id | - |
| active | boolean | true | 是否存活 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/findByProcessInstanceId1?active=true&tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
]
}根据流程实例id获取用户的待办任务(分页)
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/findListByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例id获取用户的待办任务(分页)
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户Id | - |
| processInstanceId | string | true | 流程实例Id | - |
| page | int32 | true | 页码 | - |
| rows | int32 | true | 行数 | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/findListByProcessInstanceId?page=0&rows=0&tenantId=&processInstanceId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─currPage | int32 | 当前页 | - |
| └─totalPages | int32 | 总页数 | - |
| └─total | int64 | 总条数 | - |
| └─rows | array | 数据项 | - |
| └─id | string | 主键 | - |
| └─name | string | 名称 | - |
| └─description | string | 描述 | - |
| └─priority | int32 | 优先级 | - |
| └─owner | string | 拥有者 | - |
| └─assignee | string | 办理人 | - |
| └─processInstanceId | string | 流程实例ID | - |
| └─executionId | string | 执行实例ID | - |
| └─processDefinitionId | string | 流程定义ID | - |
| └─createTime | string | 创建时间 | - |
| └─taskDefinitionKey | string | 任务定义key | - |
| └─formKey | string | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | 过期时间 | - |
| └─claimTime | string | 签收时间 | - |
| └─delegationState | enum | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | 任务变量 | - |
| └─any object | object | any object. | - |
| └─variables | map | 流程变量 | - |
| └─any object | object | any object. | - |
| └─code | int64 | 错误代码 | - |
| └─msg | string | 调用信息 | - |
| └─success | boolean | 操作是否成功 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"currPage": 0,
"totalPages": 0,
"total": 0,
"rows": [
{
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
],
"code": 0,
"msg": "",
"success": true
}
}保存任务
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/saveTask
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 保存任务
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─id | string | false | 主键 | - |
| └─name | string | false | 名称 | - |
| └─description | string | false | 描述 | - |
| └─priority | int32 | false | 优先级 | - |
| └─owner | string | false | 拥有者 | - |
| └─assignee | string | false | 办理人 | - |
| └─processInstanceId | string | false | 流程实例ID | - |
| └─executionId | string | false | 执行实例ID | - |
| └─processDefinitionId | string | false | 流程定义ID | - |
| └─createTime | string | false | 创建时间 | - |
| └─taskDefinitionKey | string | false | 任务定义key | - |
| └─formKey | string | false | 表单key(用于存放待办件已阅,未阅状态) | - |
| └─dueDate | string | false | 过期时间 | - |
| └─claimTime | string | false | 签收时间 | - |
| └─delegationState | enum | false | 委派状态 [Enum values: PENDING() RESOLVED() ] | - |
| └─localVariables | map | false | 任务变量 | - |
| └─any object | object | false | any object. | - |
| └─variables | map | false | 流程变量 | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/task/saveTask?tenantId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"id": "",
"name": "",
"description": "",
"priority": 0,
"owner": "",
"assignee": "",
"processInstanceId": "",
"executionId": "",
"processDefinitionId": "",
"createTime": "yyyy-MM-dd HH:mm:ss",
"taskDefinitionKey": "",
"formKey": "",
"dueDate": "yyyy-MM-dd HH:mm:ss",
"claimTime": "yyyy-MM-dd HH:mm:ss",
"delegationState": "PENDING",
"localVariables": {
"mapKey": {}
},
"variables": {
"mapKey": {}
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置任务委托人
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/setAssignee
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置任务委托人
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| assignee | string | true | 受让人 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/setAssigneeResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置任务的过期时间
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/setDueDate
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置任务的过期时间
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| date | string | true | 日期 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/setDueDateResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置任务的优先级
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/setPriority
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 设置任务的优先级
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| priority | int32 | true | 优先级 | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/setPriorityResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}撤销签收任务
URL: https://demo.youshengyun.com/processAdmin/services/rest/task/unClaim
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 撤销签收任务
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/task/unClaimResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}正在运行变量相关接口
删除流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/deleteVariable
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| key | string | true | 变量key | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/variable/deleteVariableResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}删除任务变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/deleteVariableLocal
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 删除任务变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| key | string | true | 变量key | - |
Request-example:
curl -X POST -k -i https://demo.youshengyun.com/processAdmin/services/rest/variable/deleteVariableLocalResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据任务id获取流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariable
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据任务id获取流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| key | string | true | 变量key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariable?tenantId=&taskId=&key=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}根据流程实例id获取流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariableByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 根据流程实例id获取流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程id | - |
| key | string | true | 变量key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariableByProcessInstanceId?tenantId=&processInstanceId=&key=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取任务变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariableLocal
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取任务变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| key | string | true | 变量key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariableLocal?tenantId=&taskId=&key=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | string | 操作成功返回的数据 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": ""
}获取多个流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariables
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取多个流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariables?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─mapKey | object | A map key. | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}获取指定的流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariablesByProcessInstanceId
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 获取指定的流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | array | false | 操作成功返回的数据 | - |
Request-example:
curl -X GET -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariablesByProcessInstanceId?tenantId=&processInstanceId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": [
"",
""
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─mapKey | object | A map key. | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}获取所有任务变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariablesLocal
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取所有任务变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/variable/getVariablesLocal?tenantId=&taskId=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─mapKey | object | A map key. | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}根据任务id设置流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariable
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 根据任务id设置流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| key | string | true | 变量key | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariable?tenantId=&taskId=&key= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}根据流程实例id设置流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariableByProcessInstanceId
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 根据流程实例id设置流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processInstanceId | string | true | 流程实例id | - |
| key | string | true | 变量key | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariableByProcessInstanceId?tenantId=&processInstanceId=&key= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置任务变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariableLocal
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 设置任务变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
| key | string | true | 变量key | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariableLocal?tenantId=&taskId=&key= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置多个流程变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariables
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 设置多个流程变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariables?tenantId=&taskId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}设置多个任务变量
URL: https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariablesLocal
Type: POST
Author: qinman,zhangchongjie
Content-Type: application/json
Description: 设置多个任务变量
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| taskId | string | true | 任务id | - |
Body-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| success | boolean | false | 操作是否成功 | - |
| code | int32 | false | 错误代码 | - |
| msg | string | false | 操作描述 | - |
| data | object | false | 操作成功返回的数据 | - |
| └─mapKey | object | false | A map key. | - |
| └─any object | object | false | any object. | - |
Request-example:
curl -X POST -k -H 'Content-Type: application/json' -i https://demo.youshengyun.com/processAdmin/services/rest/variable/setVariablesLocal?tenantId=&taskId= --data '{
"success": true,
"code": 0,
"msg": "",
"data": {
"mapKey": {
"waring": "You may use java.util.Object for Map value; smart-doc can't be handle."
}
}
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | object | 操作成功返回的数据 | - |
| └─any object | object | any object. | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": {}
}获取当前任务节点的目标节点
获取当前任务节点的目标节点
URL: https://demo.youshengyun.com/processAdmin/services/rest/workflow/getCurrentTaskTargets
Type: GET
Author: qinman,zhangchongjie
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Description: 获取当前任务节点的目标节点
Query-parameters:
| Parameter | Type | Required | Description | Since |
|---|---|---|---|---|
| tenantId | string | true | 租户id | - |
| processDefinitionId | string | true | 流程定义id | - |
| taskDefKey | string | true | 任务key | - |
Request-example:
curl -X GET -k -i https://demo.youshengyun.com/processAdmin/services/rest/workflow/getCurrentTaskTargets?tenantId=&processDefinitionId=&taskDefKey=Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
| success | boolean | 操作是否成功 | - |
| code | int32 | 错误代码 | - |
| msg | string | 操作描述 | - |
| data | array | 操作成功返回的数据 | - |
| └─taskDefKey | string | 节点key | - |
| └─taskDefName | string | 任务名称(线上名称存在这里就是线的名字) | - |
| └─multiInstance | string | 多实例类型 | - |
| └─type | string | 节点类型 | - |
| └─conditionExpression | string | 条件表达式 | - |
| └─realTaskDefName | string | 实际任务名称 | - |
| └─commonButtonNames | string | 节点绑定的普通按钮 | - |
| └─sendButtonNames | string | 节点绑定的发送按钮 | - |
| └─opinionFrameNames | string | 节点绑定的意见框名称 | - |
| └─bindNames | string | 节点绑定的编号信息 | - |
| └─roleNames | string | 节点绑定的角色信息 | - |
Response-example:
{
"success": true,
"code": 0,
"msg": "",
"data": [
{
"taskDefKey": "",
"taskDefName": "",
"multiInstance": "",
"type": "",
"conditionExpression": "",
"realTaskDefName": "",
"commonButtonNames": "",
"sendButtonNames": "",
"opinionFrameNames": "",
"bindNames": "",
"roleNames": ""
}
]
}错误码列表
| Error code | Description |
|---|---|
| 0 | 操作成功 |
| 1 | 服务器内部错误,请联系开发人员 |
| 2 | 参数校验失败 |
| 3 | 对象[{}]不存在 |
| 100 | 令牌未传入 |
| 101 | 令牌已失效 |
| 102 | 校验令牌出问题了 |
| 200 | 权限不足拒绝访问 |
| 211 | 当前用户不是全局系统管理员 |
| 212 | 当前用户不是全局安全保密员 |
| 213 | 当前用户不是全局安全审计员 |
| 214 | 当前用户不是部门系统管理员 |
| 215 | 当前用户不是部门安全保密员 |
| 216 | 当前用户不是部门安全审计员 |
| 220 | 当前用户没有拥有角色[{}] |
| 221 | 当前岗位没有拥有角色[{}] |
| 222 | 当前用户不是[{}] |
| 230 | 当前用户没有被授权资源[{}] |
| 231 | 当前岗位没有被授权资源[{}] |
数据字典
http状态码字典
| Code | Type | Description |
|---|---|---|
| 200 | string | ok |
| 400 | string | Bad Request |
| 401 | string | Unauthorized |
| 403 | string | Forbidden |
| 404 | string | Not Found |
| 415 | string | Unsupported Media Type |
| 500 | string | Internal Server Error |
| 502 | string | Bad Gateway |
| 503 | string | Service Unavailable |