Skip to content

流程

流程保存

  • 参数说明

url: co/flow/inst

method: post

Body

字段说明类型是否必填
inst实例编号String
flow流程编号String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst"
     method:"post",
     body:{
            "flow":'1010004'
            ,"inst":'R20240004242'
            }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst"
     method:"post",
     body:{
            "flow":'1010004'
            ,"inst":'R20240004242'
            }
 }

//返回数据:
{
    "er":0
}

启动指定流程

  • 参数说明

url: co/flow/start

method: get

字段说明类型是否必填
busi业务编号int
flow流程编号String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
act
inst流程实例
task任务
flowname流程名称
flowcode流程编号
flowsrnb序列号
role角色
stat状态
form表单数据
tbar工具栏
autoSave自动保存
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/start"
     method:"get",
     params:{
            "flow":'1010004'
            ,"busi":0
            }
 }

//返回数据:
{
  "er": 0,
  "act": 7,
  "inst": "",
  "task": 0,
  "flowname": "入职申请",
  "flowcode": 1010004,
  "flowsrnb": "5E0E69A2BC8E431E820AC868788F114A",
  "role": 10023,
  "stat": 10024,
  "form": [

  ],
  "tbar": [

  ],
  "sign": "0.10023.145.10024.3.1010004",
  "autoSave": true
}
//axios请求:
 {
 	 url:"co/flow/start"
     method:"get",
     params:{
            "flow":'1010004'
            ,"busi":0
            }
 }

//返回数据:
{
  "er": 0,
  "act": 7,
  "inst": "",
  "task": 0,
  "flowname": "入职申请",
  "flowcode": 1010004,
  "flowsrnb": "5E0E69A2BC8E431E820AC868788F114A",
  "role": 10023,
  "stat": 10024,
  "form": [

  ],
  "tbar": [

  ],
  "sign": "0.10023.145.10024.3.1010004",
  "autoSave": true
}

查询流程图

  • 参数说明

url: co/flow/inst/chart

method: get

字段说明类型是否必填
busi业务编号int
flow流程编号String
inst实例编号String
task任务编号int
srnb序列号String
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
flowindex流程 Id
flowname流程名称
lines流转线数据
nodes节点数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/chart"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
        "srnb": "5E0E69A2BC8E431E820AC868788F114A"
        "flow": 1010004
    }
 }

//返回数据:
{
  "er": 0,
  "flowindex": "1010004",
  "flowname": "入职申请",
  "flowtype": "0",
  "actalertstate": "5D",
  "flowtime": "1",
  "ontimetype": "10D",
  "warntime": "3D",
  "flowconnector": "normal",
  "x": 431,
  "y": 269,
  "min_x": 38,
  "min_y": 40,
  "nodes": [

  ],
  "lines": [

  ],
  "areas": [

  ]
}
//axios请求:
 {
 	 url:"co/flow/inst/chart"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
        "srnb": "5E0E69A2BC8E431E820AC868788F114A"
        "flow": 1010004
    }
 }

//返回数据:
{
  "er": 0,
  "flowindex": "1010004",
  "flowname": "入职申请",
  "flowtype": "0",
  "actalertstate": "5D",
  "flowtime": "1",
  "ontimetype": "10D",
  "warntime": "3D",
  "flowconnector": "normal",
  "x": 431,
  "y": 269,
  "min_x": 38,
  "min_y": 40,
  "nodes": [

  ],
  "lines": [

  ],
  "areas": [

  ]
}

查询流程日志

  • 参数说明

url: co/flow/inst/log

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data流转数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/log"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
    }
 }

//返回数据:
{
  "data": [
    {
      "eTime": "",
      "id": 1,
      "limitStat": 1,
      "limitTime": "2023-06-05 18:00:00",
      "link": 9,
      "note": "",
      "rRole": 10026,
      "rRoleN": "申请人",
      "rTach": 2,
      "rTachN": "申请",
      "rTime": "2023-04-23 15:18:09",
      "rUser": 145,
      "rUserN": "wh1",
      "sign": 2,
      "signame": "",
      "task": 1
    }
  ],
  "er": 0
}
//axios请求:
 {
 	 url:"co/flow/inst/log"
     method:"get",
     params:{
        "inst": "R20240004260"
        "busi": 0
    }
 }

//返回数据:
{
  "data": [
    {
      "eTime": "",
      "id": 1,
      "limitStat": 1,
      "limitTime": "2023-06-05 18:00:00",
      "link": 9,
      "note": "",
      "rRole": 10026,
      "rRoleN": "申请人",
      "rTach": 2,
      "rTachN": "申请",
      "rTime": "2023-04-23 15:18:09",
      "rUser": 145,
      "rUserN": "wh1",
      "sign": 2,
      "signame": "",
      "task": 1
    }
  ],
  "er": 0
}

流程任务办理

  • 参数说明

