01 获取审批模板
GET
/open-api/standard/v1/queryProcessDefinition
工作流
请求参数
Query 参数
category
string
流程类别
示例值:
PORTAL_PUBLISHMENT
Header 参数
Access-token
string
可选
示例值:
a562a388-6989-4181-8de9-d46aef6a7964
Token-type
string
可选
示例值:
bearer
x-asm-prefer-tag
string
可选
示例值:
version-env-06
Content-Type
string
可选
示例值:
application/json
x-user-id
string
可选
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open-auth.tezign.com/open-api/standard/v1/queryProcessDefinition'
返回响应
🟢200成功
application/json
Body
code
string
必需
message
string
必需
result
array [object {5}]
必需
id
integer
流程定义Id
category
string
流程类别
name
string
名称
nodes
array [object {4}]
节点配置
sequences
array [object {2}]
节点序列
示例
{
"code": "0",
"message": "success",
"result": [
{
"id": 1,
"category": "PORTAL_PUBLISHMENT",
"name": "试一下6",
"nodes": [
{
"key": "initiator",
"name": "发起",
"category": "INITIATOR",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
},
{
"key": "task1",
"name": "审批1 单签",
"category": "APPROVAL",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
},
{
"key": "task2",
"name": "审批2 单签",
"category": "APPROVAL",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
},
{
"key": "portal_publish",
"name": "分发",
"category": "PORTAL_PUBLISH",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
}
],
"sequences": [
{
"from": "initiator",
"to": "task1"
},
{
"from": "task1",
"to": "task2"
},
{
"from": "task2",
"to": "portal_publish"
}
]
},
{
"id": 3,
"category": "PORTAL_PUBLISHMENT",
"name": "试一下",
"nodes": [
{
"key": "initiator",
"name": "发起",
"category": "INITIATOR",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
},
{
"key": "task1",
"name": "审批1 单签",
"category": "APPROVAL",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
},
{
"key": "task2",
"name": "审批2 单签",
"category": "APPROVAL",
"config": {
"isTerminable": true,
"multipleMode": "OR"
}
},
{
"key": "portal_publish",
"name": "分发",
"category": "PORTAL_PUBLISH",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
}
],
"sequences": [
{
"from": "initiator",
"to": "task1"
},
{
"from": "task1",
"to": "task2"
},
{
"from": "task2",
"to": "portal_publish"
}
]
},
{
"id": 7,
"category": "PORTAL_PUBLISHMENT",
"name": "测试升级分发看板审批1",
"nodes": [
{
"key": "initiator",
"name": "发起",
"category": "INITIATOR",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
},
{
"key": "task1",
"name": "审批1 或签",
"category": "APPROVAL",
"config": {
"isTerminable": true,
"multipleMode": "OR"
}
},
{
"key": "portal_publish",
"name": "分发",
"category": "PORTAL_PUBLISH",
"config": {
"isTerminable": true,
"multipleMode": "SINGLE"
}
}
],
"sequences": [
{
"from": "initiator",
"to": "task1"
},
{
"from": "task1",
"to": "portal_publish"
}
]
}
]
}
修改于 2023-09-07 07:16:23