包容网关 Inclusive Gateway

作者:Jesai

2018年3月25日 22:59:56

什么是包容网关?

包容网关(Inclusive Gateway)就是并行网关(Parallel Gateway)和排他网关(Exclusive Gateway)的组合。可以在出口顺序流上定义条件,包容网关会计算它们。然而主要的区别是,包容网关与并行网关一样,可以选择多于一条(出口)顺序流

包容网关、并行网关和排他网关的异同:

同:

1.都有出口顺序流和入口顺序流。

2.至少有一个分支

异:

1.排他网关只有一条分支被执行,如果有多条符合条件的分支,流程会默认走第一条。并行网关至少有一条分支被执行,而且所有的分支都会被执行。包容网关有多条或者一条分支会被执行。

2.包容网关包括了并行网关和排他网关的所有功能。

使用场合:

不确定分支的情形下面。

例如:

审批部门领导根据不同的条件确定。

审批的会签根据不同的条件确定。

包容网关两个重要的特性

分支(fork):所有出口顺序流都会被计算,对于计算为true的分支都会被执行。

聚合(join):所有到达包容网关的并行执行,都会在网关处等待,直到每一条具有流程标志的入口顺序流,都有一个执行到达。这是与并行网关的重要区别。换句话说,包容网关只会等待将会被执行的入口顺序流。在合并后,流程穿过合并并行网关继续

注意:

1.包容网关基于出口顺序流和入口顺序流。

图标:

包容网关,用内部带有’圆圈’图标的网关(菱形)表示。

定义:

 <inclusiveGateway id="myInclusiveGateway" />

案例:

现在一家公司的业务不断扩展,单笔业务涉及到的资金也来越多,合同签订也是这个公司比较担心的事情,生怕合同签订的中间环节由于责任不明确或者层层疏忽而出现漏洞。所以该公司花高价钱买了一套合同呈批系统。使得合同的呈批流程化。需求如下

先是由合同部起草合同

当金额大于0的时候小于1000万,律师1和律师2先仔细初审,律师顾问复核。

当金额大于5000万的时候,律师一和律师二、法律顾问。法律代表团一起审核。

当金额是1000万到5000万的时候,法律代表团决定。

流程设计:

三个分支条件:

1.${momey<1000||money>5000}

2.${momey<1000||money>5000}

3. ${momey>1000}

