公共分页请求入参对象

Query对象

参数类型是否必填说明
pageSizeint每页多少条
pageNumint当前第几页
sqlOrderByMap<String, ORDERBY>排序字段
sortFieldString排序字段
sortOrderString排序类型:升序 or 降序

公共分页返回对象

PagerModel对象

参数类型说明
totalLong总条数
rows<T>具体的业务表单数据集合

审批类型枚举

CommentTypeEnum

类型说明说明
SP审批完成审批进入下一节点
QS签收一般情况就是多个候选人,或者候选组的情况下,要先把这个任务签收下来,以免别人又做了同样的任务
FQS反签收就是把执行人设置为空
BH驳回将审批重置发送某节点,重新审批
CH撤回
ZC暂存
XTZX系统后台执行由管理员在流程系统后台代替当前节点审批人执行通过该节点流程
TJ提交相当于发起流程
CXTJ重新提交
SPJS审批结束相当于流程结束
LCZZ流程终止直接停止整个流程,流程作废
WP委派暂时把任务交给别人,最终还需要自己提交任务;A转给B审批,B审批结束后自动转给A,A审批后,进入下一节点
ZH知会将审批结构通知给列表对应的人
ZY转阅
YY已阅
ZB转办直接把任务交给别人;A转给B审批,B审批后,进入下一节点
SQ授权
SPBJQ审批并加签
HJQ后加签任务在 A 这里,A 这个时候需要 B 处理这个事情,处理完毕之后就不用管了,继续后面的审批环节
QJQ前加签任务在 A 这里,A 这个时候需要 B 核对一下,等 B 核对之后又回到 A 这里,这时 A 才能继续自己的任务
CFTG重复跳过
XT协同
PS评审

pom引入jar

 <dependency>
    <groupId>com.dragon</groupId>
    <artifactId>flowable-plus-boot-starter</artifactId>
    <version>1.0-SNAPSHOT</version>
</dependency>

模板管理

查询分类树

前端请求示例

:::tips

  • URL/flow/prod/api/getCategories
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus分类service
@Autowired
private FlowablePlusCategoryService flowablePlusCategoryService;

//调用分类管理service接口示例代码
List<Category> categories = flowablePlusCategoryService.getCategories();


Body参数

:::info 无 :::

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTList<Category>

分类对象Category

参数类型说明
idString主键id
pidString父id
nameString分类名称
codeString分类编码
orderNoString排序号
frontShowInteger前端是否展示
shortNameString简称
noteString描述
createTimeDate创建时间
creatorString创建人
updateTimeDate修改时间
updatorString修改人

示例

请求示例

http://域名/flow/prod/api/getCategories

返回示例

{
    "code": "100",
    "msg": "发起流程成功!",
    "success": true,
    "data":[
            {
              "createTime": null,
              "creator": null,
              "updateTime": null,
              "updator": null,
              "delFlag": 1,
              "keyword": null,
              "id": "1",
              "pid": "",
              "name": "BPMN组件",
              "code": "1000",
              "frontShow": null,
              "shortName": "组件",
              "note": null,
              "orderNo": 1,
              "companyId": null,
              "createTimeStr": null,
              "updateTimeStr": null,
              "cname": null
            },
            {
              "createTime": null,
              "creator": null,
              "updateTime": null,
              "updator": null,
              "delFlag": 1,
              "keyword": null,
              "id": "22",
              "pid": null,
              "name": "测试",
              "code": "1010",
              "frontShow": null,
              "shortName": "测试",
              "note": null,
              "orderNo": 1,
              "companyId": null,
              "createTimeStr": null,
              "updateTimeStr": null,
              "cname": null
            }
          ]
}

查询流程模板列表

前端请求示例

:::tips

  • URL/flow/bpmnDesigner/prod/api/modelPage
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus模板service
@Autowired
private ProdDeModelService prodDeModelService;

//调用流程模板列表service接口示例代码
ParamVo<ProdDeModel> params = new ParamVo<>();//前端传过来的分页和搜索对象
PagerModel<ProdDeModel> pageModel = prodDeModelService.queryPagerModel(params.getEntity(), params.getQuery());

Body参数

参数类型是否必填说明
entityTProdDeModel
queryQuery分页对象

返回参数

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTPagerModel<ProdDeModel>

模板对象ProdDeModel

参数类型说明
idString主键id
nameString模板名称
modelTypeInteger模型类型
modelKeyString模型key模型key
categoryString所属分类
versionString版本号
modelEditorXmlString存储的xml文件
descriptionString描述
createTimeDate创建时间
creatorString创建人
updateTimeDate修改时间
updatorString修改人

示例

请求示例

http://域名/flow/bpmnDesigner/prod/api/modelPage

返回示例

{
    "code": "100",
    "msg": "ok",
    "success": true,
    "data":{
        "total": 1,
        "rows": [
          {
            "id": "1704702781908738049",
            "name": "测试一波",
            "modelType": 0,
            "modelKey": "Hccc",
            "category": "1010",
            "categoryName": "测试",
            "version": 0,
            "modelEditorXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" typeLanguage=\"http://www.w3.org/2001/XMLSchema\" expressionLanguage=\"http://www.w3.org/1999/XPath\" targetNamespace=\"http://flowable.org/bpmn\">\n  <process id=\"Hccc\" name=\"测试一波\" isExecutable=\"true\">\n    <startEvent id=\"Event_v50a4en\" flowable:initiator=\"initiator\">\n      <extensionElements>\n        <flowable:formData></flowable:formData>\n      </extensionElements>\n    </startEvent>\n    <userTask id=\"Activity_esn8sja\" name=\"提交人\" flowable:candidateUsers=\"10003\" flowable:candidateGroups=\"tj_zc\" flowable:skipExpression=\"${initiator==''}\">\n      <extensionElements>\n        <flowable:formData></flowable:formData>\n        <flowable:assigneeType><![CDATA[idm]]></flowable:assigneeType>\n        <flowable:idmCandidateUsers><![CDATA[[{\"id\":\"4\",\"name\":\"周杰伦\",\"code\":\"10003\",\"sex\":0,\"mobile\":null,\"companyId\":\"1\",\"companyName\":\"中国石化\",\"deptId\":\"27\",\"deptName\":\"领导班子\"}]]]></flowable:idmCandidateUsers>\n        <flowable:idmCandidateGroups><![CDATA[[{\"id\":\"undefined_12\",\"name\":\"总裁\",\"sn\":\"tj_zc\"}]]]></flowable:idmCandidateGroups>\n      </extensionElements>\n    </userTask>\n    <sequenceFlow id=\"a0d29b46f8c22419998fa8d2c3b118559\" sourceRef=\"Event_v50a4en\" targetRef=\"Activity_esn8sja\"></sequenceFlow>\n    <intermediateThrowEvent id=\"Event_034n9zz\"></intermediateThrowEvent>\n    <sequenceFlow id=\"Flow_05yfrim\" sourceRef=\"Activity_esn8sja\" targetRef=\"Event_034n9zz\"></sequenceFlow>\n    <endEvent id=\"Event_08wpovh\"></endEvent>\n    <sequenceFlow id=\"Flow_1h43p2l\" sourceRef=\"Event_034n9zz\" targetRef=\"Event_08wpovh\"></sequenceFlow>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_Hccc\">\n    <bpmndi:BPMNPlane bpmnElement=\"Hccc\" id=\"BPMNPlane_Hccc\">\n      <bpmndi:BPMNShape bpmnElement=\"Event_v50a4en\" id=\"BPMNShape_Event_v50a4en\">\n        <omgdc:Bounds height=\"30.0\" width=\"30.0\" x=\"0.0\" y=\"25.0\"></omgdc:Bounds>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Activity_esn8sja\" id=\"BPMNShape_Activity_esn8sja\">\n        <omgdc:Bounds height=\"80.0\" width=\"100.0\" x=\"80.0\" y=\"0.0\"></omgdc:Bounds>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Event_034n9zz\" id=\"BPMNShape_Event_034n9zz\">\n        <omgdc:Bounds height=\"36.0\" width=\"36.0\" x=\"232.0\" y=\"22.0\"></omgdc:Bounds>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Event_08wpovh\" id=\"BPMNShape_Event_08wpovh\">\n        <omgdc:Bounds height=\"36.0\" width=\"36.0\" x=\"322.0\" y=\"22.0\"></omgdc:Bounds>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNEdge bpmnElement=\"a0d29b46f8c22419998fa8d2c3b118559\" id=\"BPMNEdge_a0d29b46f8c22419998fa8d2c3b118559\">\n        <omgdi:waypoint x=\"30.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"42.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"42.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"80.0\" y=\"40.0\"></omgdi:waypoint>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_05yfrim\" id=\"BPMNEdge_Flow_05yfrim\">\n        <omgdi:waypoint x=\"180.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"232.0\" y=\"40.0\"></omgdi:waypoint>\n      </bpmndi:BPMNEdge>\n      <bpmndi:BPMNEdge bpmnElement=\"Flow_1h43p2l\" id=\"BPMNEdge_Flow_1h43p2l\">\n        <omgdi:waypoint x=\"268.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"322.0\" y=\"40.0\"></omgdi:waypoint>\n      </bpmndi:BPMNEdge>\n    </bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>",
            "description": null,
            "status": "draft",
            "statusName": "草稿",
            "created": 1695267789710,
            "lastUpdated": 1695267789711,
            "createdBy": "admin",
            "lastUpdatedBy": null,
            "tenantId": null,
            "updateFlag": 1
          }
        ]
      }
}

