gateway.bpmn 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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/test">
  3. <process id="whzyfzsq-city1" name="gateway测试" isExecutable="true">
  4. <startEvent id="start" name="Start" activiti:initiator="applyUserId"></startEvent>
  5. <userTask id="tb" name="wf.tb" activiti:assignee="${applyUserId}">
  6. <extensionElements>
  7. <activiti:taskListener event="create" delegateExpression="${taskVarBean}">
  8. <activiti:field name="varName">
  9. <activiti:string>var_autoComplete</activiti:string>
  10. </activiti:field>
  11. <activiti:field name="varValue">
  12. <activiti:string>true</activiti:string>
  13. </activiti:field>
  14. </activiti:taskListener>
  15. </extensionElements>
  16. </userTask>
  17. <sequenceFlow id="flow2" sourceRef="start" targetRef="tb"></sequenceFlow>
  18. <userTask id="xssc" name="wf.xssc" activiti:candidateGroups="${role_xssc}"></userTask>
  19. <sequenceFlow id="flow3" sourceRef="tb" targetRef="xssc"></sequenceFlow>
  20. <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
  21. <sequenceFlow id="flow4" sourceRef="xssc" targetRef="exclusivegateway1"></sequenceFlow>
  22. <sequenceFlow id="flow5" name="不通过" sourceRef="exclusivegateway1" targetRef="tb">
  23. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!auditPass_xssc}]]></conditionExpression>
  24. </sequenceFlow>
  25. <parallelGateway id="parallelgateway1" name="Parallel Gateway"></parallelGateway>
  26. <userTask id="sc1" name="wf.sc" activiti:candidateGroups="${role_sc2}"></userTask>
  27. <sequenceFlow id="flow6" sourceRef="parallelgateway1" targetRef="sc1"></sequenceFlow>
  28. <sequenceFlow id="flow7" name="通过" sourceRef="exclusivegateway1" targetRef="parallelgateway1">
  29. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${auditPass_xssc}]]></conditionExpression>
  30. </sequenceFlow>
  31. <userTask id="sc2" name="wf.sc" activiti:candidateGroups="${role_sc1}"></userTask>
  32. <sequenceFlow id="flow8" sourceRef="parallelgateway1" targetRef="sc2"></sequenceFlow>
  33. <parallelGateway id="parallelgateway3" name="Parallel Gateway"></parallelGateway>
  34. <sequenceFlow id="flow11" sourceRef="sc1" targetRef="parallelgateway3"></sequenceFlow>
  35. <sequenceFlow id="flow12" sourceRef="sc2" targetRef="parallelgateway3"></sequenceFlow>
  36. <exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
  37. <sequenceFlow id="flow13" sourceRef="parallelgateway3" targetRef="exclusivegateway2"></sequenceFlow>
  38. <userTask id="sh" name="wf.sh" activiti:candidateGroups="${role_sh}"></userTask>
  39. <sequenceFlow id="flow14" name="通过" sourceRef="exclusivegateway2" targetRef="sh">
  40. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${auditPass_sc1&&auditPass_sc2}]]></conditionExpression>
  41. </sequenceFlow>
  42. <sequenceFlow id="flow15" name="不通过" sourceRef="exclusivegateway2" targetRef="tb">
  43. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!auditPass_sc1||!auditPass_sc2}]]></conditionExpression>
  44. </sequenceFlow>
  45. <exclusiveGateway id="exclusivegateway3" name="Exclusive Gateway"></exclusiveGateway>
  46. <sequenceFlow id="flow16" sourceRef="sh" targetRef="exclusivegateway3"></sequenceFlow>
  47. <sequenceFlow id="flow17" name="不通过" sourceRef="exclusivegateway3" targetRef="tb">
  48. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!auditPass_sh}]]></conditionExpression>
  49. </sequenceFlow>
  50. <userTask id="pz" name="wf.pz" activiti:candidateGroups="${role_pz}"></userTask>
  51. <sequenceFlow id="flow18" name="通过" sourceRef="exclusivegateway3" targetRef="pz">
  52. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${auditPass_sh}]]></conditionExpression>
  53. </sequenceFlow>
  54. <endEvent id="endevent1" name="End"></endEvent>
  55. <sequenceFlow id="flow19" sourceRef="pz" targetRef="endevent1"></sequenceFlow>
  56. </process>
  57. <bpmndi:BPMNDiagram id="BPMNDiagram_whzyfzsq-city1">
  58. <bpmndi:BPMNPlane bpmnElement="whzyfzsq-city1" id="BPMNPlane_whzyfzsq-city1">
  59. <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
  60. <omgdc:Bounds height="35.0" width="35.0" x="60.0" y="170.0"></omgdc:Bounds>
  61. </bpmndi:BPMNShape>
  62. <bpmndi:BPMNShape bpmnElement="tb" id="BPMNShape_tb">
  63. <omgdc:Bounds height="55.0" width="105.0" x="110.0" y="160.0"></omgdc:Bounds>
  64. </bpmndi:BPMNShape>
  65. <bpmndi:BPMNShape bpmnElement="xssc" id="BPMNShape_xssc">
  66. <omgdc:Bounds height="55.0" width="105.0" x="230.0" y="160.0"></omgdc:Bounds>
  67. </bpmndi:BPMNShape>
  68. <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
  69. <omgdc:Bounds height="40.0" width="40.0" x="262.0" y="277.0"></omgdc:Bounds>
  70. </bpmndi:BPMNShape>
  71. <bpmndi:BPMNShape bpmnElement="parallelgateway1" id="BPMNShape_parallelgateway1">
  72. <omgdc:Bounds height="40.0" width="40.0" x="330.0" y="277.0"></omgdc:Bounds>
  73. </bpmndi:BPMNShape>
  74. <bpmndi:BPMNShape bpmnElement="sc1" id="BPMNShape_sc1">
  75. <omgdc:Bounds height="55.0" width="105.0" x="385.0" y="305.0"></omgdc:Bounds>
  76. </bpmndi:BPMNShape>
  77. <bpmndi:BPMNShape bpmnElement="sc2" id="BPMNShape_sc2">
  78. <omgdc:Bounds height="55.0" width="105.0" x="385.0" y="223.0"></omgdc:Bounds>
  79. </bpmndi:BPMNShape>
  80. <bpmndi:BPMNShape bpmnElement="parallelgateway3" id="BPMNShape_parallelgateway3">
  81. <omgdc:Bounds height="40.0" width="40.0" x="500.0" y="277.0"></omgdc:Bounds>
  82. </bpmndi:BPMNShape>
  83. <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
  84. <omgdc:Bounds height="40.0" width="40.0" x="526.0" y="167.0"></omgdc:Bounds>
  85. </bpmndi:BPMNShape>
  86. <bpmndi:BPMNShape bpmnElement="sh" id="BPMNShape_sh">
  87. <omgdc:Bounds height="55.0" width="105.0" x="594.0" y="160.0"></omgdc:Bounds>
  88. </bpmndi:BPMNShape>
  89. <bpmndi:BPMNShape bpmnElement="exclusivegateway3" id="BPMNShape_exclusivegateway3">
  90. <omgdc:Bounds height="40.0" width="40.0" x="626.0" y="277.0"></omgdc:Bounds>
  91. </bpmndi:BPMNShape>
  92. <bpmndi:BPMNShape bpmnElement="pz" id="BPMNShape_pz">
  93. <omgdc:Bounds height="55.0" width="105.0" x="698.0" y="270.0"></omgdc:Bounds>
  94. </bpmndi:BPMNShape>
  95. <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
  96. <omgdc:Bounds height="35.0" width="35.0" x="831.0" y="280.0"></omgdc:Bounds>
  97. </bpmndi:BPMNShape>
  98. <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
  99. <omgdi:waypoint x="95.0" y="187.0"></omgdi:waypoint>
  100. <omgdi:waypoint x="110.0" y="187.0"></omgdi:waypoint>
  101. </bpmndi:BPMNEdge>
  102. <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
  103. <omgdi:waypoint x="215.0" y="187.0"></omgdi:waypoint>
  104. <omgdi:waypoint x="230.0" y="187.0"></omgdi:waypoint>
  105. </bpmndi:BPMNEdge>
  106. <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
  107. <omgdi:waypoint x="282.0" y="215.0"></omgdi:waypoint>
  108. <omgdi:waypoint x="282.0" y="277.0"></omgdi:waypoint>
  109. </bpmndi:BPMNEdge>
  110. <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
  111. <omgdi:waypoint x="262.0" y="297.0"></omgdi:waypoint>
  112. <omgdi:waypoint x="162.0" y="296.0"></omgdi:waypoint>
  113. <omgdi:waypoint x="162.0" y="215.0"></omgdi:waypoint>
  114. <bpmndi:BPMNLabel>
  115. <omgdc:Bounds height="14.0" width="36.0" x="4.0" y="-19.0"></omgdc:Bounds>
  116. </bpmndi:BPMNLabel>
  117. </bpmndi:BPMNEdge>
  118. <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
  119. <omgdi:waypoint x="350.0" y="317.0"></omgdi:waypoint>
  120. <omgdi:waypoint x="350.0" y="332.0"></omgdi:waypoint>
  121. <omgdi:waypoint x="385.0" y="332.0"></omgdi:waypoint>
  122. </bpmndi:BPMNEdge>
  123. <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
  124. <omgdi:waypoint x="302.0" y="297.0"></omgdi:waypoint>
  125. <omgdi:waypoint x="330.0" y="297.0"></omgdi:waypoint>
  126. <bpmndi:BPMNLabel>
  127. <omgdc:Bounds height="14.0" width="24.0" x="-16.0" y="-20.0"></omgdc:Bounds>
  128. </bpmndi:BPMNLabel>
  129. </bpmndi:BPMNEdge>
  130. <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
  131. <omgdi:waypoint x="350.0" y="277.0"></omgdi:waypoint>
  132. <omgdi:waypoint x="350.0" y="249.0"></omgdi:waypoint>
  133. <omgdi:waypoint x="385.0" y="250.0"></omgdi:waypoint>
  134. </bpmndi:BPMNEdge>
  135. <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
  136. <omgdi:waypoint x="490.0" y="332.0"></omgdi:waypoint>
  137. <omgdi:waypoint x="520.0" y="332.0"></omgdi:waypoint>
  138. <omgdi:waypoint x="520.0" y="317.0"></omgdi:waypoint>
  139. </bpmndi:BPMNEdge>
  140. <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
  141. <omgdi:waypoint x="490.0" y="250.0"></omgdi:waypoint>
  142. <omgdi:waypoint x="520.0" y="250.0"></omgdi:waypoint>
  143. <omgdi:waypoint x="520.0" y="277.0"></omgdi:waypoint>
  144. </bpmndi:BPMNEdge>
  145. <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13">
  146. <omgdi:waypoint x="540.0" y="297.0"></omgdi:waypoint>
  147. <omgdi:waypoint x="545.0" y="294.0"></omgdi:waypoint>
  148. <omgdi:waypoint x="546.0" y="207.0"></omgdi:waypoint>
  149. </bpmndi:BPMNEdge>
  150. <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
  151. <omgdi:waypoint x="566.0" y="187.0"></omgdi:waypoint>
  152. <omgdi:waypoint x="594.0" y="187.0"></omgdi:waypoint>
  153. <bpmndi:BPMNLabel>
  154. <omgdc:Bounds height="14.0" width="24.0" x="-14.0" y="7.0"></omgdc:Bounds>
  155. </bpmndi:BPMNLabel>
  156. </bpmndi:BPMNEdge>
  157. <bpmndi:BPMNEdge bpmnElement="flow15" id="BPMNEdge_flow15">
  158. <omgdi:waypoint x="546.0" y="167.0"></omgdi:waypoint>
  159. <omgdi:waypoint x="546.0" y="124.0"></omgdi:waypoint>
  160. <omgdi:waypoint x="162.0" y="124.0"></omgdi:waypoint>
  161. <omgdi:waypoint x="162.0" y="160.0"></omgdi:waypoint>
  162. <bpmndi:BPMNLabel>
  163. <omgdc:Bounds height="14.0" width="36.0" x="-19.0" y="-16.0"></omgdc:Bounds>
  164. </bpmndi:BPMNLabel>
  165. </bpmndi:BPMNEdge>
  166. <bpmndi:BPMNEdge bpmnElement="flow16" id="BPMNEdge_flow16">
  167. <omgdi:waypoint x="646.0" y="215.0"></omgdi:waypoint>
  168. <omgdi:waypoint x="646.0" y="277.0"></omgdi:waypoint>
  169. </bpmndi:BPMNEdge>
  170. <bpmndi:BPMNEdge bpmnElement="flow17" id="BPMNEdge_flow17">
  171. <omgdi:waypoint x="646.0" y="317.0"></omgdi:waypoint>
  172. <omgdi:waypoint x="645.0" y="384.0"></omgdi:waypoint>
  173. <omgdi:waypoint x="162.0" y="384.0"></omgdi:waypoint>
  174. <omgdi:waypoint x="162.0" y="215.0"></omgdi:waypoint>
  175. <bpmndi:BPMNLabel>
  176. <omgdc:Bounds height="14.0" width="36.0" x="-29.0" y="6.0"></omgdc:Bounds>
  177. </bpmndi:BPMNLabel>
  178. </bpmndi:BPMNEdge>
  179. <bpmndi:BPMNEdge bpmnElement="flow18" id="BPMNEdge_flow18">
  180. <omgdi:waypoint x="666.0" y="297.0"></omgdi:waypoint>
  181. <omgdi:waypoint x="698.0" y="297.0"></omgdi:waypoint>
  182. <bpmndi:BPMNLabel>
  183. <omgdc:Bounds height="14.0" width="24.0" x="-16.0" y="8.0"></omgdc:Bounds>
  184. </bpmndi:BPMNLabel>
  185. </bpmndi:BPMNEdge>
  186. <bpmndi:BPMNEdge bpmnElement="flow19" id="BPMNEdge_flow19">
  187. <omgdi:waypoint x="803.0" y="297.0"></omgdi:waypoint>
  188. <omgdi:waypoint x="831.0" y="297.0"></omgdi:waypoint>
  189. </bpmndi:BPMNEdge>
  190. </bpmndi:BPMNPlane>
  191. </bpmndi:BPMNDiagram>
  192. </definitions>