- BASE
- 业务对象
- DEMO
- 系统配置
- 流程模块
- 流程定义
- 流程实例
- 流程任务
- 流程代理
- 任务抄送
- 业务矩阵
- 流程统计
- 我的相关
- AUTH模块
- CMS模块
- ORG模块
- 数据权限
- 流程服务接口
- 应用市场模块
- 应用广场
- 钉钉全量同步用户信息GET
- 钉钉同步单人用户信息GET
- 测试GET
- testPOST
- 测试租户保存GET
- 222POST
流程启动测试
开发中
POST
/ab-bpm/bpm/instance/startTest
请求参数
Header 参数
Authorization
string
可选
默认值:
Bearer{{Auth_Token}}
Body 参数application/json
defId
string
流程id
actionName
string
action name
presetDestination
string
指定下一节点key
opinion
string
审批意见
extendConf
object
额外参数配置
data
object
表单数据
示例
{
"defId": "string",
"actionName": "string",
"presetDestination": "string",
"opinion": "string",
"extendConf": {},
"data": {}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/ab-bpm/bpm/instance/startTest' \
--header 'Authorization: Bearer{{Auth_Token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
isOk
boolean
必需
code
string
必需
message
string
必需
data
object
必需
bpmInstance
object
实例信息
approvalHistoryList
array [object {21}]
审批历史
flowImageInfo
object
流程图信息
subFlowImageInfos
array[string]
子实例流程图
bpmForm
object
表单信息
innerFormData
object
内部表单信息
msg
string
必需
示例
{
"isOk": true,
"code": "string",
"message": "string",
"data": {
"bpmInstance": {
"id": "string",
"title": "string",
"defId": "string",
"actInstId": "string",
"parentId": "string",
"defKey": "string",
"bizId": "string",
"status": "string",
"statusDesc": "string",
"statusCss": "string",
"durationMs": 0,
"supportMobile": 0,
"suspensionState": 0,
"typeCode": "string",
"summary": "string",
"createTime": "string",
"endTime": "string",
"isTest": 0,
"creator": "string",
"createBy": "string",
"createOrgId": "string",
"updateTime": "string",
"updater": "string",
"updateBy": "string",
"rev": 0
},
"approvalHistoryList": [
{
"id": "string",
"instId": "string",
"actExecutionId": "string",
"taskId": "string",
"taskDefKey": "string",
"taskName": "string",
"approverName": "string",
"approveTime": "string",
"opinion": "string",
"status": "string",
"statusLabelCss": "string",
"statusValue": "string",
"statusKey": "string",
"attachment": "string",
"durationMs": 0,
"createBy": "string",
"createTime": "string",
"assign": "string",
"taskType": "string",
"assignInfo": "string",
"parentTaskId": "string"
}
],
"flowImageInfo": {
"opinionMap": {
"UserTask3": [
{
"id": "string",
"instId": "string",
"actExecutionId": "string",
"taskId": "string",
"taskDefKey": "string",
"taskType": "string",
"taskName": "string",
"assignInfo": "string",
"approveTime": "string",
"opinion": "string",
"status": "string",
"statusLabelCss": null,
"statusValue": "string",
"statusKey": "string",
"parentTaskId": "string",
"durationMs": 0,
"createBy": "string",
"createTime": "string",
"assign": "string"
}
],
"UserTask2": [
{
"id": "string",
"instId": "string",
"actExecutionId": "string",
"taskId": "string",
"taskDefKey": "string",
"taskType": "string",
"taskName": "string",
"assignInfo": "string",
"approveTime": "string",
"opinion": "string",
"status": "string",
"statusLabelCss": null,
"statusValue": "string",
"statusKey": "string",
"parentTaskId": "string",
"durationMs": 0,
"createBy": "string",
"createTime": "string",
"assign": "string"
}
],
"StartEvent1": [
{
"id": "string",
"instId": "string",
"actExecutionId": "string",
"taskId": "string",
"taskDefKey": "string",
"taskName": "string",
"approverName": "string",
"approveTime": "string",
"opinion": "string",
"status": "string",
"statusLabelCss": null,
"statusValue": "string",
"statusKey": "string",
"attachment": "string",
"durationMs": 0,
"createBy": "string",
"createTime": "string",
"assign": "string"
}
],
"UserTask1": [
{
"id": "string",
"instId": "string",
"actExecutionId": "string",
"taskId": "string",
"taskDefKey": "string",
"taskType": "string",
"taskName": "string",
"assignInfo": "string",
"approveTime": "string",
"opinion": "string",
"status": "string",
"statusLabelCss": null,
"statusValue": "string",
"statusKey": "string",
"parentTaskId": "string",
"durationMs": 0,
"createBy": "string",
"createTime": "string",
"assign": "string"
}
],
"EndEvent1": [
{
"id": "string",
"instId": "string",
"actExecutionId": "string",
"taskId": "string",
"taskDefKey": "string",
"taskName": "string",
"approveTime": "string",
"opinion": "string",
"status": "string",
"statusLabelCss": "string",
"statusValue": "string",
"statusKey": "string",
"durationMs": 0,
"createBy": "string",
"createTime": "string",
"assign": "string"
}
],
"UserTask4": [
{
"id": "string",
"instId": "string",
"actExecutionId": "string",
"taskId": "string",
"taskDefKey": "string",
"taskType": "string",
"taskName": "string",
"assignInfo": "string",
"approveTime": "string",
"opinion": "string",
"status": "string",
"statusLabelCss": null,
"statusValue": "string",
"statusKey": "string",
"parentTaskId": "string",
"durationMs": 0,
"createBy": "string",
"createTime": "string",
"assign": "string"
}
]
},
"stacks": [
{
"id": "string",
"taskId": "string",
"instId": "string",
"parentId": "string",
"taskDefKey": "string",
"taskName": "string",
"nodeType": "string",
"actionName": "string"
}
],
"flowElements": [
{
"id": "string",
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"extensionElements": {},
"attributes": {},
"name": "string",
"executionListeners": [
"string"
],
"asynchronous": true,
"notExclusive": true,
"incomingFlows": [
{
"id": "string",
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"extensionElements": {},
"attributes": {},
"executionListeners": [
"string"
],
"sourceRef": "string",
"targetRef": "string",
"waypoints": [
0
]
}
],
"outgoingFlows": [
{
"id": "string",
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"extensionElements": {},
"attributes": {},
"executionListeners": [
"string"
],
"sourceRef": "string",
"targetRef": "string",
"waypoints": [
0
]
}
],
"type": "string",
"exclusive": true
}
],
"nodeMap": {
"UserTask3": {
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"type": "string",
"imagType": "string"
},
"StartEvent1": {
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"type": "string",
"imagType": "string"
},
"UserTask2": {
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"type": "string",
"imagType": "string"
},
"UserTask1": {
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"type": "string",
"imagType": "string"
},
"EndEvent1": {
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"type": "string",
"imagType": "string"
},
"UserTask4": {
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0,
"type": "string",
"imagType": "string"
}
},
"flowLocation": {
"Flow_0033vcw": [
{
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0
}
],
"Flow_0cd6to0": [
{
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0
}
],
"Flow_0oc61cr": [
{
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0
}
],
"Flow_1jyyiqx": [
{
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0
}
],
"Flow_0eojrli": [
{
"x": 0,
"y": 0,
"height": 0,
"width": 0,
"xmlRowNumber": 0,
"xmlColumnNumber": 0
}
]
},
"artifacts": [
"string"
],
"pools": [
"string"
],
"lanes": [
"string"
]
},
"subFlowImageInfos": [
"string"
],
"bpmForm": {
"type": "string",
"pcCode": "string",
"pcName": "string",
"mbCode": "string",
"mbName": "string",
"pcUrl": "string",
"boCode": "string",
"perSuffix": "string",
"formEmpty": true
},
"innerFormData": {
"data": {
"time_AbBo": {
"_loadMap": {
"time_AbTable": true
},
"dateMulti7": "string",
"id": "string"
}
},
"initData": {
"time_AbBo": {
"time_AbTable": {
"_loadMap": {
"time_AbTable": true
},
"dateMulti7": "string"
}
}
},
"permission": {
"time_AbBo": {
"time_AbTable": {
"dateRange0": "string",
"onetext2": "string",
"date6": "string",
"date5": "string",
"dateMulti7": "string",
"date4": "string",
"date3": "string",
"date1": "string"
}
}
},
"tablePermission": {
"time_AbBo": {
"time_AbTable": "string"
}
},
"bizForm": {
"id": "string",
"type": "string",
"code": "string",
"name": "string",
"typeCode": "string",
"designCode": "string",
"templateCode": "string",
"boCode": "string",
"boName": "string",
"html": "string",
"js": "string",
"status": "string",
"createTime": "string",
"createBy": "string",
"createOrgId": "string",
"updateTime": "string",
"updateBy": "string",
"rev": 0
},
"permissionType": "string",
"permissionValue": "string",
"buttons": [
{
"type": "string",
"name": "string",
"css": "string",
"desc": "string",
"nodel": true
}
]
}
},
"msg": "string"
}
修改于 2024-11-18 08:04:22