查询流程模板详情

前端请求示例

:::tips

  • URL/flow/bpmnDesigner/prod/api/getBpmnByModelId/{id}
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus模板service
@Autowired
private ProdDeModelService prodDeModelService;

//调用流程模板service接口示例代码
String modelId = "";//模板id
ProdDeModel prodDeModel = prodDeModelService.getById(modelId);
//返回vo
ModelInfoVo modelInfoVo = new ModelInfoVo();
if (prodDeModel != null) {
    modelInfoVo.setModelId(modelId);
    modelInfoVo.setModelName(prodDeModel.getName());
    modelInfoVo.setModelKey(prodDeModel.getModelKey());
    modelInfoVo.setModelXml(prodDeModel.getModelEditorXml());
}

Body参数

:::info 无 :::

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataEntityModelInfoVo

ModelInfoVo对象

名称类型是否必填描述
modelIdString模板id(修改时必填)
modelKeyString模板key
modelNameString模板名称
modelXmlString模板xml

示例

请求示例

http://域名/flow/bpmnDesigner/prod/api/getBpmnByModelId/1705828124180770817

请求入参

:::info 无 :::

返回示例

{
  "code": "100",
  "msg": "OK",
  "data": {
    "id": null,
    "modelId": "1705828124180770817",
    "modelKey": "test",
    "modelName": "222",
    "fileName": null,
    "modelXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" typeLanguage=\"http://www.w3.org/2001/XMLSchema\" expressionLanguage=\"http://www.w3.org/1999/XPath\" targetNamespace=\"http://flowable.org/bpmn\">\n  <process id=\"test\" name=\"222\" isExecutable=\"true\">\n    <startEvent id=\"Event_ee88ov0\" flowable:initiator=\"initiator\"></startEvent>\n    <userTask id=\"Activity_9jb4l8r\" name=\"提交人\" flowable:assignee=\"${initiator}\" flowable:skipExpression=\"${initiator==''}\"></userTask>\n    <sequenceFlow id=\"a069d00f16c9e4d96af91f4e803a58fac\" sourceRef=\"Event_ee88ov0\" targetRef=\"Activity_9jb4l8r\"></sequenceFlow>\n  </process>\n  <bpmndi:BPMNDiagram id=\"BPMNDiagram_test\">\n    <bpmndi:BPMNPlane bpmnElement=\"test\" id=\"BPMNPlane_test\">\n      <bpmndi:BPMNShape bpmnElement=\"Event_ee88ov0\" id=\"BPMNShape_Event_ee88ov0\">\n        <omgdc:Bounds height=\"30.0\" width=\"30.0\" x=\"0.0\" y=\"25.0\"></omgdc:Bounds>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNShape bpmnElement=\"Activity_9jb4l8r\" id=\"BPMNShape_Activity_9jb4l8r\">\n        <omgdc:Bounds height=\"80.0\" width=\"100.0\" x=\"80.0\" y=\"0.0\"></omgdc:Bounds>\n      </bpmndi:BPMNShape>\n      <bpmndi:BPMNEdge bpmnElement=\"a069d00f16c9e4d96af91f4e803a58fac\" id=\"BPMNEdge_a069d00f16c9e4d96af91f4e803a58fac\">\n        <omgdi:waypoint x=\"30.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"42.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"42.0\" y=\"40.0\"></omgdi:waypoint>\n        <omgdi:waypoint x=\"80.0\" y=\"40.0\"></omgdi:waypoint>\n      </bpmndi:BPMNEdge>\n    </bpmndi:BPMNPlane>\n  </bpmndi:BPMNDiagram>\n</definitions>",
    "appSn": null,
    "categoryCode": null
  },
  "success": true
}

新增/修改流程模板

前端请求示例

:::tips

  • URL/flow/bpmnDesigner/prod/api/saveBpmnModel
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus模板service
@Autowired
private ProdFlowBpmnModelService prodFlowBpmnModelService;

//调用流程模板详情service接口示例代码
ProdDeModel model = new ProdDeModel();
model.setId(modelInfoVo.getModelId());//模板id(修改时必传)
model.setModelEditorXml(modelInfoVo.getModelXml());//模板xml
model.setCreatedBy("当前登录用户编码");
model.setCategory(modelInfoVo.getCategoryCode());//模板分类编码
ReturnVo<String> representationReturnVo = prodFlowBpmnModelService.importBpmnModel(model);

Body参数

ModelInfoVo对象

名称类型是否必填描述
modelIdString模板id(修改时必填)
modelKeyString模板key
modelNameString模板名称
modelXmlString模板xml
categoryString模板分类编码

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString模板id

示例

请求示例

http://域名/flow/bpmnDesigner/prod/api/saveBpmnModel

请求入参

