Skip to content

补发

办理人补发、分支补发

补发

接口请求调用说明
http请求方式: POST
请求地址: http://127.0.0.1:8080/demo/horizon/workflow/rest/flow/support/action.wf
post数据说明:

{
  "accessToken": "",
  "workId": "HZ28858f8113f08b0181196387730476",
  "trackId": "HZ28858f8113f08b0181196387730477",
  "actionData": {
    "operate": "reissue",
    "operateFlag": 0,
    "operateClazz": "com.horizon.wf.action.ActionReissue",
    "nextNodes": [
      {
        "authors": {
          "Author": {
            "selectAuthor": "U_HZ28821856ef63420156ef6342a20007",
            "selectAuthorName": "用户06"
          }
        },
        "isSelect": "true",
        "nodeKey": "Node2",
        "nodeId": "Node2",
        "selectId": "Node2"
      }
    ]
  }
}

请求参数说明:

参数是否必须描述
accessToken调用接口凭证,唯一用户标识
workId流程实例id
trackId流程路径id
actionData流程操作json数据
actionData 数据参数:
参数是否必须描述
operate补发操作标识,固定值reissue
operateFlag操作标识固定值0
operateClazz补发操作类路径,固定值com.horizon.wf.action.ActionReissue
nextNodes需要设置的节点列表
nextNodes参数说明:
参数是否必须描述
authors下一节点办理人对象中key为Author,value值为Author对象参数
nodeKey节点主键
nodeId需要选择的节点id
selectId需要选择的节点id
authors中Author对象参数说明:
参数是否必须描述
selectAuthor节点已选择办理人id
selectAuthorName节点已选择办理人名称
返回结果示例:
{
  "nextNodeId": "Node2",
  "nextNodes": [
    {
      "authors": {
        "Author": {
          "authorFlowVar": "",
          "authorId": "Author",
          "authorName": "主办",
          "freeArea": "",
          "isDefUser": "false",
          "isFree": "true",
          "isSelect": "true",
          "isUser": "false",
          "selectType": "checkbox"
        }
      },
      "isDone": "false",
      "isSelect": "true",
      "isShowTabs": "false",
      "memo": "",
      "nodeGroup": "",
      "nodeId": "Node2",
      "nodeKey": "Node2",
      "nodeName": "任务2",
      "nodeStatus": "0",
      "selectId": "Node2",
      "selectName": "补发(任务2)"
    }
  ],
  "operate": "reissue",
  "operateClazz": "com.horizon.wf.action.ActionReissue",
  "operateFlag": "0",
  "operateMsg": "补发办理人成功",
  "status": 0,
  "workId": "HZ28858f8113f08b0181196387730476"
}

结果参数说明:

参数参数类型描述
nextNodeIdString当前节点id
nextNodesList需要选择的节点列表
operateString补发操作标识
operateClazzString补发操作类路径
operateFlagString操作标记 -1:显示关闭,0、1:正常提交
operateMsgString返回操作信息
statusint流程操作状态码
workIdString流程实例id
nextNodes参数说明:
参数参数类型描述
authorsMap下节点办理人map中key为Author,value为Author对象参数
isDoneString是否已经走过
isSelectString是否已选择
isShowTabsString是否显示办理人页签,主要用于运行页面办理人显示,不参与业务处理
memoString备注信息
nodeGroupString节点分组,单节点时无值,当前节点有分支节点时,值为上一节点id
nodeIdString节点id
nodeKeyString节点主键
nodeNameString节点名称
nodeStatusString节点状态,限定值
0.成功
1.选择办理人
2.选择节点
3.未找到办理人
4.未找到下一节点
selectIdString需要选择的节点id
selectNameString需要选择的节点名称
authors中Author参数说明:
参数参数类型描述
authorFlowVarString流程变量
authorIdString办理人id固定值Author
authorNameString办理人名称:主办
freeAreaString自由选择时的范围
isDefUserString流程定义列表中选择
isFreeString是否自由选择
isSelectString是否允许选择办理人
isUserString是否只允许选择人员
selectTypeString人员选择类型,限定值
radio:单选
checkbox:多选