流程代码:

 <?xml version='1.0' encoding='UTF-8'?>

 <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:activiti="http://activiti.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://www.activiti.org/processdef">

   <process id="process" isExecutable="true">

     <startEvent id="sid-33E1F524-C016-49C3-97D5-97AC90206D75" />

     <userTask id="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" name="起草合同" activiti:assignee="admin" />

     <sequenceFlow id="sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9" sourceRef="sid-33E1F524-C016-49C3-97D5-97AC90206D75" targetRef="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" />

     <inclusiveGateway id="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" />

     <sequenceFlow id="sid-95958564-1A4F-4518-ABF8-137A3E43D483" sourceRef="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" targetRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" />

     <userTask id="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" name="律师1" activiti:assignee="admin" />

     <userTask id="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" name="律师2" activiti:assignee="admin" />

     <inclusiveGateway id="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <userTask id="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" name="法律顾问" activiti:assignee="admin" />

     <sequenceFlow id="sid-2FFF2523-0CDE-4C50-906C-97E82371BA89" sourceRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" targetRef="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" />

     <userTask id="sid-64B3C09A-2446-431F-962A-43022FCDA61B" name="律师代表团" activiti:assignee="admin" />

     <userTask id="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" name="签订合同" activiti:assignee="admin" />

     <inclusiveGateway id="sid-40BDCB3D-EA22-4FC0-985D-8E926FD43296" />

     <sequenceFlow id="sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9" sourceRef="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" targetRef="sid-40BDCB3D-EA22-4FC0-985D-8E926FD43296" />

     <sequenceFlow id="sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA" sourceRef="sid-40BDCB3D-EA22-4FC0-985D-8E926FD43296" targetRef="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" />

     <endEvent id="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" />

     <sequenceFlow id="sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB" sourceRef="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" targetRef="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" />

     <sequenceFlow id="sid-3226BACB-CB22-437F-A34D-4FA927921D06" sourceRef="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" targetRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <sequenceFlow id="sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52" sourceRef="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" targetRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <sequenceFlow id="sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E" sourceRef="sid-64B3C09A-2446-431F-962A-43022FCDA61B" targetRef="sid-40BDCB3D-EA22-4FC0-985D-8E926FD43296" />

     <sequenceFlow id="sid-29AC8F78-9D48-41DE-AE15-F4BED0250695" name="小于1000万,大于5000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money<1000||money>5000}]]></conditionExpression>

     </sequenceFlow>

     <sequenceFlow id="sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6" name="小于1000万,大于5000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-7CA796A7-F6D4-4204-938D-89EAB826196F">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money<1000||money>5000}]]></conditionExpression>

     </sequenceFlow>

     <sequenceFlow id="sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE" name="大于1000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-64B3C09A-2446-431F-962A-43022FCDA61B">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money>1000}]]></conditionExpression>

     </sequenceFlow>

     <textAnnotation id="sid-BA9B328D-7723-46D7-9DAF-28D49F06D175">

       <text>小于1000万,律师一和律师二

 1000-5000万,律师代表团

 大于5000万,律师一、律师二和律师代表团</text>

     </textAnnotation>

   </process>

   <bpmndi:BPMNDiagram id="BPMNDiagram_process">

     <bpmndi:BPMNPlane bpmnElement="process" id="BPMNPlane_process">

       <bpmndi:BPMNShape bpmnElement="sid-33E1F524-C016-49C3-97D5-97AC90206D75" id="BPMNShape_sid-33E1F524-C016-49C3-97D5-97AC90206D75">

         <omgdc:Bounds height="30.0" width="30.0" x="45.0" y="190.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" id="BPMNShape_sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A">

         <omgdc:Bounds height="80.0" width="100.0" x="120.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" id="BPMNShape_sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5">

         <omgdc:Bounds height="40.0" width="40.0" x="255.0" y="185.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" id="BPMNShape_sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="30.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" id="BPMNShape_sid-7CA796A7-F6D4-4204-938D-89EAB826196F">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" id="BPMNShape_sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5">

         <omgdc:Bounds height="40.0" width="40.0" x="525.0" y="185.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" id="BPMNShape_sid-E2A0931F-56FD-4F2B-9876-570A93D617E9">

         <omgdc:Bounds height="80.0" width="100.0" x="585.0" y="60.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-64B3C09A-2446-431F-962A-43022FCDA61B" id="BPMNShape_sid-64B3C09A-2446-431F-962A-43022FCDA61B">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="315.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" id="BPMNShape_sid-6908E784-3D2A-4FCB-9947-AD1C999CC444">

         <omgdc:Bounds height="80.0" width="100.0" x="780.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-40BDCB3D-EA22-4FC0-985D-8E926FD43296" id="BPMNShape_sid-40BDCB3D-EA22-4FC0-985D-8E926FD43296">

         <omgdc:Bounds height="40.0" width="40.0" x="705.0" y="255.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" id="BPMNShape_sid-FB66A49B-68FC-429C-9492-A02642F1FAEB">

         <omgdc:Bounds height="28.0" width="28.0" x="955.0" y="191.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-BA9B328D-7723-46D7-9DAF-28D49F06D175" id="BPMNShape_sid-BA9B328D-7723-46D7-9DAF-28D49F06D175">

         <omgdc:Bounds height="69.0" width="262.0" x="217.0" y="428.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNEdge bpmnElement="sid-3226BACB-CB22-437F-A34D-4FA927921D06" id="BPMNEdge_sid-3226BACB-CB22-437F-A34D-4FA927921D06">

         <omgdi:waypoint x="487.0" y="70.0" />

         <omgdi:waypoint x="545.0" y="70.0" />

         <omgdi:waypoint x="545.0" y="185.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE" id="BPMNEdge_sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE">

         <omgdi:waypoint x="275.5" y="224.5" />

         <omgdi:waypoint x="275.5" y="355.0" />

         <omgdi:waypoint x="387.0" y="355.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB" id="BPMNEdge_sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB">

         <omgdi:waypoint x="880.0" y="205.0" />

         <omgdi:waypoint x="955.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-2FFF2523-0CDE-4C50-906C-97E82371BA89" id="BPMNEdge_sid-2FFF2523-0CDE-4C50-906C-97E82371BA89">

         <omgdi:waypoint x="564.5" y="205.5" />

         <omgdi:waypoint x="635.0" y="205.5" />

         <omgdi:waypoint x="635.0" y="140.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9" id="BPMNEdge_sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9">

         <omgdi:waypoint x="685.0" y="100.0" />

         <omgdi:waypoint x="725.0" y="100.0" />

         <omgdi:waypoint x="725.0" y="255.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA" id="BPMNEdge_sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA">

         <omgdi:waypoint x="744.5" y="275.5" />

         <omgdi:waypoint x="830.0" y="275.5" />

         <omgdi:waypoint x="830.0" y="245.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-29AC8F78-9D48-41DE-AE15-F4BED0250695" id="BPMNEdge_sid-29AC8F78-9D48-41DE-AE15-F4BED0250695">

         <omgdi:waypoint x="275.5" y="185.5" />

         <omgdi:waypoint x="275.5" y="70.0" />

         <omgdi:waypoint x="387.0" y="70.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-95958564-1A4F-4518-ABF8-137A3E43D483" id="BPMNEdge_sid-95958564-1A4F-4518-ABF8-137A3E43D483">

         <omgdi:waypoint x="220.0" y="205.0" />

         <omgdi:waypoint x="255.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E" id="BPMNEdge_sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E">

         <omgdi:waypoint x="487.0" y="355.0" />

         <omgdi:waypoint x="725.0" y="355.0" />

         <omgdi:waypoint x="725.0" y="295.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6" id="BPMNEdge_sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6">

         <omgdi:waypoint x="294.55900621118013" y="205.44099378881987" />

         <omgdi:waypoint x="387.0" y="205.15479876160992" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52" id="BPMNEdge_sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52">

         <omgdi:waypoint x="487.0" y="205.0" />

         <omgdi:waypoint x="525.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9" id="BPMNEdge_sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9">

         <omgdi:waypoint x="75.0" y="205.0" />

         <omgdi:waypoint x="120.0" y="205.0" />

       </bpmndi:BPMNEdge>

     </bpmndi:BPMNPlane>

   </bpmndi:BPMNDiagram>

 </definitions>