{
  "modelId": "",
  "modelXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:flowable=\"http://flowable.org/bpmn\" xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\" xmlns:omgdc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:omgdi=\"http://www.omg.org/spec/DD/20100524/DI\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" targetNamespace=\"http://www.flowable.org/test\"><process id=\"test\" name=\"222\" isExecutable=\"true\"><startEvent id=\"Event_ee88ov0\" flowable:initiator=\"initiator\" /><userTask id=\"Activity_9jb4l8r\" name=\"提交人\" flowable:assignee=\"${initiator}\" flowable:skipExpression=\"${initiator==&#39;&#39;}\" /><sequenceFlow id=\"a069d00f16c9e4d96af91f4e803a58fac\" sourceRef=\"Event_ee88ov0\" targetRef=\"Activity_9jb4l8r\" /></process><bpmndi:BPMNDiagram id=\"BPMNDiagram_test\"><bpmndi:BPMNPlane id=\"BPMNPlane_test\" bpmnElement=\"test\"><bpmndi:BPMNEdge id=\"BPMNEdge_a069d00f16c9e4d96af91f4e803a58fac\" bpmnElement=\"a069d00f16c9e4d96af91f4e803a58fac\"><omgdi:waypoint x=\"30\" y=\"40\" /><omgdi:waypoint x=\"42\" y=\"40\" /><omgdi:waypoint x=\"42\" y=\"40.00000000000001\" /><omgdi:waypoint x=\"80\" y=\"40.00000000000001\" /></bpmndi:BPMNEdge><bpmndi:BPMNShape id=\"BPMNShape_Event_ee88ov0\" bpmnElement=\"Event_ee88ov0\"><omgdc:Bounds x=\"0\" y=\"25\" width=\"30\" height=\"30\" /></bpmndi:BPMNShape><bpmndi:BPMNShape id=\"BPMNShape_Activity_9jb4l8r\" bpmnElement=\"Activity_9jb4l8r\"><omgdc:Bounds x=\"80\" y=\"0\" width=\"100\" height=\"80\" /></bpmndi:BPMNShape></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></definitions>"
}

返回示例

{
  "code": "100",
  "msg": "OK",
  "data": "1705828124180770817",
  "success": true
}

发布流程模板

前端请求示例

:::tips

  • URL/flow/bpmnDesigner/prod/api/deploy/{id}
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus模板service
@Autowired
private ProdFlowBpmnModelService prodFlowBpmnModelService;

//调用发布流程模板service接口示例代码
String id = "";//模板id
ReturnVo<Deployment> returnVo = prodFlowBpmnModelService.deploy(id);

Body参数

:::info 无 :::

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataStringDeployment

模板对象Deployment

参数类型说明
idString主键id
nameString模板名称
keyInteger模型key
categoryString分类编码

示例

请求示例

http://域名/flow/bpmnDesigner/prod/api/deploy/1

返回示例

{
  "code": "100",
  "msg": "发布成功",
  "data": {
    "id": "1705094823728865280",
    "originalPersistentState": null,
    "name": "测试一波",
    "category": "1010",
    "key": "Hccc",
    "tenantId": null,
    "resources": {
      "Hccc.bpmn": {
        "id": "1705094823728865280",
        "originalPersistentState": {},
        "name": "Hccc.bpmn",
        "bytes": "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGRlZmluaXRpb25zIHhtbG5zPSJodHRwOi8vd3d3Lm9tZy5vcmcvc3BlYy9CUE1OLzIwMTAwNTI0L01PREVMIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxuczp4c2Q9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hIiB4bWxuczpmbG93YWJsZT0iaHR0cDovL2Zsb3dhYmxlLm9yZy9icG1uIiB4bWxuczpicG1uZGk9Imh0dHA6Ly93d3cub21nLm9yZy9zcGVjL0JQTU4vMjAxMDA1MjQvREkiIHhtbG5zOm9tZ2RjPSJodHRwOi8vd3d3Lm9tZy5vcmcvc3BlYy9ERC8yMDEwMDUyNC9EQyIgeG1sbnM6b21nZ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vb21nZGk6d2F5cG9pbnQ+CiAgICAgICAgPG9tZ2RpOndheXBvaW50IHg9IjMyMi4wIiB5PSI0MC4wIj48L29tZ2RpOndheXBvaW50PgogICAgICA8L2JwbW5kaTpCUE1ORWRnZT4KICAgIDwvYnBtbmRpOkJQTU5QbGFuZT4KICA8L2JwbW5kaTpCUE1ORGlhZ3JhbT4KPC9kZWZpbml0aW9ucz4=",
        "deploymentId": "1705094823728865280",
        "generated": false,
        "persistentState": "org.flowable.engine.impl.persistence.entity.ResourceEntityImpl",
        "inserted": true,
        "updated": false,
        "deleted": false,
        "idPrefix": "PRC-"
      },
      "Hccc.Hccc.png": {
        "id": "1705094823892443136",
        "originalPersistentState": {},
        "name": "Hccc.Hccc.png",
        "bytes": "iVBORw0KGgoAAAANSUhEUgAAAXAAAABaCAYAAAChWQ3bAAAOfklEQVR42u2dT1AUZxqHPaQqHjzksIc9eKBqrVoPVsWDhz148LCHPVi1HiQaMFFBxEREoqLEBFFMogSVLTFlWVKlZt1yKVfAZV1FQf6pQ5aVKIq6EkUjMPwTEAwEh/jt++udZlsEmWF6unt6fk/VV8gMzvT0dD/99tvv9/aMGSQklFJvPXz48HRdXd0vFRUV6tKlSxwWj/LyclVTU9MjYwW3SEJIwEDetbW1qqurS42MjHDYNLq7u1V1dfUzkflSbpWEkIBA5E15O0biIxKR3+VWSQgJCKRNKE/nDBG4j1slISQgkIOlOB0lcMWtkhBiqsCf93vVw/pjqqk8Wxv4Nx6jdClwQoiDBT7Y16Zul2Wqm+fSXxl4DM9RvBQ4IcShAn/S9PfX5K2P1qZSipcCJ4Q4VeB3K3MmFTieo3gpcEKIQwV++9LOSQWO5yheCpwQQoFT4BQ4IcRMgaPqZDKB4zmKlwInhDhU4M1XD00qcDxH8VLghBCHCvxpW6O6fTHr9fSJPIbnKF4KnBDiUIFjtPz729cEjscoXQqcEOJkgf/8s2q+dvj19Ik8hucoXgqcEOJAgWOm5f2r+ZPmwPEcZ2NS4IQQJwlcImtv82V168L2Se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YII=",
        "deploymentId": "1705094823728865280",
        "generated": true,
        "persistentState": "org.flowable.engine.impl.persistence.entity.ResourceEntityImpl",
        "inserted": true,
        "updated": false,
        "deleted": false,
        "idPrefix": "PRC-"
      }
    },
    "deploymentTime": 1695361259762,
    "derivedFrom": null,
    "derivedFromRoot": null,
    "parentDeploymentId": "1705094823728865280",
    "engineVersion": null,
    "new": true,
    "persistentState": {
      "tenantId": null,
      "parentDeploymentId": "1705094823728865280",
      "category": "1010",
      "key": "Hccc"
    },
    "inserted": true,
    "updated": false,
    "deleted": false,
    "idPrefix": "PRC-"
  },
  "success": true
}

查询决策模板列表

前端请求示例

:::tips

  • URL/flow/dmnDesigner/prod/api/modelPage
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus模板service
@Autowired
private ProdDeModelService prodDeModelService;

//调用决策模板列表service接口示例代码
ParamVo<ProdDeModel> params = new ParamVo<>();//前端传过来的分页和搜索对象
PagerModel<ProdDeModel> pageModel = prodDeModelService.queryPagerModel(params.getEntity(), params.getQuery());

Body参数

参数类型是否必填说明
entityTProdDeModel
queryQuery分页对象

ProdDeModel对象

参数类型是否必填说明
nameString模板名称
categoryString分类编码

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTPagerModel<ProdDeModel>

模板对象ProdDeModel