分支补发

用户多分支提交时,补充其他分支节点办理人 流程操作

分支补发-获取分支节点

接口请求调用说明
http请求方式: POST
请求地址: http://127.0.0.1:8080/demo/horizon/workflow/rest/flow/support/action.wf
post数据说明:

{
  "accessToken": "",
  "workId": "HZ28858f8113f08b01811d39e32f070e",
  "trackId": "HZ28858f8113f08b01811d39e32f070f",
  "actionData": {
    "operate": "reissuerouter",
    "operateClazz": "com.horizon.wf.action.ActionReissueRouter"
  }
}

请求参数说明:

参数是否必须描述
accessToken调用接口凭证,唯一用户标识
workId流程实例id
trackId流程路径id
actionData流程操作json数据
actionData 数据参数:
参数是否必须描述
operate补发操作标识,固定值reissuerouter
operateClazz补发操作类路径,固定值com.horizon.wf.action.ActionReissueRouter
返回结果示例:
{
  "nextNodeId": "",
  "nextNodes": [
    {
      "authors": {},
      "isDone": "false",
      "isSelect": "false",
      "memo": "",
      "nodeGroup": "",
      "nodeId": "Node3",
      "nodeKey": "Line3",
      "nodeName": "任务3",
      "nodeStatus": "0",
      "selectId": "Line3~Node3",
      "selectName": "路由3(任务3)",
      "timeLimit": "0",
      "timeLimitType": "1"
    },
    {
      "authors": {},
      "isDone": "false",
      "isSelect": "false",
      "memo": "",
      "nodeGroup": "",
      "nodeId": "Node4",
      "nodeKey": "Line4",
      "nodeName": "任务4",
      "nodeStatus": "0",
      "selectId": "Line4~Node4",
      "selectName": "路由4(任务4)",
      "timeLimit": "0",
      "timeLimitType": "1"
    }
  ],
  "operate": "reissuerouter",
  "operateClazz": "com.horizon.wf.action.ActionReissueRouter",
  "operateFlag": "1",
  "operateMsg": "请选择补发的分支节点",
  "status": 2,
  "workId": "HZ28858f8113f08b01811d39e32f070e"
}

结果参数说明:

参数参数类型描述
nextNodeIdString下一节点id
nextNodesList需要选择的节点列表
operateString补发操作标识
operateClazzString补发操作类路径
operateFlagString操作标记 -1:显示关闭,0、1:正常提交
operateMsgString返回操作信息
workIdString流程实例id
statusint流程操作状态码
nextNodes参数说明:
参数参数类型描述
authorsMap下节点办理人map中key为Author,value为Author对象参数
isDoneString是否已经走过
isSelectString是否已选择
memoString备注信息
nodeGroupString节点分组,单节点时无值,当前节点有分支节点时,值为上一节点id
nodeIdString节点id
nodeKeyString节点主键
nodeNameString节点名称
nodeStatusString节点状态,限定值
0.成功
1.选择办理人
2.选择节点
3.未找到办理人
4.未找到下一节点
selectIdString需要选择的节点id
selectNameString需要选择的节点名称
timeLimitString节点办理时限
timeLimitTypeString办理时限类型,限定值
0:自然日
1:工作日

分支补发-设置分支节点办理人

用户多分支提交时,补充其他分支节点办理人

接口请求调用说明
http请求方式: POST
请求地址: http://127.0.0.1:8080/demo/horizon/workflow/rest/flow/support/action.wf
post数据说明:

