1、流程实例列表
简述:
- 【流程实例】列表(分页条件查询)数据
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/query
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
请求参数示例:
{
"parameters": [],
"requestPage": {
"pageNo": 1,
"limit": 20
},
"sorts": []
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"dataResult": [
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2020-02-20 14:45:51",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "680062566768050176",
"subject": "管理员在2020-02-20 14:45:51发起权限主子",
"procDefId": "680062141327212544",
"bpmnDefId": "Process_0ghurhf:1:680062142157684736",
"procDefKey": "Process_0ghurhf",
"procDefName": "权限主子\n\n",
"bizKey": "680062568936505344",
"formType": "inner",
"formKey": "qxzzb",
"status": "running",
"endTime": null,
"duration": null,
"typeId": null,
"resultType": null,
"bpmnInstId": "680062569792143360",
"isFormmal": "N",
"parentInstId": "0",
"isForbidden": 0,
"dataMode": "table",
"creator": null,
"updator": null,
"forbidden": "未禁止",
"authorizeRight": {
"authType": "instance",
"defKey": null,
"managementEdit": "N",
"managementDel": "N",
"managementStart": "N",
"managementSet": "N",
"managementInternational": "N",
"managementClean": "N",
"managementGuideEdit": "N",
"instanceDel": "Y",
"instanceLog": "Y",
"rightContent": "{}",
"rightJsonObj": {}
},
"taskEndTime": null,
"taskId": null,
"myNode": null,
"curNode": "审批"
}
],
"pageResult": {
"limit": 20,
"page": 1,
"totalCount": 248,
"totalPages": 13
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
dataResult | List< BpmInstPo > | 流程实例列表数据 |
pageResult | Object | 分页数据 |
2、根据id获取对象信息
简述:
- 根据id获取对象信息
请求URL:
- http://ip:port/iform/business/v3/bpm/triger/param/get
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
id | String | 是 | 主键id |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/get?id=680062566768050176
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2020-02-20 14:45:51",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "680062566768050176",
"subject": "管理员在2020-02-20 14:45:51发起权限主子",
"procDefId": "680062141327212544",
"bpmnDefId": "Process_0ghurhf:1:680062142157684736",
"procDefKey": "Process_0ghurhf",
"procDefName": "权限主子\n\n",
"bizKey": "680062568936505344",
"formType": "inner",
"formKey": "qxzzb",
"status": "running",
"endTime": null,
"duration": null,
"typeId": null,
"resultType": null,
"bpmnInstId": "680062569792143360",
"isFormmal": "N",
"parentInstId": "0",
"isForbidden": 0,
"dataMode": "table",
"creator": null,
"updator": null,
"forbidden": "未禁止",
"authorizeRight": null,
"taskEndTime": null,
"taskId": null,
"myNode": null,
"curNode": null
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | BpmInstPo | 流程实例对象 |
3、保存信息
简述:
- 保存【流程实例】信息
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/save
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
id | String | 否 | 主键ID | ||
subject | String | 是 | 流程实例标题 | ||
procDefId | String | 是 | 流程定义ID | ||
bpmnDefId | String | 是 | BPMN流程定义ID | ||
procDefKey | String | 是 | 流程定义Key | ||
procDefName | String | 是 | 流程名称 | ||
bizKey | String | 否 | 关联数据业务主键 | ||
formType | String | 否 | 绑定的表单类型 | ||
formKey | String | 否 | 绑定的表单主键 | ||
status | String | 否 | 实例状态 | ||
endTime | java.util.Date | 否 | 实例结束时间 | ||
duration | Long | 否 | 持续时间(ms) | ||
typeId | String | 否 | 所属分类ID | ||
resultType | String | 否 | 流程结束后的最终审批结果,agree=同意;refuse=拒绝 | ||
bpmnInstId | String | 否 | BPMN流程实例ID | ||
createBy | String | 否 | 创建人ID | ||
createTime | java.util.Date | 否 | 创建时间 | ||
updateBy | String | 否 | 更新人ID | ||
updateTime | java.util.Date | 否 | 更新时间 | ||
isFormmal | String | 否 | 是否正式数据 | ||
parentInstId | String | 否 | 父实例Id | ||
isForbidden | Short | 否 | 0 | 是否禁止 | |
dataMode | String | 否 | 数据保存模式 |
请求参数示例:
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2020-02-20 14:45:51",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "680062566768050176",
"subject": "管理员在2020-02-20 14:45:51发起权限主子",
"procDefId": "680062141327212544",
"bpmnDefId": "Process_0ghurhf:1:680062142157684736",
"procDefKey": "Process_0ghurhf",
"procDefName": "权限主子\n\n",
"bizKey": "680062568936505344",
"formType": "inner",
"formKey": "qxzzb",
"status": "running",
"endTime": null,
"duration": null,
"typeId": null,
"resultType": null,
"bpmnInstId": "680062569792143360",
"isFormmal": "N",
"parentInstId": "0",
"isForbidden": 0,
"dataMode": "table",
"creator": null,
"updator": null,
"forbidden": "未禁止",
"taskEndTime": null,
"taskId": null,
"myNode": null,
"curNode": "审批"
}
返回示例:
{
"state": 200,
"request": null,
"message": "保存流程实例成功",
"cause": "",
"variables": {},
"data": {}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
4、保存草稿
简述:
- 保存草稿
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/saveDraft
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
defId | String | 是 | 流程定义ID | ||
proInstId | String | 否 | 流程实例ID | ||
version | Integer | 否 | 0 | 版本号 | |
destination | String | 否 | 目标节点 | ||
nodeUsers | String | 否 | 节点执行人 | ||
data | String | 是 | 流程表单数据 |
请求参数示例:
{
"pk": "",
"name": null,
"ip": null,
"createBy": "1",
"createTime": "2020-02-20 14:45:51",
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "680062566768050176",
"subject": "管理员在2020-02-20 14:45:51发起权限主子",
"procDefId": "680062141327212544",
"bpmnDefId": "Process_0ghurhf:1:680062142157684736",
"procDefKey": "Process_0ghurhf",
"procDefName": "权限主子\n\n",
"bizKey": "680062568936505344",
"formType": "inner",
"formKey": "qxzzb",
"status": "running",
"endTime": null,
"duration": null,
"typeId": null,
"resultType": null,
"bpmnInstId": "680062569792143360",
"isFormmal": "N",
"parentInstId": "0",
"isForbidden": 0,
"dataMode": "table",
"creator": null,
"updator": null,
"forbidden": "未禁止",
"taskEndTime": null,
"taskId": null,
"myNode": null,
"curNode": "审批"
}
返回示例:
{
"state": 200,
"request": null,
"message": "草稿保存成功",
"cause": "",
"variables": {
"proInstId": "testId",
"bizKey": "testKey"
},
"data": {}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void | |
variables.proInstId | String | 流程实例ID |
variables.bizKey | String | 业务数据key |
5、批量删除
简述:
- 批量删除【流程实例】记录
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/remove
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
ids | String | 是 | 主键id |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/remove?ids=626866373389189120
返回示例:
{
"state": 200,
"request": null,
"message": "删除流程实例成功",
"cause": "",
"variables": {},
"data": {}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
6、流程启动页面
简述:
- 流程启动页面
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/toStart
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
defId | String | 否 | 流程定义ID | ||
defKey | String | 是 | 流程定义key | ||
proInstId | String | 否 | 流程实例ID |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/toStart?defKey=Process_1ydcmpp
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"firstNodeUserAssign": false,
"nodeId": "UserTask_0xy35ig"
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data.firstNodeUserAssign | boolean | 是否用户节点 |
data.nodeId | String | 首节点id |
7、启动流程实例
简述:
- 启动流程实例
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/start
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
request | APIRequest[1] | 是 | 动态查询请求对象 |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
defId | String | 是 | 流程定义ID,与流程定义KEY参数二选一 | ||
defKey | String | 是 | 流程定义KEY,启动主版本,与流程定义ID参数二选一 | ||
proInstId | String | 否 | 流程实例ID | ||
version | Integer | 否 | 0 | 表单数据版本号,乐观锁版本 | |
destination | String | 否 | 目标节点 | ||
nodeUsers | String | 否 | 节点执行人 | [{nodeId:”userTask1”,executors:[{id:””,name:””},{id:””,name:””}]}] | |
dataId | String | 是 | 流程表单数据ID,与流程表单数据二选一 | ||
data | String | 是 | 流程表单数据,与流程表单数据ID二选一 | ||
vars | String | 否 | 流程变量数据,与流程设置中全局变量一一对应 ,传递格式是json字符串 |
{nodeId:”userTask1”} |
请求参数示例:
{
"parameters": [{
"key": "defId",
"value": "680370541093191680"
}, {
"key": "data",
"value": "{\"id\":\"\",\"dan1\":\"字段1\",\"dan2\":\"字段2\"}"
},{
"key": "vars",
"value": "{\"id\":\"\",\"dan1\":\"字段1\",\"dan2\":\"字段2\"}"
}]
}
{
"parameters": [{
"key": "defKey",
"value": "shhdktry"
}, {
"key": "dataId",
"value": "680370541093191681"
}]
}
返回示例:
{
"state": 200,
"request": null,
"message": "流程启动成功",
"cause": "",
"variables": {
"proInstId": "testId",
"bpmInstId": "testId",
"bizKey": "testKey"
},
"data": {}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void | |
variables.proInstId | String | 流程实例ID |
variables.bpmInstId | String | activiti实例ID |
variables.bizKey | String | 业务数据key |
8、发起流程时获取表单和bo
简述:
- 发起流程时获取表单和bo
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/getFormData
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
defId | String | 是 | 流程定义ID | ||
proInstId | String | 否 | 流程实例ID |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/getFormData?defId=680370541093191680
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"boData": "{}",
"buttons": [{
"name": "启动",
"alias": "startFlow",
"code": null,
"beforeScript": null,
"afterScript": null,
"supportScript": null,
"aliasName": null
}, {
"name": "保存草稿",
"alias": "saveDraft",
"code": null,
"beforeScript": null,
"afterScript": null,
"supportScript": null,
"aliasName": null
}, {
"name": "流程图",
"alias": "flowImage",
"code": null,
"beforeScript": null,
"afterScript": null,
"supportScript": null,
"aliasName": null
}, {
"name": "打印",
"alias": "print",
"code": null,
"beforeScript": null,
"afterScript": null,
"supportScript": null,
"aliasName": null
}],
"permissions": "{\"tables\":{},\"opinions\":{},\"fields\":{\"id\":\"b\",\"dan1\":\"b\",\"dan2\":\"b\"}}",
"attributes": {
"firstNodeUserAssign": false,
"nodeId": "Activity_1t5r0yu"
},
"isStart": true,
"formModel": {
"pk": "",
"name": "",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"nodeId": null,
"parentFlowKey": "local_",
"type": "INNER",
"formValue": "kfdb",
"editUrl": "",
"editFormRights": null,
"mobileValue": "",
"mobileUrl": "",
"mobileFormRights": null,
"mobileName": "",
"id": "680370366106828800",
"key": "kfdb",
"version": 0,
"mobileVersion": null,
"formData": "{\"id\":\"680370366106828800\",\"name\":\"开发单表\",\"desc\":\"\",\"key\":\"kfdb\",\"typeId\":\"\",\"mode\":\"bo\",\"attrs\":{\"inline\":false,\"labelPosition\":\"right\",\"labelWidth\":100,\"labelWidthUnit\":\"px\",\"size\":\"small\",\"statusIcon\":false,\"descPosition\":\"inline\",\"verifys\":[],\"script\":\"\",\"read_style\":\"text\",\"colon\":false},\"busId\":\"680370204848422912\",\"code\":\"kfdb\",\"fields\":[{\"id\":\"680370366387847168\",\"name\":\"id\",\"label\":\"主键\",\"desc\":\"\",\"field_type\":\"hidden\",\"field_options\":{\"is_pk\":true,\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true},\"field_name\":\"id\"},{\"id\":\"680370366475927552\",\"name\":\"dan1\",\"label\":\"单1\",\"desc\":\"\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true},\"field_name\":\"dan1\"},{\"id\":\"680370366543036416\",\"name\":\"dan2\",\"label\":\"单2\",\"desc\":\"\",\"field_type\":\"text\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true},\"field_name\":\"dan2\"}]}",
"templateId": "",
"templateName": null,
"formSource": "flow"
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Map<String, Object> | 数据集合 |
9、获取流程实例信息
简述:
- 获取流程实例信息
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/instFormInfo
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
instId | String | 是 | 流程实例ID |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/instFormInfo?instId=654760987718582272
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"result": true,
"boData": "{\"ip\":\"192.168.3.111\",\"updateTime\":\"\",\"jieShuRiQi\":\"2019-12-14 00:00:00\",\"qingJiaShiYou\":\"测试数据001\",\"shenQingBuMen\":\"654728053703835648\",\"createBy\":\"654755459927900160\",\"createTime\":\"2019-12-12 19:06:25\",\"updateBy\":\"\",\"shenQingGangWei\":\"654691012433674240\",\"tianXieRiQi\":\"2019-12-12 00:00:00\",\"qingJiaLeiXing\":\"2\",\"kaiShiRiQi\":\"2019-12-12 00:00:00\",\"tianShu\":\"2\",\"tenantId\":\"\",\"id\":\"654760986229604352\",\"shenQingRen\":\"654755459927900160\"}",
"buttons": [
{
"name": "流程实例信息",
"alias": "instanceDetail",
"code": null,
"beforeScript": null,
"afterScript": null,
"supportScript": null,
"aliasName": null
},
{
"name": "流程图",
"alias": "flowImage",
"code": null,
"beforeScript": null,
"afterScript": null,
"supportScript": null,
"aliasName": null
},
{
"name": "审批历史",
"alias": "approvalHistory",
"code": null,
"beforeScript": null,
"afterScript": null,
"supportScript": null,
"aliasName": null
}
],
"permissions": "{\"tables\":{},\"opinions\":{},\"fields\":{}}",
"attributes": {
"formOpinionSetting": {},
"opinionList": [],
"formOpinion": {}
},
"formModel": {
"pk": "",
"name": "",
"ip": null,
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"nodeId": null,
"parentFlowKey": "local_",
"type": "INNER",
"formValue": "qjbd",
"editUrl": "",
"editFormRights": null,
"mobileValue": "",
"mobileUrl": "",
"mobileFormRights": null,
"mobileName": "",
"id": "654759630727020544",
"key": "qjbd",
"version": null,
"mobileVersion": null,
"formData": "{\"id\":\"654759630727020544\",\"name\":\"请假表单\",\"desc\":\"\",\"key\":\"qjbd\",\"typeId\":\"654758420078919680\",\"mode\":\"bo\",\"attrs\":{\"inline\":false,\"labelPosition\":\"right\",\"labelWidth\":100,\"labelWidthUnit\":\"px\",\"size\":\"small\",\"statusIcon\":false,\"descPosition\":\"inline\",\"verifys\":[],\"script\":\"\",\"read_style\":\"text\",\"colon\":false},\"typeName\":\"流程相关表单\",\"busId\":\"654758073872678912\",\"code\":\"qjbd\",\"fields\":[{\"id\":\"656442482925502464\",\"name\":\"id\",\"label\":\"主键\",\"desc\":\"\",\"field_type\":\"hidden\",\"field_options\":{\"is_pk\":true,\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true},\"field_name\":\"id\"},{\"id\":\"656442482925502465\",\"name\":\"\",\"label\":\"栅格布局\",\"desc\":\"\",\"field_type\":\"grid\",\"field_options\":{\"gutter\":0,\"justify\":\"start\",\"align\":\"top\",\"columns\":[{\"span\":12,\"fields\":[{\"id\":\"656442482929696768\",\"name\":\"shenQingRen\",\"label\":\"申请人\",\"desc\":\"\",\"field_type\":\"selector\",\"field_options\":{\"default_value_type\":\"dynamic\",\"placeholder\":\"请选择\",\"selector_type\":\"user\",\"store\":\"id\",\"multiple\":true,\"filter\":[],\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"default_value\":\"cscript.getCurrentUserId();\"},\"field_name\":\"shenQingRen\"},{\"id\":\"656442482929696769\",\"name\":\"shenQingGangWei\",\"label\":\"申请岗位\",\"desc\":\"\",\"field_type\":\"selector\",\"field_options\":{\"default_value_type\":\"fixed\",\"placeholder\":\"请选择\",\"selector_type\":\"position\",\"store\":\"id\",\"multiple\":true,\"filter\":[],\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"default_value\":null},\"field_name\":\"shenQingGangWei\"},{\"id\":\"656442482929696770\",\"name\":\"kaiShiRiQi\",\"label\":\"开始日期\",\"desc\":\"\",\"field_type\":\"datePicker\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"datefmt\":\"yyyy-MM-dd\",\"datefmt_type\":\"date\",\"placeholder\":\"请选择\",\"mobile\":true},\"field_name\":\"kaiShiRiQi\"},{\"id\":\"656442482929696771\",\"name\":\"qingJiaLeiXing\",\"label\":\"请假类型\",\"desc\":\"\",\"field_type\":\"radio\",\"field_options\":{\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"arrangement\":\"horizontal\",\"default_value_type\":\"fixed\",\"datasource\":\"custom\",\"options\":[{\"val\":\"1\",\"label\":\"病假\",\"checked\":false},{\"val\":\"2\",\"label\":\"事假\",\"checked\":false},{\"val\":\"3\",\"label\":\"婚假\",\"disabled\":false},{\"val\":\"4\",\"label\":\"丧假\",\"disabled\":false},{\"val\":\"5\",\"label\":\"年假\",\"disabled\":false},{\"val\":\"6\",\"label\":\"调休\",\"disabled\":false}]},\"field_name\":\"qingJiaLeiXing\"}]},{\"span\":12,\"fields\":[{\"id\":\"656442482929696772\",\"name\":\"shenQingBuMen\",\"label\":\"申请部门\",\"desc\":\"\",\"field_type\":\"selector\",\"field_options\":{\"default_value_type\":\"dynamic\",\"placeholder\":\"请选择\",\"selector_type\":\"org\",\"store\":\"id\",\"multiple\":true,\"filter\":[],\"required\":false,\"hide_rights\":false,\"read_rights\":false,\"is_label_width\":false,\"label_width\":100,\"label_width_unit\":\"px\",\"default_value\":\"cscript.getCurrentOrgId();\"},\"field_name\":\"shenQingBuMen\"},{\"id\":\"656442482929696773\",\"name\":\"tianXieRiQi\",\"label\":\"填写日期\",\"desc\":\"\",\"field_type\":\"datePicker\",\"field_options\":{\"default_value_type\":\"today\",\"required\":false,\"datefmt\":\"yyyy-MM-dd\",\"datefmt_type\":\"date\",\"placeholder\":\"请选择\",\"mobile\":true},\"field_name\":\"tianXieRiQi\"},{\"id\":\"656442482929696774\",\"name\":\"jieShuRiQi\",\"label\":\"结束日期\",\"desc\":\"\",\"field_type\":\"datePicker\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"datefmt\":\"yyyy-MM-dd\",\"datefmt_type\":\"date\",\"placeholder\":\"请选择\",\"mobile\":true},\"field_name\":\"jieShuRiQi\"},{\"id\":\"656442482929696775\",\"name\":\"tianShu\",\"label\":\"天数\",\"desc\":\"\",\"field_type\":\"number\",\"field_options\":{\"default_value_type\":\"formula\",\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true,\"default_value\":\"DAYS(DATE($_widget_qjbd.jieShuRiQi#),DATE($_widget_qjbd.kaiShiRiQi#))\"},\"field_name\":\"tianShu\"}]}]},\"field_name\":\"\"},{\"id\":\"656442482929696776\",\"name\":\"qingJiaShiYou\",\"label\":\"请假事由\",\"desc\":\"\",\"field_type\":\"textarea\",\"field_options\":{\"default_value_type\":\"fixed\",\"required\":false,\"placeholder\":\"请输入\",\"mobile\":true},\"field_name\":\"qingJiaShiYou\"}]}",
"templateId": "",
"templateName": null,
"formSource": "form"
},
"title": "简单子流程",
"isEnd": false
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Map<String, Object> | 数据集合 |
10、流程审批历史
简述:
- 流程审批历史
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/flowHistory
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
instId | String | 否 | 流程实例ID | ||
taskId | String | 否 | 任务ID | ||
defKey | String | 否 | 流程定义ID | ||
bizKey | String | 否 | 业务数据ID | ||
ignoreInstIdNull | boolean | 否 | false | 忽略实例ID为空 |
请求参数示例:
{
"taskId": "680062580827357185"
}
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [{
"pk": "",
"name": null,
"ip": null,
"createBy": null,
"createTime": 1582181152000,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "680062570287071232",
"procDefId": "Process_0ghurhf:1:680062142157684736",
"supInstId": null,
"procInstId": "680062566768050176",
"taskKey": "startNode",
"taskId": null,
"taskName": "发起节点",
"token": null,
"qualfieds": "[{\"id\":\"1\",\"type\":\"employee\"}]",
"auditor": "1",
"opinion": "提交",
"status": "submit",
"assignTime": null,
"completeTime": 1582181152000,
"durMs": 0,
"interpose": null,
"qualifiedExecutor": [{
"type": "employee",
"executId": "1",
"executor": "1"
}],
"userImg": "/file/getImage?attachmentId=666949997832437760",
"statusName": "提交",
"auditorName": "管理员",
"subject": null,
"batch": null,
"nodeColor": "#4283fd",
"callSub": false
}, {
"pk": "",
"name": null,
"ip": null,
"createBy": null,
"createTime": 1582181154000,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "680062585269125120",
"procDefId": "Process_0ghurhf:1:680062142157684736",
"supInstId": "0",
"procInstId": "680062566768050176",
"taskKey": "Activity_0dulkug",
"taskId": "680062580827357185",
"taskName": "审批",
"token": null,
"qualfieds": "[{\"type\":\"employee\",\"executId\":\"679660163279355904\",\"executor\":\"权限\"}]",
"auditor": null,
"opinion": "",
"status": "pending",
"assignTime": null,
"completeTime": null,
"durMs": null,
"interpose": null,
"qualifiedExecutor": [{
"type": "employee",
"executId": "679660163279355904",
"executor": "权限"
}],
"userImg": null,
"statusName": "待审批",
"auditorName": null,
"subject": null,
"batch": null,
"nodeColor": "#e21100",
"callSub": false
}]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< IBpmTaskApproval > | 流程审批历史列表数据 |
11、流程审批历史-会签任务
简述:
- 流程审批历史-会签任务
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/flowHistorySign
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
batch | String | 是 | 批次号 |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/flowHistorySign?batch=655083218352996352
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": [
{
"pk": "",
"name": null,
"ip": null,
"createBy": null,
"createTime": 1576225609000,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "655083218336219136",
"procDefId": "Process_05f5jsi:1:654778767868166144",
"supInstId": "0",
"procInstId": "655083176321875968",
"taskKey": "UserTask_0rdjo2c",
"taskId": "655083214716534787",
"taskName": "会签串行",
"token": null,
"qualfieds": "[{id:\"655077249782906880\",type:\"employee\"}]",
"auditor": "655077249782906880",
"opinion": "测试数据",
"status": "agree",
"assignTime": null,
"completeTime": 1576225723000,
"durMs": 114048,
"interpose": null,
"qualifiedExecutor": [
{
"type": "employee",
"executId": "655077249782906880",
"executor": "655077249782906880"
}
],
"userImg": "",
"statusName": "同意",
"auditorName": "chao5",
"subject": null,
"batch": null,
"nodeColor": "#04B913",
"callSub": false
},
{
"pk": "",
"name": null,
"ip": null,
"createBy": null,
"createTime": 1576225723000,
"updateBy": null,
"updateTime": null,
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "655083697044717568",
"procDefId": "Process_05f5jsi:1:654778767868166144",
"supInstId": "0",
"procInstId": "655083176321875968",
"taskKey": "UserTask_0rdjo2c",
"taskId": "655083693332758529",
"taskName": "会签串行",
"token": null,
"qualfieds": "[{\"type\":\"employee\",\"executId\":\"655075052584173568\",\"executor\":\"chao4\"}]",
"auditor": null,
"opinion": "",
"status": "pending",
"assignTime": null,
"completeTime": null,
"durMs": null,
"interpose": null,
"qualifiedExecutor": [
{
"type": "employee",
"executId": "655075052584173568",
"executor": "chao4"
}
],
"userImg": null,
"statusName": "待审批",
"auditorName": null,
"subject": null,
"batch": null,
"nodeColor": "#e21100",
"callSub": false
}
]
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< IBpmTaskApproval > | 流程审批历史对象 |
12、流程审批历史
简述:
- 流程审批历史-外部子流程
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/flowHistoryCallSub
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
instId | String | 是 | 流程实例ID | ||
nodeId | String | 是 | 节点ID |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/flowHistoryCallSub?instId=626866373389189120&nodeId=1234
返回示例:
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | List< List < IBpmTaskApproval > > | 流程审批历史列表数据 |
13、流程图
简述:
- 流程图
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/flowImage
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
id | String | 否 | 流程实例ID | ||
defKey | String | 否 | 流程实例ID | ||
bizKey | String | 否 | 业务数据ID |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/flowImage?id=626866373389189120
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"instId": "654760987718582272",
"bpmDefLayout": {
"defId": "654757535814778880",
"name": "简单子流程",
"width": 998,
"height": 348,
"listLayout": [
{
"nodeId": "StartEvent_0j77wyq",
"name": "开始",
"nodeType": {
"key": "start",
"value": "开始节点"
},
"parentNodeId": "",
"x": 5,
"y": 27,
"width": 36,
"height": 36
},
{
"nodeId": "UserTask_0bfxz0d",
"name": "发起人填写",
"nodeType": {
"key": "userTask",
"value": "用户任务节点"
},
"parentNodeId": "",
"x": 95,
"y": 5,
"width": 100,
"height": 80
},
{
"nodeId": "UserTask_1xt9zsv",
"name": "领导审批",
"nodeType": {
"key": "userTask",
"value": "用户任务节点"
},
"parentNodeId": "",
"x": 255,
"y": 5,
"width": 100,
"height": 80
},
{
"nodeId": "UserTask_1cjpx0f",
"name": "复审",
"nodeType": {
"key": "userTask",
"value": "用户任务节点"
},
"parentNodeId": "",
"x": 415,
"y": 5,
"width": 100,
"height": 80
},
{
"nodeId": "UserTask_1m892ze",
"name": "确认",
"nodeType": {
"key": "userTask",
"value": "用户任务节点"
},
"parentNodeId": "",
"x": 575,
"y": 5,
"width": 100,
"height": 80
},
{
"nodeId": "EndEvent_1wrnuj3",
"name": "结束",
"nodeType": {
"key": "end",
"value": "结束节点"
},
"parentNodeId": "",
"x": 737,
"y": 27,
"width": 36,
"height": 36
}
]
},
"statusColorList": [
{
"key": "pending",
"value": "待审批",
"color": "#e21100",
"order": 1
},
{
"key": "submit",
"value": "提交",
"color": "#4283fd",
"order": 2
},
{
"key": "resubmit",
"value": "重新提交",
"color": "#f7ac3d",
"order": 3
},
{
"key": "agree",
"value": "同意",
"color": "#04B913",
"order": 4
},
{
"key": "oppose",
"value": "反对",
"color": "#5c3219",
"order": 5
},
{
"key": "reject",
"value": "驳回",
"color": "#bcc330",
"order": 6
},
{
"key": "rejectToStart",
"value": "驳回到发起人",
"color": "#e46b22",
"order": 7
},
{
"key": "rejectToPrevious",
"value": "驳回上一步",
"color": "#ff32ca",
"order": 8
},
{
"key": "revoke",
"value": "撤销",
"color": "#007db9",
"order": 9
},
{
"key": "recoverToStart",
"value": "撤销到发起人",
"color": "#b022ae",
"order": 10
},
{
"key": "sign_pass",
"value": "会签通过",
"color": "#007747",
"order": 11
},
{
"key": "sign_no_pass",
"value": "会签不通过",
"color": "#23ebb9",
"order": 12
},
{
"key": "abandon",
"value": "弃权",
"color": "#6910d2",
"order": 13
},
{
"key": "manual_end",
"value": "人工终止",
"color": "#c7008b",
"order": 14
},
{
"key": "complete",
"value": "完成",
"color": "#fafe61",
"order": 15
},
{
"key": "suspend",
"value": "挂起",
"color": "#9f4e3c",
"order": 16
},
{
"key": "signBackCancel",
"value": "驳回取消",
"color": "#009ea8",
"order": 17
},
{
"key": "signRecoverCancel",
"value": "撤销取消",
"color": "#8d8502",
"order": 18
},
{
"key": "passCancel",
"value": "通过取消",
"color": "#545a26",
"order": 19
},
{
"key": "notPassCancel",
"value": "不通过取消",
"color": "#b5fe3d",
"order": 20
},
{
"key": "transforming",
"value": "流转中",
"color": "#fe4367",
"order": 21
},
{
"key": "transAgree",
"value": "流转同意",
"color": "#839287",
"order": 22
},
{
"key": "transOppose",
"value": "流转反对",
"color": "#ef9193",
"order": 23
},
{
"key": "skip",
"value": "跳过执行",
"color": "#8f92c9",
"order": 24
},
{
"key": "callSubProc",
"value": "外部子流程",
"color": "#033651",
"order": 25
},
{
"key": "autoTask",
"value": "自动节点",
"color": "#2ec5ea",
"order": 26
}
],
"bpmProcInst": {
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-12 19:06:24",
"updateBy": "654755459927900160",
"updateTime": "2019-12-12 19:06:25",
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654760987718582272",
"subject": "黄春艳在2019-12-12 19:06:24发起简单子流程",
"procDefId": "654757535814778880",
"bpmnDefId": "Process_19xttnk:1:654757541028298752",
"procDefKey": "Process_19xttnk",
"procDefName": "简单子流程",
"bizKey": "654760986229604352",
"formType": null,
"formKey": null,
"status": "draft",
"endTime": null,
"duration": null,
"typeId": null,
"resultType": null,
"bpmnInstId": "0",
"isFormmal": "N",
"parentInstId": "0",
"isForbidden": 0,
"dataMode": "table",
"creator": null,
"updator": null,
"forbidden": "未禁止",
"authorizeRight": null,
"taskEndTime": null,
"taskId": null,
"myNode": null,
"curNode": null
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Map<String,Object> | 集合数据 |
14、流程图xml
简述:
- 流程图
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/flowImageXml
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
instId | String | 否 | 流程实例ID | ||
defId | String | 否 | 流程定义Id | ||
defKey | String | 否 | 流程定义key | ||
bizKey | String | 否 | 业务key | ||
taskId | String | 否 | 任务Id | ||
ignoreInstIdNull | boolean | 否 | 是否忽略实例ID为空 |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/flowImageXml?taskId=680062580827357185
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"Definitions_0a3pwko\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><process id=\"Process_0ghurhf\" name=\"权限主子\" isExecutable=\"false\"><startEvent id=\"StartEvent_1b9h0qv\" name=\"开始\"><outgoing>Flow_12ti8kz</outgoing></startEvent><userTask id=\"Activity_0lzezwj\" name=\"发起人\"><incoming>Flow_12ti8kz</incoming><outgoing>Flow_0dmwabi</outgoing></userTask><sequenceFlow id=\"Flow_12ti8kz\" sourceRef=\"StartEvent_1b9h0qv\" targetRef=\"Activity_0lzezwj\" /><userTask id=\"Activity_0dulkug\" name=\"审批\"><incoming>Flow_0dmwabi</incoming><outgoing>Flow_03a2o07</outgoing></userTask><sequenceFlow id=\"Flow_0dmwabi\" sourceRef=\"Activity_0lzezwj\" targetRef=\"Activity_0dulkug\" /><endEvent id=\"Event_16lu1x4\"><incoming>Flow_03a2o07</incoming></endEvent><sequenceFlow id=\"Flow_03a2o07\" sourceRef=\"Activity_0dulkug\" targetRef=\"Event_16lu1x4\" /></process><bpmndi:BPMNDiagram id=\"BPMNDiagram_0zqoz39\"><bpmndi:BPMNPlane id=\"BPMNPlane_1u259vh\" bpmnElement=\"Process_0ghurhf\"><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_1b9h0qv\" bpmnElement=\"StartEvent_1b9h0qv\"><dc:Bounds x=\"180\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0lzezwj_di\" bpmnElement=\"Activity_0lzezwj\"><dc:Bounds x=\"270\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_12ti8kz_di\" bpmnElement=\"Flow_12ti8kz\"><di:waypoint x=\"216\" y=\"258\" /><di:waypoint x=\"270\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Activity_0dulkug_di\" bpmnElement=\"Activity_0dulkug\"><dc:Bounds x=\"430\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0dmwabi_di\" bpmnElement=\"Flow_0dmwabi\"><di:waypoint x=\"370\" y=\"258\" /><di:waypoint x=\"430\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Event_16lu1x4_di\" bpmnElement=\"Event_16lu1x4\"><dc:Bounds x=\"592\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_03a2o07_di\" bpmnElement=\"Flow_03a2o07\"><di:waypoint x=\"530\" y=\"258\" /><di:waypoint x=\"592\" y=\"258\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></definitions>",
"statusColorList": [{
"key": "pending",
"value": "待审批",
"color": "#e21100",
"order": 1
}, {
"key": "submit",
"value": "提交",
"color": "#4283fd",
"order": 2
}, {
"key": "resubmit",
"value": "重新提交",
"color": "#f7ac3d",
"order": 3
}, {
"key": "agree",
"value": "同意",
"color": "#04B913",
"order": 4
}, {
"key": "oppose",
"value": "反对",
"color": "#5c3219",
"order": 5
}, {
"key": "reject",
"value": "驳回",
"color": "#bcc330",
"order": 6
}, {
"key": "rejectToStart",
"value": "驳回到发起人",
"color": "#e46b22",
"order": 7
}, {
"key": "rejectToPrevious",
"value": "驳回上一步",
"color": "#ff32ca",
"order": 8
}, {
"key": "revoke",
"value": "撤销",
"color": "#007db9",
"order": 9
}, {
"key": "recoverToStart",
"value": "撤销到发起人",
"color": "#b022ae",
"order": 10
}, {
"key": "sign_pass",
"value": "会签通过",
"color": "#007747",
"order": 11
}, {
"key": "sign_no_pass",
"value": "会签不通过",
"color": "#23ebb9",
"order": 12
}, {
"key": "abandon",
"value": "弃权",
"color": "#6910d2",
"order": 13
}, {
"key": "manual_end",
"value": "人工终止",
"color": "#c7008b",
"order": 14
}, {
"key": "complete",
"value": "完成",
"color": "#fafe61",
"order": 15
}, {
"key": "suspend",
"value": "挂起",
"color": "#9f4e3c",
"order": 16
}, {
"key": "signBackCancel",
"value": "驳回取消",
"color": "#009ea8",
"order": 17
}, {
"key": "signRecoverCancel",
"value": "撤销取消",
"color": "#8d8502",
"order": 18
}, {
"key": "passCancel",
"value": "通过取消",
"color": "#545a26",
"order": 19
}, {
"key": "notPassCancel",
"value": "不通过取消",
"color": "#b5fe3d",
"order": 20
}, {
"key": "transforming",
"value": "流转中",
"color": "#fe4367",
"order": 21
}, {
"key": "transAgree",
"value": "流转同意",
"color": "#839287",
"order": 22
}, {
"key": "transOppose",
"value": "流转反对",
"color": "#ef9193",
"order": 23
}, {
"key": "skip",
"value": "跳过执行",
"color": "#8f92c9",
"order": 24
}, {
"key": "callSubProc",
"value": "外部子流程",
"color": "#033651",
"order": 25
}, {
"key": "autoTask",
"value": "自动节点",
"color": "#2ec5ea",
"order": 26
}],
"styleMap": {
"Activity_0dulkug": {
"borderColor": "#e21100",
"borderWidth": null,
"backgroundColor": null,
"status": "pending"
},
"StartEvent_1b9h0qv": {
"borderColor": "#4283fd",
"borderWidth": null,
"backgroundColor": null,
"status": "submit"
},
"Activity_0lzezwj": {
"borderColor": "#8f92c9",
"borderWidth": null,
"backgroundColor": null,
"status": "skip"
}
}
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Map<String,Object> | 集合数据 |
15、流程启动-选择路径、执行人
简述:
- 流程启动-选择路径、执行人
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/startOutgoing
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
instId | String | 否 | 流程实例ID | ||
taskId | String | 否 | 任务Id | ||
actionName | String | 否 | 流程动作名称 | ||
actionAlias | String | 否 | 流程动作别名 | ||
data | String | 是 | 表单数据 |
请求参数示例:
暂无例子
返回示例:
暂无例子
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void | |
variables.defId | String | 分页数据 |
variables.nodeSupportSelectPath | Map<String, String> | 计算最终的outgoings |
variables.outgoingNodes | List< IBpmNodeDefine > | 节点数据 |
16、根据流程定义key和业务主键获取相关流程实例
简述:
- 根据流程定义key和业务主键获取相关流程实例
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/getByDefKeyBizKey
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
defKey | String | 否 | 流程定义key | ||
bizKey | String | 否 | 业务主键 |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/getByDefKeyBizKey?bizKey=654760986229604352&defKey=Process_19xttnk
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": {
"pk": "",
"name": null,
"ip": null,
"createBy": "654755459927900160",
"createTime": "2019-12-12 19:06:24",
"updateBy": "654755459927900160",
"updateTime": "2019-12-12 19:06:25",
"tenantId": null,
"dataStatus": null,
"dbtype": null,
"id": "654760987718582272",
"subject": "黄春艳在2019-12-12 19:06:24发起简单子流程",
"procDefId": "654757535814778880",
"bpmnDefId": "Process_19xttnk:1:654757541028298752",
"procDefKey": "Process_19xttnk",
"procDefName": "简单子流程",
"bizKey": "654760986229604352",
"formType": null,
"formKey": null,
"status": "draft",
"endTime": null,
"duration": null,
"typeId": null,
"resultType": null,
"bpmnInstId": "0",
"isFormmal": "N",
"parentInstId": "0",
"isForbidden": 0,
"dataMode": "table",
"creator": null,
"updator": null,
"forbidden": "未禁止",
"authorizeRight": null,
"taskEndTime": null,
"taskId": null,
"myNode": null,
"curNode": null
}
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | IBpmProcInst | 流程实例对象 |
17、根据业务主键获取审批的处理状态或动作
简述:
- 根据业务主键获取审批的处理状态或动作
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/getActionStatus
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- GET
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
bizKey | String | 否 | 业务主键 |
- Body:
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/getActionStatus?bizKey=key2
返回示例:
{
"state": 200,
"request": null,
"message": "",
"cause": "",
"variables": {},
"data": "agree"
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | String | 审批的处理状态或动作 |
18、业务数据启动流程(列表页)
简述:
- 业务数据启动流程(列表页)
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/startFlowFromList
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
ids | String | 是 | 业务主键id | ||
formKey | String | 是 | 表单标识 | ||
defKey | String | 是 | 流程定义标识 |
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/instance/startFlowFromList?ids=626866373389189120&formKey=key1&defKey=key2
返回示例:
{
"state": 200,
"request": null,
"message": "启动流程成功",
"cause": "",
"variables": {},
"data": ""
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
19、业务数据启动流程(编辑页)
简述:
- 业务数据启动流程(编辑页)
请求URL:
- http://ip:port/iform/business/v3/bpm/instance/startFlowFromEdit
- URL中的ip需要替换为自己网关ip
- URL中的port需要替换为自己网关端口
请求方式:
- POST
请求参数:
- Headers:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
X-Authorization-access_token | String | 是 | 系统令牌 |
- Query:
暂无
- Body:
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
pk | String | 是 | 业务主键id | ||
flowKey | String | 是 | 流程key | ||
data | String | 是 | 表单数据 |
请求参数示例:
{
”pk“: "656928763371585536",
”flowKey“: "Process_0ht10f9",
”data“: ""
}
返回示例:
{
"state": 200,
"request": null,
"message": "启动流程成功",
"cause": "",
"variables": {},
"data": ""
}
返回参数说明:
名称 | 类型 | 备注 |
---|---|---|
data | Void |
最后编辑:黄春艳 更新时间:2025-02-14 10:41