MyProcess.bpmn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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: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/test">
  3. <process id="myProcess" name="特种设备审核" isExecutable="true">
  4. <startEvent id="startevent1" name="开始" activiti:initiator="${applyUserId}"></startEvent>
  5. <userTask id="wxjlTask" name="装置维修经理" activiti:assignee="#{wxjlusers}">
  6. <extensionElements>
  7. <activiti:taskListener event="create" delegateExpression="${wxjlTaskCreateListener}"></activiti:taskListener>
  8. </extensionElements>
  9. </userTask>
  10. <userTask id="gyzjTask" name="工艺总监" activiti:assignee="#{gyzjusers}">
  11. <extensionElements>
  12. <activiti:taskListener event="create" delegateExpression="${gyzjTaskCreateListener}"></activiti:taskListener>
  13. </extensionElements>
  14. </userTask>
  15. <sequenceFlow id="flow1" name="开始" sourceRef="startevent1" targetRef="wxjlTask"></sequenceFlow>
  16. <sequenceFlow id="flow7" name="不通过" sourceRef="wxjlTask" targetRef="endevent2">
  17. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
  18. </sequenceFlow>
  19. <sequenceFlow id="flow9" name="不通过" sourceRef="gyzjTask" targetRef="endevent2">
  20. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
  21. </sequenceFlow>
  22. <endEvent id="endevent2" name="审核不通过">
  23. <extensionElements>
  24. <activiti:executionListener event="start" delegateExpression="${specEndFaileListener}"></activiti:executionListener>
  25. </extensionElements>
  26. </endEvent>
  27. <endEvent id="endevent3" name="审核通过">
  28. <extensionElements>
  29. <activiti:executionListener event="start" delegateExpression="${specEndSucessListener}"></activiti:executionListener>
  30. </extensionElements>
  31. </endEvent>
  32. <userTask id="ctmTask" name="机械维修总监" activiti:assignee="#{ctmusers}">
  33. <extensionElements>
  34. <activiti:taskListener event="create" delegateExpression="${ctmTaskCreateListener}"></activiti:taskListener>
  35. </extensionElements>
  36. </userTask>
  37. <sequenceFlow id="flow4" name="通过" sourceRef="gyzjTask" targetRef="ctmTask">
  38. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  39. </sequenceFlow>
  40. <sequenceFlow id="flow10" name="不通过" sourceRef="ctmTask" targetRef="endevent2">
  41. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
  42. </sequenceFlow>
  43. <userTask id="gyjlTask" name="装置工艺经理" activiti:assignee="#{gyjlusers}">
  44. <extensionElements>
  45. <activiti:taskListener event="create" delegateExpression="${gyjlTaskCreateListener}"></activiti:taskListener>
  46. </extensionElements>
  47. </userTask>
  48. <sequenceFlow id="flow3" name="通过" sourceRef="gyjlTask" targetRef="gyzjTask"></sequenceFlow>
  49. <sequenceFlow id="flow8" name="不通过" sourceRef="gyjlTask" targetRef="endevent2">
  50. <documentation>${condition == 0}</documentation>
  51. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
  52. </sequenceFlow>
  53. <userTask id="zfhzTask" name="政府回执" activiti:assignee="#{zfusers}">
  54. <extensionElements>
  55. <activiti:taskListener event="create" delegateExpression="${zfhzTaskCreateListener}"></activiti:taskListener>
  56. </extensionElements>
  57. </userTask>
  58. <sequenceFlow id="flow5" name="通过" sourceRef="ctmTask" targetRef="exclusivegateway1">
  59. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  60. </sequenceFlow>
  61. <sequenceFlow id="flow6" name="结束" sourceRef="zfhzTask" targetRef="endevent3"></sequenceFlow>
  62. <sequenceFlow id="flow11" name="通过" sourceRef="wxjlTask" targetRef="gyjlTask">
  63. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  64. </sequenceFlow>
  65. <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
  66. <sequenceFlow id="flow13" name="管道无需回执" sourceRef="exclusivegateway1" targetRef="endevent3">
  67. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isYlgd== 1}]]></conditionExpression>
  68. </sequenceFlow>
  69. <sequenceFlow id="flow14" sourceRef="exclusivegateway1" targetRef="zfhzTask">
  70. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${isYlgd== 0}]]></conditionExpression>
  71. </sequenceFlow>
  72. </process>
  73. <bpmndi:BPMNDiagram id="BPMNDiagram_myProcess">
  74. <bpmndi:BPMNPlane bpmnElement="myProcess" id="BPMNPlane_myProcess">
  75. <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
  76. <omgdc:Bounds height="50.0" width="41.0" x="80.0" y="28.0"></omgdc:Bounds>
  77. </bpmndi:BPMNShape>
  78. <bpmndi:BPMNShape bpmnElement="wxjlTask" id="BPMNShape_wxjlTask">
  79. <omgdc:Bounds height="55.0" width="105.0" x="180.0" y="25.0"></omgdc:Bounds>
  80. </bpmndi:BPMNShape>
  81. <bpmndi:BPMNShape bpmnElement="gyzjTask" id="BPMNShape_gyzjTask">
  82. <omgdc:Bounds height="55.0" width="105.0" x="490.0" y="25.0"></omgdc:Bounds>
  83. </bpmndi:BPMNShape>
  84. <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
  85. <omgdc:Bounds height="35.0" width="35.0" x="377.0" y="150.0"></omgdc:Bounds>
  86. </bpmndi:BPMNShape>
  87. <bpmndi:BPMNShape bpmnElement="endevent3" id="BPMNShape_endevent3">
  88. <omgdc:Bounds height="35.0" width="35.0" x="989.0" y="35.0"></omgdc:Bounds>
  89. </bpmndi:BPMNShape>
  90. <bpmndi:BPMNShape bpmnElement="ctmTask" id="BPMNShape_ctmTask">
  91. <omgdc:Bounds height="55.0" width="105.0" x="640.0" y="25.0"></omgdc:Bounds>
  92. </bpmndi:BPMNShape>
  93. <bpmndi:BPMNShape bpmnElement="gyjlTask" id="BPMNShape_gyjlTask">
  94. <omgdc:Bounds height="55.0" width="111.0" x="339.0" y="25.0"></omgdc:Bounds>
  95. </bpmndi:BPMNShape>
  96. <bpmndi:BPMNShape bpmnElement="zfhzTask" id="BPMNShape_zfhzTask">
  97. <omgdc:Bounds height="55.0" width="105.0" x="840.0" y="25.0"></omgdc:Bounds>
  98. </bpmndi:BPMNShape>
  99. <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
  100. <omgdc:Bounds height="40.0" width="40.0" x="777.0" y="32.0"></omgdc:Bounds>
  101. </bpmndi:BPMNShape>
  102. <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
  103. <omgdi:waypoint x="121.0" y="53.0"></omgdi:waypoint>
  104. <omgdi:waypoint x="180.0" y="52.0"></omgdi:waypoint>
  105. <bpmndi:BPMNLabel>
  106. <omgdc:Bounds height="16.0" width="32.0" x="129.0" y="63.0"></omgdc:Bounds>
  107. </bpmndi:BPMNLabel>
  108. </bpmndi:BPMNEdge>
  109. <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
  110. <omgdi:waypoint x="232.0" y="80.0"></omgdi:waypoint>
  111. <omgdi:waypoint x="232.0" y="167.0"></omgdi:waypoint>
  112. <omgdi:waypoint x="377.0" y="167.0"></omgdi:waypoint>
  113. <bpmndi:BPMNLabel>
  114. <omgdc:Bounds height="16.0" width="48.0" x="240.0" y="119.0"></omgdc:Bounds>
  115. </bpmndi:BPMNLabel>
  116. </bpmndi:BPMNEdge>
  117. <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
  118. <omgdi:waypoint x="542.0" y="80.0"></omgdi:waypoint>
  119. <omgdi:waypoint x="542.0" y="167.0"></omgdi:waypoint>
  120. <omgdi:waypoint x="412.0" y="167.0"></omgdi:waypoint>
  121. <bpmndi:BPMNLabel>
  122. <omgdc:Bounds height="16.0" width="48.0" x="547.0" y="119.0"></omgdc:Bounds>
  123. </bpmndi:BPMNLabel>
  124. </bpmndi:BPMNEdge>
  125. <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
  126. <omgdi:waypoint x="595.0" y="52.0"></omgdi:waypoint>
  127. <omgdi:waypoint x="640.0" y="52.0"></omgdi:waypoint>
  128. <bpmndi:BPMNLabel>
  129. <omgdc:Bounds height="16.0" width="32.0" x="599.0" y="62.0"></omgdc:Bounds>
  130. </bpmndi:BPMNLabel>
  131. </bpmndi:BPMNEdge>
  132. <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
  133. <omgdi:waypoint x="692.0" y="80.0"></omgdi:waypoint>
  134. <omgdi:waypoint x="692.0" y="167.0"></omgdi:waypoint>
  135. <omgdi:waypoint x="412.0" y="167.0"></omgdi:waypoint>
  136. <bpmndi:BPMNLabel>
  137. <omgdc:Bounds height="16.0" width="48.0" x="700.0" y="119.0"></omgdc:Bounds>
  138. </bpmndi:BPMNLabel>
  139. </bpmndi:BPMNEdge>
  140. <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
  141. <omgdi:waypoint x="450.0" y="52.0"></omgdi:waypoint>
  142. <omgdi:waypoint x="490.0" y="52.0"></omgdi:waypoint>
  143. <bpmndi:BPMNLabel>
  144. <omgdc:Bounds height="16.0" width="32.0" x="448.0" y="62.0"></omgdc:Bounds>
  145. </bpmndi:BPMNLabel>
  146. </bpmndi:BPMNEdge>
  147. <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
  148. <omgdi:waypoint x="394.0" y="80.0"></omgdi:waypoint>
  149. <omgdi:waypoint x="394.0" y="150.0"></omgdi:waypoint>
  150. <bpmndi:BPMNLabel>
  151. <omgdc:Bounds height="16.0" width="48.0" x="397.0" y="119.0"></omgdc:Bounds>
  152. </bpmndi:BPMNLabel>
  153. </bpmndi:BPMNEdge>
  154. <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
  155. <omgdi:waypoint x="745.0" y="52.0"></omgdi:waypoint>
  156. <omgdi:waypoint x="777.0" y="52.0"></omgdi:waypoint>
  157. <bpmndi:BPMNLabel>
  158. <omgdc:Bounds height="16.0" width="32.0" x="746.0" y="62.0"></omgdc:Bounds>
  159. </bpmndi:BPMNLabel>
  160. </bpmndi:BPMNEdge>
  161. <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
  162. <omgdi:waypoint x="945.0" y="52.0"></omgdi:waypoint>
  163. <omgdi:waypoint x="989.0" y="52.0"></omgdi:waypoint>
  164. <bpmndi:BPMNLabel>
  165. <omgdc:Bounds height="16.0" width="32.0" x="958.0" y="66.0"></omgdc:Bounds>
  166. </bpmndi:BPMNLabel>
  167. </bpmndi:BPMNEdge>
  168. <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
  169. <omgdi:waypoint x="285.0" y="52.0"></omgdi:waypoint>
  170. <omgdi:waypoint x="339.0" y="52.0"></omgdi:waypoint>
  171. <bpmndi:BPMNLabel>
  172. <omgdc:Bounds height="16.0" width="32.0" x="285.0" y="52.0"></omgdc:Bounds>
  173. </bpmndi:BPMNLabel>
  174. </bpmndi:BPMNEdge>
  175. <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13">
  176. <omgdi:waypoint x="797.0" y="72.0"></omgdi:waypoint>
  177. <omgdi:waypoint x="797.0" y="151.0"></omgdi:waypoint>
  178. <omgdi:waypoint x="1007.0" y="151.0"></omgdi:waypoint>
  179. <omgdi:waypoint x="1006.0" y="70.0"></omgdi:waypoint>
  180. <bpmndi:BPMNLabel>
  181. <omgdc:Bounds height="16.0" width="96.0" x="843.0" y="129.0"></omgdc:Bounds>
  182. </bpmndi:BPMNLabel>
  183. </bpmndi:BPMNEdge>
  184. <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
  185. <omgdi:waypoint x="817.0" y="52.0"></omgdi:waypoint>
  186. <omgdi:waypoint x="840.0" y="52.0"></omgdi:waypoint>
  187. </bpmndi:BPMNEdge>
  188. </bpmndi:BPMNPlane>
  189. </bpmndi:BPMNDiagram>
  190. </definitions>