{
  "accessToken": "",
  "workId": "HZ28858f8113f08b01811de1b6710751",
  "trackId": "HZ28858f8113f08b01811de1b6710752",
  "actionData": {
    "authorKey": "Author",
    "nextNodeId": "",
    "nextNodes": [
      {
        "authors": {
          "SecondAuthor": {
            "authorFlowVar": "",
            "authorId": "SecondAuthor",
            "authorName": "协办",
            "freeArea": "",
            "isDefUser": "false",
            "isFree": "true",
            "isSelect": "true",
            "isUser": "false",
            "selectType": "checkbox",
            "selectAuthor": "U_HZ28821856ef63420156ef6342a20003/D_HZ28821856ef63420156ef6342a20001",
            "selectAuthorName": "用户02(测试部门0)"
          },
          "Reader": {
            "authorFlowVar": "",
            "authorId": "Reader",
            "authorName": "读者",
            "freeArea": "",
            "isDefUser": "false",
            "isFree": "true",
            "isSelect": "true",
            "isUser": "false",
            "selectType": "checkbox",
            "selectAuthor": "U_HZ28821856ef63420156ef6342a20004/D_HZ28821856ef63420156ef6342a20001",
            "selectAuthorName": "用户03(测试部门0)"
          },
          "Author": {
            "authorFlowVar": "",
            "authorId": "Author",
            "authorName": "主办",
            "freeArea": "",
            "isDefUser": "false",
            "isFree": "true",
            "isSelect": "true",
            "isUser": "false",
            "selectType": "radio",
            "selectAuthor": "U_HZ28821856ef63420156ef6342a20002/D_HZ28821856ef63420156ef6342a20001",
            "selectAuthorName": "用户01(测试部门0)"
          }
        },
        "isDone": "false",
        "isSelect": "true",
        "memo": "",
        "nodeGroup": "",
        "nodeId": "Node3",
        "nodeKey": "Line3",
        "nodeName": "任务3",
        "nodeStatus": "4",
        "selectId": "Line3~Node3",
        "selectName": "路由3(任务3)",
        "timeLimit": "1",
        "timeLimitType": "0"
      },
      {
        "authors": {
          "SecondAuthor": {
            "authorFlowVar": "",
            "authorId": "SecondAuthor",
            "authorName": "协办",
            "freeArea": "",
            "isDefUser": "false",
            "isFree": "true",
            "isSelect": "true",
            "isUser": "false",
            "selectType": "checkbox",
            "selectAuthor": "U_HZ28821856ef63420156ef6342a20003/D_HZ28821856ef63420156ef6342a20001",
            "selectAuthorName": "用户02(测试部门0)"
          },
          "Reader": {
            "authorFlowVar": "",
            "authorId": "Reader",
            "authorName": "读者",
            "freeArea": "",
            "isDefUser": "false",
            "isFree": "true",
            "isSelect": "true",
            "isUser": "false",
            "selectType": "checkbox",
            "selectAuthor": "U_HZ28821856ef63420156ef6342a20004/D_HZ28821856ef63420156ef6342a20001",
            "selectAuthorName": "用户03(测试部门0)"
          },
          "Author": {
            "authorFlowVar": "",
            "authorId": "Author",
            "authorName": "主办",
            "freeArea": "",
            "isDefUser": "false",
            "isFree": "true",
            "isSelect": "true",
            "isUser": "false",
            "selectType": "radio",
            "selectAuthor": "U_HZ28821856ef63420156ef6342a20002/D_HZ28821856ef63420156ef6342a20001",
            "selectAuthorName": "用户01(测试部门0)"
          }
        },
        "isDone": "false",
        "isSelect": "true",
        "memo": "",
        "nodeGroup": "",
        "nodeId": "Node4",
        "nodeKey": "Line4",
        "nodeName": "任务4",
        "nodeStatus": "4",
        "selectId": "Line4~Node4",
        "selectName": "路由4(任务4)",
        "timeLimit": "1",
        "timeLimitType": "0"
      }
    ],
    "nodeId": "Node2",
    "nodeName": "任务2",
    "operate": "reissuerouter",
    "operateClazz": "com.horizon.wf.action.ActionReissueRouter",
    "operateFlag": 0
  }
}

请求参数说明:

