safetychange.bpmn 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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="safetychange" name="组织保护措施状态变更申请流程" isExecutable="true">
  4. <startEvent id="startevent1" name="Start"></startEvent>
  5. <userTask id="applytask" name="申请人提交申请" activiti:assignee="#{applyuser}"></userTask>
  6. <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="applytask"></sequenceFlow>
  7. <userTask id="safaertask1" name="安全评估人1" activiti:candidateUsers="#{safaer}">
  8. <extensionElements>
  9. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  10. </extensionElements>
  11. </userTask>
  12. <sequenceFlow id="flow2" name="提交" sourceRef="applytask" targetRef="safaertask1">
  13. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  14. </sequenceFlow>
  15. <sequenceFlow id="flow3" name="驳回" sourceRef="safaertask1" targetRef="applytask">
  16. <extensionElements>
  17. <activiti:executionListener event="take" delegateExpression="${changeFlowListener}"></activiti:executionListener>
  18. </extensionElements>
  19. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 2}]]></conditionExpression>
  20. </sequenceFlow>
  21. <userTask id="approvertask" name="批准人" activiti:candidateUsers="#{approver}">
  22. <extensionElements>
  23. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  24. </extensionElements>
  25. </userTask>
  26. <sequenceFlow id="flow4" name="通过" sourceRef="safaertask1" targetRef="approvertask">
  27. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  28. </sequenceFlow>
  29. <sequenceFlow id="flow5" name="驳回" sourceRef="approvertask" targetRef="safaertask1">
  30. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 2}]]></conditionExpression>
  31. </sequenceFlow>
  32. <endEvent id="endevent1" name="End">
  33. <extensionElements>
  34. <activiti:executionListener event="end" delegateExpression="${changeEndFailListener}"></activiti:executionListener>
  35. </extensionElements>
  36. </endEvent>
  37. <sequenceFlow id="flow6" name="拒绝" sourceRef="safaertask1" targetRef="endevent1">
  38. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
  39. </sequenceFlow>
  40. <sequenceFlow id="flow7" name="拒绝" sourceRef="approvertask" targetRef="endevent1">
  41. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 0}]]></conditionExpression>
  42. </sequenceFlow>
  43. <userTask id="executortask" name="措施执行人" activiti:assignee="#{executor}">
  44. <extensionElements>
  45. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  46. </extensionElements>
  47. </userTask>
  48. <userTask id="confirmertask" name="措施确认人" activiti:candidateUsers="#{confirmer}">
  49. <extensionElements>
  50. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  51. </extensionElements>
  52. </userTask>
  53. <userTask id="changetask" name="变更执行人" activiti:candidateUsers="#{changeExecutor}">
  54. <extensionElements>
  55. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  56. </extensionElements>
  57. </userTask>
  58. <userTask id="safaertask2" name="安全评估人2" activiti:candidateUsers="#{safaer}">
  59. <extensionElements>
  60. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  61. </extensionElements>
  62. </userTask>
  63. <userTask id="resetConfirmer1" name="确认人1" activiti:candidateUsers="#{resetConfirmer1}">
  64. <extensionElements>
  65. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  66. </extensionElements>
  67. </userTask>
  68. <userTask id="resetConfirmer2" name="确认人2" activiti:candidateUsers="#{resetConfirmer2}">
  69. <extensionElements>
  70. <activiti:taskListener event="create" delegateExpression="${changeNextTaskListener}"></activiti:taskListener>
  71. </extensionElements>
  72. </userTask>
  73. <endEvent id="endevent2" name="End">
  74. <extensionElements>
  75. <activiti:executionListener event="end" delegateExpression="${changeEndSuccessListener}"></activiti:executionListener>
  76. </extensionElements>
  77. </endEvent>
  78. <sequenceFlow id="flow8" name="通过" sourceRef="approvertask" targetRef="executortask">
  79. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  80. </sequenceFlow>
  81. <sequenceFlow id="flow9" name="通过" sourceRef="executortask" targetRef="confirmertask">
  82. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  83. </sequenceFlow>
  84. <sequenceFlow id="flow10" name="通过" sourceRef="confirmertask" targetRef="changetask">
  85. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  86. </sequenceFlow>
  87. <sequenceFlow id="flow11" name="通过" sourceRef="changetask" targetRef="safaertask2">
  88. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  89. </sequenceFlow>
  90. <sequenceFlow id="flow12" name="通过" sourceRef="safaertask2" targetRef="resetConfirmer1">
  91. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  92. </sequenceFlow>
  93. <sequenceFlow id="flow13" name="通过" sourceRef="resetConfirmer1" targetRef="resetConfirmer2">
  94. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  95. </sequenceFlow>
  96. <sequenceFlow id="flow14" name="通过" sourceRef="resetConfirmer2" targetRef="endevent2">
  97. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${condition == 1}]]></conditionExpression>
  98. </sequenceFlow>
  99. </process>
  100. <bpmndi:BPMNDiagram id="BPMNDiagram_safetychange">
  101. <bpmndi:BPMNPlane bpmnElement="safetychange" id="BPMNPlane_safetychange">
  102. <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
  103. <omgdc:Bounds height="35.0" width="35.0" x="420.0" y="60.0"></omgdc:Bounds>
  104. </bpmndi:BPMNShape>
  105. <bpmndi:BPMNShape bpmnElement="applytask" id="BPMNShape_applytask">
  106. <omgdc:Bounds height="55.0" width="105.0" x="385.0" y="120.0"></omgdc:Bounds>
  107. </bpmndi:BPMNShape>
  108. <bpmndi:BPMNShape bpmnElement="safaertask1" id="BPMNShape_safaertask1">
  109. <omgdc:Bounds height="55.0" width="105.0" x="385.0" y="220.0"></omgdc:Bounds>
  110. </bpmndi:BPMNShape>
  111. <bpmndi:BPMNShape bpmnElement="approvertask" id="BPMNShape_approvertask">
  112. <omgdc:Bounds height="55.0" width="105.0" x="385.0" y="330.0"></omgdc:Bounds>
  113. </bpmndi:BPMNShape>
  114. <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
  115. <omgdc:Bounds height="35.0" width="35.0" x="610.0" y="340.0"></omgdc:Bounds>
  116. </bpmndi:BPMNShape>
  117. <bpmndi:BPMNShape bpmnElement="executortask" id="BPMNShape_executortask">
  118. <omgdc:Bounds height="55.0" width="105.0" x="385.0" y="440.0"></omgdc:Bounds>
  119. </bpmndi:BPMNShape>
  120. <bpmndi:BPMNShape bpmnElement="confirmertask" id="BPMNShape_confirmertask">
  121. <omgdc:Bounds height="55.0" width="105.0" x="550.0" y="440.0"></omgdc:Bounds>
  122. </bpmndi:BPMNShape>
  123. <bpmndi:BPMNShape bpmnElement="changetask" id="BPMNShape_changetask">
  124. <omgdc:Bounds height="55.0" width="105.0" x="720.0" y="440.0"></omgdc:Bounds>
  125. </bpmndi:BPMNShape>
  126. <bpmndi:BPMNShape bpmnElement="safaertask2" id="BPMNShape_safaertask2">
  127. <omgdc:Bounds height="55.0" width="105.0" x="720.0" y="570.0"></omgdc:Bounds>
  128. </bpmndi:BPMNShape>
  129. <bpmndi:BPMNShape bpmnElement="resetConfirmer1" id="BPMNShape_resetConfirmer1">
  130. <omgdc:Bounds height="55.0" width="105.0" x="550.0" y="570.0"></omgdc:Bounds>
  131. </bpmndi:BPMNShape>
  132. <bpmndi:BPMNShape bpmnElement="resetConfirmer2" id="BPMNShape_resetConfirmer2">
  133. <omgdc:Bounds height="55.0" width="105.0" x="385.0" y="570.0"></omgdc:Bounds>
  134. </bpmndi:BPMNShape>
  135. <bpmndi:BPMNShape bpmnElement="endevent2" id="BPMNShape_endevent2">
  136. <omgdc:Bounds height="35.0" width="35.0" x="420.0" y="670.0"></omgdc:Bounds>
  137. </bpmndi:BPMNShape>
  138. <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
  139. <omgdi:waypoint x="437.0" y="95.0"></omgdi:waypoint>
  140. <omgdi:waypoint x="437.0" y="120.0"></omgdi:waypoint>
  141. </bpmndi:BPMNEdge>
  142. <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
  143. <omgdi:waypoint x="437.0" y="175.0"></omgdi:waypoint>
  144. <omgdi:waypoint x="437.0" y="220.0"></omgdi:waypoint>
  145. <bpmndi:BPMNLabel>
  146. <omgdc:Bounds height="14.0" width="24.0" x="437.0" y="175.0"></omgdc:Bounds>
  147. </bpmndi:BPMNLabel>
  148. </bpmndi:BPMNEdge>
  149. <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
  150. <omgdi:waypoint x="385.0" y="247.0"></omgdi:waypoint>
  151. <omgdi:waypoint x="293.0" y="247.0"></omgdi:waypoint>
  152. <omgdi:waypoint x="293.0" y="198.0"></omgdi:waypoint>
  153. <omgdi:waypoint x="293.0" y="147.0"></omgdi:waypoint>
  154. <omgdi:waypoint x="385.0" y="147.0"></omgdi:waypoint>
  155. <bpmndi:BPMNLabel>
  156. <omgdc:Bounds height="14.0" width="24.0" x="301.0" y="189.0"></omgdc:Bounds>
  157. </bpmndi:BPMNLabel>
  158. </bpmndi:BPMNEdge>
  159. <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
  160. <omgdi:waypoint x="437.0" y="275.0"></omgdi:waypoint>
  161. <omgdi:waypoint x="437.0" y="330.0"></omgdi:waypoint>
  162. <bpmndi:BPMNLabel>
  163. <omgdc:Bounds height="14.0" width="24.0" x="437.0" y="275.0"></omgdc:Bounds>
  164. </bpmndi:BPMNLabel>
  165. </bpmndi:BPMNEdge>
  166. <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
  167. <omgdi:waypoint x="385.0" y="357.0"></omgdi:waypoint>
  168. <omgdi:waypoint x="298.0" y="357.0"></omgdi:waypoint>
  169. <omgdi:waypoint x="298.0" y="247.0"></omgdi:waypoint>
  170. <omgdi:waypoint x="385.0" y="247.0"></omgdi:waypoint>
  171. <bpmndi:BPMNLabel>
  172. <omgdc:Bounds height="14.0" width="24.0" x="301.0" y="289.0"></omgdc:Bounds>
  173. </bpmndi:BPMNLabel>
  174. </bpmndi:BPMNEdge>
  175. <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
  176. <omgdi:waypoint x="490.0" y="247.0"></omgdi:waypoint>
  177. <omgdi:waypoint x="627.0" y="247.0"></omgdi:waypoint>
  178. <omgdi:waypoint x="627.0" y="340.0"></omgdi:waypoint>
  179. <bpmndi:BPMNLabel>
  180. <omgdc:Bounds height="14.0" width="24.0" x="490.0" y="247.0"></omgdc:Bounds>
  181. </bpmndi:BPMNLabel>
  182. </bpmndi:BPMNEdge>
  183. <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
  184. <omgdi:waypoint x="490.0" y="357.0"></omgdi:waypoint>
  185. <omgdi:waypoint x="610.0" y="357.0"></omgdi:waypoint>
  186. <bpmndi:BPMNLabel>
  187. <omgdc:Bounds height="14.0" width="24.0" x="490.0" y="357.0"></omgdc:Bounds>
  188. </bpmndi:BPMNLabel>
  189. </bpmndi:BPMNEdge>
  190. <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
  191. <omgdi:waypoint x="437.0" y="385.0"></omgdi:waypoint>
  192. <omgdi:waypoint x="437.0" y="440.0"></omgdi:waypoint>
  193. <bpmndi:BPMNLabel>
  194. <omgdc:Bounds height="14.0" width="24.0" x="437.0" y="385.0"></omgdc:Bounds>
  195. </bpmndi:BPMNLabel>
  196. </bpmndi:BPMNEdge>
  197. <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
  198. <omgdi:waypoint x="490.0" y="467.0"></omgdi:waypoint>
  199. <omgdi:waypoint x="550.0" y="467.0"></omgdi:waypoint>
  200. <bpmndi:BPMNLabel>
  201. <omgdc:Bounds height="14.0" width="24.0" x="490.0" y="467.0"></omgdc:Bounds>
  202. </bpmndi:BPMNLabel>
  203. </bpmndi:BPMNEdge>
  204. <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
  205. <omgdi:waypoint x="655.0" y="467.0"></omgdi:waypoint>
  206. <omgdi:waypoint x="720.0" y="467.0"></omgdi:waypoint>
  207. <bpmndi:BPMNLabel>
  208. <omgdc:Bounds height="14.0" width="24.0" x="655.0" y="467.0"></omgdc:Bounds>
  209. </bpmndi:BPMNLabel>
  210. </bpmndi:BPMNEdge>
  211. <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
  212. <omgdi:waypoint x="772.0" y="495.0"></omgdi:waypoint>
  213. <omgdi:waypoint x="772.0" y="570.0"></omgdi:waypoint>
  214. <bpmndi:BPMNLabel>
  215. <omgdc:Bounds height="14.0" width="24.0" x="772.0" y="495.0"></omgdc:Bounds>
  216. </bpmndi:BPMNLabel>
  217. </bpmndi:BPMNEdge>
  218. <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
  219. <omgdi:waypoint x="720.0" y="597.0"></omgdi:waypoint>
  220. <omgdi:waypoint x="655.0" y="597.0"></omgdi:waypoint>
  221. <bpmndi:BPMNLabel>
  222. <omgdc:Bounds height="14.0" width="24.0" x="681.0" y="597.0"></omgdc:Bounds>
  223. </bpmndi:BPMNLabel>
  224. </bpmndi:BPMNEdge>
  225. <bpmndi:BPMNEdge bpmnElement="flow13" id="BPMNEdge_flow13">
  226. <omgdi:waypoint x="550.0" y="597.0"></omgdi:waypoint>
  227. <omgdi:waypoint x="490.0" y="597.0"></omgdi:waypoint>
  228. <bpmndi:BPMNLabel>
  229. <omgdc:Bounds height="14.0" width="24.0" x="512.0" y="597.0"></omgdc:Bounds>
  230. </bpmndi:BPMNLabel>
  231. </bpmndi:BPMNEdge>
  232. <bpmndi:BPMNEdge bpmnElement="flow14" id="BPMNEdge_flow14">
  233. <omgdi:waypoint x="437.0" y="625.0"></omgdi:waypoint>
  234. <omgdi:waypoint x="437.0" y="670.0"></omgdi:waypoint>
  235. <bpmndi:BPMNLabel>
  236. <omgdc:Bounds height="14.0" width="24.0" x="437.0" y="625.0"></omgdc:Bounds>
  237. </bpmndi:BPMNLabel>
  238. </bpmndi:BPMNEdge>
  239. </bpmndi:BPMNPlane>
  240. </bpmndi:BPMNDiagram>
  241. </definitions>