外部流程日志

当您在报销单、申请单、借款单的表单设置界面配置了外部流程预演的场景下。若您希望用外部系统的流程日志替换每刻系统的流程日志,您需要在外部流程日志操作下配置外部接口,则该单据在每刻系统内的流程日志会被替换成您在接口定义中所配置的流程日志接口返回的数据。为方便做数据展示,接口返回的数据须符合每刻系统的数据规范。

请求参数

请求参数说明如下:

参数名 类型 是否必须 参数说明
formDataCode String 每刻单据code
formCode String 您的单据code
formType String 每刻单据标示
{
  "formDataCode": "xxxxxxxx", 
  "formCode": "您的单据code",  
  "formType": "xxxxxx" 
}

请求方式

POST

数据响应参数说明

字段名 类型 是否必须 说明
procInstId String 流程实例id
taskId String 流程任务id
taskDefId String 流程定义中节点定义id(唯一)
state String 流程节点状态,predict(预演任务),pending(正在审批的任务),history(已经完成的任务)
operators List 节点候选人名称
operatorCodes List 节点候选人code
taskName String 节点名称
freeNode boolean 自由节点标记
skip boolean 是否自动通过标记位
category String 节点分类:审批(APPROVAL)、审核(FINANCE_AUDIT)、支付(CASHIER_SETTLE),抄送(CC),通知(NOTICE)
unanimous boolean 会签节点标记
startDate long 节点开始时间
completedDate long 节点结束时间(任务未完成可不传)
displayText String 显示信息,eg:[operators]已结算此单据
operatorUserId String 取operators第一个的source

Id | | optReason | String | 否 | 审批理由或者评论 |

示例:

{
  "code": "0000",
  "data": {
    "userTasks": [
      {
        "taskId": "dapkqw",
        "state": "history",
        "operators": [
          "张三"
        ],
        "taskName": "领导审批",
        "category": "APPROVAL",
        "startDate": 1621769775000,
        "completedDate": 1621769780000,
        "displayText": "[operators]审批通过",
        "optReason": "同意审批"
      },
      {
        "taskId": "9849482",
        "state": "history",
        "operators": [
          "王五"
        ],
        "taskName": "二级领导审批",
        "category": "APPROVAL",
        "startDate": 1621769785000,
        "completedDate": 1621769790000,
        "displayText": "[operators]审批通过",
        "optReason": "同意审批2222"
      },
      {
        "taskId": "9849482",
        "state": "history",
        "operators": [
          "老六"
        ],
        "taskName": "三级领导审批",
        "category": "APPROVAL",
        "startDate": 1621769795000,
        "completedDate": 1621769800000,
        "displayText": "[operators]审批通过",
        "optReason": "同意审批33333"
      },
      {
        "taskId": "9849482",
        "state": "pending",
        "operators": [
          "八哥"
        ],
        "taskName": "财务审核",
        "category": "FINANCE_AUDIT",
        "startDate": 1621769805000,
        "completedDate": null,
        "displayText": "[operators]待审核",
        "optReason": ""
      },
      {
        "taskId": "9849482",
        "state": "predict",
        "operators": [
          "孙久"
        ],
        "taskName": "会记出纳",
        "category": "CASHIER_SETTLE",
        "startDate": 1621769815000,
        "completedDate": null,
        "displayText": "[operators]待支付",
        "optReason": ""
      }
    ]
  },
  "success": true,
  "errorMsg": ""
}
Copyright © 杭州每刻科技有限公司 www.maycur.com all right reserved,powered by Gitbook该文件修订时间: 2024-11-25 12:04:35

results matching ""

    No results matching ""

    results matching ""

      No results matching ""