参数类型说明
idString主键id
nameString模板名称
modelTypeInteger模型类型
modelKeyString模型key模型key
categoryString所属分类
versionString版本号
modelEditorXmlString存储的xml文件
descriptionString描述
createTimeDate创建时间
creatorString创建人
updateTimeDate修改时间
updatorString修改人

示例

请求示例

http://域名/flow/dmnDesigner/prod/api/modelPage

返回示例

{
  "code": "100",
  "msg": "OK",
  "data": {
    "total": 3,
    "rows": [
      {
        "id": "1694534513904226305",
        "name": "测试Dmn2",
        "modelType": 4,
        "modelKey": "testDmn2",
        "category": "1010",
        "categoryName": "测试",
        "version": 0,
        "modelEditorXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" xmlns:biodi=\"http://bpmn.io/schema/dmn/biodi/2.0\" id=\"dish\" name=\"Dish\" namespace=\"http://camunda.org/schema/1.0/dmn\" exporter=\"dmn-js (https://demo.bpmn.io/dmn)\" exporterVersion=\"11.0.2\">\n  <decision id=\"testDmn2\" name=\"测试Dmn2\">\n    <decisionTable id=\"DecisionTable_1dgxyfp\" hitPolicy=\"COLLECT\">\n      <input id=\"InputClause_1hmm6z2\" label=\"金额\" biodi:width=\"336\">\n        <inputExpression id=\"LiteralExpression_0eaabht\" typeRef=\"integer\">\n          <text>money</text>\n        </inputExpression>\n      </input>\n      <output id=\"OutputClause_1ua72fu\" label=\"领导\" name=\"${cdj.dmn(bbb)}\" typeRef=\"string\" />\n      <rule id=\"DecisionRule_0jc0iz7\">\n        <inputEntry id=\"UnaryTests_02ekvan\">\n          <text>#{money&gt;1000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_01w05lr\">\n          <text>'10000'</text>\n        </outputEntry>\n      </rule>\n      <rule id=\"DecisionRule_1flupaf\">\n        <inputEntry id=\"UnaryTests_0zk4q3i\">\n          <text>#{money&gt;2000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_1rypr6z\">\n          <text>'10001'</text>\n        </outputEntry>\n      </rule>\n      <rule id=\"DecisionRule_1h08fmx\">\n        <inputEntry id=\"UnaryTests_01p96hl\">\n          <text>#{money&gt;3000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_0ysf4he\">\n          <text>'10002'</text>\n        </outputEntry>\n      </rule>\n    </decisionTable>\n  </decision>\n</definitions>\n",
        "description": null,
        "status": "publish",
        "statusName": "发布",
        "created": 1692843482316,
        "lastUpdated": 1692955392542,
        "createdBy": "admin",
        "lastUpdatedBy": "admin",
        "tenantId": null,
        "updateFlag": 1
      },
      {
        "id": "1694362759353225217",
        "name": "测试Dmn",
        "modelType": 4,
        "modelKey": "testDmn",
        "category": "1010",
        "categoryName": "测试",
        "version": 0,
        "modelEditorXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" xmlns:camunda=\"http://camunda.org/schema/1.0/dmn\" id=\"dish\" name=\"Dish\" namespace=\"http://camunda.org/schema/1.0/dmn\" exporter=\"dmn-js (https://demo.bpmn.io/dmn)\" exporterVersion=\"11.0.2\">\n  <decision id=\"testDmn\" name=\"测试Dmn\">\n    <decisionTable id=\"DecisionTable_1dgxyfp\">\n      <input id=\"InputClause_1hmm6z2\" label=\"工资\" camunda:inputVariable=\"gz\">\n        <inputExpression id=\"LiteralExpression_0eaabht\" typeRef=\"integer\" expressionLanguage=\"juel\">\n          <text>gz</text>\n        </inputExpression>\n      </input>\n      <output id=\"OutputClause_1ua72fu\" label=\"职位\" name=\"zw\" typeRef=\"string\" />\n      <rule id=\"DecisionRule_0r90h05\">\n        <inputEntry id=\"UnaryTests_0i85k5c\">\n          <text>${gz &gt; 100000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_0u6i0ox\">\n          <text>总经理</text>\n        </outputEntry>\n      </rule>\n      <rule id=\"DecisionRule_0meflai\">\n        <inputEntry id=\"UnaryTests_1rbvgm0\">\n          <text>${gz &gt; 20000 &amp;&amp; gz &lt; 100000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_0nl7kja\">\n          <text>经理</text>\n        </outputEntry>\n      </rule>\n      <rule id=\"DecisionRule_0m8mqpk\">\n        <inputEntry id=\"UnaryTests_0vn02lq\">\n          <text>${gz &gt; 10000 &amp;&amp; gz &lt; 20000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_0umw274\">\n          <text>总监</text>\n        </outputEntry>\n      </rule>\n    </decisionTable>\n  </decision>\n</definitions>\n",
        "description": null,
        "status": "publish",
        "statusName": "发布",
        "created": 1692802536212,
        "lastUpdated": 1692803897811,
        "createdBy": "admin",
        "lastUpdatedBy": "admin",
        "tenantId": null,
        "updateFlag": 1
      },
      {
        "id": "1694008311393202177",
        "name": "面板",
        "modelType": 4,
        "modelKey": "Decision_1ufimaw",
        "category": "1010",
        "categoryName": "测试",
        "version": 0,
        "modelEditorXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" id=\"dish\" name=\"Dish\" namespace=\"http://camunda.org/schema/1.0/dmn\" exporter=\"dmn-js (https://demo.bpmn.io/dmn)\" exporterVersion=\"11.0.2\">\n  <decision id=\"Decision_1ufimaw\" name=\"面板\">\n    <decisionTable id=\"DecisionTable_1dgxyfp\">\n      <input id=\"InputClause_1hmm6z2\" label=\"名称\">\n        <inputExpression id=\"LiteralExpression_0eaabht\" typeRef=\"string\">\n          <text>name</text>\n        </inputExpression>\n      </input>\n      <output id=\"OutputClause_1ua72fu\" label=\"金额\" name=\"money\" typeRef=\"string\" />\n      <rule id=\"DecisionRule_1bfvsr2\">\n        <inputEntry id=\"UnaryTests_0k1t4q6\">\n          <text>1</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_0xjtg52\">\n          <text>300</text>\n        </outputEntry>\n      </rule>\n      <rule id=\"DecisionRule_1acqaa1\">\n        <inputEntry id=\"UnaryTests_1js6ys3\">\n          <text>2</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_1bmg8fx\">\n          <text>388</text>\n        </outputEntry>\n      </rule>\n    </decisionTable>\n  </decision>\n</definitions>\n",
        "description": null,
        "status": "publish",
        "statusName": "发布",
        "created": 1692717999658,
        "lastUpdated": 1692801518536,
        "createdBy": "admin",
        "lastUpdatedBy": "admin",
        "tenantId": null,
        "updateFlag": 1
      }
    ]
  },
  "success": true
}

查询决策模板详情

前端请求示例

:::tips

  • URL/flow/dmnDesigner/prod/api/getDmnByModelId/{id}
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus模板service
@Autowired
private ProdDeModelService prodDeModelService;