启动流程

起草合同:

 /**查询当前人的个人任务*/

     @Test

     public void findMyPersonalTask(){

         ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();

         String assignee="admin";

         List<Task> list=processEngine.getTaskService()//与正在执行的任务管理相关的Service

         .createTaskQuery() //创建任务查询对象

         .taskAssignee(assignee)

         .list();

         if(list!=null&& list.size()>0){

             for(Task task:list){

                 System.out.println("任务的ID:"+task.getId());

                 System.out.println("任务的名称:"+task.getName());

                 System.out.println("任务的创建时间:"+task.getCreateTime());

                 System.out.println("任务的办理人:"+task.getAssignee());

                 System.out.println("流程实例ID:"+task.getProcessInstanceId());

                 System.out.println("执行对象ID:"+task.getExecutionId());

                 System.out.println("流程定义ID:"+task.getProcessDefinitionId());

                 System.out.println("#########################################################");

             }

         }

     }

金额等于100万

  /**完成我的任务*/

     @Test

     public void completeMyPersonalTask1(){

         ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();

         String taskId="417511";

         Map<String,Object> variables=new HashMap<String,Object>();

         variables.put("money", 100);    

         processEngine.getTaskService()//与正在执行的案例管理相关的Service

         .complete(taskId,variables);       

         System.out.println("完成任务,任务ID:"+taskId);

     }

完成律师一的任务:

完成律师二的任务:

完成律师顾问的任务:

到此,任务已经完成。

金额等于1050万

 /**完成我的任务*/

     @Test

     public void completeMyPersonalTask1(){

         ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();

         String taskId="417523";

         Map<String,Object> variables=new HashMap<String,Object>();

         variables.put("money", 1050);       

         processEngine.getTaskService()//与正在执行的案例管理相关的Service

         .complete(taskId,variables);       

         System.out.println("完成任务,任务ID:"+taskId);

     }

完成任务,就又到了签订合同环节。

金额等于5050万

  /**完成我的任务*/

     @Test

     public void completeMyPersonalTask1(){

         ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();

         String taskId="417534";

         Map<String,Object> variables=new HashMap<String,Object>();

         variables.put("money", 5050);       

         processEngine.getTaskService()//与正在执行的案例管理相关的Service

         .complete(taskId,variables);       

         System.out.println("完成任务,任务ID:"+taskId);

     }

完成律师代表团任务:

完成了律师代表团的任务后,就需要等待律师和律师顾问的任务完成。

假如是包容网关和排他网关:

流程设计图:

