流程审批历史
本章节将介绍流程审批历史接口返回数据,从而帮助你快速构建自定义的审批历史展示方式。
接口说明
| 说明 | 流程审批历史接口 | 
|---|
| 接口 | /api/company/:companyKey/flowCenter/history/:taskId | 
| 方法 | Get | 
| 请求参数 | companyKey: 组织key; taskId: 任务ID | 
| 响应参数 | {status: number, msg: string, data: { items: HistoryItem[] }} | 
HistoryItem 说明
| key | 类型 | 说明 | 
|---|
username | string | 任务处理人用户名 | 
avatar | string | null | 任务处理人头像 | 
type | FlowNodeType | 节点类型 | 
status | FlowNodeStatus | 节点状态 | 
createdAt | string | 任务创建时间 月-日 时-分 | 
comments | string | null | 审批意见 | 
attachement | string | null | 附件 | 
id | string | 任务ID | 
error | string | null | 流程异常信息 | 
FlowNodeType 节点类型说明
| type | 节点类型说明 | 
|---|
start | 开始 | 
end | 结束 | 
examine-and-approve-task | 人工节点 | 
gateway | 分支网关 | 
send-task | 知会节点 | 
write | 填写节点 | 
record | 写入节点 | 
auto-entity-add-records | 新增记录 | 
auto-entity-update-records | 更新记录 | 
auto-entity-search-records | 查询记录 | 
auto-entity-delete-records | 删除记录 | 
capture-time | 延时节点 | 
web-api | 调用服务节点 | 
call-activity | 调用子流程节点 | 
FlowNodeStatus 节点状态说明
| status | 节点状态说明 | 
|---|
waiting-for-read | 等待阅读 | 
waiting-for-approve | 等待审批 | 
waiting-for-submit | 等待提交 | 
waiting-for-re-submit | 等待重新提交 | 
waiting-for-time | 等待延时节点 | 
time-over | 延时结束 | 
submitted | 已提交 | 
approved | 已同意 | 
disagreed | 已拒绝 | 
rollbacked | 已回滚 | 
transfered | 已转交 | 
added | 新增节点写入 | 
updated | 更新节点更新 | 
deleted | 删除节点删除 | 
skiped | 已跳过 | 
recorded | 填写节点写入数据 | 
finished | 非人工节点记录完成 | 
aborted | 被中断 |