//调用决策详情service接口示例代码
String modelId = "";//模板id
ProdDeModel prodDeModel = prodDeModelService.getById(modelId);
//返回vo
ModelInfoVo modelInfoVo = new ModelInfoVo();
if (prodDeModel != null) {
    modelInfoVo.setModelId(modelId);
    modelInfoVo.setModelName(prodDeModel.getName());
    modelInfoVo.setModelKey(prodDeModel.getModelKey());
    modelInfoVo.setModelXml(prodDeModel.getModelEditorXml());
}

Body参数

:::info 无 :::

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataEntityModelInfoVo

ModelInfoVo对象

名称类型是否必填描述
modelIdString模板id(修改时必填)
modelKeyString模板key
modelNameString模板名称
modelXmlString模板xml

示例

请求示例

http://域名/flow/bpmnDesigner/prod/api/getDmnByModelId/1705828124180770817

请求入参

:::info 无 :::

返回示例

{
  "code": "100",
  "msg": "OK",
  "data": {
    "id": null,
    "modelId": "1694534513904226305",
    "modelKey": "testDmn2",
    "modelName": "测试Dmn2",
    "fileName": null,
    "modelXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" xmlns:biodi=\"http://bpmn.io/schema/dmn/biodi/2.0\" id=\"dish\" name=\"Dish\" namespace=\"http://camunda.org/schema/1.0/dmn\" exporter=\"dmn-js (https://demo.bpmn.io/dmn)\" exporterVersion=\"11.0.2\">\n  <decision id=\"testDmn2\" name=\"测试Dmn2\">\n    <decisionTable id=\"DecisionTable_1dgxyfp\" hitPolicy=\"COLLECT\">\n      <input id=\"InputClause_1hmm6z2\" label=\"金额\" biodi:width=\"336\">\n        <inputExpression id=\"LiteralExpression_0eaabht\" typeRef=\"integer\">\n          <text>money</text>\n        </inputExpression>\n      </input>\n      <output id=\"OutputClause_1ua72fu\" label=\"领导\" name=\"${cdj.dmn(bbb)}\" typeRef=\"string\" />\n      <rule id=\"DecisionRule_0jc0iz7\">\n        <inputEntry id=\"UnaryTests_02ekvan\">\n          <text>#{money&gt;1000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_01w05lr\">\n          <text>'10000'</text>\n        </outputEntry>\n      </rule>\n      <rule id=\"DecisionRule_1flupaf\">\n        <inputEntry id=\"UnaryTests_0zk4q3i\">\n          <text>#{money&gt;2000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_1rypr6z\">\n          <text>'10001'</text>\n        </outputEntry>\n      </rule>\n      <rule id=\"DecisionRule_1h08fmx\">\n        <inputEntry id=\"UnaryTests_01p96hl\">\n          <text>#{money&gt;3000}</text>\n        </inputEntry>\n        <outputEntry id=\"LiteralExpression_0ysf4he\">\n          <text>'10002'</text>\n        </outputEntry>\n      </rule>\n    </decisionTable>\n  </decision>\n</definitions>\n",
    "appSn": null,
    "categoryCode": null
  },
  "success": true
}

新增/修改决策模板

前端请求示例

:::tips

  • URL/flow/dmnDesigner/prod/api/saveDmnModel
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus决策模板service
@Autowired
private ProdFlowDmnModelService prodFlowDmnModelService;

//调用新增或修改决策模板service接口示例代码
ProdDeModel model = new ProdDeModel();
model.setId(modelInfoVo.getModelId());//模板id(修改时必传)
model.setModelEditorXml(modelInfoVo.getModelXml());//模板xml
model.setCreatedBy("当前登录用户编码");
model.setCategory(modelInfoVo.getCategoryCode());//模板分类编码
ReturnVo<String> representationReturnVo = prodFlowDmnModelService.importDmnModel(model);

Body参数

ModelInfoVo对象

名称类型是否必填描述
modelIdString模板id(修改时必填)
modelKeyString模板key
modelNameString模板名称
modelXmlString模板xml

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString模板id

示例

请求示例

http://域名/flow/dmnDesigner/prod/api/saveDmnModel

请求入参

{
  "modelId": "test1",
  "modelXml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<definitions xmlns=\"https://www.omg.org/spec/DMN/20191111/MODEL/\" id=\"dish_test1\" name=\"测试001\" namespace=\"http://camunda.org/schema/1.0/dmn\" exporter=\"dmn-js (https://demo.bpmn.io/dmn)\" exporterVersion=\"11.0.2\">\n  <decision id=\"test1\" name=\"测试001\">\n    <decisionTable id=\"DecisionTable_test1\">\n      <input id=\"InputClause_1hmm6z2\">\n        <inputExpression id=\"LiteralExpression_0eaabht\" typeRef=\"string\" />\n      </input>\n      <output id=\"OutputClause_1ua72fu\" typeRef=\"string\" />\n    </decisionTable>\n  </decision>\n</definitions>\n",
  "categoryCode": "1004"
}

返回示例

{
  "code": "100",
  "msg": "保存成功!",
  "data": "1705838493053906945",
  "success": true
}

发布决策模板

前端请求示例

:::tips

  • URL/flow/dmnDesigner/prod/api/deploy/{id}
  • MethodPOST
  • 需要登录:是 :::

java调用示例

//引入流程plus决策模板service
@Autowired
private ProdFlowDmnModelService prodFlowDmnModelService;

//调用发布决策模板service接口示例代码
ProdDeModel model = new ProdDeModel();
model.setId(modelInfoVo.getModelId());//模板id(修改时必传)
model.setModelEditorXml(modelInfoVo.getModelXml());//模板xml
model.setCreatedBy("当前登录用户编码");
model.setCategory(modelInfoVo.getCategoryCode());//模板分类编码
ReturnVo<String> representationReturnVo = prodFlowDmnModelService.publishDmn(model);

Body参数

:::info 无 :::

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/dmnDesigner/prod/api/deploy/1

返回示例

{
  "code": "100",
  "msg": "发布成功!",
  "data": null,
  "success": true
}

流程中心

查询待办列表

前端请求示例

:::tips

  • URL/flow/prod/api/queryApplyingTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus任务service
@Autowired
private FlowablePlusTaskQueryService flowablePlusTaskQueryService;

//调用代办列表service接口示例代码
ParamVo<PlusQueryTaskVo> params = new ParamVo<>();//前端传过来的分页和搜索对象
ReturnVo<PagerModel<TaskVo>> pagerModel = flowablePlusTaskQueryService.queryApplyingTask(params.getEntity(), params.getQuery())

Body参数

参数类型是否必填说明
entityTPlusQueryTaskVo
queryQuery分页对象

PlusQueryTaskVo对象

参数类型是否必填说明
startUserIdString发起人id
formNameString标题
appSnString所属系统
businessKeyString流程实例key
modelKeyString流程模型key
startTimeString流程开始时间
endTimeString流程结束时间

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTPagerModel<TaskVo>

TaskVo对象

参数类型说明
nameString节点名称
formNameString标题
stayHourString停留时间
startPersonCodeString发起人编号
createTimeDate创建时间
appSnString所属系统
taskIdString任务id
processStatusString审批状态
processStatusNameString审批状态中文描述
processInstanceIdString流程实例id

示例

请求示例

http://域名/flow/prod/api/queryApplyingTask

请求入参

{
  "entity":{
    "formName": "测试流程"
  },
  "query": {
    "pageSize": 15,
    "pageNum": 1
  }
}

返回示例