流程代码:

 <?xml version='1.0' encoding='UTF-8'?>

 <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:activiti="http://activiti.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://www.activiti.org/processdef">

   <process id="process" isExecutable="true">

     <startEvent id="sid-33E1F524-C016-49C3-97D5-97AC90206D75" />

     <userTask id="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" name="起草合同" activiti:assignee="admin" />

     <sequenceFlow id="sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9" sourceRef="sid-33E1F524-C016-49C3-97D5-97AC90206D75" targetRef="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" />

     <inclusiveGateway id="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" />

     <sequenceFlow id="sid-95958564-1A4F-4518-ABF8-137A3E43D483" sourceRef="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" targetRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" />

     <userTask id="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" name="律师1" activiti:assignee="admin" />

     <userTask id="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" name="律师2" activiti:assignee="admin" />

     <inclusiveGateway id="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <userTask id="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" name="法律顾问" activiti:assignee="admin" />

     <sequenceFlow id="sid-2FFF2523-0CDE-4C50-906C-97E82371BA89" sourceRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" targetRef="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" />

     <userTask id="sid-64B3C09A-2446-431F-962A-43022FCDA61B" name="律师代表团" activiti:assignee="admin" />

     <userTask id="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" name="签订合同" activiti:assignee="admin" />

     <sequenceFlow id="sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA" sourceRef="sid-43D42A97-348F-4F04-A2F9-B077510EA46B" targetRef="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" />

     <endEvent id="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" />

     <sequenceFlow id="sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB" sourceRef="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" targetRef="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" />

     <sequenceFlow id="sid-3226BACB-CB22-437F-A34D-4FA927921D06" sourceRef="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" targetRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <sequenceFlow id="sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52" sourceRef="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" targetRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <sequenceFlow id="sid-29AC8F78-9D48-41DE-AE15-F4BED0250695" name="小于1000万,大于5000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money<1000||money>5000}]]></conditionExpression>

     </sequenceFlow>

     <sequenceFlow id="sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6" name="小于1000万,大于5000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-7CA796A7-F6D4-4204-938D-89EAB826196F">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money<1000||money>5000}]]></conditionExpression>

     </sequenceFlow>

     <sequenceFlow id="sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE" name="大于1000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-64B3C09A-2446-431F-962A-43022FCDA61B">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money>1000}]]></conditionExpression>

     </sequenceFlow>

     <exclusiveGateway id="sid-43D42A97-348F-4F04-A2F9-B077510EA46B" />

     <sequenceFlow id="sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9" sourceRef="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" targetRef="sid-43D42A97-348F-4F04-A2F9-B077510EA46B" />

     <sequenceFlow id="sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E" sourceRef="sid-64B3C09A-2446-431F-962A-43022FCDA61B" targetRef="sid-43D42A97-348F-4F04-A2F9-B077510EA46B" />

     <textAnnotation id="sid-BA9B328D-7723-46D7-9DAF-28D49F06D175">

       <text>小于1000万,律师一和律师二

 1000-5000万,律师代表团

 大于5000万,律师一、律师二和律师代表团</text>

     </textAnnotation>

   </process>

   <bpmndi:BPMNDiagram id="BPMNDiagram_process">

     <bpmndi:BPMNPlane bpmnElement="process" id="BPMNPlane_process">

       <bpmndi:BPMNShape bpmnElement="sid-33E1F524-C016-49C3-97D5-97AC90206D75" id="BPMNShape_sid-33E1F524-C016-49C3-97D5-97AC90206D75">

         <omgdc:Bounds height="30.0" width="30.0" x="45.0" y="190.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" id="BPMNShape_sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A">

         <omgdc:Bounds height="80.0" width="100.0" x="120.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" id="BPMNShape_sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5">

         <omgdc:Bounds height="40.0" width="40.0" x="255.0" y="185.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" id="BPMNShape_sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="30.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" id="BPMNShape_sid-7CA796A7-F6D4-4204-938D-89EAB826196F">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" id="BPMNShape_sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5">

         <omgdc:Bounds height="40.0" width="40.0" x="525.0" y="185.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" id="BPMNShape_sid-E2A0931F-56FD-4F2B-9876-570A93D617E9">

         <omgdc:Bounds height="80.0" width="100.0" x="585.0" y="60.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-64B3C09A-2446-431F-962A-43022FCDA61B" id="BPMNShape_sid-64B3C09A-2446-431F-962A-43022FCDA61B">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="315.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" id="BPMNShape_sid-6908E784-3D2A-4FCB-9947-AD1C999CC444">

         <omgdc:Bounds height="80.0" width="100.0" x="780.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" id="BPMNShape_sid-FB66A49B-68FC-429C-9492-A02642F1FAEB">

         <omgdc:Bounds height="28.0" width="28.0" x="955.0" y="191.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-BA9B328D-7723-46D7-9DAF-28D49F06D175" id="BPMNShape_sid-BA9B328D-7723-46D7-9DAF-28D49F06D175">

         <omgdc:Bounds height="69.0" width="262.0" x="217.0" y="428.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-43D42A97-348F-4F04-A2F9-B077510EA46B" id="BPMNShape_sid-43D42A97-348F-4F04-A2F9-B077510EA46B">

         <omgdc:Bounds height="40.0" width="40.0" x="705.0" y="270.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNEdge bpmnElement="sid-3226BACB-CB22-437F-A34D-4FA927921D06" id="BPMNEdge_sid-3226BACB-CB22-437F-A34D-4FA927921D06">

         <omgdi:waypoint x="487.0" y="70.0" />

         <omgdi:waypoint x="545.0" y="70.0" />

         <omgdi:waypoint x="545.0" y="185.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE" id="BPMNEdge_sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE">

         <omgdi:waypoint x="275.5" y="224.5" />

         <omgdi:waypoint x="275.5" y="355.0" />

         <omgdi:waypoint x="387.0" y="355.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB" id="BPMNEdge_sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB">

         <omgdi:waypoint x="880.0" y="205.0" />

         <omgdi:waypoint x="955.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-2FFF2523-0CDE-4C50-906C-97E82371BA89" id="BPMNEdge_sid-2FFF2523-0CDE-4C50-906C-97E82371BA89">

         <omgdi:waypoint x="564.5" y="205.5" />

         <omgdi:waypoint x="635.0" y="205.5" />

         <omgdi:waypoint x="635.0" y="140.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA" id="BPMNEdge_sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA">

         <omgdi:waypoint x="743.0" y="292.0" />

         <omgdi:waypoint x="830.0" y="292.0" />

         <omgdi:waypoint x="830.0" y="245.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-29AC8F78-9D48-41DE-AE15-F4BED0250695" id="BPMNEdge_sid-29AC8F78-9D48-41DE-AE15-F4BED0250695">

         <omgdi:waypoint x="275.5" y="185.5" />

         <omgdi:waypoint x="275.5" y="70.0" />

         <omgdi:waypoint x="387.0" y="70.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9" id="BPMNEdge_sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9">

         <omgdi:waypoint x="685.0" y="100.0" />

         <omgdi:waypoint x="725.0" y="100.0" />

         <omgdi:waypoint x="725.4473684210526" y="270.44736842105266" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-95958564-1A4F-4518-ABF8-137A3E43D483" id="BPMNEdge_sid-95958564-1A4F-4518-ABF8-137A3E43D483">

         <omgdi:waypoint x="220.0" y="205.0" />

         <omgdi:waypoint x="255.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6" id="BPMNEdge_sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6">

         <omgdi:waypoint x="294.55900621118013" y="205.44099378881987" />

         <omgdi:waypoint x="387.0" y="205.15479876160992" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E" id="BPMNEdge_sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E">

         <omgdi:waypoint x="487.0" y="355.0" />

         <omgdi:waypoint x="725.0" y="355.0" />

         <omgdi:waypoint x="725.0" y="310.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52" id="BPMNEdge_sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52">

         <omgdi:waypoint x="487.0" y="205.0" />

         <omgdi:waypoint x="525.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9" id="BPMNEdge_sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9">

         <omgdi:waypoint x="75.0" y="205.0" />

         <omgdi:waypoint x="120.0" y="205.0" />

       </bpmndi:BPMNEdge>

     </bpmndi:BPMNPlane>

   </bpmndi:BPMNDiagram>

 </definitions>