url: co/flow/inst/task/tran

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
act
flowcode流程编号
flowname流程名称
flowsrnb流程序列号
form表单数据
inst实例编号
role角色
task任务编号
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/tran"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
  "act": 7,
  "er": 0,
  "flowcode": 1110001,
  "flowname": "员工入职",
  "flowsrnb": "10CEF33F6B6A450FBD18DBE72880109D",
  "form": [

  ],
  "inst": "RZ20240001466",
  "msg": "",
  "role": 10023,
  "sign": "0.10023.145.10067.3.1110001",
  "stat": 10067,
  "task": 1,
  "tbar": [
  ]
}
//axios请求:
 {
 	 url:"co/flow/inst/task/tran"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
  "act": 7,
  "er": 0,
  "flowcode": 1110001,
  "flowname": "员工入职",
  "flowsrnb": "10CEF33F6B6A450FBD18DBE72880109D",
  "form": [

  ],
  "inst": "RZ20240001466",
  "msg": "",
  "role": 10023,
  "sign": "0.10023.145.10067.3.1110001",
  "stat": 10067,
  "task": 1,
  "tbar": [
  ]
}

流程任务撤回办理

  • 参数说明

url: co/flow/inst/task/recall

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/recall"
     method:"post",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "act":7,
    "autoSave":true,
    "er":0,
    "flowcode":1010004,
    "flowname":"入职申请",
    "flowsrnb":"70DD669201BA4328A3565591B63BAFAC",
    "form":[
    ],
    "inst":"R20240004242",
    "msg":"",
    "role":10023,
    "sign":"0.10023.145.10024.3.1010004",
    "stat":10024,
    "task":1,
    "tbar":[

    ]
}
//axios请求:
 {
 	 url:"co/flow/inst/task/recall"
     method:"post",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "act":7,
    "autoSave":true,
    "er":0,
    "flowcode":1010004,
    "flowname":"入职申请",
    "flowsrnb":"70DD669201BA4328A3565591B63BAFAC",
    "form":[
    ],
    "inst":"R20240004242",
    "msg":"",
    "role":10023,
    "sign":"0.10023.145.10024.3.1010004",
    "stat":10024,
    "task":1,
    "tbar":[

    ]
}

获取流程任务发送信息

  • 参数说明

url: co/flow/inst/task/send

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data实例编号,任务编号
flow流程编号
tach下节点候选人
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/send"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
  "data": "RZ20240001466,1",
  "er": 0,
  "flow": 1110001,
  "recv": 0,
  "tach": [
  ]
}
//axios请求:
 {
 	 url:"co/flow/inst/task/send"
     method:"get",
     params:{
        "inst": "RZ20240001466"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
  "data": "RZ20240001466,1",
  "er": 0,
  "flow": 1110001,
  "recv": 0,
  "tach": [
  ]
}

获取流程任务退回信息

  • 参数说明

url: co/flow/inst/task/back

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data回退数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "_parm":""
    }
 }

//返回数据:
{
  "data": [
    {
      "children": [
        {
          "children": [
            {
              "checked": true,
              "disabled": false,
              "expanded": true,
              "id": "1-1",
              "leaf": true,
              "text": "Admin"
            }
          ],
          "expanded": true,
          "id": "10023-1",
          "leaf": false,
          "text": "申请人员"
        }
      ],
      "expanded": true,
      "id": 3,
      "leaf": false,
      "text": "申请1"
    }
  ],
  "er": 0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "_parm":""
    }
 }

//返回数据:
{
  "data": [
    {
      "children": [
        {
          "children": [
            {
              "checked": true,
              "disabled": false,
              "expanded": true,
              "id": "1-1",
              "leaf": true,
              "text": "Admin"
            }
          ],
          "expanded": true,
          "id": "10023-1",
          "leaf": false,
          "text": "申请人员"
        }
      ],
      "expanded": true,
      "id": 3,
      "leaf": false,
      "text": "申请1"
    }
  ],
  "er": 0
}

提交流程任务退回

  • 参数说明

url: co/flow/inst/task/back

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
note意见String
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
data回退数据
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "note":""
    }
 }

//返回数据:
{
  "er": 0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 2
        "note":""
    }
 }

//返回数据:
{
  "er": 0
}

获取流程任务退回信息(可跳环节)

  • 参数说明

url: co/flow/inst/task/back-jump

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}

流程任务退回(可跳环节)

  • 参数说明

url: co/flow/inst/task/back-jump

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
note发送意见String
preTask原任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/back-jump"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}

获取流程任务补件信息

  • 参数说明

url: co/flow/inst/task/mend

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "_parm":""
    }
 }

//返回数据:
{
    "data":[],
    "er":0
}

提交流程任务补件

  • 参数说明

url: co/flow/inst/task/mend

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
note发送意见String
preTask原任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/mend"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
        "note":""
        "preTask":2
    }
 }