参数是否必须描述
accessToken调用接口凭证,唯一用户标识
workId流程实例id
trackId流程实例路径id
actionData流程操作json数据
actionData 数据参数:
参数是否必须描述
authorKey参与者类型id
nextNodeId下一节点id
nextNodes需要设置的分支节点列表
nodeId当前节点id
nodeName当前节点name
operate分支补发操作标识,固定值reissuerouter
operateClazz分支补发操作类路径com.horizon.wf.action.ActionReissueRouter
operateFlag分支操作标识,固定值0
nextNodes参数说明:
参数是否必须描述
authors下一节点办理人对象中key为SecondAuthor
、Reader和Author,value值为Author/SecondAuthor/Reader对象参数
isDone是否已经走过
isSelect是否已选择
memo备注信息,rest提交时可忽略
nodeGroup节点分组,单节点时无值,当前节点有分支节点时,值为上一节点id,rest提交时可忽略
nodeId节点id
nodeKey节点主键
nodeName是节点名称
nodeStatus节点状态,rest提交时可忽略
selectId需要选择的节点id
selectName需要选择的节点名称
isShowTabs是否显示办理人页签,
主要用于运行页面办理人显示,
不参与业务处理rest提交时可忽略
timeLimit节点办理时限,自然数
timeLimitType办理时限类型,限定值
0:自然日
1:工作日
authors中Author/SecondAuthor/Reader对象参数说明:
参数是否必须描述
authorFlowVar流程变量
authorId办理人类型id,限定值
Author:主办
SecondAuthor:协办
Reader:读者
authorName办理人类型名称/主办/协办/读者
freeArea自由选择时的范围
isDefUser流程定义列表中选择
isFree是否自由选择
isSelect是否允许选择办理人
isUser是否只允许选择人员
selectType人员选择类型,限定值
radio:单选
checkbox:多选
selectAuthor节点已选择办理人id
没有协办/读者时,参数可以不填写
selectAuthorName节点已选择办理人名称
没有协办/读者时,参数可以不填写
authorName办理人名称,限定值:主办,协办,读者

返回结果示例:

