包容网关 Inclusive Gateway
包容网关 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的更多相关文章
- 并行网关 Parallel Gateway
并行网关 Parallel Gateway 作者:Jesai 2018年3月25日 00:26:21 前言: 做工作流时间长后,慢慢的就会发现,很多客户会需要会签的功能,会签的情况也有很多种,实现的方 ...
- 如何设计一个亿级网关(API Gateway)?
1.背景 1.1 什么是API网关 API网关可以看做系统与外界联通的入口,我们可以在网关进行处理一些非业务逻辑的逻辑,比如权限验证,监控,缓存,请求路由等等. 1.2 为什么需要API网关 RPC协 ...
- QT---Winsocket获取网关(Gateway) 主机IP等信息
基于WinPcap库做开发,需要利用到局域网的默认网关地址和Mac地址,但是WinPcap实现获取网关IP地址没有很好的思路,可以知道的是网关的接收和发出的数据包数量一般是比局域网内的各主机要多的 ...
- SpringCloud系列之网关(Gateway)应用篇
@ 目录 前言 项目版本 网关访问 鉴权配置 限流配置 前言 由于项目采用了微服务架构,业务功能都在相应各自的模块中,每个业务模块都是以独立的项目运行着,对外提供各自的服务接口,如没有类似网关之类组件 ...
- 微服务实战系列(八)-网关springcloud gateway自定义规则
1. 场景描述 先说明下项目中使用的网关是:springcloud gateway, 因需要给各个网关服务系统提供自定义配置路由规则,实时生效,不用重启网关(重启风险大),目前已实现:动态加载自定义路 ...
- API网关【gateway 】- 3
最近在公司进行API网关重写,公司内采用serverMesh进行服务注册,调用,这里结合之前学习对API网关服务进行简单的总结与分析. 由于采用了大量的nginx相关的东西,所以在此记录一下: 在ng ...
- API网关【gateway 】- 2
最近在公司进行API网关重写,公司内采用serverMesh进行服务注册,调用,这里结合之前学习对API网关服务进行简单的总结与分析. 由于采用了大量的nginx相关的东西,所以在此记录一下: 配置连 ...
- API网关【gateway 】- 1
最近在公司进行API网关重写,公司内采用serverMesh进行服务注册,调用,这里结合之前学习对API网关服务进行简单的总结与分析. 网关的单节点场景: 网关的多节点场景: 这里的多节点是根据模块进 ...
- 浅谈API网关(API Gateway)如何承载API经济生态链
序言 API经济生态链已经在全球范围覆盖, 绝大多数企业都已经走在数字化转型的道路上,API成为企业连接业务的核心载体, 并产生巨大的盈利空间.快速增长的API规模以及调用量,使得企业IT在架构上.模 ...
随机推荐
- linux一些重要数据结构
如同你想象的, 注册设备编号仅仅是驱动代码必须进行的诸多任务中的第一个. 我们将很 快看到其他重要的驱动组件, 但首先需要涉及一个别的. 大部分的基础性的驱动操作包括 3 个重要的内核数据结构, 称为 ...
- git常用常用操作指令
GIT操作 1:git init 初始化空的仓库,会在当前文件夹生成一个隐藏.git的文件夹,相当于一个仓库. 2:提交代码的流程:工作代码区-->暂存区 -->主仓库 -->服务器 ...
- BIO、NIO、AIO 个人总结
BIO(blocking io) BIO即为阻塞IO,在网络编程中,它会在建立连接和等待连接的对端准备数据阶段进行阻塞.因此为了支撑高并发的用户访问,一般会为每一个socket 连接分配一个线程.但使 ...
- sed & awk & grep 专题
转载自:http://www.cnblogs.com/moveofgod/p/3540575.html grep, sed 与 awk 相当有用 ! gerp 查找, sed 编辑, awk 根据内容 ...
- Python - Tuple 怎么用,为什么有 tuple 这种设计?
背景 看到有同学很执着的用 tuple,想起自己刚学 python 时,也是很喜欢 tuple,为啥?因为以前从来没见过这种样子的数据 (1,2), 感觉很特别,用起来也挺好用 i,j=(1,2), ...
- Mac常用的软件推荐
Alfred 效率软件,让能更快的启动各种软件 VScode 编辑器,市面上最热的编辑器,好用的不只是一点点,加上Vim插件简直就是秒杀市面上各种IDE PicGo 一个开源图床软件,支持各大网站的图 ...
- linux-head、tail、sort、uniq、pstree、ps
1.head 默认查看文件前10行 head -7 /etc/yum.conf -n num -n7代表查看文件前7行 2.tail 默认查看文件的后10行 tail -7 /etc/yum.conf ...
- 编辑软件->"Notepad++"
编辑软件->"Notepad++" Notepad++是什么? Notepad++功能比 Windows 中的Notepad(记事本)强大,除了可以用来制作一般的纯文字说明文 ...
- Linux学习之路--常用配置
1.修改IP地址 $vi /etc/sysconfig/network-scripts/ifcfg-eth0 BOOTPROTO=staticONBOOT=yesIPADDR=192.168.2.12 ...
- InnoDB索引实现原理以及注意点和建议
一.InnoDB实现原理 虽然InnoDB也使用B+Tree作为索引结构,但具体实现方式却与MyISAM截然不同.因为InnoDB支持聚簇索引(主键索引),聚簇索引就是表,所以InnoDB不用像MyI ...