{
  "code": "100",
  "msg": "OK",
  "data": {
    "total": 1,
    "rows": [
      {
        "businessKey": null,
        "name": "月初生产财务报表数据上报",
        "taskId": "1702200508203569152",
        "taskDefKey": "a77b2033f58754b77b5855f3c5ad248f9",
        "assignee": null,
        "assigneeName": null,
        "createTime": "2023-09-14 14:00:01",
        "stayHour": "8 天 13 分",
        "processInstanceId": "1702200508182597632",
        "parentId": null,
        "processDefinitionId": "CycleTimerCoreStartEventProcess:1:1701065248367648768",
        "processDefinitionKey": null,
        "processDefinitionType": null,
        "formType": null,
        "processStatus": "applying",
        "processStatusName": "审批中",
        "taskType": null,
        "status": 0,
        "userId": null,
        "userName": null,
        "groupIds": null,
        "finished": false,
        "finishedTime": null,
        "formName": "开始循环表达式时间事件",
        "startPersonCode": null,
        "startPersonName": null,
        "startTime": null,
        "endTime": null,
        "appSn": "",
        "appName": null,
        "totalTime": null,
        "businessUrl": null,
        "candidateFlag": false,
        "type": 0,
        "currentAssignees": null,
        "currentAssigneeNos": null
      }
    ]
  },
  "success": true
}

查询已办列表

前端调动示例

:::tips

  • URL/flow/prod/api/queryApplyedTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus任务service
@Autowired
private FlowablePlusTaskQueryService flowablePlusTaskQueryService;

//调用查询已办列表接口示例代码
ParamVo<PlusQueryTaskVo> params = new ParamVo<>();//前端传过来的分页和搜索对象
ReturnVo<PagerModel<TaskVo>> pagerModel = flowablePlusTaskQueryService.queryApplyedTask(params.getEntity(), params.getQuery())

Body参数

参数类型是否必填说明
entityTPlusQueryTaskVo
queryQuery分页对象

PlusQueryTaskVo对象

参数类型是否必填说明
startUserIdString发起人id
formNameString标题
appSnString所属系统
businessKeyString流程实例key
modelKeyString流程模型key
startTimeString流程开始时间
endTimeString流程结束时间

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTTaskVo

TaskVo对象

参数类型说明
nameString节点名称
formNameString标题
stayHourString停留时间
startPersonCodeString发起人编号
createTimeDate创建时间
appSnString所属系统
taskIdString任务id
processStatusString审批状态
processStatusNameString审批状态中文描述
processInstanceIdString流程实例id

示例

请求示例

http://域名/flow/prod/api/queryApplyedTask

请求入参

{
  "entity":{
    "formName": "测试流程"
  },
  "query": {
    "pageSize": 15,
    "pageNum": 1
  }
}

返回示例

{
  "code": "100",
  "msg": "OK",
  "data": {
    "total": 1,
    "rows": [
      {
        "businessKey": null,
        "name": "提交人",
        "taskId": "1703418658949603328",
        "taskDefKey": "Activity_n0sl3dp",
        "assignee": "admin",
        "assigneeName": null,
        "createTime": null,
        "stayHour": "14 秒",
        "processInstanceId": "1703418656680484864",
        "parentId": null,
        "processDefinitionId": "InclusiveGateway001:1:1703418548115120128",
        "processDefinitionKey": null,
        "processDefinitionType": null,
        "formType": null,
        "processStatus": "applying",
        "processStatusName": "审批中",
        "taskType": null,
        "status": 0,
        "userId": null,
        "userName": null,
        "groupIds": null,
        "finished": false,
        "finishedTime": null,
        "formName": "包容网关测试",
        "startPersonCode": "1",
        "startPersonName": null,
        "startTime": "2023-09-17 22:40:30",
        "endTime": "2023-09-17 22:40:45",
        "appSn": "",
        "appName": null,
        "totalTime": null,
        "businessUrl": null,
        "candidateFlag": false,
        "type": 0,
        "currentAssignees": null,
        "currentAssigneeNos": null
      }
    ]
  },
  "success": true
}

查询我的列表

前端请求示例

:::tips

  • URL/flow/prod/api/queryMyProcessInstance
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例查询service
@Autowired
private FlowablePlusProcessInstanceQueryService flowablePlusProcessInstanceQueryService;

//调用查询已发列表接口示例代码
ParamVo<PlusQueryTaskVo> params = new ParamVo<>();//前端传过来的分页和搜索对象
ReturnVo<PagerModel<ProcessInstanceVo>> pagerModel = flowablePlusProcessInstanceQueryService.queryMyProcessInstance(params.getEntity(), params.getQuery())

Body参数

参数类型是否必填说明
entityTPlusInstanceQueryParamsVo
queryQuery分页对象

PlusInstanceQueryParamsVo对象

参数类型是否必填说明
keywordString查询关键字(标题)
processInstanceIdString流程实例ID
processDefinitionKeyString流程定义KEY
appSnString所属系统
businessKeyString业务单据的id
businessStatusString业务状态
startTimeString流程开始时间
endTimeString流程结束时间

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTProcessInstanceVo

ProcessInstanceVo对象

参数类型说明
currentNodeNamesString当前节点名称
formNameString标题
startedUserIdString发起人编号
createTimeDate创建时间
appSnString所属系统
processStatusString审批状态
processStatusNameString审批状态中文描述
processInstanceIdString流程实例id

示例

请求示例

http://域名/flow/prod/api/queryMyProcessInstance

请求入参

{
  "entity":{
    "formName": "测试流程"
  },
  "query": {
    "pageSize": 15,
    "pageNum": 1
  }
}

返回示例

{
  "code": "100",
  "msg": "OK",
  "data": {
    "total": 1,
    "rows": [
      {
        "processInstanceId": "1703418656680484864",
        "processDefinitionId": "InclusiveGateway001:1:1703418548115120128",
        "processDefinitionName": null,
        "processDefinitionKey": "InclusiveGateway001",
        "processDefinitionType": null,
        "formType": null,
        "processDefinitionVersion": null,
        "categoryCode": null,
        "deploymentId": null,
        "businessKey": "test_businessKey1694961638020",
        "assignees": null,
        "appId": null,
        "appSn": "",
        "createTime": null,
        "reason": null,
        "startedUserId": "1",
        "startedUserName": null,
        "startedUserIds": null,
        "startedUserDept": null,
        "startedUserDeptName": null,
        "startedUserCom": null,
        "startedUserComName": null,
        "finishFlag": false,
        "processStatus": "applying",
        "processStatusName": "审批中",
        "formName": "包容网关测试",
        "startPersonName": null,
        "startTime": "2023-09-17 22:40:30",
        "endTime": null,
        "startTimeStr": null,
        "endTimeStr": null,
        "appName": null,
        "currentNodeNames": [
          "E",
          "C",
          "D"
        ],
        "stayHour": "5 天 7 分",
        "businessUrl": null,
        "totalTime": null,
        "currentAssignees": null,
        "queryType": null,
        "newVersion": null,
        "proInstanceIdList": null,
        "tableName": null,
        "pstate": null
      }
    ]
  },
  "success": true
}

发起流程

前端请求示例

:::tips

  • URL/flow/prod/api/startProcessInstanceByKey
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例操作service
@Autowired
private FlowablePlusProcessInstanceOperateService flowablePlusProcessInstanceOperateService;

