You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.0 KiB
3.0 KiB
工作流流程_签字审批
本模块共 2 个接口。源文件:api.json。
快速索引
| 接口名称 | 方法 | 路径 | 用途 |
|---|---|---|---|
| 审批任务 | POST | /gd_dataserver/gd_dataserver/flowable/busiTask/complete |
审批通过或驳回,需携带taskId、result、comment等信息。成功返回 data 为 null;失败返回 error 信息。 |
| 获取当前节点信息 | GET | /gd_dataserver/gd_dataserver/flowable/busiTask/getCurrentNode |
根据任务ID查询当前节点详情,返回 data 为节点信息字符串。 |
接口详情
审批任务
- 用途: 审批通过或驳回,需携带taskId、result、comment等信息。成功返回 data 为 null;失败返回 error 信息。
- 请求:
POST /gd_dataserver/gd_dataserver/flowable/busiTask/complete - 鉴权:
X-Access-Token(以接口定义为准) - operationId:
completeUsingPOST
参数:
无
请求体:
- Content-Type:
application/json - 模型:
工作流签字任务相关--请求参数 - 必填:文档未标记
| 字段 | 必填 | 类型 | 说明 | 示例 |
|---|---|---|---|---|
| assignee | 否 | string | 审批人 | - |
| candidateGroups | 否 | array | 审批组 | - |
| candidateUsers | 否 | array | 候选人 | - |
| comment | 否 | string | 任务意见 | - |
| currentChildExecutionId | 否 | string | 子执行流ID | - |
| defId | 否 | string | 流程环节定义ID | - |
| deploymentId | 否 | string | 部署ID | - |
| file | 否 | string | 拍照 | - |
| flag | 否 | boolean | 子执行流是否已执行 | false |
| instanceId | 否 | string | 流程实例Id | - |
| qz | 否 | string | 任务签字 | - |
| result | 否 | string | 任务审批结果 1-同意 2-退回 | - |
| targetKey | 否 | string | 节点 | - |
| taskId | 否 | string | 任务Id | - |
| taskName | 否 | string | 任务名称 | - |
| type | 否 | string | 业务类型 | - |
| userId | 否 | string | 用户Id | - |
| userName | 否 | string | 用户名称 | - |
| variables | 否 | object | 流程变量信息 | - |
| zyxkid | 否 | string | 作业许可Id | - |
响应:
| 状态码 | 说明 | 响应模型 |
|---|---|---|
| 200 | OK | /: object<string, object> |
| 201 | Created | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
获取当前节点信息
- 用途: 根据任务ID查询当前节点详情,返回 data 为节点信息字符串。
- 请求:
GET /gd_dataserver/gd_dataserver/flowable/busiTask/getCurrentNode - 鉴权:
X-Access-Token(以接口定义为准) - operationId:
getCurrentNodeUsingGET
参数:
| 字段 | 位置 | 必填 | 类型 | 说明 | 示例 |
|---|---|---|---|---|---|
| taskId | query | 是 | string | 任务ID | - |
响应:
| 状态码 | 说明 | 响应模型 |
|---|---|---|
| 200 | OK | /: object<string, object> |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |