流程定义管理
1、流程定义列表(分页)
简述:
- 根据传入参数查询,返回流程定义列表
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/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": "开发单表",
      "ip": null,
      "createBy": "654622686055497728",
      "createTime": "2020-02-21 11:09:38",
      "updateBy": "654622686055497728",
      "updateTime": "2020-02-21 11:25:26",
      "tenantId": null,
      "dataStatus": null,
      "dbtype": null,
      "defId": "680370541093191680",
      "parentDefId": null,
      "parentNodeId": null,
      "srcDefId": null,
      "defKey": "Process_0f8oaab",
      "desc": "",
      "typeId": null,
      "status": "deploy",
      "testStatus": "test",
      "bpmnDefId": "Process_0f8oaab:1:680370541651034112",
      "bpmnDeployId": "680370541353238528",
      "version": 1,
      "boCode": "kfdb",
      "boVersion": 1,
      "mainDefId": "680370541093191680",
      "isMain": "Y",
      "reason": null,
      "bpmDefineXmlPo": {
        "pk": "",
        "name": null,
        "ip": null,
        "createBy": null,
        "createTime": null,
        "updateBy": null,
        "updateTime": null,
        "tenantId": null,
        "dataStatus": null,
        "dbtype": null,
        "id": null,
        "defXml": null,
        "bpmnXml": null
      },
      "primaryBpmnXml": null,
      "designer": "web设计器",
      "typeName": null,
      "authorizeRight": {
        "authType": "manage",
        "defKey": null,
        "managementEdit": "Y",
        "managementDel": "Y",
        "managementStart": "Y",
        "managementSet": "Y",
        "managementInternational": "Y",
        "managementClean": "Y",
        "managementGuideEdit": "Y",
        "instanceDel": "N",
        "instanceLog": "N",
        "rightContent": "{\"m_edit\":\"Y\",\"m_del\":\"Y\",\"m_start\":\"Y\",\"m_set\":\"Y\",\"m_international\":\"Y\",\"m_clean\":\"Y\",\"m_guideEdit\":\"Y\"}",
        "rightJsonObj": {
          "m_edit": "Y",
          "m_del": "Y",
          "m_start": "Y",
          "m_set": "Y",
          "m_international": "Y",
          "m_clean": "Y",
          "m_guideEdit": "Y"
        }
      },
      "reminders": null,
      "trigerFlows": null,
      "auths": null,
      "sn": 0,
      "favorites": false,
      "hasGuide": false,
      "id": "680370541093191680",
      "main": false,
      "bpmnXml": null,
      "defXml": null
    }],
    "pageResult": {
      "limit": 20,
      "page": 1,
      "totalCount": 136,
      "totalPages": 7
    }
  }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| dataResult | List< BpmDefinePo > | 流程定义列表数据 | 
| pageResult | Object | 分页数据 | 
2、根据id获取对象信息
简述:
- 根据id获取对象信息
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/get
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 主键id | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/get?defId=626866373389189120返回示例:
{
      "pk": "",
      "name": "开发单表",
      "ip": null,
      "createBy": "654622686055497728",
      "createTime": "2020-02-21 11:09:38",
      "updateBy": "654622686055497728",
      "updateTime": "2020-02-21 11:25:26",
      "tenantId": null,
      "dataStatus": null,
      "dbtype": null,
      "defId": "680370541093191680",
      "parentDefId": null,
      "parentNodeId": null,
      "srcDefId": null,
      "defKey": "Process_0f8oaab",
      "desc": "",
      "typeId": null,
      "status": "deploy",
      "testStatus": "test",
      "bpmnDefId": "Process_0f8oaab:1:680370541651034112",
      "bpmnDeployId": "680370541353238528",
      "version": 1,
      "boCode": "kfdb",
      "boVersion": 1,
      "mainDefId": "680370541093191680",
      "isMain": "Y",
      "reason": null,
      "bpmDefineXmlPo": {
        "pk": "",
        "name": null,
        "ip": null,
        "createBy": null,
        "createTime": null,
        "updateBy": null,
        "updateTime": null,
        "tenantId": null,
        "dataStatus": null,
        "dbtype": null,
        "id": null,
        "defXml": null,
        "bpmnXml": null
      },
      "primaryBpmnXml": null,
      "designer": "web设计器",
      "typeName": null,
      "authorizeRight": {
        "authType": "manage",
        "defKey": null,
        "managementEdit": "Y",
        "managementDel": "Y",
        "managementStart": "Y",
        "managementSet": "Y",
        "managementInternational": "Y",
        "managementClean": "Y",
        "managementGuideEdit": "Y",
        "instanceDel": "N",
        "instanceLog": "N",
        "rightContent": "{\"m_edit\":\"Y\",\"m_del\":\"Y\",\"m_start\":\"Y\",\"m_set\":\"Y\",\"m_international\":\"Y\",\"m_clean\":\"Y\",\"m_guideEdit\":\"Y\"}",
        "rightJsonObj": {
          "m_edit": "Y",
          "m_del": "Y",
          "m_start": "Y",
          "m_set": "Y",
          "m_international": "Y",
          "m_clean": "Y",
          "m_guideEdit": "Y"
        }
      },
      "reminders": null,
      "trigerFlows": null,
      "auths": null,
      "sn": 0,
      "favorites": false,
      "hasGuide": false,
      "id": "680370541093191680",
      "main": false,
      "bpmnXml": null,
      "defXml": null
    }返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | BpmDefinePo | 流程定义对象 | 
3、根据流程定义key查询信息
简述:
- 根据流程定义key查询信息
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/getByDefKey
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defKey | String | 是 | 流程定义key | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/getByDefKey?defKey=Process_0f8oaab返回示例:
{
      "pk": "",
      "name": "开发单表",
      "ip": null,
      "createBy": "654622686055497728",
      "createTime": "2020-02-21 11:09:38",
      "updateBy": "654622686055497728",
      "updateTime": "2020-02-21 11:25:26",
      "tenantId": null,
      "dataStatus": null,
      "dbtype": null,
      "defId": "680370541093191680",
      "parentDefId": null,
      "parentNodeId": null,
      "srcDefId": null,
      "defKey": "Process_0f8oaab",
      "desc": "",
      "typeId": null,
      "status": "deploy",
      "testStatus": "test",
      "bpmnDefId": "Process_0f8oaab:1:680370541651034112",
      "bpmnDeployId": "680370541353238528",
      "version": 1,
      "boCode": "kfdb",
      "boVersion": 1,
      "mainDefId": "680370541093191680",
      "isMain": "Y",
      "reason": null,
      "bpmDefineXmlPo": {
        "pk": "",
        "name": null,
        "ip": null,
        "createBy": null,
        "createTime": null,
        "updateBy": null,
        "updateTime": null,
        "tenantId": null,
        "dataStatus": null,
        "dbtype": null,
        "id": null,
        "defXml": null,
        "bpmnXml": null
      },
      "primaryBpmnXml": null,
      "designer": "web设计器",
      "typeName": null,
      "authorizeRight": {
        "authType": "manage",
        "defKey": null,
        "managementEdit": "Y",
        "managementDel": "Y",
        "managementStart": "Y",
        "managementSet": "Y",
        "managementInternational": "Y",
        "managementClean": "Y",
        "managementGuideEdit": "Y",
        "instanceDel": "N",
        "instanceLog": "N",
        "rightContent": "{\"m_edit\":\"Y\",\"m_del\":\"Y\",\"m_start\":\"Y\",\"m_set\":\"Y\",\"m_international\":\"Y\",\"m_clean\":\"Y\",\"m_guideEdit\":\"Y\"}",
        "rightJsonObj": {
          "m_edit": "Y",
          "m_del": "Y",
          "m_start": "Y",
          "m_set": "Y",
          "m_international": "Y",
          "m_clean": "Y",
          "m_guideEdit": "Y"
        }
      },
      "reminders": null,
      "trigerFlows": null,
      "auths": null,
      "sn": 0,
      "favorites": false,
      "hasGuide": false,
      "id": "680370541093191680",
      "main": false,
      "bpmnXml": null,
      "defXml": null
    }返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | BpmDefinePo | 流程定义对象 | 