//调用发起接口示例代码
PlusStartProcessInstanceVo params = new PlusStartProcessInstanceVo();//前端传过来请求对象
ReturnVo<ProcessInstanceVo> processInstanceVoReturnVo = flowablePlusProcessInstanceOperateService.startProcessInstance(params);
String userCode = "";//当前登录用户编码
if (null != processInstanceVoReturnVo && processInstanceVoReturnVo.getData().getProcessInstanceId() !=null) {
	//发起成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
    flowablePlusCommentService.addComment(null, processInstanceVoReturnVo.getData().getProcessInstanceId(), userCode, params.getMessage());
}

Body参数

PlusStartProcessInstanceVo对象

参数类型是否必填说明
modelKeyStringmodelKey
businessKeyString业务表单唯一标识
appSnString系统标识
companyCodeString公司Code
formNameString表单显示名称
creatorString流程提交人工号
formDataString表单数据
messageNameString流程消息 用于消息启动流程
signalNameString信号名称 用于信号启动流程
variablesMap<String, Object>启动流程变量

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTProcessInstanceVo

ProcessInstanceVo对象

参数类型说明
currentNodeNamesList<String>当前节点名称
formNameString标题
startedUserIdString发起人编号
createTimeDate创建时间
appSnString所属系统
processStatusString审批状态
processStatusNameString审批状态中文描述
processInstanceIdString流程实例id

示例

请求示例

http://域名/flow/prod/api/startProcessInstanceByKey

请求入参

{
  "modelKey": "InclusiveGateway001",
  "currentUserCode": "1",
  "businessKey": "test_businessKey1695394147316",
  "creator": "1",
  "appSn": "",
  "message": "发起流程",
  "formName": "1111",
  "formData": "{\"modelKey\":\"InclusiveGateway001\",\"currentUserCode\":\"1\",\"businessKey\":\"test_businessKey1695394147316\",\"creator\":\"1\",\"appSn\":\"\",\"message\":\"发起流程\",\"formName\":\"1111\",\"title\":\"1111\"}",
  "variables": {}
}

返回示例

{
  "code": "100",
  "msg": "发起成功",
  "data": {
    "processInstanceId": "1705232852372119552",
    "processDefinitionId": "InclusiveGateway001:1:1703418548115120128",
    "processDefinitionName": "包容网关测试",
    "processDefinitionKey": "InclusiveGateway001",
    "processDefinitionType": null,
    "formType": null,
    "processDefinitionVersion": 1,
    "categoryCode": null,
    "deploymentId": "1703418547146235904",
    "businessKey": "test_businessKey1695394147316",
    "assignees": null,
    "appId": null,
    "appSn": null,
    "createTime": null,
    "reason": null,
    "startedUserId": null,
    "startedUserName": null,
    "startedUserIds": null,
    "startedUserDept": null,
    "startedUserDeptName": null,
    "startedUserCom": null,
    "startedUserComName": null,
    "finishFlag": false,
    "processStatus": null,
    "processStatusName": null,
    "formName": null,
    "startPersonName": null,
    "startTime": "2023-09-22 22:49:28",
    "endTime": null,
    "startTimeStr": null,
    "endTimeStr": null,
    "appName": null,
    "currentNodeNames": null,
    "stayHour": null,
    "businessUrl": null,
    "totalTime": null,
    "currentAssignees": null,
    "queryType": null,
    "newVersion": null,
    "proInstanceIdList": null,
    "tableName": null,
    "pstate": null
  },
  "success": true
}

模拟流程

前端请求示例

:::tips

  • URL:/flow/prod/api/imitateProcess
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例查询service
@Autowired
private FlowablePlusProcessInstanceQueryService flowablePlusProcessInstanceQueryService;

