# 流程中心接口文档

# 流程提交

# 定义

# 流程业务定义配置实体(WorkFlowBusinessConfigSelectModel)

字段名称 类型 字段 描述
主键 String id
业务类型编码 String businessTypeCode 对应业务系统类型编码
流程定义名称 String processDefName
流程定义内容 String processDefModel
流程实例名称 String processInstName
流程定义描述 String processInstDesc

# 流程提交实体(WFSubmitDTO)

字段名称 类型 字段 描述
业务主键 String businessId 业务表单主键
业务编码 String businessCode 对应业务系统编码
业务类型编码 String businessTypeCode 对应业务系统类型编码
申请部门主键 String approvalDeptId
申请人主键 String approvalPerson
申请人 String level
申请部门 String approvalDept
业务页面参数 String businessPageParam
流程配置主键 String workFlowConfigId 流程定义配置Id
系统id String systemId
业务属性 String businessVariable

# 流程提交返回实体(ResultModel)

字段名称 类型 字段 描述
信息 String message
状态 String status 0:成功 1:失败
结果 String result

# 接口

# 获取适用的流程定义

  • 请求路径

    /wf/business/configs/currentorg/{businessTypCode}

  • 请求方法

    GET

  • 接口参数

    名称 类型 字段名 描述
    流程业务Code String businessTypCode
  • 返回信息

    名称 类型 字段名 描述
    流程业务定义配置实体 List <WorkFlowBusinessConfigSelectModel>
  • 请求范例

    http://demo.glink.glkyun.com/api/workflow-processer/wf/business/configs/currentorg/FLOW_LEAVE_DECLARE
    
    1
  • 返回结果

    {
        "uuid": "a30b42a9-a3dc-4b16-9548-4c330e0a8e3e",
        "code": "000000",
        "msg": "成功",
        "data": [
            {
                "id": "1509428683659034624",
                "businessTypeCode": null,
                "processDefName": "com.glodon.nepoch.gldgs.qjlc.qjlc002",
                "processDefModel": "{\"lineList\":[{\"name\":\"连线1\",\"from\":\"START\",\"id\":\"line1\",\"to\":\"FIRSTNODE\",\"status\":0},{\"conditionExpression\":\"leaveDays<\\\"2\\\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":false,\\\"leftValue\\\":\\\"leaveDays\\\",\\\"compare\\\":\\\"<\\\",\\\"rightValue\\\":\\\"2\\\"}\",\"name\":\"起草-审批人\",\"from\":\"FIRSTNODE\",\"id\":\"FIRSTNODE-node9zgmypbttm\",\"to\":\"node9zgmypbttm\",\"status\":0},{\"conditionExpression\":\"leaveDays>=\\\"2\\\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":false,\\\"leftValue\\\":\\\"leaveDays\\\",\\\"compare\\\":\\\">=\\\",\\\"rightValue\\\":\\\"2\\\"}\",\"name\":\"起草-审批人\",\"from\":\"FIRSTNODE\",\"id\":\"FIRSTNODE-node9trpfmp4vh\",\"to\":\"node9trpfmp4vh\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"审批人-审批人\",\"from\":\"node9zgmypbttm\",\"id\":\"node9zgmypbttm-node5fdhfui38\",\"to\":\"node5fdhfui38\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"审批人-审批人\",\"from\":\"node9trpfmp4vh\",\"id\":\"node9trpfmp4vh-node5fdhfui38\",\"to\":\"node5fdhfui38\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"审批人-结束\",\"from\":\"node5fdhfui38\",\"id\":\"node5fdhfui38-ENDNODE\",\"to\":\"ENDNODE\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"起草-审批人\",\"from\":\"FIRSTNODE\",\"id\":\"FIRSTNODE-nodeeyyctqwsnr\",\"to\":\"nodeeyyctqwsnr\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"审批人C-审批人D\",\"from\":\"nodeeyyctqwsnr\",\"id\":\"nodeeyyctqwsnr-node5fdhfui38\",\"to\":\"node5fdhfui38\",\"status\":0}],\"name\":\"请假流程002\",\"variableList\":[{\"value\":\"请假天数\",\"key\":\"leaveDays\"},{\"value\":\"张三\",\"key\":\"leavePerson\"}],\"id\":\"com.glodon.nepoch.gldgs.qjlc.qjlc002\",\"nodeList\":[{\"candidates\":[],\"ico\":\"iconfont iconkaishi\",\"starter\":\"false\",\"top\":\"220px\",\"left\":\"130px\",\"name\":\"开始\",\"show\":\"true\",\"carbonCopyCandidates\":[],\"id\":\"START\",\"type\":\"START_EVENT\",\"status\":0},{\"candidates\":[],\"ico\":\"iconfont iconliuchengjiedian-v2\",\"starter\":\"true\",\"top\":\"220px\",\"left\":\"340px\",\"name\":\"起草\",\"show\":\"true\",\"carbonCopyCandidates\":[],\"id\":\"FIRSTNODE\",\"type\":\"USER_TASK\",\"status\":0},{\"candidates\":[],\"ico\":\"iconfont iconjieshu\",\"starter\":\"false\",\"top\":\"210px\",\"left\":\"920px\",\"name\":\"结束\",\"show\":\"true\",\"carbonCopyCandidates\":[],\"id\":\"ENDNODE\",\"type\":\"END_EVENT\",\"status\":0},{\"starter\":\"false\",\"show\":\"true\",\"type\":\"USER_TASK\",\"isSequential\":0,\"candidates\":[{\"name\":\"陈斌山\",\"id\":\"1509769983109382144\",\"type\":\"person\",\"order\":1}],\"ico\":\"iconfont iconliuchengjiedian-v2\",\"top\":\"140px\",\"left\":\"550px\",\"carbonCopy\":0,\"name\":\"审批人A\",\"carbonCopyCandidates\":[],\"id\":\"node9zgmypbttm\",\"status\":0},{\"starter\":\"false\",\"show\":\"true\",\"type\":\"USER_TASK\",\"isSequential\":0,\"candidates\":[{\"name\":\"马大帅\",\"id\":\"1478609839252324352\",\"type\":\"person\",\"order\":1}],\"ico\":\"iconfont iconliuchengjiedian-v2\",\"top\":\"280px\",\"left\":\"550px\",\"carbonCopy\":0,\"name\":\"审批人B\",\"carbonCopyCandidates\":[],\"id\":\"node9trpfmp4vh\",\"status\":0},{\"starter\":\"true\",\"show\":\"true\",\"type\":\"USER_TASK\",\"isSequential\":0,\"candidates\":[],\"ico\":\"iconfont iconliuchengjiedian-v2\",\"top\":\"210px\",\"left\":\"740px\",\"carbonCopy\":0,\"name\":\"审批人D\",\"carbonCopyCandidates\":[],\"id\":\"node5fdhfui38\",\"status\":0},{\"starter\":\"false\",\"show\":\"true\",\"type\":\"USER_TASK\",\"isSequential\":0,\"candidates\":[{\"name\":\"刘磊磊\",\"id\":\"31390\",\"type\":\"person\",\"order\":1}],\"ico\":\"iconfont iconliuchengjiedian-v2\",\"top\":\"380px\",\"left\":\"550px\",\"carbonCopy\":0,\"name\":\"审批人C\",\"carbonCopyCandidates\":[],\"id\":\"nodeeyyctqwsnr\",\"status\":0}]}",
                "processInstName": "请假流程002",
                "processInstDesc": null
            },
            {
                "id": "1519225431722049536",
                "businessTypeCode": null,
                "processDefName": "com.glodon.nepoch.gldgs.qjlc.csgwz",
                "processDefModel": "{\"lineList\":[{\"name\":\"连线1\",\"from\":\"START\",\"id\":\"line1\",\"to\":\"FIRSTNODE\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"起草-一号审批人\",\"from\":\"FIRSTNODE\",\"id\":\"FIRSTNODE-node2eem2h8of2\",\"to\":\"node2eem2h8of2\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"一号审批人-审批岗位组\",\"from\":\"node2eem2h8of2\",\"id\":\"node2eem2h8of2-nodepq47cyse4g\",\"to\":\"nodepq47cyse4g\",\"status\":0},{\"conditionExpression\":\"\",\"conditionExpressionForm\":\"{\\\"defaultCondition\\\":true,\\\"leftValue\\\":\\\"\\\",\\\"compare\\\":\\\"\\\",\\\"rightValue\\\":\\\"\\\"}\",\"name\":\"审批岗位组-结束\",\"from\":\"nodepq47cyse4g\",\"id\":\"nodepq47cyse4g-ENDNODE\",\"to\":\"ENDNODE\",\"status\":0}],\"name\":\"测试岗位组\",\"variableList\":[{\"value\":\"请假天数\",\"key\":\"leaveDays\"},{\"value\":\"张三\",\"key\":\"leavePerson\"}],\"id\":\"com.glodon.nepoch.gldgs.qjlc.csgwz\",\"nodeList\":[{\"ico\":\"iconfont iconkaishi\",\"starter\":\"false\",\"top\":\"220px\",\"left\":\"130px\",\"name\":\"开始\",\"show\":\"true\",\"id\":\"START\",\"type\":\"START_EVENT\",\"status\":0},{\"ico\":\"iconfont iconliuchengjiedian-v2\",\"starter\":\"true\",\"top\":\"220px\",\"left\":\"340px\",\"name\":\"起草\",\"show\":\"true\",\"id\":\"FIRSTNODE\",\"type\":\"USER_TASK\",\"status\":0},{\"ico\":\"iconfont iconjieshu\",\"starter\":\"false\",\"top\":\"220px\",\"left\":\"970px\",\"name\":\"结束\",\"show\":\"true\",\"id\":\"ENDNODE\",\"type\":\"END_EVENT\",\"status\":0},{\"starter\":\"false\",\"show\":\"true\",\"type\":\"USER_TASK\",\"isSequential\":0,\"candidates\":[{\"name\":\"邓鹏飞\",\"id\":\"1468024982545645568\",\"type\":\"person\",\"order\":1}],\"ico\":\"iconfont iconliuchengjiedian-v2\",\"top\":\"220px\",\"left\":\"530px\",\"carbonCopy\":0,\"name\":\"一号审批人\",\"carbonCopyCandidates\":[],\"id\":\"node2eem2h8of2\",\"status\":0},{\"starter\":\"false\",\"show\":\"true\",\"type\":\"USER_TASK\",\"isSequential\":0,\"candidates\":[{\"name\":\"审批岗位组\",\"id\":\"1493423763017449472\",\"type\":\"postGroup\",\"order\":1}],\"ico\":\"iconfont iconliuchengjiedian-v2\",\"top\":\"220px\",\"left\":\"750px\",\"carbonCopy\":0,\"name\":\"审批岗位组\",\"carbonCopyCandidates\":[],\"id\":\"nodepq47cyse4g\",\"status\":0}]}",
                "processInstName": "测试岗位组",
                "processInstDesc": null
            }
        ],
        "ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24

# 流程提交

  • 请求路径

    /process/instance

  • 请求方法

    POST

  • 接口参数

    名称 类型 字段名 描述
    流程提交实体 WFSubmitDTO submitDTO
  • 返回信息

    名称 类型 字段名 描述
    流程提交返回实体 ResultModel
  • 请求范例

    http://gosp.glink.glkyun.com/api/workflow-processer/instance
    
    1
    {
        "id": "1519954140548579328",
        "leaveNo": "1519954140540190720",
        "leaveUser": "小邓",
        "leaveTime": 1651161600000,
        "department": "测试部门",
        "leaveType": 1,
        "startTime": 1651680000000,
        "stopTime": 1651852799000,
        "leaveDays": "2.00",
        "application": "请假啦",
        "billStatus": 0,
        "updateTime": 1651220281000,
        "remark": null,
        "orgId": "2",
        "orgName": "广联达公司",
        "userId": "1468024982545645568",
        "userName": "邓鹏飞",
        "businessCode": "FLOW_LEAVE_DECLARE",
        "businessId": "1519954140548579328",
        "businessPageParam": "{\"id\":\"1519954140548579328\",\"leaveNo\":\"1519954140540190720\",\"leaveUser\":\"小邓\",\"leaveTime\":1651161600000,\"department\":\"测试部门\",\"leaveType\":1,\"startTime\":1651680000000,\"stopTime\":1651852799000,\"leaveDays\":\"2.00\",\"application\":\"请假啦\",\"billStatus\":0,\"updateTime\":1651220281000,\"remark\":null,\"orgId\":\"2\",\"orgName\":\"广联达公司\",\"userId\":\"1468024982545645568\",\"userName\":\"邓鹏飞\",\"businessCode\":\"FLOW_LEAVE_DECLARE\",\"businessId\":\"1519954140548579328\",\"businessPageParam\":null,\"businessExtendData\":\"2.00天\",\"businessTypeCode\":\"FLOW_LEAVE_DECLARE\",\"workFlowConfigId\":\"1519225431722049536\"}",
        "businessExtendData": "2.00天",
        "businessTypeCode": "FLOW_LEAVE_DECLARE",
        "workFlowConfigId": "1519225431722049536"
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
  • 返回结果

    {
        "uuid": "c8a8bdad-762d-429a-9179-590b35d92198",
        "code": "000000",
        "msg": "成功",
        "data": {
            "message": null,
            "status": "0",
            "result": "{\"isPass\":0}"
        },
        "ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

# 流程审批

# 定义

# 审批节点信息实体(NextTaskInfoVO)

字段名称 类型 字段 描述
主键(节点Id) String taskId
节点名称 String taskName
处理人 List <WFApprovalPeopleVO> users

# 审批人实体(WFApprovalPeopleVO)

字段名称 类型 字段 描述
主键 String id
名称 String name
处理人类型 String type

# 审批同意实体(WFApprovalOkModel)

字段名称 类型 字段 描述
审批意见 String approvalMessage
工作项id String workItemId
活动实例主键 String activityInstID
流程实例id String processInstId
是否同意 int isPass 0 驳回 1 审批通过
工作项名称 String workItemName
下一步节点信息 List <NextTaskInfoVO> nextTaskInfoVOList

# 审批不同意实体(WFApprovalBackModel)

字段名称 类型 字段 描述
审批意见 String approvalMessage
工作项id String workItemId
活动实例主键 String activityInstID 流程节点Id
流程实例id String processInstId 流程引擎中流程实例主键
是否同意 int isPass 0 驳回 1 审批通过
工作项名称 String workItemName 流程节点名称
回退类型 int backType 0 回退到发起人 1 回退上一节点

# 审批记录实体(WFApprovalRecordVO)

主键 类型 字段 描述
主键 String id
单据编号 String code
组织主键 String orgId
流程实例id String processInstId
业务名称 String approvalMessage
工作项id String workItemId
业务编码 String businessCode
业务主键 String businessId
处理结果 Integer isAgree 1 同意 0 不同意
处理人 String workPerson
处理人主键 Integer workPersonId
处理时间 Long workTime
处理节点 String workItemName
活动实例主键 String activityInstId
业务类型编码 String businessTypeCode

# 分页模型(PageModel)

名称 类型 字段 描述
分页大小 int pageSize 每页显示记录数
当前页 int currentPage 当前页码

# 流程定义实体(ProcessDefineDTO)

字段名称 类型 字段 描述
审批意见 String id
工作项id String name
活动实例主键 String currentVerison
流程实例id String description
是否同意 String tenantId
工作项名称 List <FlowNodeDTO> nodeList
回退类型 List <FlowLineDTO> lineList
回退类型 JSONArray variableList

# 流程节点(FlowNodeDTO)

字段名称 类型 字段 描述
主键Id String id
节点名称 String name
节点类型 String type
是否发起人 String starter true-是 false-否
显示 String show
左边距 String left
顶部 String top
节点状态 Integer status
显示图标 String ico
是否抄送 Integer carbonCopy 0 否,1 是
会签人顺序 Integer isSequential 会签顺序执行,0 否 1 是
节点审批人 List <CandidateDTO> candidates
节点抄送人 List <CandidateDTO> carbonCopyCandidates

# 审批人(CandidateDTO)

字段名称 类型 字段 描述
主键Id String id 用户/岗位/岗位组Id
名称 String name
审批人类型 String type person:人 post:岗位 postGroup:岗位组 otherType:默认
顺序 int order true-是 false-否

# 流程连线(FlowLineDTO)

字段名称 类型 字段 描述
主键Id String id
名称 String name
线条件表达式 String conditionExpression
线条件 String conditionExpressionForm
流出节点Id String from
流入节点Id String to
连线状态 Integer status

# 接口

# 审批同意

  • 请求路径

    /approval/ok

  • 请求方法

    POST

  • 接口参数

    名称 类型 字段名 描述
    审批同意实体 WFApprovalOkModel approvalModel 必传
  • 返回信息

    名称 类型 字段名 描述
    Boolean
  • 请求范例

    http://demo.glink.glkyun.com/api/workflow-processer/approval/ok
    
    1
    {
        "approvalMessage": "同意",
        "processInstId": "6d196901-c639-11ec-8734-5254004e630d",
        "workItemId": "ab4c431a-c639-11ec-8734-5254004e630d",
        "isPass": 1,
        "activityInstID": "nodepq47cyse4g",
        "nextTaskInfoVOList": [
            {
                "isTrusted": true
            }
        ]
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
  • 返回结果

    {
        "uuid": "e97d2a86-f48b-43c8-8d73-18e4b56c31a8",
        "code": "000000",
        "msg": "成功",
        "data": true,
        "ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7

# 审批不同意

  • 请求路径

    /approval/back

  • 请求方法

    POST

  • 接口参数

    名称 类型 字段名 描述
    审批不同意实体 WFApprovalBackModel approvalBackModel 必传
  • 返回信息

    名称 类型 字段名 描述
    Boolean
  • 请求范例-退回上一级

    http://gosp.glink.glkyun.com/api/workflow-processer/approval/back
    
    1
    {
        "approvalMessage": "退回上一级",
        "processInstId": "e9af2804-c601-11ec-8734-5254004e630d",
        "workItemId": "26d59b2d-c602-11ec-8734-5254004e630d",
        "isPass": 0,
        "backType": 1,
        "activityInstID": "nodepq47cyse4g"
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
  • 返回结果

    {
        "uuid": "ba63791e-3144-4fee-bb7a-d5bca3fc8bef",
        "code": "000000",
        "msg": "成功",
        "data": true,
        "ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7
  • 请求范例-退回发起人

    http://gosp.glink.glkyun.com/api/workflow-processer/approval/back
    
    1
    {
        "approvalMessage": "退回发起人",
        "processInstId": "6f7ea368-c601-11ec-8734-5254004e630d",
        "workItemId": "7c5a1cb0-c601-11ec-8734-5254004e630d",
        "isPass": 0,
        "backType": 0,
        "activityInstID": "nodepq47cyse4g"
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
  • 返回结果

    {
        "uuid": "c852ae91-3414-40b6-a78e-353a53a51bd5",
        "code": "000000",
        "msg": "成功",
        "data": true,
        "ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7

# 流程记录

  • 请求路径

    /approval/records/{businessId}/{processInstId}

  • 请求方法

    GET

  • 接口参数

    名称 类型 字段名 描述
    业务项Id Long businessId 必传
    流程实例Id String processInstId 必传
    分页模型 PageModel pageModel 必传
  • 返回信息

    名称 类型 字段名 描述
    审批记录实体 NepochPage <WFApprovalRecordVO>
  • 请求范例

    http://demo.glink.glkyun.com/api/workflow-processer/approval/records/1519327945503031297/6d196901-c639-11ec-8734-5254004e630d?currentPage=1&pageSize=10&processInstId=6d196901-c639-11ec-8734-5254004e630d&businessId=1519327945503031297
    
    1
  • 返回结果

    {
        "uuid": "299cbefe-63fe-4060-beae-de3814656d45",
        "code": "000000",
        "msg": "成功",
        "data": {
            "records": [
                {
                    "id": "1519328216471846912",
                    "code": null,
                    "orgId": null,
                    "processInstId": "6d196901-c639-11ec-8734-5254004e630d",
                    "approvalMessage": null,
                    "workItemId": null,
                    "businessCode": "FLOW_LEAVE_DECLARE",
                    "businessId": "1519327945503031297",
                    "isAgree": 1,
                    "workPerson": "马大帅",
                    "workPersonId": "1478609839252324352",
                    "workTime": 1651071049000,
                    "workItemName": "起草",
                    "activityInstId": "FIRSTNODE",
                    "businessTypeCode": "FLOW_LEAVE_DECLARE",
                    "userAutograph": null
                },
                {
                    "id": "1519328653157613568",
                    "code": null,
                    "orgId": null,
                    "processInstId": "6d196901-c639-11ec-8734-5254004e630d",
                    "approvalMessage": "tyi ",
                    "workItemId": "6d3f8eb0-c639-11ec-8734-5254004e630d",
                    "businessCode": "FLOW_LEAVE_DECLARE",
                    "businessId": "1519327945503031297",
                    "isAgree": 1,
                    "workPerson": "邓鹏飞",
                    "workPersonId": "1468024982545645568",
                    "workTime": 1651071153000,
                    "workItemName": "一号审批人",
                    "activityInstId": "node2eem2h8of2",
                    "businessTypeCode": "FLOW_LEAVE_DECLARE",
                    "userAutograph": null
                }
            ],
            "total": 2,
            "size": 10,
            "current": 1,
            "orders": [
                
            ],
            "searchCount": true,
            "pages": 1
        },
        "ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54

# 流程轨迹

  • 请求路径

    /api/workflow-editor/v2/manager/historic/process/instances/{processInstanceId}/tasks

  • 请求方法

    GET

  • 接口参数

    名称 类型 字段名 描述
    流程实例Id String processInstId
  • 返回信息

    名称 类型 字段名 描述
    流程状态响应实体 ProcessDefineDTO
  • 请求范例

    http://gosp.glink.glkyun.com/api/workflow-editor/v2/manager/historic/process/instances/6d196901-c639-11ec-8734-5254004e630d/tasks
    
    1
  • 返回结果

    {
        "uuid": "bfbcc30d-b527-47bc-9ef5-8c8fb71b6bc9",
        "code": "000000",
        "msg": "成功",
        "data": {
            "id": "com.glodon.nepoch.gldgs.qjlc.csgwz",
            "name": "测试岗位组",
            "currentVerison": null,
            "description": null,
            "tenantId": null,
            "nodeList": [
                {
                    "id": "START",
                    "name": "开始",
                    "type": "START_EVENT",
                    "starter": "false",
                    "show": "true",
                    "left": "130px",
                    "top": "220px",
                    "status": 1,
                    "candidates": null,
                    "ico": "iconfont iconkaishi",
                    "carbonCopy": null,
                    "carbonCopyCandidates": null,
                    "isSequential": null
                },
                {
                    "id": "FIRSTNODE",
                    "name": "起草",
                    "type": "USER_TASK",
                    "starter": "true",
                    "show": "true",
                    "left": "340px",
                    "top": "220px",
                    "status": 1,
                    "candidates": null,
                    "ico": "iconfont iconliuchengjiedian-v2",
                    "carbonCopy": null,
                    "carbonCopyCandidates": null,
                    "isSequential": null
                },
                {
                    "id": "ENDNODE",
                    "name": "结束",
                    "type": "END_EVENT",
                    "starter": "false",
                    "show": "true",
                    "left": "970px",
                    "top": "220px",
                    "status": 0,
                    "candidates": null,
                    "ico": "iconfont iconjieshu",
                    "carbonCopy": null,
                    "carbonCopyCandidates": null,
                    "isSequential": null
                },
                {
                    "id": "node2eem2h8of2",
                    "name": "一号审批人",
                    "type": "USER_TASK",
                    "starter": "false",
                    "show": "true",
                    "left": "530px",
                    "top": "220px",
                    "status": 1,
                    "candidates": [
                        {
                            "id": "1468024982545645568",
                            "name": "邓鹏飞",
                            "type": "person",
                            "order": 1
                        }
                    ],
                    "ico": "iconfont iconliuchengjiedian-v2",
                    "carbonCopy": 0,
                    "carbonCopyCandidates": [
                        
                    ],
                    "isSequential": 0
                },
                {
                    "id": "nodepq47cyse4g",
                    "name": "审批岗位组",
                    "type": "USER_TASK",
                    "starter": "false",
                    "show": "true",
                    "left": "750px",
                    "top": "220px",
                    "status": 3,
                    "candidates": [
                        {
                            "id": "1493423763017449472",
                            "name": "审批岗位组",
                            "type": "postGroup",
                            "order": 1
                        }
                    ],
                    "ico": "iconfont iconliuchengjiedian-v2",
                    "carbonCopy": 0,
                    "carbonCopyCandidates": [
                        
                    ],
                    "isSequential": 0
                }
            ],
            "lineList": [
                {
                    "id": "line1",
                    "name": "连线1",
                    "conditionExpression": null,
                    "conditionExpressionForm": null,
                    "from": "START",
                    "to": "FIRSTNODE",
                    "status": 1
                },
                {
                    "id": "FIRSTNODE-node2eem2h8of2",
                    "name": "起草-一号审批人",
                    "conditionExpression": "",
                    "conditionExpressionForm": "{\"defaultCondition\":true,\"leftValue\":\"\",\"compare\":\"\",\"rightValue\":\"\"}",
                    "from": "FIRSTNODE",
                    "to": "node2eem2h8of2",
                    "status": 1
                },
                {
                    "id": "node2eem2h8of2-nodepq47cyse4g",
                    "name": "一号审批人-审批岗位组",
                    "conditionExpression": "",
                    "conditionExpressionForm": "{\"defaultCondition\":true,\"leftValue\":\"\",\"compare\":\"\",\"rightValue\":\"\"}",
                    "from": "node2eem2h8of2",
                    "to": "nodepq47cyse4g",
                    "status": 1
                },
                {
                    "id": "nodepq47cyse4g-ENDNODE",
                    "name": "审批岗位组-结束",
                    "conditionExpression": "",
                    "conditionExpressionForm": "{\"defaultCondition\":true,\"leftValue\":\"\",\"compare\":\"\",\"rightValue\":\"\"}",
                    "from": "nodepq47cyse4g",
                    "to": "ENDNODE",
                    "status": 0
                }
            ],
            "variableList": [
                {
                    "value": "请假天数",
                    "key": "leaveDays"
                },
                {
                    "value": "张三",
                    "key": "leavePerson"
                }
            ]
        },
        "ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156

# 状态查询

# 定义

# 业务状态通知实体(BusinessNotifyModel)

字段名称 类型 字段名 描述
主键 String id
流程状态 Integer state 1:已提交
2:审批中
3:审批通过
业务编码 String buseinessCode
应用ID String systemId

# 流程状态响应实体(ProcessInstState)

名称 类型 字段名 描述
流程状态 Integer state G流程
0:未提交
1:已提交
2:运行
3:完成
普元
1:未启动
2:运行
7:完成
8:中止
业务状态 Integer businessState 1:已提交
2:审批中
3:审批通过

# 接口

# 获取流程状态

  • 请求路径

    /process/instance/{processInstId}/state

  • 请求方法

    GET

  • 接口参数

    名称 类型 字段名 描述
    流程实例Id String processInstId
  • 返回信息

    名称 类型 字段名 描述
    流程状态响应实体 ProcessInstState
  • 请求范例

    http://gosp.glink.glkyun.com/api/workflow-processer/process/instance/xxx/state
    
    1
  • 返回结果

    {
    	"uuid": "25a0f180-c5e6-45cd-ba40-e2cd3064588d",
    	"code": "000000",
    	"msg": "成功",
    	"data": {
    		"state": 2,
    		"businessState": 2
    	},
    	"ok": true
    }
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10