//返回数据:
{
    "er":0
}

获取所有环节

  • 参数说明

url: co/flow/inst/tach

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/tach"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "er":0,
    "tach":[
        {
        "id":4,
        "text":"审批"
        },
        {
        "id":9,
        "text":"人事"
        },
        {
        "id":13,
        "text":"申请人通知"
        }
    ]
}
//axios请求:
 {
 	 url:"co/flow/inst/tach"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 1
    }
 }

//返回数据:
{
    "er":0,
    "tach":[
        {
        "id":4,
        "text":"审批"
        },
        {
        "id":9,
        "text":"人事"
        },
        {
        "id":13,
        "text":"申请人通知"
        }
    ]
}

获取流程清单

  • 参数说明

url: co/flow/list

method: get

字段说明类型是否必填
busi业务编号int

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/list"
     method:"get",
     params:{
        "busi": 0
    }
 }

//返回数据:
{
  "er": 0,
  "data": [
    {
      "text": "人事关系",
      "id": "0",
      "cls": "flow-ct00",
      "children": [
        {
          "text": "入职申请",
          "id": "1010004",
          "cls": "flow-ct00"
        }
      ]
    }
  ]
}
//axios请求:
 {
 	 url:"co/flow/list"
     method:"get",
     params:{
        "busi": 0
    }
 }

//返回数据:
{
  "er": 0,
  "data": [
    {
      "text": "人事关系",
      "id": "0",
      "cls": "flow-ct00",
      "children": [
        {
          "text": "入职申请",
          "id": "1010004",
          "cls": "flow-ct00"
        }
      ]
    }
  ]
}

获取环节内发送过的任务

  • 参数说明

url: co/flow/inst/task/tach/send

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
_parm附加参数String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
flow流程编号
tach环节编号
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "_parm":""
    }
 }

//返回数据:
{
    "children":[
        {
        "children":[
        ],
        "id":"10023-3",
        "leaf":false,
        "text":"申请人员"
        }
    ],
    "data":"R20240003904,5",
    "er":0,
    "flow":1100123,
    "tach":3
}
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"get",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "_parm":""
    }
 }

//返回数据:
{
    "children":[
        {
        "children":[
        ],
        "id":"10023-3",
        "leaf":false,
        "text":"申请人员"
        }
    ],
    "data":"R20240003904,5",
    "er":0,
    "flow":1100123,
    "tach":3
}

环节内发送

  • 参数说明

url: co/flow/inst/task/tach/send

method: post

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
flow流程编号String
_parm附加参数String

Body

字段说明类型是否必填
user用户 Idint
role角色 Idint
note发送意见String

return(json):

字段说明备注
er错误码0 表示未出错
msg错误信息无错误信息表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "flow":"1100123"
    }
    body:{
        "user":"145",
        "role":"1",
        "note":""
    }
 }

//返回数据:
{
    "er":0
}
//axios请求:
 {
 	 url:"co/flow/inst/task/tach/send"
     method:"post",
     params:{
        "inst": "R20240003904"
        "busi": 0
        "task": 5
        "flow":"1100123"
    }
    body:{
        "user":"145",
        "role":"1",
        "note":""
    }
 }

//返回数据:
{
    "er":0
}

获取环节内的角色

  • 参数说明

url: /co/flow/tach/role/list

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号int
tach环节编号String

return(json):

字段说明备注
er错误码0 表示未出错
data数据集
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/flow/tach/role/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":"ZZ20230000582"
        ,"task":"1"
        ,"tach":"1"
        }
 }

//返回数据:
{
    "data":[
    ],
    "er":0
}
//axios请求:
 {
 	 url:"/co/flow/tach/role/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":"ZZ20230000582"
        ,"task":"1"
        ,"tach":"1"
        }
 }

//返回数据:
{
    "data":[
    ],
    "er":0
}

获取环节内的角色中的用户

  • 参数说明

url: /co/flow/tach/role/user/list

method: get

字段说明类型是否必填
busi业务编号int
inst实例编号String
task任务编号String
tach环节编号String
role角色 Idint
_parm类型参数:角色、部门String

return(json):

字段说明备注
er错误码0 表示未出错
  • 请求示例
java
//axios请求:
 {
 	 url:"/co/flow/tach/role/user/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":RZ20240001466
        ,"task":1
        ,"tach":1
        ,"role":""
        ,"_parm":""
        }
 }

//返回数据:
{
	"er": 0,
    "data":[]
}
//axios请求:
 {
 	 url:"/co/flow/tach/role/user/list"
     method:"get"
     params:
        {
        "busi":0
        ,"inst":RZ20240001466
        ,"task":1
        ,"tach":1
        ,"role":""
        ,"_parm":""
        }
 }

//返回数据:
{
	"er": 0,
    "data":[]
}

Powerd by Vitepress.