金额5050万

你会发现流程出现了混乱,跑得快的流程具有一票否决的能力。这是因为排他网关只是需要等到一条合流便可以继续往下执行。

假如是包容网关和并行网关呢?

流程设计图:

流程代码:

 <?xml version='1.0' encoding='UTF-8'?>

 <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:activiti="http://activiti.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://www.activiti.org/processdef">

   <process id="process" isExecutable="true">

     <startEvent id="sid-33E1F524-C016-49C3-97D5-97AC90206D75" />

     <userTask id="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" name="起草合同" activiti:assignee="admin" />

     <sequenceFlow id="sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9" sourceRef="sid-33E1F524-C016-49C3-97D5-97AC90206D75" targetRef="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" />

     <inclusiveGateway id="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" />

     <sequenceFlow id="sid-95958564-1A4F-4518-ABF8-137A3E43D483" sourceRef="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" targetRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" />

     <userTask id="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" name="律师1" activiti:assignee="admin" />

     <userTask id="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" name="律师2" activiti:assignee="admin" />

     <inclusiveGateway id="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <userTask id="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" name="法律顾问" activiti:assignee="admin" />

     <sequenceFlow id="sid-2FFF2523-0CDE-4C50-906C-97E82371BA89" sourceRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" targetRef="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" />

     <userTask id="sid-64B3C09A-2446-431F-962A-43022FCDA61B" name="律师代表团" activiti:assignee="admin" />

     <userTask id="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" name="签订合同" activiti:assignee="admin" />

     <endEvent id="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" />

     <sequenceFlow id="sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB" sourceRef="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" targetRef="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" />

     <sequenceFlow id="sid-3226BACB-CB22-437F-A34D-4FA927921D06" sourceRef="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" targetRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <sequenceFlow id="sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52" sourceRef="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" targetRef="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" />

     <sequenceFlow id="sid-29AC8F78-9D48-41DE-AE15-F4BED0250695" name="小于1000万,大于5000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money<1000||money>5000}]]></conditionExpression>

     </sequenceFlow>

     <sequenceFlow id="sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6" name="小于1000万,大于5000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-7CA796A7-F6D4-4204-938D-89EAB826196F">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money<1000||money>5000}]]></conditionExpression>

     </sequenceFlow>

     <sequenceFlow id="sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE" name="大于1000万" sourceRef="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" targetRef="sid-64B3C09A-2446-431F-962A-43022FCDA61B">

       <conditionExpression xsi:type="tFormalExpression"><![CDATA[${money>1000}]]></conditionExpression>

     </sequenceFlow>

     <parallelGateway id="sid-7F563745-5DE7-4C48-A675-63772D7DEE24" />

     <sequenceFlow id="sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9" sourceRef="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" targetRef="sid-7F563745-5DE7-4C48-A675-63772D7DEE24" />

     <sequenceFlow id="sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA" sourceRef="sid-7F563745-5DE7-4C48-A675-63772D7DEE24" targetRef="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" />

     <sequenceFlow id="sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E" sourceRef="sid-64B3C09A-2446-431F-962A-43022FCDA61B" targetRef="sid-7F563745-5DE7-4C48-A675-63772D7DEE24" />

     <textAnnotation id="sid-BA9B328D-7723-46D7-9DAF-28D49F06D175">

       <text>小于1000万,律师一和律师二

 1000-5000万,律师代表团

 大于5000万,律师一、律师二和律师代表团</text>

     </textAnnotation>

   </process>

   <bpmndi:BPMNDiagram id="BPMNDiagram_process">

     <bpmndi:BPMNPlane bpmnElement="process" id="BPMNPlane_process">

       <bpmndi:BPMNShape bpmnElement="sid-33E1F524-C016-49C3-97D5-97AC90206D75" id="BPMNShape_sid-33E1F524-C016-49C3-97D5-97AC90206D75">

         <omgdc:Bounds height="30.0" width="30.0" x="45.0" y="190.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A" id="BPMNShape_sid-AECF19D2-3743-43B2-9F6D-8F08BFE4108A">

         <omgdc:Bounds height="80.0" width="100.0" x="120.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5" id="BPMNShape_sid-C0E2C8D9-CE23-4E4C-A8CE-7B488B4075C5">

         <omgdc:Bounds height="40.0" width="40.0" x="255.0" y="185.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1" id="BPMNShape_sid-3116DBE9-BD59-417A-9DCE-09CDAE6020B1">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="30.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-7CA796A7-F6D4-4204-938D-89EAB826196F" id="BPMNShape_sid-7CA796A7-F6D4-4204-938D-89EAB826196F">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5" id="BPMNShape_sid-E3E3A0C8-77DC-4898-BC24-D790C4688FD5">

         <omgdc:Bounds height="40.0" width="40.0" x="525.0" y="185.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-E2A0931F-56FD-4F2B-9876-570A93D617E9" id="BPMNShape_sid-E2A0931F-56FD-4F2B-9876-570A93D617E9">

         <omgdc:Bounds height="80.0" width="100.0" x="585.0" y="60.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-64B3C09A-2446-431F-962A-43022FCDA61B" id="BPMNShape_sid-64B3C09A-2446-431F-962A-43022FCDA61B">

         <omgdc:Bounds height="80.0" width="100.0" x="387.0" y="315.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-6908E784-3D2A-4FCB-9947-AD1C999CC444" id="BPMNShape_sid-6908E784-3D2A-4FCB-9947-AD1C999CC444">

         <omgdc:Bounds height="80.0" width="100.0" x="780.0" y="165.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-FB66A49B-68FC-429C-9492-A02642F1FAEB" id="BPMNShape_sid-FB66A49B-68FC-429C-9492-A02642F1FAEB">

         <omgdc:Bounds height="28.0" width="28.0" x="955.0" y="191.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-BA9B328D-7723-46D7-9DAF-28D49F06D175" id="BPMNShape_sid-BA9B328D-7723-46D7-9DAF-28D49F06D175">

         <omgdc:Bounds height="69.0" width="262.0" x="217.0" y="428.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNShape bpmnElement="sid-7F563745-5DE7-4C48-A675-63772D7DEE24" id="BPMNShape_sid-7F563745-5DE7-4C48-A675-63772D7DEE24">

         <omgdc:Bounds height="40.0" width="40.0" x="705.0" y="270.0" />

       </bpmndi:BPMNShape>

       <bpmndi:BPMNEdge bpmnElement="sid-3226BACB-CB22-437F-A34D-4FA927921D06" id="BPMNEdge_sid-3226BACB-CB22-437F-A34D-4FA927921D06">

         <omgdi:waypoint x="487.0" y="70.0" />

         <omgdi:waypoint x="545.0" y="70.0" />

         <omgdi:waypoint x="545.0" y="185.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE" id="BPMNEdge_sid-09BD3F0B-960D-475F-B0FC-70942F0F0CCE">

         <omgdi:waypoint x="275.5" y="224.5" />

         <omgdi:waypoint x="275.5" y="355.0" />

         <omgdi:waypoint x="387.0" y="355.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB" id="BPMNEdge_sid-52E3DEB1-C564-4A69-8C0B-F6AC43AB7BAB">

         <omgdi:waypoint x="880.0" y="205.0" />

         <omgdi:waypoint x="955.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-2FFF2523-0CDE-4C50-906C-97E82371BA89" id="BPMNEdge_sid-2FFF2523-0CDE-4C50-906C-97E82371BA89">

         <omgdi:waypoint x="564.5" y="205.5" />

         <omgdi:waypoint x="635.0" y="205.5" />

         <omgdi:waypoint x="635.0" y="140.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-29AC8F78-9D48-41DE-AE15-F4BED0250695" id="BPMNEdge_sid-29AC8F78-9D48-41DE-AE15-F4BED0250695">

         <omgdi:waypoint x="275.5" y="185.5" />

         <omgdi:waypoint x="275.5" y="70.0" />

         <omgdi:waypoint x="387.0" y="70.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9" id="BPMNEdge_sid-8D279A66-35FF-41D5-81C5-45D6CB4456D9">

         <omgdi:waypoint x="685.0" y="100.0" />

         <omgdi:waypoint x="725.0" y="100.0" />

         <omgdi:waypoint x="725.4473684210526" y="270.44736842105266" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA" id="BPMNEdge_sid-CFE29827-C014-4890-9135-9E5C6E4B9ACA">

         <omgdi:waypoint x="744.2311320754717" y="290.7688679245283" />

         <omgdi:waypoint x="830.0" y="292.0" />

         <omgdi:waypoint x="830.0" y="245.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-95958564-1A4F-4518-ABF8-137A3E43D483" id="BPMNEdge_sid-95958564-1A4F-4518-ABF8-137A3E43D483">

         <omgdi:waypoint x="220.0" y="205.0" />

         <omgdi:waypoint x="255.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6" id="BPMNEdge_sid-00D368BC-9FDF-49C3-AE22-D7D376F15BE6">

         <omgdi:waypoint x="294.55900621118013" y="205.44099378881987" />

         <omgdi:waypoint x="387.0" y="205.15479876160992" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E" id="BPMNEdge_sid-E7B2EFDF-C859-48D5-A091-9FD84ED3BB0E">

         <omgdi:waypoint x="487.0" y="355.0" />

         <omgdi:waypoint x="725.0" y="355.0" />

         <omgdi:waypoint x="725.0" y="310.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52" id="BPMNEdge_sid-CA6AE2C3-9E4B-41A6-A79D-67E932D4AF52">

         <omgdi:waypoint x="487.0" y="205.0" />

         <omgdi:waypoint x="525.0" y="205.0" />

       </bpmndi:BPMNEdge>

       <bpmndi:BPMNEdge bpmnElement="sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9" id="BPMNEdge_sid-A63E67C5-E7E3-4A9C-9A35-7B98211DDDB9">

         <omgdi:waypoint x="75.0" y="205.0" />

         <omgdi:waypoint x="120.0" y="205.0" />

       </bpmndi:BPMNEdge>

     </bpmndi:BPMNPlane>

   </bpmndi:BPMNDiagram>

 </definitions>

金额5050万

 

完成律师代表团的任务,会不会直接跳到合同签订?如果不会,说明,流程是正常的,如果是会,说明流程已经发生了混乱。

 

可以看出流程正常的。

结论

综上得出,包容网关可以和并行网关混合使用。在个别情况下面。

并行网关+包容网关=并行网关(不会混乱)

包容网关+并行网关=包容网关(不会混乱)

排他网关+包容网关=排他网关(不会混乱)

包容网关+排他网关=排他网关(会混乱)

Activiti交流QQ群:634320089

包容网关 Inclusive Gateway的更多相关文章

  1. 并行网关 Parallel Gateway

    并行网关 Parallel Gateway 作者:Jesai 2018年3月25日 00:26:21 前言: 做工作流时间长后,慢慢的就会发现,很多客户会需要会签的功能,会签的情况也有很多种,实现的方 ...

  2. 如何设计一个亿级网关(API Gateway)?

    1.背景 1.1 什么是API网关 API网关可以看做系统与外界联通的入口,我们可以在网关进行处理一些非业务逻辑的逻辑,比如权限验证,监控,缓存,请求路由等等. 1.2 为什么需要API网关 RPC协 ...

  3. QT---Winsocket获取网关(Gateway) 主机IP等信息

      基于WinPcap库做开发,需要利用到局域网的默认网关地址和Mac地址,但是WinPcap实现获取网关IP地址没有很好的思路,可以知道的是网关的接收和发出的数据包数量一般是比局域网内的各主机要多的 ...

  4. SpringCloud系列之网关(Gateway)应用篇

    @ 目录 前言 项目版本 网关访问 鉴权配置 限流配置 前言 由于项目采用了微服务架构,业务功能都在相应各自的模块中,每个业务模块都是以独立的项目运行着,对外提供各自的服务接口,如没有类似网关之类组件 ...

  5. 微服务实战系列(八)-网关springcloud gateway自定义规则

    1. 场景描述 先说明下项目中使用的网关是:springcloud gateway, 因需要给各个网关服务系统提供自定义配置路由规则,实时生效,不用重启网关(重启风险大),目前已实现:动态加载自定义路 ...

  6. API网关【gateway 】- 3

    最近在公司进行API网关重写,公司内采用serverMesh进行服务注册,调用,这里结合之前学习对API网关服务进行简单的总结与分析. 由于采用了大量的nginx相关的东西,所以在此记录一下: 在ng ...

  7. API网关【gateway 】- 2

    最近在公司进行API网关重写,公司内采用serverMesh进行服务注册,调用,这里结合之前学习对API网关服务进行简单的总结与分析. 由于采用了大量的nginx相关的东西,所以在此记录一下: 配置连 ...

  8. API网关【gateway 】- 1

    最近在公司进行API网关重写,公司内采用serverMesh进行服务注册,调用,这里结合之前学习对API网关服务进行简单的总结与分析. 网关的单节点场景: 网关的多节点场景: 这里的多节点是根据模块进 ...

  9. 浅谈API网关(API Gateway)如何承载API经济生态链

    序言 API经济生态链已经在全球范围覆盖, 绝大多数企业都已经走在数字化转型的道路上,API成为企业连接业务的核心载体, 并产生巨大的盈利空间.快速增长的API规模以及调用量,使得企业IT在架构上.模 ...