//调用模拟接口示例代码
PlusStartProcessInstanceVo params = new PlusStartProcessInstanceVo();//前端传过来请求对象
ReturnVo<```String>> returnVo = flowablePlusProcessInstanceQueryService.imitateProcess(params)

Body参数

PlusStartProcessInstanceVo对象

参数类型是否必填说明
modelKeyString模型定义key
businessKeyString业务表单唯一标识
currentUserCodeString申请人工号
companyCodeString公司Code
formNameString表单显示名称
appSnString系统标识
creatorString流程提交人工号
formDataString表单数据
variablesMap<String, Object>启动流程变量

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataTList<String>

示例

请求示例

http://域名/flow/prod/api/imitateProcess

请求入参

{
  "modelKey": "Hccc",
  "currentUserCode": "1",
  "businessKey": "test_businessKey1695532497886",
  "creator": "1",
  "appSn": "",
  "message": "发起流程",
  "formName": "11",
  "formData": "{\"modelKey\":\"Hccc\",\"currentUserCode\":\"1\",\"businessKey\":\"test_businessKey1695532497886\",\"creator\":\"1\",\"appSn\":\"\",\"message\":\"发起流程\",\"formName\":\"11\",\"title\":\"11\"}",
  "variables": {}
}

返回示例

{
  "code": "100",
  "msg": "查询成功",
  "data": [
    "a0d29b46f8c22419998fa8d2c3b118559",
    "Flow_05yfrim",
    "Flow_1h43p2l"
  ],
  "success": true
}

审批流程

前端请求示例

:::tips

  • URL:/flow/prod/api/completeTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用审批接口示例代码
PlusCompleteTaskVo params = new PlusCompleteTaskVo();//前端传过来请求对象
ReturnVo<String> processInstanceVoReturnVo = flowablePlusTaskOperateService.completeTask(params);
//审批成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
String userCode = "";//当前登录用户编码
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusCompleteTaskVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称
formTitleString流程标题
userCodeString用户编码
nextSequenceFlowNextSequenceUserVo下一个或多个审批人
nextUsersList<NextSequenceUserVo>流程提交人工号
variablesMap<String, Object>任务参数

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/completeTask

请求入参

{
  "taskId": "1700436425895739392",
  "processInstanceId": "1700436387891150848",
  "message": "同意"
}

返回示例

{
  "code": "100",
  "msg": "审批成功!",
  "data": null,
  "success": true
}

转阅流程

前端请求示例

:::tips

  • URL:/flow/prod/api/transferTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用转阅接口示例代码
PlusTransferVo params = new PlusTransferVo();//前端传过来的请求对象
String userCode = ""; //当前登录用户的编码        
params.setUserCode(userCode);
ReturnVo<String> processInstanceVoReturnVo = flowablePlusTaskOperateService.transferTask(params);
//转阅成功之后,在插入流程操作记录,或自己改造放上面转阅方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusTransferVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
transferUserNoString转阅人工号
transferToUserNosList<String>被转阅人工号,支持多个多个

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/transferTask

请求入参

{
  "taskId": "1700436425895739392",
  "processInstanceId": "1700436387891150848",
  "message": "帮忙审批下",
  "transferToUserNos": [
    "10000"
  ]
}

返回示例

{
  "code": "100",
  "msg": "转阅成功!",
  "data": null,
  "success": true
}

复活流程

前端请求示例

:::tips

  • URL:/flow/prod/api/restartProcessInstance/{processInstanceId}
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例操作service
@Autowired
private FlowablePlusProcessInstanceOperateService flowablePlusProcessInstanceOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用复活接口示例代码
String processInstanceId = "";//流程实例id
ProcessInstance processInstance = flowablePlusProcessInstanceOperateService.restartProcessInstance(processInstanceId);
String userCode = "";//当前登录用户编码
if (null != processInstance) {
	//发起成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
    flowablePlusCommentService.addComment(null, processInstance.getProcessInstanceId(), userCode, "复活流程");
}

Body参数

:::info 无 :::

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/restartProcessInstance

请求入参

{
  "taskId": "1700436425895739392",
  "processInstanceId": "1700436387891150848",
  "message": "复活"
}

返回示例

{
  "code": "100",
  "msg": "复活成功",
  "data": null,
  "success": true
}

撤回流程

前端调动示例

:::tips

  • URL:/flow/prod/api/revokeProcess
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例操作service
@Autowired
private FlowablePlusProcessInstanceOperateService flowablePlusProcessInstanceOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用撤回接口示例代码
PlusRevokeVo params = new PlusRevokeVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusProcessInstanceOperateService.revokeProcess(params)
String userCode = "";//当前登录用户编码
//撤回成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusRevokeVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/revokeProcess

请求入参

{
  "taskId": "828080818ab2f019018ab2f0d54f0006",
  "processInstanceId": "1704496297922969600",
  "message": "撤回"
}

返回示例

{
  "code": "100",
  "msg": "驳回成功!",
  "data": null,
  "success": true
}

终止流程

前端调动示例

:::tips

  • URL:/flow/prod/api/stopProcess
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程实例操作service
@Autowired
private FlowablePlusProcessInstanceOperateService flowablePlusProcessInstanceOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用终止service接口示例代码
PlusEndVo params = new PlusEndVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusProcessInstanceOperateService.stopProcess(params)
String userCode = "";//当前登录用户编码
//终止成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusEndVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/stopProcess

请求入参

{
  "taskId": "1704496368643129344",
  "processInstanceId": "1704496297922969600",
  "message": "终止"
}

返回示例

{
  "code": "100",
  "msg": "终止成功!",
  "data": null,
  "success": true
}

暂存流程

请求

:::tips

  • URL:/flow/prod/api/holdTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用暂存service接口示例代码
PlusHoldTaskVo params = new PlusHoldTaskVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.holdTask(params)
String userCode = "";//当前登录用户编码
//暂存成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusHoldTaskVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/holdTask

请求入参

{
  "taskId": "1700436942638186496",
  "processInstanceId": "1700436893011181568",
  "message": "暂存一下"
}

返回示例

{
  "code": "100",
  "msg": "暂存成功!",
  "data": null,
  "success": true
}

前加签流程

前端请求示例

:::tips

  • URL:/flow/prod/api/beforeAddSign
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用前加签service接口示例代码
PlusSignVo params = new PlusSignVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.beforeAddSign(params)
String userCode = "";//当前登录用户编码
//前加签成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusSignVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
signPersonalsList<String>被加签人
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/beforeAddSign

请求入参

{
  "taskId": "1705917583157096448",
  "processInstanceId": "1705917510390116352",
  "message": "前加签",
  "signPersonals": [
    "10001"
  ]
}

返回示例

{
  "code": "100",
  "msg": "加签成功!",
  "data": null,
  "success": true
}

后加签流程

前端请求示例

:::tips

  • URL:/flow/prod/api/afterAddSign
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用后加签service接口示例代码
PlusSignVo params = new PlusSignVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.afterAddSign(params)
String userCode = "";//当前登录用户编码
//后加签成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusSignVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
signPersonalsList<String>被加签人
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/afterAddSign

请求入参

{
  "taskId": "1705917583157096448",
  "processInstanceId": "1705917510390116352",
  "message": "后加签同意",
  "signPersonals": [
    "10000"
  ]
}

返回示例

{
  "code": "100",
  "msg": "后加签成功!",
  "data": null,
  "success": true
}

委派流程

前端请求示例

:::tips

  • URL:/flow/prod/api/delegateTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用委派service接口示例代码
PlusDelegateTaskVo params = new PlusDelegateTaskVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.delegateTask(params)
String userCode = "";//当前登录用户编码
//委派成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusDelegateTaskVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
delegateUserCodeString委派人
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/delegateTask

请求入参

{
  "taskId": "828080818ac71b30018ac71e96dd0002",
  "processInstanceId": "1705917510390116352",
  "message": "委派给张三",
  "delegateUserCode": "18888"
}

返回示例

{
  "code": "100",
  "msg": "委派成功!",
  "data": null,
  "success": true
}

签收流程

前端请求示例

:::tips

  • URL:/flow/prod/api/claimTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用签收service接口示例代码
PlusClaimTaskVo params = new PlusClaimTaskVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.claimTask(params)
String userCode = "";//当前登录用户编码
//签收成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusClaimTaskVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/claimTask

请求入参

{
  "taskId": "1705917583157096448",
  "processInstanceId": "1705917510390116352",
  "message": "我签收了"
}

返回示例

{
  "code": "100",
  "msg": "签收成功!",
  "data": null,
  "success": true
}

反签收流程

前端请求示例

:::tips

  • URL:/flow/prod/api/unClaimTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用反签收service接口示例代码
PlusClaimTaskVo params = new PlusClaimTaskVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.unClaimTask(params)
String userCode = "";//当前登录用户编码
//反签收成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusClaimTaskVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/unClaimTask

请求入参

{
  "taskId": "1704496368643129344",
  "processInstanceId": "1704496297922969600",
  "message": "反签收"
}

返回示例

{
  "code": "100",
  "msg": "反签收成功!",
  "data": null,
  "success": true
}

驳回流程

前端请求示例

:::tips

  • URL:/flow/prod/api/backToStep
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用驳回service接口示例代码
PlusBackVo params = new PlusBackVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.backToStep(params)
String userCode = "";//当前登录用户编码
//驳回成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusBackVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
distFlowElementIdString要驳回的节点id列表
commentTypeEnumCommentTypeEnum审批意见类型
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/backToStep

请求入参

{
  "taskId": "1700447795533979648",
  "processInstanceId": "1700447648834002944",
  "message": "驳回",
  "distFlowElementId": "a3eb0c9f7111f419c94359481ef41174f"
}

返回示例

{
  "code": "100",
  "msg": "驳回成功!",
  "data": null,
  "success": true
}

转办流程

前端请求示例

:::tips

  • URL:/flow/prod/api/turnTask
  • MethodPOST
  • 需要登录:是

:::

java调用示例

//引入流程plus流程任务操作service
@Autowired
private FlowablePlusTaskOperateService flowablePlusTaskOperateService;
//引入流程plus流程审批操作service
@Autowired
private flowablePlusCommentService flowablePlusCommentService;

//调用转办service接口示例代码
PlusTurnTaskVo params = new PlusTurnTaskVo();//前端传过来请求对象
ReturnVo<String> returnVo = flowablePlusTaskOperateService.turnTask(params)
String userCode = "";//当前登录用户编码
//转办成功之后,在插入流程操作记录,或自己改造放上面审批方法里面(保证在同一个事物)
flowablePlusCommentService.addComment(params.getTaskId(), params.getProcessInstanceId(), userCode, params.getMessage());

Body参数

PlusTurnTaskVo对象

参数类型是否必填说明
taskIdString任务id
messageString审批意见
processInstanceIdString流程实例的id
commentTypeEnumCommentTypeEnum审批意见类型
turnUserIdString转办人工号
turnToUserIdString被转办人工号
activityIdString节点id
activityNameString节点名称

返回参数

名称类型描述
successboolean成功状态:true/false
codeString状态码:100/101
msgString提示信息
dataString

示例

请求示例

http://域名/flow/prod/api/turnTask

请求入参

{
  "taskId": "1704496368643129344",
  "processInstanceId": "1704496297922969600",
  "message": "转办"
}

返回示例

{
  "code": "100",
  "msg": "转办成功!",
  "data": null,
  "success": true
}