{
  "nextNodeId": "Line3~Node3&Line4~Node4",
  "nextNodes": [
    {
      "authors": {
        "SecondAuthor": {
          "authorFlowVar": "",
          "authorId": "SecondAuthor",
          "authorName": "协办",
          "freeArea": "",
          "isDefUser": "false",
          "isFree": "true",
          "isSelect": "false",
          "isUser": "false",
          "selectAuthor": "U_HZ28821856ef63420156ef6342a20003/D_HZ28821856ef63420156ef6342a20001",
          "selectAuthorName": "用户02(测试部门0)",
          "selectType": "checkbox"
        },
        "Reader": {
          "authorFlowVar": "",
          "authorId": "Reader",
          "authorName": "读者",
          "freeArea": "",
          "isDefUser": "false",
          "isFree": "true",
          "isSelect": "false",
          "isUser": "false",
          "selectAuthor": "U_HZ28821856ef63420156ef6342a20004",
          "selectAuthorName": "用户03",
          "selectType": "checkbox"
        },
        "Author": {
          "authorFlowVar": "",
          "authorId": "Author",
          "authorName": "主办",
          "freeArea": "",
          "isDefUser": "false",
          "isFree": "true",
          "isSelect": "false",
          "isUser": "false",
          "selectAuthor": "U_HZ28821856ef63420156ef6342a20002/D_HZ28821856ef63420156ef6342a20001",
          "selectAuthorName": "用户01(测试部门0)",
          "selectType": "radio"
        }
      },
      "isDone": "false",
      "isSelect": "true",
      "memo": "",
      "nodeGroup": "",
      "nodeId": "Node3",
      "nodeKey": "Line3",
      "nodeName": "任务3",
      "nodeStatus": "0",
      "selectId": "Line3~Node3",
      "selectName": "路由3(任务3)",
      "timeLimit": "1",
      "timeLimitType": "0"
    },
    {
      "authors": {
        "SecondAuthor": {
          "authorFlowVar": "",
          "authorId": "SecondAuthor",
          "authorName": "协办",
          "freeArea": "",
          "isDefUser": "false",
          "isFree": "true",
          "isSelect": "false",
          "isUser": "false",
          "selectAuthor": "U_HZ28821856ef63420156ef6342a20003/D_HZ28821856ef63420156ef6342a20001",
          "selectAuthorName": "用户02(测试部门0)",
          "selectType": "checkbox"
        },
        "Reader": {
          "authorFlowVar": "",
          "authorId": "Reader",
          "authorName": "读者",
          "freeArea": "",
          "isDefUser": "false",
          "isFree": "true",
          "isSelect": "false",
          "isUser": "false",
          "selectAuthor": "U_HZ28821856ef63420156ef6342a20004",
          "selectAuthorName": "用户03",
          "selectType": "checkbox"
        },
        "Author": {
          "authorFlowVar": "",
          "authorId": "Author",
          "authorName": "主办",
          "freeArea": "",
          "isDefUser": "false",
          "isFree": "true",
          "isSelect": "false",
          "isUser": "false",
          "selectAuthor": "U_HZ28821856ef63420156ef6342a20002/D_HZ28821856ef63420156ef6342a20001",
          "selectAuthorName": "用户01(测试部门0)",
          "selectType": "radio"
        }
      },
      "isDone": "false",
      "isSelect": "true",
      "memo": "",
      "nodeGroup": "",
      "nodeId": "Node4",
      "nodeKey": "Line4",
      "nodeName": "任务4",
      "nodeStatus": "0",
      "selectId": "Line4~Node4",
      "selectName": "路由4(任务4)",
      "timeLimit": "1",
      "timeLimitType": "0"
    }
  ],
  "operate": "reissuerouter",
  "operateClazz": "com.horizon.wf.action.ActionReissueRouter",
  "operateFlag": "0",
  "operateMsg": "补发分支成功",
  "operateStatus": "success",
  "reOpen": "false",
  "status": 0,
  "trackId": "HZ28858f8113f08b01811de5c2290787;HZ28858f8113f08b01811de5c2290788",
  "workId": "HZ28858f8113f08b01811de1b6710751"
}

结果参数说明:

参数参数类型描述
nextNodeIdString下一节点id
nextNodesList需要选择的节点列表
operateString补发操作标识
operateClazzString补发操作类路径
operateFlagString操作标记 -1:显示关闭,0、1:正常提交
operateMsgString流程操作返回信息
operateStatusString返回操作结果
reOpenString是否重新打开,可忽略
statusint流程操作状态码
workIdString流程实例id
trackIdString流程实例路径id
nextNodes参数说明:
参数参数类型描述
authorsMap下节点办理人map中key为Author/SecondAuthor/Reader/,value为/SecondAuthor/Reader/对象参数
isDoneString是否已经走过
isSelectString是否已选择
memoString备注信息
nodeGroupString节点分组,单节点时无值,当前节点有分支节点时,值为上一节点id
nodeIdString节点id
nodeKeyString节点主键
nodeNameString节点名称
nodeStatusString节点状态,限定值
0.成功
1.选择办理人
2.选择节点
3.未找到办理人
4.未找到下一节点
selectIdString需要选择的节点id
selectNameString需要选择的节点名称
timeLimitString节点办理时限
timeLimitTypeString办理时限类型,限定值
0:自然日
1:工作日
authors中Author/SecondAuthor/Reader对象参数说明:
参数参数类型描述
authorFlowVarString流程变量
authorIdString办理人类型id,限定值
Author:主办
SecondAuthor:协办
Reader:读者
authorNameString办理人类型名称/主办/协办/读者
freeAreaString自由选择时的范围
isDefUserString流程定义列表中选择
isFreeString是否自由选择
isSelectString是否允许选择办理人
isUserString是否只允许选择人员
selectAuthorString节点已选择办理人id
没有协办/读者时,参数可以不填写
selectAuthorNameString节点已选择办理人名称
没有协办/读者时,参数可以不填写
selectTypeString人员选择类型,限定值
radio:单选
checkbox:多选