说明
流程中如果需要并行审批的话,我们可以使用并行网关来进行处理,例如下面的流程图:
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