4、保存
简述:
- 保存【流程定义】信息
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/save
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 否 | 流程定义ID | ||
| parentDefId | String | 否 | 父流程定义ID | ||
| parentNodeId | String | 否 | 父流程定义节点ID | ||
| srcDefId | String | 否 | 源流程定义ID | ||
| name | String | 是 | 流程名称 | ||
| defKey | String | 是 | 流程业务主键 | ||
| desc | String | 否 | 流程描述 | ||
| typeId | String | 否 | 所属分类ID | ||
| status | String | 否 | 流程状态。草稿、发布、禁用 | ||
| testStatus | String | 否 | 测试状态 | ||
| bpmnDefId | String | 否 | BPMN - 流程定义ID | ||
| bpmnDeployId | String | 否 | BPMN - 流程发布ID | ||
| version | Integer | 否 | 版本 - 当前版本号 | ||
| boCode | String | 否 | 业务对象编码 | ||
| boVersion | Integer | 否 | 业务对象版本 | ||
| mainDefId | String | 否 | 版本 - 主版本流程ID | ||
| isMain | String | 否 | 版本 - 是否主版本 | ||
| reason | String | 否 | 版本 - 变更理由 | ||
| createBy | String | 否 | 创建人ID | ||
| createTime | java.util.Date | 否 | 创建时间 | ||
| updateBy | String | 否 | 更新人ID | ||
| updateTime | java.util.Date | 否 | 更新时间 | ||
| bpmDefineXmlPo | BpmDefineXmlPo | 否 | 流程定义大数据 | 
BpmDefineXmlPo结构如下:
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
| :—–: | :—–: | :—–: | :—–: | :—– | :—– |
| defId  | String | 否 | | 流程定义ID |
| defXml  | String | 否 | | 流程定义XML |
| bpmnXml  | String | 否 | | 流程定义BPMN格式XML |
请求参数示例:
{
  "deploy": true,
  "newDeploy": false,
  "typeId": "",
  "defId": "",
  "defXml": "<?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_0u9flh9\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><process id=\"Process_0pd2hdg\" name=\"测试保存\" isExecutable=\"false\"><startEvent id=\"StartEvent_125iyi0\" name=\"开始\"><outgoing>Flow_01620rj</outgoing></startEvent><userTask id=\"Activity_0i1o9bo\" name=\"发起\"><incoming>Flow_01620rj</incoming><outgoing>Flow_0e39d4u</outgoing></userTask><sequenceFlow id=\"Flow_01620rj\" sourceRef=\"StartEvent_125iyi0\" targetRef=\"Activity_0i1o9bo\" /><userTask id=\"Activity_0goylkr\" name=\"审批\"><incoming>Flow_0e39d4u</incoming><outgoing>Flow_0koht4p</outgoing></userTask><sequenceFlow id=\"Flow_0e39d4u\" sourceRef=\"Activity_0i1o9bo\" targetRef=\"Activity_0goylkr\" /><endEvent id=\"Event_175o0yr\"><incoming>Flow_0koht4p</incoming></endEvent><sequenceFlow id=\"Flow_0koht4p\" sourceRef=\"Activity_0goylkr\" targetRef=\"Event_175o0yr\" /></process><bpmndi:BPMNDiagram id=\"BPMNDiagram_1wzjuq3\"><bpmndi:BPMNPlane id=\"BPMNPlane_11wo882\" bpmnElement=\"Process_0pd2hdg\"><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_125iyi0\" bpmnElement=\"StartEvent_125iyi0\"><dc:Bounds x=\"180\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_0i1o9bo_di\" bpmnElement=\"Activity_0i1o9bo\"><dc:Bounds x=\"270\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_01620rj_di\" bpmnElement=\"Flow_01620rj\"><di:waypoint x=\"216\" y=\"258\" /><di:waypoint x=\"270\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Activity_0goylkr_di\" bpmnElement=\"Activity_0goylkr\"><dc:Bounds x=\"430\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0e39d4u_di\" bpmnElement=\"Flow_0e39d4u\"><di:waypoint x=\"370\" y=\"258\" /><di:waypoint x=\"430\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Event_175o0yr_di\" bpmnElement=\"Event_175o0yr\"><dc:Bounds x=\"592\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0koht4p_di\" bpmnElement=\"Flow_0koht4p\"><di:waypoint x=\"530\" y=\"258\" /><di:waypoint x=\"592\" y=\"258\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></definitions>"
}返回示例:
{
  "state": 200,
  "request": null,
  "message": "保存流程定义成功",
  "cause": "",
  "variables": {},
  "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
5、复制流程定义信息
简述:
- 复制一条数据,用新的key保存
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/copy
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| oldDefId | String | 是 | 主键id | ||
| newDefKey | String | 是 | 新主键key | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/copy?oldDefId=626866373389189120&newDefKey=test返回示例:
{
    "state": 200,
    "request": null,
    "message": "复制流程定义成功",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
6、删除
简述:
- 批量删除【流程定义】记录
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/remove
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defIds | String | 是 | 主键id | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/remove?defIds=654357778126602240,638399136323862528返回示例:
{
  "state": 200,
  "request": null,
  "message": "删除流程定义成功",
  "cause": "",
  "variables": {},
  "data": null
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
7、清除测试状态流程的测试数据
简述:
- 清除测试状态流程的测试数据
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/cleanData
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 主键id | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/cleanData?defId=626866373389189120返回示例:
{
    "state": 200,
    "request": null,
    "message": "清除数据成功",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
8、设置分类
简述:
- 设置分类
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/setCategory
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defIds | String | 是 | 主键id | ||
| typeId | String | 是 | 分类主键id | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/setCategory?defIds=626866373389189120&typeId=1234返回示例:
{
    "state": 200,
    "request": null,
    "message": "设置分类成功!",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
9、返回流程设计生成的xml
简述:
- 返回流程设计生成的xml
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/bpmnXml
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 主键id | ||
| type | String | 是 | type类型 | ‘bpmn’/‘def’ | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/bpmnXml?defId=626866373389189120&type=bpmn返回示例:
无返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
10、发布流程定义
简述:
- 发布流程定义
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/deploy
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 主键id | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/deploy?defId=626866373389189120返回示例:
{
    "state": 200,
    "request": null,
    "message": "发布流程定义成功!",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
11、导出流程定义对象
简述:
- 导出格式为*.zip的流程定义对象,zip文件包含多个xml文件,每一个xml文件都是一个流程定义对象
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/export
 - 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/definition/export?ids=626866373389189120,626866373389189121返回示例:
该返回为文件流,无法展示12、导入流程定义
简述:
- 导入流程定义
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/importBpm
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| multipartFile | MultipartFile | 是 | 流程定义文件压缩包 | 
请求参数示例:
{
    multipartFile: file //文件
}返回示例:
{
    "state": 200,
    "request": null,
    "message": "导入成功!",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
13、挂起流程定义
简述:
- 挂起流程定义
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/suspend
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 流程定义ID | ||
| cascade | Boolean | 是 | 是否级联处理 | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/suspend?defId=626866373389189120&cascade=true返回示例:
{
    "state": 200,
    "request": null,
    "message": "挂起流程定义成功",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
14、恢复流程定义
简述:
- 恢复流程定义
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/recover
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 流程定义ID | ||
| cascade | Boolean | 是 | 是否级联处理 | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/recover?defId=626866373389189120&cascade=true返回示例:
{
    "state": 200,
    "request": null,
    "message": "恢复流程定义成功",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
15、批量挂起流程定义
简述:
- 批量挂起流程定义
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/batchSuspend
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defIds | String | 是 | 流程定义ID | ||
| cascade | Boolean | 是 | 是否级联处理 | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/batchSuspend?defIds=626866373389189120&cascade=true返回示例:
{
    "state": 200,
    "request": null,
    "message": "挂起流程定义成功",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
16、批量恢复流程定义
简述:
- 批量恢复流程定义
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/batchRecover
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defIds | String | 是 | 流程定义ID | ||
| cascade | Boolean | 是 | 是否级联处理 | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/batchRecover?defIds=626866373389189120&cascade=true返回示例:
{
    "state": 200,
    "request": null,
    "message": "恢复流程定义成功",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
17、流程收藏
简述:
- 流程收藏
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/saveFavorites
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defIds | String | 是 | 流程定义ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/saveFavorites?defIds=626866373389189120返回示例:
{
    "state": 200,
    "request": null,
    "message": "流程收藏成功!",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
18、取消流程收藏
简述:
- 取消流程收藏
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/removeFavorites
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defIds | String | 是 | 流程定义ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/removeFavorites?defIds=626866373389189120返回示例:
{
    "state": 200,
    "request": null,
    "message": "取消流程收藏成功!",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
19、流程收藏排序
简述:
- 流程收藏排序
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/sortFavorites
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defIds | String | 是 | 流程定义ID | ||
| sort | String | 否 | up | 排序方式 | up/first/down/last | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/sortFavorites?defIds=626866373389189120返回示例:
{
    "state": 200,
    "request": null,
    "message": "流程收藏排序成功!",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
20、检查流程定义是否存在
简述:
- 检查流程定义是否存在
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/checkExist
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 否 | 流程定义ID | ||
| defKey | String | 否 | up | 流程定义key | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/checkExist?defId=626866373389189120返回示例:
{
    "state": 200,
    "request": null,
    "message": "流程定义不存在",
    "cause": "",
    "variables": {},
    "data": false
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
21、根据表单key查询流程定义
简述:
- 根据表单key查询流程定义
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/queryByFormKey
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| request | APIRequest[1] | 是 | 动态查询请求对象 | 
请求参数示例:
{
    "parameters": [
        {
            formKey: 'apply'
        }
    ],
    "requestPage": {
        "pageNo": 1,
        "limit": 20
    },
    "sorts": []
}返回示例:
{
  "state": 200,
  "request": null,
  "message": "流程定义列表查询成功!",
  "cause": "",
  "variables": {},
  "data": {
    "dataResult": [{
      "pk": "",
      "name": "开发单表",
      "ip": null,
      "createBy": "654622686055497728",
      "createTime": "2020-02-21 11:09:38",
      "updateBy": "654622686055497728",
      "updateTime": "2020-02-21 11:25:26",
      "tenantId": null,
      "dataStatus": null,
      "dbtype": null,
      "defId": "680370541093191680",
      "parentDefId": null,
      "parentNodeId": null,
      "srcDefId": null,
      "defKey": "Process_0f8oaab",
      "desc": "",
      "typeId": null,
      "status": "deploy",
      "testStatus": "test",
      "bpmnDefId": "Process_0f8oaab:1:680370541651034112",
      "bpmnDeployId": "680370541353238528",
      "version": 1,
      "boCode": "kfdb",
      "boVersion": 1,
      "mainDefId": "680370541093191680",
      "isMain": "Y",
      "reason": null,
      "bpmDefineXmlPo": {
        "pk": "",
        "name": null,
        "ip": null,
        "createBy": null,
        "createTime": null,
        "updateBy": null,
        "updateTime": null,
        "tenantId": null,
        "dataStatus": null,
        "dbtype": null,
        "id": null,
        "defXml": null,
        "bpmnXml": null
      },
      "primaryBpmnXml": null,
      "designer": "web设计器",
      "typeName": null,
      "authorizeRight": {
        "authType": "manage",
        "defKey": null,
        "managementEdit": "Y",
        "managementDel": "Y",
        "managementStart": "Y",
        "managementSet": "Y",
        "managementInternational": "Y",
        "managementClean": "Y",
        "managementGuideEdit": "Y",
        "instanceDel": "N",
        "instanceLog": "N",
        "rightContent": "{\"m_edit\":\"Y\",\"m_del\":\"Y\",\"m_start\":\"Y\",\"m_set\":\"Y\",\"m_international\":\"Y\",\"m_clean\":\"Y\",\"m_guideEdit\":\"Y\"}",
        "rightJsonObj": {
          "m_edit": "Y",
          "m_del": "Y",
          "m_start": "Y",
          "m_set": "Y",
          "m_international": "Y",
          "m_clean": "Y",
          "m_guideEdit": "Y"
        }
      },
      "reminders": null,
      "trigerFlows": null,
      "auths": null,
      "sn": 0,
      "favorites": false,
      "hasGuide": false,
      "id": "680370541093191680",
      "main": false,
      "bpmnXml": null,
      "defXml": null
    }],
    "pageResult": {
      "limit": 20,
      "page": 1,
      "totalCount": 136,
      "totalPages": 7
    }
  }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | List< BpmDefinePo > | 流程定义列表 | 
流程定义配置
22、流程定义配置(设置流程图、全局、节点)
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/setting
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 流程定义ID | ||
| defKey | String | 是 | 流程定义标识 | ||
| parentDefId | String | 是 | 父流程定义ID | ||
| parentNodeId | String | 是 | 父流程节点ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/setting?defId=626866373389189120返回示例:
{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": {
    "defId": "680370541093191680",
    "subProcess": "subProcess",
    "bpmDefLayout": {
      "defId": "680370541093191680",
      "name": "开发单表",
      "width": 678.0,
      "height": 348.0,
      "listLayout": [{
        "nodeId": "StartEvent_08yghcp",
        "name": "开始",
        "nodeType": {
          "key": "start",
          "value": "开始节点"
        },
        "parentNodeId": "",
        "x": 5.0,
        "y": 27.0,
        "width": 36.0,
        "height": 36.0
      }, {
        "nodeId": "Activity_1t5r0yu",
        "name": "1",
        "nodeType": {
          "key": "userTask",
          "value": "用户任务节点"
        },
        "parentNodeId": "",
        "x": 95.0,
        "y": 5.0,
        "width": 100.0,
        "height": 80.0
      }, {
        "nodeId": "Activity_0zj8vy5",
        "name": "2",
        "nodeType": {
          "key": "userTask",
          "value": "用户任务节点"
        },
        "parentNodeId": "",
        "x": 255.0,
        "y": 5.0,
        "width": 100.0,
        "height": 80.0
      }, {
        "nodeId": "Event_0rbv1gy",
        "name": "",
        "nodeType": {
          "key": "end",
          "value": "结束节点"
        },
        "parentNodeId": "",
        "x": 417.0,
        "y": 27.0,
        "width": 36.0,
        "height": 36.0
      }]
    },
    "data": "{\"global\":{\"id\":\"Process_0f8oaab\",\"bo\":{\"saveMode\":\"table\",\"code\":\"kfdb\",\"name\":\"开发单表\",\"version\":1},\"form\":{\"type\":\"inner\",\"version\":0,\"mobileVersion\":null,\"formValue\":\"kfdb\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":null,\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\",\"prevHandler\":null,\"postHandler\":null},\"instForm\":{\"type\":\"inner\",\"version\":null,\"mobileVersion\":null,\"formValue\":\"kfdb\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":null,\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\"},\"formOpinions\":{},\"attributes\":{\"subjectRule\":\"{发起人:startorName}在{发起时间:startTime}发起{流程标题:title}\",\"archiveNotifyType\":\"inner\",\"allowTransTo\":false,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"description\":\"\",\"firstNodeUserAssign\":false,\"startNotifyType\":\"inner\",\"notifyType\":\"inner\",\"skipExecutorEmpty\":false,\"testNotifyType\":\"inner\",\"allowCopyTo\":false,\"testStatus\":\"test\",\"skipSameUser\":true,\"allowRefCounts\":5,\"postHandler\":\"\",\"skipFirstNode\":true,\"allowReference\":false,\"status\":\"deploy\"},\"variables\":[],\"procNotify\":[]},\"nodes\":[{\"node_name\":\"2\",\"node_type\":\"userTask\",\"id\":\"Activity_0zj8vy5\",\"parentId\":null,\"users\":[],\"form\":{\"type\":\"\",\"version\":\"\",\"mobileVersion\":\"\",\"formValue\":\"\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":\"\",\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\"},\"scripts\":{\"complete\":\"\",\"create\":\"\"},\"buttons\":[{\"aliasName\":\"锁定\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"锁定\",\"alias\":\"lock\",\"beforeScript\":\"\"},{\"aliasName\":\"解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"解锁\",\"alias\":\"unlock\",\"beforeScript\":\"\"},{\"aliasName\":\"强制解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"强制解锁\",\"alias\":\"forceUnlock\",\"beforeScript\":\"\"},{\"aliasName\":\"同意\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"同意\",\"alias\":\"agree\",\"beforeScript\":\"\"},{\"aliasName\":\"反对\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"反对\",\"alias\":\"oppose\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回\",\"alias\":\"reject\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回发起人\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回发起人\",\"alias\":\"rejectToStart\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回上一步\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回上一步\",\"alias\":\"rejectToPrevious\",\"beforeScript\":\"\"},{\"aliasName\":\"转办\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"转办\",\"alias\":\"delegate\",\"beforeScript\":\"\"},{\"aliasName\":\"审批历史\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"审批历史\",\"alias\":\"approvalHistory\",\"beforeScript\":\"\"},{\"aliasName\":\"流程图\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"流程图\",\"alias\":\"flowImage\",\"beforeScript\":\"\"},{\"aliasName\":\"打印\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"打印\",\"alias\":\"print\",\"beforeScript\":\"\"},{\"aliasName\":\"终止流程\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"终止流程\",\"alias\":\"endProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"挂起\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"挂起\",\"alias\":\"suspendProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"恢复\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"恢复\",\"alias\":\"recoverProcess\",\"beforeScript\":\"\"}],\"jumpRules\":[],\"reminders\":[],\"trigerFlows\":[],\"procNotify\":[],\"withOutGateway\":false,\"attributes\":{\"hideOpinion\":false,\"jumpType\":\"common\",\"rejectSection\":\"\",\"hidePath\":true,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"notifyType\":\"inner\",\"parentDefKey\":\"local_\",\"skipExecutorEmpty\":false,\"rejectType\":\"all\",\"postHandler\":\"\",\"buttonInitialized\":true,\"nodeId\":\"Activity_0zj8vy5\"}},{\"node_name\":\"1\",\"node_type\":\"userTask\",\"id\":\"Activity_1t5r0yu\",\"parentId\":null,\"users\":[],\"form\":{\"type\":\"\",\"version\":\"\",\"mobileVersion\":\"\",\"formValue\":\"\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":\"\",\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\"},\"scripts\":{\"complete\":\"\",\"create\":\"\"},\"buttons\":[{\"aliasName\":\"锁定\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"锁定\",\"alias\":\"lock\",\"beforeScript\":\"\"},{\"aliasName\":\"解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"解锁\",\"alias\":\"unlock\",\"beforeScript\":\"\"},{\"aliasName\":\"强制解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"强制解锁\",\"alias\":\"forceUnlock\",\"beforeScript\":\"\"},{\"aliasName\":\"同意\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"同意\",\"alias\":\"agree\",\"beforeScript\":\"\"},{\"aliasName\":\"反对\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"反对\",\"alias\":\"oppose\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回\",\"alias\":\"reject\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回发起人\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回发起人\",\"alias\":\"rejectToStart\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回上一步\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回上一步\",\"alias\":\"rejectToPrevious\",\"beforeScript\":\"\"},{\"aliasName\":\"转办\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"转办\",\"alias\":\"delegate\",\"beforeScript\":\"\"},{\"aliasName\":\"审批历史\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"审批历史\",\"alias\":\"approvalHistory\",\"beforeScript\":\"\"},{\"aliasName\":\"流程图\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"流程图\",\"alias\":\"flowImage\",\"beforeScript\":\"\"},{\"aliasName\":\"打印\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"打印\",\"alias\":\"print\",\"beforeScript\":\"\"},{\"aliasName\":\"终止流程\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"终止流程\",\"alias\":\"endProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"挂起\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"挂起\",\"alias\":\"suspendProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"恢复\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"恢复\",\"alias\":\"recoverProcess\",\"beforeScript\":\"\"}],\"jumpRules\":[],\"reminders\":[],\"trigerFlows\":[],\"procNotify\":[],\"withOutGateway\":false,\"attributes\":{\"hideOpinion\":false,\"jumpType\":\"common\",\"rejectSection\":\"\",\"hidePath\":true,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"notifyType\":\"inner\",\"parentDefKey\":\"local_\",\"skipExecutorEmpty\":false,\"rejectType\":\"all\",\"postHandler\":\"\",\"buttonInitialized\":true,\"nodeId\":\"Activity_1t5r0yu\"}},{\"node_name\":\"\",\"node_type\":\"end\",\"id\":\"Event_0rbv1gy\",\"parentId\":null,\"scripts\":{\"end\":\"\"}},{\"node_name\":\"开始\",\"node_type\":\"start\",\"id\":\"StartEvent_08yghcp\",\"parentId\":null,\"scripts\":{\"start\":\"\"},\"buttons\":[{\"aliasName\":\"启动\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"启动\",\"alias\":\"startFlow\",\"beforeScript\":\"\"},{\"aliasName\":\"保存草稿\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"保存草稿\",\"alias\":\"saveDraft\",\"beforeScript\":\"\"},{\"aliasName\":\"流程图\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"流程图\",\"alias\":\"flowImage\",\"beforeScript\":\"\"},{\"aliasName\":\"打印\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"打印\",\"alias\":\"print\",\"beforeScript\":\"\"}],\"attributes\":{\"hideOpinion\":false,\"jumpType\":\"common\",\"rejectSection\":\"\",\"hidePath\":true,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"notifyType\":\"\",\"parentDefKey\":\"local_\",\"skipExecutorEmpty\":false,\"rejectType\":\"all\",\"postHandler\":\"\",\"buttonInitialized\":true,\"nodeId\":\"StartEvent_08yghcp\"}}]}",
    "messageTypes": "[{\"type\":\"inner\",\"title\":\"内部消息\"},{\"type\":\"sms\",\"title\":\"短信\"},{\"type\":\"mail\",\"title\":\"邮件\"},{\"type\":\"wechat\",\"title\":\"微信消息\"}]",
    "bpmDefinition": {
      "pk": "",
      "name": "开发单表",
      "ip": null,
      "createBy": "654622686055497728",
      "createTime": "2020-02-21 11:09:38",
      "updateBy": "654622686055497728",
      "updateTime": "2020-02-21 11:25:26",
      "tenantId": null,
      "dataStatus": null,
      "dbtype": null,
      "defId": "680370541093191680",
      "parentDefId": null,
      "parentNodeId": null,
      "srcDefId": null,
      "defKey": "Process_0f8oaab",
      "desc": "",
      "typeId": null,
      "status": "deploy",
      "testStatus": "test",
      "bpmnDefId": "Process_0f8oaab:1:680370541651034112",
      "bpmnDeployId": "680370541353238528",
      "version": 1,
      "boCode": "kfdb",
      "boVersion": 1,
      "mainDefId": "680370541093191680",
      "isMain": "Y",
      "reason": null,
      "bpmDefineXmlPo": {
        "pk": "",
        "name": null,
        "ip": null,
        "createBy": null,
        "createTime": null,
        "updateBy": null,
        "updateTime": null,
        "tenantId": null,
        "dataStatus": null,
        "dbtype": null,
        "id": "680370541093191680",
        "defXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xns=\"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_1dczmkp\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><process id=\"Process_0f8oaab\" name=\"开发单表\" isExecutable=\"false\"><startEvent id=\"StartEvent_08yghcp\" name=\"开始\"><outgoing>Flow_1xlnzqu</outgoing></startEvent><userTask id=\"Activity_1t5r0yu\" name=\"1\"><incoming>Flow_1xlnzqu</incoming><outgoing>Flow_0xbun51</outgoing></userTask><sequenceFlow id=\"Flow_1xlnzqu\" sourceRef=\"StartEvent_08yghcp\" targetRef=\"Activity_1t5r0yu\" /><userTask id=\"Activity_0zj8vy5\" name=\"2\"><incoming>Flow_0xbun51</incoming><outgoing>Flow_0flgetw</outgoing></userTask><sequenceFlow id=\"Flow_0xbun51\" sourceRef=\"Activity_1t5r0yu\" targetRef=\"Activity_0zj8vy5\" /><endEvent id=\"Event_0rbv1gy\"><incoming>Flow_0flgetw</incoming></endEvent><sequenceFlow id=\"Flow_0flgetw\" sourceRef=\"Activity_0zj8vy5\" targetRef=\"Event_0rbv1gy\" /></process><bpmndi:BPMNDiagram id=\"BPMNDiagram_0t2feco\"><bpmndi:BPMNPlane id=\"BPMNPlane_0cs5mgs\" bpmnElement=\"Process_0f8oaab\"><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_08yghcp\" bpmnElement=\"StartEvent_08yghcp\"><dc:Bounds x=\"180\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1t5r0yu_di\" bpmnElement=\"Activity_1t5r0yu\"><dc:Bounds x=\"270\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_1xlnzqu_di\" bpmnElement=\"Flow_1xlnzqu\"><di:waypoint x=\"216\" y=\"258\" /><di:waypoint x=\"270\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Activity_0zj8vy5_di\" bpmnElement=\"Activity_0zj8vy5\"><dc:Bounds x=\"430\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0xbun51_di\" bpmnElement=\"Flow_0xbun51\"><di:waypoint x=\"370\" y=\"258\" /><di:waypoint x=\"430\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Event_0rbv1gy_di\" bpmnElement=\"Event_0rbv1gy\"><dc:Bounds x=\"592\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0flgetw_di\" bpmnElement=\"Flow_0flgetw\"><di:waypoint x=\"530\" y=\"258\" /><di:waypoint x=\"592\" y=\"258\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></definitions>",
        "bpmnXml": "<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:fg=\"bpm.graphic\" xmlns:bg=\"bpm.graphic\" xmlns:fn=\"http://www.w3.org/2005/02/xpath-functions\" xmlns:bpm=\"http://www.bpmhome.cn/bpm\" xmlns:iform=\"http://www.bpmhome.cn/BPMN20EXT\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:activiti=\"http://activiti.org/bpmn\" targetNamespace=\"http://activiti.org/bpmn20\" xsi:schemaLocation=\"http://www.bpmhome.cn/BPMN20EXT BPMN20EXT.xsd\">\n  <process id=\"Process_0f8oaab\" name=\"开发单表\">\n    <extensionElements>\n      <activiti:executionListener event=\"start\" delegateExpression=\"${procStartListener}\"/>\n      <activiti:executionListener event=\"end\" delegateExpression=\"${procEndListener}\"/>\n      \n    <bpm:boDefine boSaveMode=\"table\" isRequired=\"false\" key=\"kfdb\" name=\"开发单表\" version=\"1\"/><bpm:globalForm editUrl=\"\" formValue=\"kfdb\" key=\"\" mobileName=\"\" mobileUrl=\"\" mobileValue=\"\" mobileVersion=\"0\" name=\"\" parentFlowKey=\"local_\" templateId=\"\" templateName=\"\" type=\"inner\" version=\"0\"/><bpm:instForm editUrl=\"\" formValue=\"kfdb\" key=\"\" mobileName=\"\" mobileUrl=\"\" mobileValue=\"\" mobileVersion=\"0\" name=\"\" parentFlowKey=\"local_\" templateId=\"\" templateName=\"\" type=\"inner\" version=\"0\"/><bpm:attributes><bpm:attribute name=\"subjectRule\" value=\"{发起人:startorName}在{发起时间:startTime}发起{流程标题:title}\"/><bpm:attribute name=\"archiveNotifyType\" value=\"inner\"/><bpm:attribute name=\"allowTransTo\" value=\"false\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"description\" value=\"\"/><bpm:attribute name=\"firstNodeUserAssign\" value=\"false\"/><bpm:attribute name=\"startNotifyType\" value=\"inner\"/><bpm:attribute name=\"notifyType\" value=\"inner\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"testNotifyType\" value=\"inner\"/><bpm:attribute name=\"allowCopyTo\" value=\"false\"/><bpm:attribute name=\"testStatus\" value=\"test\"/><bpm:attribute name=\"skipSameUser\" value=\"true\"/><bpm:attribute name=\"allowRefCounts\" value=\"5\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"skipFirstNode\" value=\"true\"/><bpm:attribute name=\"allowReference\" value=\"false\"/><bpm:attribute name=\"status\" value=\"deploy\"/></bpm:attributes></extensionElements>\n    <startEvent activiti:initiator=\"startUser\" id=\"StartEvent_08yghcp\" name=\"开始\">\n      <extensionElements>\n        \n      <bpm:userScripts/><bpm:buttons><bpm:button alias=\"startFlow\" name=\"启动\"/><bpm:button alias=\"saveDraft\" name=\"保存草稿\"/><bpm:button alias=\"flowImage\" name=\"流程图\"/><bpm:button alias=\"print\" name=\"打印\"/></bpm:buttons><bpm:attributes><bpm:attribute name=\"hideOpinion\" value=\"false\"/><bpm:attribute name=\"jumpType\" value=\"common\"/><bpm:attribute name=\"rejectSection\" value=\"\"/><bpm:attribute name=\"hidePath\" value=\"true\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"notifyType\" value=\"\"/><bpm:attribute name=\"parentDefKey\" value=\"local_\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"rejectType\" value=\"all\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"buttonInitialized\" value=\"true\"/><bpm:attribute name=\"nodeId\" value=\"StartEvent_08yghcp\"/></bpm:attributes></extensionElements>\n    </startEvent>\n    <endEvent id=\"Event_0rbv1gy\" name=\"\">\n      <extensionElements><bpm:userScripts/></extensionElements>\n    </endEvent>\n    <sequenceFlow sourceRef=\"StartEvent_08yghcp\" targetRef=\"Activity_1t5r0yu\" id=\"Flow_1xlnzqu\" name=\"\">\n      <extensionElements/>\n    </sequenceFlow>\n    <sequenceFlow sourceRef=\"Activity_1t5r0yu\" targetRef=\"Activity_0zj8vy5\" id=\"Flow_0xbun51\" name=\"\">\n      <extensionElements/>\n    </sequenceFlow>\n    <sequenceFlow sourceRef=\"Activity_0zj8vy5\" targetRef=\"Event_0rbv1gy\" id=\"Flow_0flgetw\" name=\"\">\n      <extensionElements/>\n    </sequenceFlow>\n    <userTask id=\"Activity_1t5r0yu\" name=\"1\">\n      <extensionElements>\n        <activiti:taskListener event=\"create\" delegateExpression=\"${taskCreateListener}\"/>\n        <activiti:taskListener event=\"complete\" delegateExpression=\"${taskCompleteListener}\"/>\n        \n      <bpm:userScripts/><bpm:buttons><bpm:button alias=\"lock\" name=\"锁定\"/><bpm:button alias=\"unlock\" name=\"解锁\"/><bpm:button alias=\"forceUnlock\" name=\"强制解锁\"/><bpm:button alias=\"agree\" name=\"同意\"/><bpm:button alias=\"oppose\" name=\"反对\"/><bpm:button alias=\"reject\" name=\"驳回\"/><bpm:button alias=\"rejectToStart\" name=\"驳回发起人\"/><bpm:button alias=\"rejectToPrevious\" name=\"驳回上一步\"/><bpm:button alias=\"delegate\" name=\"转办\"/><bpm:button alias=\"approvalHistory\" name=\"审批历史\"/><bpm:button alias=\"flowImage\" name=\"流程图\"/><bpm:button alias=\"print\" name=\"打印\"/><bpm:button alias=\"endProcess\" name=\"终止流程\"/><bpm:button alias=\"suspendProcess\" name=\"挂起\"/><bpm:button alias=\"recoverProcess\" name=\"恢复\"/></bpm:buttons><bpm:attributes><bpm:attribute name=\"hideOpinion\" value=\"false\"/><bpm:attribute name=\"jumpType\" value=\"common\"/><bpm:attribute name=\"rejectSection\" value=\"\"/><bpm:attribute name=\"hidePath\" value=\"true\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"notifyType\" value=\"inner\"/><bpm:attribute name=\"parentDefKey\" value=\"local_\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"rejectType\" value=\"all\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"buttonInitialized\" value=\"true\"/><bpm:attribute name=\"nodeId\" value=\"Activity_1t5r0yu\"/></bpm:attributes><bpm:plugins>\n</bpm:plugins></extensionElements>\n    </userTask>\n    <userTask id=\"Activity_0zj8vy5\" name=\"2\">\n      <extensionElements>\n        <activiti:taskListener event=\"create\" delegateExpression=\"${taskCreateListener}\"/>\n        <activiti:taskListener event=\"complete\" delegateExpression=\"${taskCompleteListener}\"/>\n        \n      <bpm:userScripts/><bpm:buttons><bpm:button alias=\"lock\" name=\"锁定\"/><bpm:button alias=\"unlock\" name=\"解锁\"/><bpm:button alias=\"forceUnlock\" name=\"强制解锁\"/><bpm:button alias=\"agree\" name=\"同意\"/><bpm:button alias=\"oppose\" name=\"反对\"/><bpm:button alias=\"reject\" name=\"驳回\"/><bpm:button alias=\"rejectToStart\" name=\"驳回发起人\"/><bpm:button alias=\"rejectToPrevious\" name=\"驳回上一步\"/><bpm:button alias=\"delegate\" name=\"转办\"/><bpm:button alias=\"approvalHistory\" name=\"审批历史\"/><bpm:button alias=\"flowImage\" name=\"流程图\"/><bpm:button alias=\"print\" name=\"打印\"/><bpm:button alias=\"endProcess\" name=\"终止流程\"/><bpm:button alias=\"suspendProcess\" name=\"挂起\"/><bpm:button alias=\"recoverProcess\" name=\"恢复\"/></bpm:buttons><bpm:attributes><bpm:attribute name=\"hideOpinion\" value=\"false\"/><bpm:attribute name=\"jumpType\" value=\"common\"/><bpm:attribute name=\"rejectSection\" value=\"\"/><bpm:attribute name=\"hidePath\" value=\"true\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"notifyType\" value=\"inner\"/><bpm:attribute name=\"parentDefKey\" value=\"local_\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"rejectType\" value=\"all\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"buttonInitialized\" value=\"true\"/><bpm:attribute name=\"nodeId\" value=\"Activity_0zj8vy5\"/></bpm:attributes><bpm:plugins>\n</bpm:plugins></extensionElements>\n    </userTask>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_Process_0f8oaab\">\n    <bpmndi:BPMNPlane bpmnElement=\"Process_0f8oaab\" id=\"BPMNPlane_Process_0f8oaab\">\n      <bpmndi:BPMNShape bpmnElement=\"StartEvent_08yghcp\" id=\"_BPMNShape_StartEvent_08yghcp\">\n        <omgdc:Bounds height=\"36\" width=\"36\" x=\"180\" y=\"240\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Activity_1t5r0yu\" id=\"Activity_1t5r0yu_di\">\n        <omgdc:Bounds height=\"80\" width=\"100\" x=\"270\" y=\"218\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Activity_0zj8vy5\" id=\"Activity_0zj8vy5_di\">\n        <omgdc:Bounds height=\"80\" width=\"100\" x=\"430\" y=\"218\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Event_0rbv1gy\" id=\"Event_0rbv1gy_di\">\n        <omgdc:Bounds height=\"36\" width=\"36\" x=\"592\" y=\"240\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_1xlnzqu\" id=\"Flow_1xlnzqu_di\">\n        <omgdi:waypoint x=\"216\" y=\"258\"/>\n        <omgdi:waypoint x=\"270\" y=\"258\"/>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_0xbun51\" id=\"Flow_0xbun51_di\">\n        <omgdi:waypoint x=\"370\" y=\"258\"/>\n        <omgdi:waypoint x=\"430\" y=\"258\"/>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_0flgetw\" id=\"Flow_0flgetw_di\">\n        <omgdi:waypoint x=\"530\" y=\"258\"/>\n        <omgdi:waypoint x=\"592\" y=\"258\"/>\n      </bpmndi:BPMNEdge>\n    </bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>"
      },
      "primaryBpmnXml": null,
      "designer": "web设计器",
      "typeName": null,
      "authorizeRight": null,
      "reminders": null,
      "trigerFlows": null,
      "auths": null,
      "sn": 0,
      "favorites": false,
      "hasGuide": false,
      "id": "680370541093191680",
      "main": false,
      "defXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xns=\"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_1dczmkp\" targetNamespace=\"http://bpmn.io/schema/bpmn\" xsi:schemaLocation=\"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd\"><process id=\"Process_0f8oaab\" name=\"开发单表\" isExecutable=\"false\"><startEvent id=\"StartEvent_08yghcp\" name=\"开始\"><outgoing>Flow_1xlnzqu</outgoing></startEvent><userTask id=\"Activity_1t5r0yu\" name=\"1\"><incoming>Flow_1xlnzqu</incoming><outgoing>Flow_0xbun51</outgoing></userTask><sequenceFlow id=\"Flow_1xlnzqu\" sourceRef=\"StartEvent_08yghcp\" targetRef=\"Activity_1t5r0yu\" /><userTask id=\"Activity_0zj8vy5\" name=\"2\"><incoming>Flow_0xbun51</incoming><outgoing>Flow_0flgetw</outgoing></userTask><sequenceFlow id=\"Flow_0xbun51\" sourceRef=\"Activity_1t5r0yu\" targetRef=\"Activity_0zj8vy5\" /><endEvent id=\"Event_0rbv1gy\"><incoming>Flow_0flgetw</incoming></endEvent><sequenceFlow id=\"Flow_0flgetw\" sourceRef=\"Activity_0zj8vy5\" targetRef=\"Event_0rbv1gy\" /></process><bpmndi:BPMNDiagram id=\"BPMNDiagram_0t2feco\"><bpmndi:BPMNPlane id=\"BPMNPlane_0cs5mgs\" bpmnElement=\"Process_0f8oaab\"><bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_08yghcp\" bpmnElement=\"StartEvent_08yghcp\"><dc:Bounds x=\"180\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"Activity_1t5r0yu_di\" bpmnElement=\"Activity_1t5r0yu\"><dc:Bounds x=\"270\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_1xlnzqu_di\" bpmnElement=\"Flow_1xlnzqu\"><di:waypoint x=\"216\" y=\"258\" /><di:waypoint x=\"270\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Activity_0zj8vy5_di\" bpmnElement=\"Activity_0zj8vy5\"><dc:Bounds x=\"430\" y=\"218\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0xbun51_di\" bpmnElement=\"Flow_0xbun51\"><di:waypoint x=\"370\" y=\"258\" /><di:waypoint x=\"430\" y=\"258\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"Event_0rbv1gy_di\" bpmnElement=\"Event_0rbv1gy\"><dc:Bounds x=\"592\" y=\"240\" width=\"36\" height=\"36\" /></bpmndi:BPMNShape><bpmndi:BPMNEdge id=\"Flow_0flgetw_di\" bpmnElement=\"Flow_0flgetw\"><di:waypoint x=\"530\" y=\"258\" /><di:waypoint x=\"592\" y=\"258\" /></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></definitions>",
      "bpmnXml": "<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:fg=\"bpm.graphic\" xmlns:bg=\"bpm.graphic\" xmlns:fn=\"http://www.w3.org/2005/02/xpath-functions\" xmlns:bpm=\"http://www.bpmhome.cn/bpm\" xmlns:iform=\"http://www.bpmhome.cn/BPMN20EXT\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:activiti=\"http://activiti.org/bpmn\" targetNamespace=\"http://activiti.org/bpmn20\" xsi:schemaLocation=\"http://www.bpmhome.cn/BPMN20EXT BPMN20EXT.xsd\">\n  <process id=\"Process_0f8oaab\" name=\"开发单表\">\n    <extensionElements>\n      <activiti:executionListener event=\"start\" delegateExpression=\"${procStartListener}\"/>\n      <activiti:executionListener event=\"end\" delegateExpression=\"${procEndListener}\"/>\n      \n    <bpm:boDefine boSaveMode=\"table\" isRequired=\"false\" key=\"kfdb\" name=\"开发单表\" version=\"1\"/><bpm:globalForm editUrl=\"\" formValue=\"kfdb\" key=\"\" mobileName=\"\" mobileUrl=\"\" mobileValue=\"\" mobileVersion=\"0\" name=\"\" parentFlowKey=\"local_\" templateId=\"\" templateName=\"\" type=\"inner\" version=\"0\"/><bpm:instForm editUrl=\"\" formValue=\"kfdb\" key=\"\" mobileName=\"\" mobileUrl=\"\" mobileValue=\"\" mobileVersion=\"0\" name=\"\" parentFlowKey=\"local_\" templateId=\"\" templateName=\"\" type=\"inner\" version=\"0\"/><bpm:attributes><bpm:attribute name=\"subjectRule\" value=\"{发起人:startorName}在{发起时间:startTime}发起{流程标题:title}\"/><bpm:attribute name=\"archiveNotifyType\" value=\"inner\"/><bpm:attribute name=\"allowTransTo\" value=\"false\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"description\" value=\"\"/><bpm:attribute name=\"firstNodeUserAssign\" value=\"false\"/><bpm:attribute name=\"startNotifyType\" value=\"inner\"/><bpm:attribute name=\"notifyType\" value=\"inner\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"testNotifyType\" value=\"inner\"/><bpm:attribute name=\"allowCopyTo\" value=\"false\"/><bpm:attribute name=\"testStatus\" value=\"test\"/><bpm:attribute name=\"skipSameUser\" value=\"true\"/><bpm:attribute name=\"allowRefCounts\" value=\"5\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"skipFirstNode\" value=\"true\"/><bpm:attribute name=\"allowReference\" value=\"false\"/><bpm:attribute name=\"status\" value=\"deploy\"/></bpm:attributes></extensionElements>\n    <startEvent activiti:initiator=\"startUser\" id=\"StartEvent_08yghcp\" name=\"开始\">\n      <extensionElements>\n        \n      <bpm:userScripts/><bpm:buttons><bpm:button alias=\"startFlow\" name=\"启动\"/><bpm:button alias=\"saveDraft\" name=\"保存草稿\"/><bpm:button alias=\"flowImage\" name=\"流程图\"/><bpm:button alias=\"print\" name=\"打印\"/></bpm:buttons><bpm:attributes><bpm:attribute name=\"hideOpinion\" value=\"false\"/><bpm:attribute name=\"jumpType\" value=\"common\"/><bpm:attribute name=\"rejectSection\" value=\"\"/><bpm:attribute name=\"hidePath\" value=\"true\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"notifyType\" value=\"\"/><bpm:attribute name=\"parentDefKey\" value=\"local_\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"rejectType\" value=\"all\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"buttonInitialized\" value=\"true\"/><bpm:attribute name=\"nodeId\" value=\"StartEvent_08yghcp\"/></bpm:attributes></extensionElements>\n    </startEvent>\n    <endEvent id=\"Event_0rbv1gy\" name=\"\">\n      <extensionElements><bpm:userScripts/></extensionElements>\n    </endEvent>\n    <sequenceFlow sourceRef=\"StartEvent_08yghcp\" targetRef=\"Activity_1t5r0yu\" id=\"Flow_1xlnzqu\" name=\"\">\n      <extensionElements/>\n    </sequenceFlow>\n    <sequenceFlow sourceRef=\"Activity_1t5r0yu\" targetRef=\"Activity_0zj8vy5\" id=\"Flow_0xbun51\" name=\"\">\n      <extensionElements/>\n    </sequenceFlow>\n    <sequenceFlow sourceRef=\"Activity_0zj8vy5\" targetRef=\"Event_0rbv1gy\" id=\"Flow_0flgetw\" name=\"\">\n      <extensionElements/>\n    </sequenceFlow>\n    <userTask id=\"Activity_1t5r0yu\" name=\"1\">\n      <extensionElements>\n        <activiti:taskListener event=\"create\" delegateExpression=\"${taskCreateListener}\"/>\n        <activiti:taskListener event=\"complete\" delegateExpression=\"${taskCompleteListener}\"/>\n        \n      <bpm:userScripts/><bpm:buttons><bpm:button alias=\"lock\" name=\"锁定\"/><bpm:button alias=\"unlock\" name=\"解锁\"/><bpm:button alias=\"forceUnlock\" name=\"强制解锁\"/><bpm:button alias=\"agree\" name=\"同意\"/><bpm:button alias=\"oppose\" name=\"反对\"/><bpm:button alias=\"reject\" name=\"驳回\"/><bpm:button alias=\"rejectToStart\" name=\"驳回发起人\"/><bpm:button alias=\"rejectToPrevious\" name=\"驳回上一步\"/><bpm:button alias=\"delegate\" name=\"转办\"/><bpm:button alias=\"approvalHistory\" name=\"审批历史\"/><bpm:button alias=\"flowImage\" name=\"流程图\"/><bpm:button alias=\"print\" name=\"打印\"/><bpm:button alias=\"endProcess\" name=\"终止流程\"/><bpm:button alias=\"suspendProcess\" name=\"挂起\"/><bpm:button alias=\"recoverProcess\" name=\"恢复\"/></bpm:buttons><bpm:attributes><bpm:attribute name=\"hideOpinion\" value=\"false\"/><bpm:attribute name=\"jumpType\" value=\"common\"/><bpm:attribute name=\"rejectSection\" value=\"\"/><bpm:attribute name=\"hidePath\" value=\"true\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"notifyType\" value=\"inner\"/><bpm:attribute name=\"parentDefKey\" value=\"local_\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"rejectType\" value=\"all\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"buttonInitialized\" value=\"true\"/><bpm:attribute name=\"nodeId\" value=\"Activity_1t5r0yu\"/></bpm:attributes><bpm:plugins>\n</bpm:plugins></extensionElements>\n    </userTask>\n    <userTask id=\"Activity_0zj8vy5\" name=\"2\">\n      <extensionElements>\n        <activiti:taskListener event=\"create\" delegateExpression=\"${taskCreateListener}\"/>\n        <activiti:taskListener event=\"complete\" delegateExpression=\"${taskCompleteListener}\"/>\n        \n      <bpm:userScripts/><bpm:buttons><bpm:button alias=\"lock\" name=\"锁定\"/><bpm:button alias=\"unlock\" name=\"解锁\"/><bpm:button alias=\"forceUnlock\" name=\"强制解锁\"/><bpm:button alias=\"agree\" name=\"同意\"/><bpm:button alias=\"oppose\" name=\"反对\"/><bpm:button alias=\"reject\" name=\"驳回\"/><bpm:button alias=\"rejectToStart\" name=\"驳回发起人\"/><bpm:button alias=\"rejectToPrevious\" name=\"驳回上一步\"/><bpm:button alias=\"delegate\" name=\"转办\"/><bpm:button alias=\"approvalHistory\" name=\"审批历史\"/><bpm:button alias=\"flowImage\" name=\"流程图\"/><bpm:button alias=\"print\" name=\"打印\"/><bpm:button alias=\"endProcess\" name=\"终止流程\"/><bpm:button alias=\"suspendProcess\" name=\"挂起\"/><bpm:button alias=\"recoverProcess\" name=\"恢复\"/></bpm:buttons><bpm:attributes><bpm:attribute name=\"hideOpinion\" value=\"false\"/><bpm:attribute name=\"jumpType\" value=\"common\"/><bpm:attribute name=\"rejectSection\" value=\"\"/><bpm:attribute name=\"hidePath\" value=\"true\"/><bpm:attribute name=\"prevHandler\" value=\"\"/><bpm:attribute name=\"allowExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"notifyType\" value=\"inner\"/><bpm:attribute name=\"parentDefKey\" value=\"local_\"/><bpm:attribute name=\"skipExecutorEmpty\" value=\"false\"/><bpm:attribute name=\"rejectType\" value=\"all\"/><bpm:attribute name=\"postHandler\" value=\"\"/><bpm:attribute name=\"buttonInitialized\" value=\"true\"/><bpm:attribute name=\"nodeId\" value=\"Activity_0zj8vy5\"/></bpm:attributes><bpm:plugins>\n</bpm:plugins></extensionElements>\n    </userTask>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_Process_0f8oaab\">\n    <bpmndi:BPMNPlane bpmnElement=\"Process_0f8oaab\" id=\"BPMNPlane_Process_0f8oaab\">\n      <bpmndi:BPMNShape bpmnElement=\"StartEvent_08yghcp\" id=\"_BPMNShape_StartEvent_08yghcp\">\n        <omgdc:Bounds height=\"36\" width=\"36\" x=\"180\" y=\"240\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Activity_1t5r0yu\" id=\"Activity_1t5r0yu_di\">\n        <omgdc:Bounds height=\"80\" width=\"100\" x=\"270\" y=\"218\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Activity_0zj8vy5\" id=\"Activity_0zj8vy5_di\">\n        <omgdc:Bounds height=\"80\" width=\"100\" x=\"430\" y=\"218\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Event_0rbv1gy\" id=\"Event_0rbv1gy_di\">\n        <omgdc:Bounds height=\"36\" width=\"36\" x=\"592\" y=\"240\"/>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_1xlnzqu\" id=\"Flow_1xlnzqu_di\">\n        <omgdi:waypoint x=\"216\" y=\"258\"/>\n        <omgdi:waypoint x=\"270\" y=\"258\"/>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_0xbun51\" id=\"Flow_0xbun51_di\">\n        <omgdi:waypoint x=\"370\" y=\"258\"/>\n        <omgdi:waypoint x=\"430\" y=\"258\"/>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_0flgetw\" id=\"Flow_0flgetw_di\">\n        <omgdi:waypoint x=\"530\" y=\"258\"/>\n        <omgdi:waypoint x=\"592\" y=\"258\"/>\n      </bpmndi:BPMNEdge>\n    </bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>"
    }
  }
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| defId | String | 流程定义ID | 
| bpmDefinition | BpmDefinePo | 流程定义对象 | 
| bpmDefLayout | BpmDefLayout | 流程定义的坐标对象 | 
| messageTypes | String | 消息类型 | 
| data | String | 流程设置数据 | 
| subProcess | String | 流程节点类型 | 
23、获取流程定义表单变量
简述:
- 获取流程定义表单变量
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/buildFormVars
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 流程定义ID | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/buildFormVars?defId=626866373389189120返回示例:
{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": "[{\"id\":\"681535124172439552\",\"parentId\":0,\"name\":\"开发单表\",\"attrType\":\"table\",\"key\":\"kfdb\"},{\"id\":\"681535124172439553\",\"parentId\":0,\"name\":\"流程变量\"},{\"id\":\"681535124172439554\",\"parentId\":0,\"name\":\"流程常量\"},{\"id\":\"681535124172439555\",\"parentId\":\"681535124172439554\",\"name\":\"流程实例ID\",\"key\":\"instanceId_\",\"attrType\":\"bpmConstants\",\"type\":\"string\"},{\"id\":\"681535124172439556\",\"parentId\":\"681535124172439554\",\"name\":\"流程定义Key\",\"key\":\"flowKey_\",\"attrType\":\"bpmConstants\",\"type\":\"string\"},{\"id\":\"681535124172439557\",\"parentId\":\"681535124172439554\",\"name\":\"发起人\",\"key\":\"startUser\",\"attrType\":\"bpmConstants\",\"type\":\"string\"}]"
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | String | 流程定义变量json数据 | 
24、保存流程定义设置
简述:
- 保存流程定义设置
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/saveSetting/vo
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- POST
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
暂无
- Body:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| defId | String | 是 | 流程定义主键 | ||
| data | String | 是 | 流程设置数据 | 
请求参数示例:
{
  "data": "{\"global\":{\"id\":\"Process_0f8oaab\",\"bo\":{\"saveMode\":\"table\",\"code\":\"kfdb\",\"name\":\"开发单表\",\"version\":1},\"form\":{\"type\":\"inner\",\"version\":0,\"mobileVersion\":null,\"formValue\":\"kfdb\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":null,\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\",\"prevHandler\":null,\"postHandler\":null},\"instForm\":{\"type\":\"inner\",\"version\":null,\"mobileVersion\":null,\"formValue\":\"kfdb\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":null,\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\"},\"formOpinions\":{},\"attributes\":{\"subjectRule\":\"{发起人:startorName}在{发起时间:startTime}发起{流程标题:title}\",\"archiveNotifyType\":\"inner\",\"allowTransTo\":false,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"description\":\"\",\"firstNodeUserAssign\":false,\"startNotifyType\":\"inner\",\"notifyType\":\"inner\",\"skipExecutorEmpty\":false,\"testNotifyType\":\"inner\",\"allowCopyTo\":false,\"testStatus\":\"test\",\"skipSameUser\":true,\"allowRefCounts\":5,\"postHandler\":\"\",\"skipFirstNode\":true,\"allowReference\":false,\"status\":\"deploy\"},\"variables\":[],\"procNotify\":[]},\"nodes\":[{\"node_name\":\"2\",\"node_type\":\"userTask\",\"id\":\"Activity_0zj8vy5\",\"parentId\":null,\"users\":[],\"form\":{\"type\":\"\",\"version\":\"\",\"mobileVersion\":\"\",\"formValue\":\"\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":\"\",\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\"},\"scripts\":{\"complete\":\"\",\"create\":\"\"},\"buttons\":[{\"aliasName\":\"锁定\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"锁定\",\"alias\":\"lock\",\"beforeScript\":\"\"},{\"aliasName\":\"解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"解锁\",\"alias\":\"unlock\",\"beforeScript\":\"\"},{\"aliasName\":\"强制解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"强制解锁\",\"alias\":\"forceUnlock\",\"beforeScript\":\"\"},{\"aliasName\":\"同意\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"同意\",\"alias\":\"agree\",\"beforeScript\":\"\"},{\"aliasName\":\"反对\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"反对\",\"alias\":\"oppose\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回\",\"alias\":\"reject\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回发起人\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回发起人\",\"alias\":\"rejectToStart\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回上一步\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回上一步\",\"alias\":\"rejectToPrevious\",\"beforeScript\":\"\"},{\"aliasName\":\"转办\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"转办\",\"alias\":\"delegate\",\"beforeScript\":\"\"},{\"aliasName\":\"审批历史\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"审批历史\",\"alias\":\"approvalHistory\",\"beforeScript\":\"\"},{\"aliasName\":\"流程图\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"流程图\",\"alias\":\"flowImage\",\"beforeScript\":\"\"},{\"aliasName\":\"打印\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"打印\",\"alias\":\"print\",\"beforeScript\":\"\"},{\"aliasName\":\"终止流程\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"终止流程\",\"alias\":\"endProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"挂起\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"挂起\",\"alias\":\"suspendProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"恢复\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"恢复\",\"alias\":\"recoverProcess\",\"beforeScript\":\"\"}],\"jumpRules\":[],\"reminders\":[],\"trigerFlows\":[],\"procNotify\":[],\"withOutGateway\":false,\"attributes\":{\"hideOpinion\":false,\"jumpType\":\"common\",\"rejectSection\":\"\",\"hidePath\":true,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"notifyType\":\"inner\",\"parentDefKey\":\"local_\",\"skipExecutorEmpty\":false,\"rejectType\":\"all\",\"postHandler\":\"\",\"buttonInitialized\":true,\"nodeId\":\"Activity_0zj8vy5\"}},{\"node_name\":\"1\",\"node_type\":\"userTask\",\"id\":\"Activity_1t5r0yu\",\"parentId\":null,\"users\":[],\"form\":{\"type\":\"\",\"version\":\"\",\"mobileVersion\":\"\",\"formValue\":\"\",\"mobileValue\":\"\",\"name\":\"\",\"mobileName\":\"\",\"editUrl\":\"\",\"editFormRights\":\"\",\"mobileUrl\":\"\",\"templateId\":\"\",\"templateName\":\"\"},\"scripts\":{\"complete\":\"\",\"create\":\"\"},\"buttons\":[{\"aliasName\":\"锁定\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"锁定\",\"alias\":\"lock\",\"beforeScript\":\"\"},{\"aliasName\":\"解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"解锁\",\"alias\":\"unlock\",\"beforeScript\":\"\"},{\"aliasName\":\"强制解锁\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"强制解锁\",\"alias\":\"forceUnlock\",\"beforeScript\":\"\"},{\"aliasName\":\"同意\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"同意\",\"alias\":\"agree\",\"beforeScript\":\"\"},{\"aliasName\":\"反对\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"反对\",\"alias\":\"oppose\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回\",\"alias\":\"reject\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回发起人\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回发起人\",\"alias\":\"rejectToStart\",\"beforeScript\":\"\"},{\"aliasName\":\"驳回上一步\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"驳回上一步\",\"alias\":\"rejectToPrevious\",\"beforeScript\":\"\"},{\"aliasName\":\"转办\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"转办\",\"alias\":\"delegate\",\"beforeScript\":\"\"},{\"aliasName\":\"审批历史\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"审批历史\",\"alias\":\"approvalHistory\",\"beforeScript\":\"\"},{\"aliasName\":\"流程图\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"流程图\",\"alias\":\"flowImage\",\"beforeScript\":\"\"},{\"aliasName\":\"打印\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"打印\",\"alias\":\"print\",\"beforeScript\":\"\"},{\"aliasName\":\"终止流程\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"终止流程\",\"alias\":\"endProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"挂起\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"挂起\",\"alias\":\"suspendProcess\",\"beforeScript\":\"\"},{\"aliasName\":\"恢复\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"恢复\",\"alias\":\"recoverProcess\",\"beforeScript\":\"\"}],\"jumpRules\":[],\"reminders\":[],\"trigerFlows\":[],\"procNotify\":[],\"withOutGateway\":false,\"attributes\":{\"hideOpinion\":false,\"jumpType\":\"common\",\"rejectSection\":\"\",\"hidePath\":true,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"notifyType\":\"inner\",\"parentDefKey\":\"local_\",\"skipExecutorEmpty\":false,\"rejectType\":\"all\",\"postHandler\":\"\",\"buttonInitialized\":true,\"nodeId\":\"Activity_1t5r0yu\"}},{\"node_name\":\"\",\"node_type\":\"end\",\"id\":\"Event_0rbv1gy\",\"parentId\":null,\"scripts\":{\"end\":\"\"}},{\"node_name\":\"开始\",\"node_type\":\"start\",\"id\":\"StartEvent_08yghcp\",\"parentId\":null,\"scripts\":{\"start\":\"\"},\"buttons\":[{\"aliasName\":\"启动\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"启动\",\"alias\":\"startFlow\",\"beforeScript\":\"\"},{\"aliasName\":\"保存草稿\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"保存草稿\",\"alias\":\"saveDraft\",\"beforeScript\":\"\"},{\"aliasName\":\"流程图\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"流程图\",\"alias\":\"flowImage\",\"beforeScript\":\"\"},{\"aliasName\":\"打印\",\"supportScript\":false,\"afterScript\":\"\",\"code\":\"\",\"name\":\"打印\",\"alias\":\"print\",\"beforeScript\":\"\"}],\"attributes\":{\"hideOpinion\":false,\"jumpType\":\"common\",\"rejectSection\":\"\",\"hidePath\":true,\"prevHandler\":\"\",\"allowExecutorEmpty\":false,\"notifyType\":\"\",\"parentDefKey\":\"local_\",\"skipExecutorEmpty\":false,\"rejectType\":\"all\",\"postHandler\":\"\",\"buttonInitialized\":true,\"nodeId\":\"StartEvent_08yghcp\"}}]}",
  "defId": "680370541093191680"
}返回示例:
{
    "state": 200,
    "request": null,
    "message": "保存流程定义成功",
    "cause": "",
    "variables": {},
    "data": {}
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | Void | 
25、节点下的按钮编辑
简述:
- 编辑状态节点下的按钮
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/editButton
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| nodeType | String | 是 | 节点类型 | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/editButton?nodeType=task返回示例:
{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": [
    {
      "name": "流程图",
      "alias": "flowImage",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": null
    },
    {
      "name": "打印",
      "alias": "print",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": null
    }
  ]
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | List< Button > | 按钮对象 | 
26、节点下的按钮初始化
简述:
- 节点下的按钮初始化
 
请求URL:
- http://ip:port/iform/business/v3/bpm/definition/initButton
 - URL中的ip需要替换为自己网关ip
 - URL中的port需要替换为自己网关端口
 
请求方式:
- GET
 
请求参数:
- Headers:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| X-Authorization-access_token | String | 是 | 系统令牌 | 
- Query:
 
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 | 
|---|---|---|---|---|---|
| nodeType | String | 是 | 节点类型 | 
- Body:
 
暂无
请求参数示例:
http://192.168.1.202:15100/iform/business/v3/bpm/definition/initButton?nodeType=userTask返回示例:
{
  "state": 200,
  "request": null,
  "message": "",
  "cause": "",
  "variables": {},
  "data": [
    {
      "name": "锁定",
      "alias": "lock",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": "锁定"
    },
    {
      "name": "解锁",
      "alias": "unlock",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": "解锁"
    },
    {
      "name": "强制解锁",
      "alias": "forceUnlock",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": "强制解锁"
    },
    {
      "name": "同意",
      "alias": "agree",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "同意"
    },
    {
      "name": "反对",
      "alias": "oppose",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "反对"
    },
    {
      "name": "驳回",
      "alias": "reject",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "驳回"
    },
    {
      "name": "驳回发起人",
      "alias": "rejectToStart",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "驳回发起人"
    },
    {
      "name": "驳回上一步",
      "alias": "rejectToPrevious",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "驳回上一步"
    },
    {
      "name": "转办",
      "alias": "delegate",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": "转办"
    },
    {
      "name": "审批历史",
      "alias": "approvalHistory",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": "审批历史"
    },
    {
      "name": "流程图",
      "alias": "flowImage",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": "流程图"
    },
    {
      "name": "打印",
      "alias": "print",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": false,
      "aliasName": "打印"
    },
    {
      "name": "终止流程",
      "alias": "endProcess",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "终止流程"
    },
    {
      "name": "挂起",
      "alias": "suspendProcess",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "挂起"
    },
    {
      "name": "恢复",
      "alias": "recoverProcess",
      "code": null,
      "beforeScript": null,
      "afterScript": null,
      "supportScript": true,
      "aliasName": "恢复"
    }
  ]
}返回参数说明:
| 名称 | 类型 | 备注 | 
|---|---|---|
| data | List< Button > | 按钮对象 | 
最后编辑:黄春艳 更新时间:2025-10-24 18:04