Activiti6在Springboot下的使用 6 并行网关的处理

本文介绍了如何在Activiti6和Springboot环境下使用并行网关进行并行审批处理。通过流程图和XML配置展示了并行网关的使用,并详细讲解了各个审批阶段的实现逻辑,包括流程变量的设置和读取,涉及到的Activiti关键表如act_ru_variable和act_hi_varinst。
摘要由CSDN通过智能技术生成

说明

流程中如果需要并行审批的话,我们可以使用并行网关来进行处理,例如下面的流程图:

xml信息如下:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1n8y69f" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Activiti Modeler" exporterVersion="3.2.3">
  <bpmn:process id="Process_2aplvep" name="并行网关2" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1" name="start">
      <bpmn:outgoing>SequenceFlow_0c2pil9</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:parallelGateway id="ExclusiveGateway_0844kui">
      <bpmn:incoming>SequenceFlow_1f2fg8q</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1hmea8p</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_1jugour</bpmn:outgoing>
    </bpmn:parallelGateway>
    <bpmn:sequenceFlow id="SequenceFlow_0c2pil9" sourceRef="StartEvent_1" targetRef="Task_1sngwtw" />
    <bpmn:sequenceFlow id="SequenceFlow_1hmea8p" sourceRef="ExclusiveGateway_0844kui" targetRef="Task_192utdd" />
    <bpmn:sequenceFlow id="SequenceFlow_1f2fg8q" sourceRef="Task_1sngwtw" targetRef="ExclusiveGateway_0844kui" />
    <bpmn:exclusiveGateway id="ExclusiveGateway_09fakrp">
      <bpmn:incoming>SequenceFlow_17aq8lk</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1wtykc2</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_1wig4cz</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:sequenceFlow id="SequenceFlow_17aq8lk" sourceRef="Task_0cohxnk" targetRef="ExclusiveGateway_09fakrp" />
    <bpmn:sequenceFlow id="SequenceFlow_1wtykc2" name="同意" sourceRef="ExclusiveGateway_09fakrp" targetRef="ExclusiveGateway_00xcx0f">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${status==1}</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:parallelGateway id="ExclusiveGateway_00xcx0f">
      <bpmn:incoming>SequenceFlow_1wtykc2</bpmn:incoming>
      <bpmn:incoming>SequenceFlow_007ko9l</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_11tofc3</bpmn:outgoing>
    </bpmn:parallelGateway>
    <bpmn:sequenceFlow id="SequenceFlow_007ko9l" sourceRef="Task_192utdd" targetR
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值