随机推荐

  1. 在后台管理系统中引入富文本编辑器 (vue-quill-editor)

    在admin系统中引入富文本编辑器 (vue-quill-editor) 由于公司项目的需求,内容需要更新,那么自然需要admin后台来上传内容,在苦苦寻觅了N个编辑器之后,终于找到了一个比较容易使用 ...

  2. ASP.NET MVC 实现页落网资源分享网站+充值管理+后台管理(16)之轻博客

    源码下载地址:http://www.yealuo.com/Sccnn/Detail?KeyValue=c891ffae-7441-4afb-9a75-c5fe000e3d1c 项目到上面一步其实已经算 ...

  3. Linux 内核链表头数据结构

    链表头必须在使用前用 INIT_LIST_HEAD 宏来初始化. 一个"要做的事情"的链表头可能声 明并且初始化用: struct list_head todo_list; INI ...

  4. 用mingw静态编译Qt4.8.2和Qt5.1.1(需要修改不少源码)

    因为一些乱七八糟的原因,我需要用mingw静态编译Qt4.8.2和Qt5.1.1.经历了一天的折腾之后,自觉编译一下Qt还是件颇为麻烦的事情,故将过程略作总结,以备不时之需. 首先,在编译之前,我需要 ...

  5. 微信小程序获取多个input和textarea的值(es6加微信小程序APi)

    wxml js 俩行即可解决,money1,money2,money3

  6. 缓存, 队列(Redis,RabbitMQ)

    Redis Redis是一个key-value存储系统.和Memcached类似,它支持存储的value类型相对更多,包括string(字符串).list(链表).set(集合).zset(sorte ...

  7. deep Q learning小笔记

    1.loss 是什么 2. Q-Table的更新问题变成一个函数拟合问题,相近的状态得到相近的输出动作.如下式,通过更新参数 θθ 使Q函数逼近最优Q值 深度神经网络可以自动提取复杂特征,因此,面对高 ...

  8. spring-redis-session 自定义 key 和过期时间

    对于分布式应用来说,最开始遇到的问题就是 session 的存储了,解决方案大致有如下几种 使用 spring-session 它可以把 session 存储到你想存储的位置,如 redis,mysq ...

  9. 日志管理-log4j与slf4j的使用

    一.概述 1.log4j: Log4j是Apache的一个开源项目,通过使用Log4j,我们可以控制日志信息输送的目的地是控制台.文件.GUI组件,甚至是套接口服务器.NT的事件记录器.UNIX Sy ...

  10. 【题解】Uoj#30 Tourist(广义圆方树+树上全家桶)

    [题解]Uoj#30 Tourist(广义圆方树+树上全家桶) 名字听起来很霸气其实算法很简单.... 仙人掌上的普通圆方树是普及题,但是广义圆方树虽然很直观但是有很多地方值得深思 说一下算法的流程: ...