safetychange.bpmn 12 KB

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