Skip to content

操作记录

获取操作记录

接口请求调用说明

  • HTTP 请求方式:POST
  • 请求地址:http://127.0.0.1:8080/demo/horizon/workflow/rest/flow/support/history.wf

请求参数:

json
{
  "accessToken": "",
  "workId": "",
  "skipFields": "limittime;dotimemin"
}
参数是否必须描述
accessToken调用接口凭证,唯一用户标识
workId流程实例id
skipFields过滤不需要的返回值格式(limittime;dotimemin),这样就可以过滤掉这两个字段,如果为空,则返回全部字段

返回结果示例:

json
{
  "code": 0,
  "data": [
    {
      "action": "autofirst",
      "actionname": "启动流程",
      "actiontime": "2022-05-19 10:11:49",
      "comments": "",
      "dotime": "0 天 0 时 0 分",
      "dotimemin": "0",
      "flowid": "test",
      "flowname": "新流程test",
      "id": "HZ28858f80da101c0180da15e4370060",
      "isover": "0",
      "limittime": "",
      "memo": "提交到节点[任务1]处理人:管理员(慧正通软)",
      "nextnodeids": "Node1;",
      "nodeid": "Start",
      "nodename": "开始",
      "sxcomments": "",
      "title": "新流程test",
      "trackid": "HZ28858f80da101c0180da15e433005e",
      "userid": "admin",
      "username": "管理员",
      "workid": "HZ28858f80da101c0180da15e433005d"
    }
  ],
  "message": "",
  "recordsTotal": "3",
  "success": true
}

结果参数说明:

参数类型描述
actionString操作标识
actionnameString操作名称
actiontimeString操作时间
commentsString意见
dotimeString从接收到操作的历时(中文)
dotimeminString历时(分钟)
flowidString流程id
flownameString流程名称
idString记录数据id
isoverString执行操作时是否已超期,1:是,0:否
limittimeString节点办理时限
memoString执行操作后提交目标提示信息记录
nextnodeidsString下一节点id,流程操作不涉及下一节点时没有值
nodeidString流程操作时所在的节点id
nodenameString节点名称
sxcommentsString手写意见
titleString标题
trackidString流转路径id
useridString用户id
usernameString用户名称
workidString实例id