ApplyOffWork.bpmn 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" 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" xmlns:tns="http://www.activiti.org/test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" expressionLanguage="http://www.w3.org/1999/XPath" id="m1610247356111" name="" targetNamespace="http://www.activiti.org/test" typeLanguage="http://www.w3.org/2001/XMLSchema">
  3. <process id="apply_off_work" isClosed="false" isExecutable="true" name="请假申请" processType="None">
  4. <startEvent id="_2" name="发起申请"/>
  5. <endEvent id="_26" name="结束"/>
  6. <userTask activiti:candidateGroups="curr_user" activiti:exclusive="true" id="_34" name="申请人发起"/>
  7. <sequenceFlow id="_35" sourceRef="_2" targetRef="_34"/>
  8. <userTask activiti:assignee="${userId}" activiti:candidateGroups="dept_superior_1_0_1" activiti:exclusive="true" id="_3" name="直接上级审核"/>
  9. <sequenceFlow id="_4" name="申请" sourceRef="_34" targetRef="_3">
  10. <conditionExpression xsi:type="tFormalExpression">
  11. <![CDATA[${agree=='yes'}]]>
  12. </conditionExpression>
  13. </sequenceFlow>
  14. <userTask activiti:assignee="${userId}" activiti:candidateGroups="dept_head_1_0_1" activiti:exclusive="true" id="_5" name="部门负责人审核"/>
  15. <userTask activiti:assignee="${userId}" activiti:candidateGroups="flow_fgld_1_0_1" activiti:exclusive="true" id="_6" name="分管领导审核"/>
  16. <userTask activiti:assignee="${userId}" activiti:candidateGroups="flow_sjfgld_1_0_1" activiti:exclusive="true" id="_7" name="上级分管领导审核"/>
  17. <userTask activiti:assignee="${userId}" activiti:candidateGroups="flow_zyld_1_0_1" activiti:exclusive="true" id="_9" name="主要领导审核"/>
  18. <sequenceFlow id="_8" name="同意" sourceRef="_3" targetRef="_5">
  19. <conditionExpression xsi:type="tFormalExpression">
  20. <![CDATA[${agree=='yes'}]]>
  21. </conditionExpression>
  22. </sequenceFlow>
  23. <sequenceFlow id="_10" name="请假大于3天" sourceRef="_5" targetRef="_6">
  24. <conditionExpression xsi:type="tFormalExpression">
  25. <![CDATA[${(isExchangeOnly=='no') and (applyDay>3)}]]>
  26. </conditionExpression>
  27. </sequenceFlow>
  28. <sequenceFlow id="_11" name="同意" sourceRef="_6" targetRef="_7">
  29. <conditionExpression xsi:type="tFormalExpression">
  30. <![CDATA[${agree=='yes'}]]>
  31. </conditionExpression>
  32. </sequenceFlow>
  33. <sequenceFlow id="_12" name="同意" sourceRef="_7" targetRef="_9">
  34. <conditionExpression xsi:type="tFormalExpression">
  35. <![CDATA[${agree=='yes'}]]>
  36. </conditionExpression>
  37. </sequenceFlow>
  38. <sequenceFlow id="_13" name="同意" sourceRef="_9" targetRef="_26">
  39. <conditionExpression xsi:type="tFormalExpression">
  40. <![CDATA[${agree=='yes'}]]>
  41. </conditionExpression>
  42. </sequenceFlow>
  43. <sequenceFlow id="_14" name="不同意" sourceRef="_3" targetRef="_34">
  44. <conditionExpression xsi:type="tFormalExpression">
  45. <![CDATA[${agree=='no'}]]>
  46. </conditionExpression>
  47. </sequenceFlow>
  48. <sequenceFlow id="_15" name="不同意" sourceRef="_5" targetRef="_34">
  49. <conditionExpression xsi:type="tFormalExpression">
  50. <![CDATA[${agree=='no'}]]>
  51. </conditionExpression>
  52. </sequenceFlow>
  53. <sequenceFlow id="_16" name="不同意" sourceRef="_6" targetRef="_34">
  54. <conditionExpression xsi:type="tFormalExpression">
  55. <![CDATA[${agree=='no'}]]>
  56. </conditionExpression>
  57. </sequenceFlow>
  58. <sequenceFlow id="_17" name="不同意" sourceRef="_7" targetRef="_34">
  59. <conditionExpression xsi:type="tFormalExpression">
  60. <![CDATA[${agree=='no'}]]>
  61. </conditionExpression>
  62. </sequenceFlow>
  63. <sequenceFlow id="_19" name="不同意" sourceRef="_9" targetRef="_34">
  64. <conditionExpression xsi:type="tFormalExpression">
  65. <![CDATA[${agree=='no'}]]>
  66. </conditionExpression>
  67. </sequenceFlow>
  68. <sequenceFlow id="_20" name="只有调休或请假时间不大于3天" sourceRef="_5" targetRef="_26">
  69. <conditionExpression xsi:type="tFormalExpression">
  70. <![CDATA[${(isExchangeOnly=='yes') or (applyDay<=3)}]]>
  71. </conditionExpression>
  72. </sequenceFlow>
  73. </process>
  74. <bpmndi:BPMNDiagram documentation="background=#FFFFFF;count=1;horizontalcount=1;orientation=0;width=842.4;height=1195.2;imageableWidth=832.4;imageableHeight=1185.2;imageableX=5.0;imageableY=5.0" id="Diagram-_1" name="New Diagram">
  75. <bpmndi:BPMNPlane bpmnElement="apply_off_work">
  76. <bpmndi:BPMNShape bpmnElement="_2" id="Shape-_2">
  77. <omgdc:Bounds height="32.0" width="32.0" x="45.0" y="115.0"/>
  78. <bpmndi:BPMNLabel>
  79. <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
  80. </bpmndi:BPMNLabel>
  81. </bpmndi:BPMNShape>
  82. <bpmndi:BPMNShape bpmnElement="_26" id="Shape-_26">
  83. <omgdc:Bounds height="32.0" width="32.0" x="1180.0" y="510.0"/>
  84. <bpmndi:BPMNLabel>
  85. <omgdc:Bounds height="32.0" width="32.0" x="0.0" y="0.0"/>
  86. </bpmndi:BPMNLabel>
  87. </bpmndi:BPMNShape>
  88. <bpmndi:BPMNShape bpmnElement="_34" id="Shape-_34">
  89. <omgdc:Bounds height="55.0" width="85.0" x="135.0" y="245.0"/>
  90. <bpmndi:BPMNLabel>
  91. <omgdc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/>
  92. </bpmndi:BPMNLabel>
  93. </bpmndi:BPMNShape>
  94. <bpmndi:BPMNShape bpmnElement="_3" id="Shape-_3">
  95. <omgdc:Bounds height="55.0" width="85.0" x="330.0" y="245.0"/>
  96. <bpmndi:BPMNLabel>
  97. <omgdc:Bounds height="55.0" width="85.0" x="0.0" y="0.0"/>
  98. </bpmndi:BPMNLabel>
  99. </bpmndi:BPMNShape>
  100. <bpmndi:BPMNShape bpmnElement="_5" id="Shape-_5">
  101. <omgdc:Bounds height="55.0" width="95.0" x="520.0" y="245.0"/>
  102. <bpmndi:BPMNLabel>
  103. <omgdc:Bounds height="55.0" width="95.0" x="0.0" y="0.0"/>
  104. </bpmndi:BPMNLabel>
  105. </bpmndi:BPMNShape>
  106. <bpmndi:BPMNShape bpmnElement="_6" id="Shape-_6">
  107. <omgdc:Bounds height="55.0" width="100.0" x="730.0" y="245.0"/>
  108. <bpmndi:BPMNLabel>
  109. <omgdc:Bounds height="55.0" width="100.0" x="0.0" y="0.0"/>
  110. </bpmndi:BPMNLabel>
  111. </bpmndi:BPMNShape>
  112. <bpmndi:BPMNShape bpmnElement="_7" id="Shape-_7">
  113. <omgdc:Bounds height="55.0" width="110.0" x="930.0" y="245.0"/>
  114. <bpmndi:BPMNLabel>
  115. <omgdc:Bounds height="55.0" width="110.0" x="0.0" y="0.0"/>
  116. </bpmndi:BPMNLabel>
  117. </bpmndi:BPMNShape>
  118. <bpmndi:BPMNShape bpmnElement="_9" id="Shape-_9">
  119. <omgdc:Bounds height="55.0" width="110.0" x="1140.0" y="245.0"/>
  120. <bpmndi:BPMNLabel>
  121. <omgdc:Bounds height="55.0" width="110.0" x="0.0" y="0.0"/>
  122. </bpmndi:BPMNLabel>
  123. </bpmndi:BPMNShape>
  124. <bpmndi:BPMNEdge bpmnElement="_35" id="BPMNEdge__35" sourceElement="_2" targetElement="_34">
  125. <omgdi:waypoint x="63.0" y="146.87450786638755"/>
  126. <omgdi:waypoint x="63.0" y="219.0"/>
  127. <omgdi:waypoint x="135.0" y="272.5"/>
  128. <bpmndi:BPMNLabel>
  129. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  130. </bpmndi:BPMNLabel>
  131. </bpmndi:BPMNEdge>
  132. <bpmndi:BPMNEdge bpmnElement="_13" id="BPMNEdge__13" sourceElement="_9" targetElement="_26">
  133. <omgdi:waypoint x="1196.0" y="315.0"/>
  134. <omgdi:waypoint x="1196.0" y="510.0"/>
  135. <bpmndi:BPMNLabel>
  136. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  137. </bpmndi:BPMNLabel>
  138. </bpmndi:BPMNEdge>
  139. <bpmndi:BPMNEdge bpmnElement="_12" id="BPMNEdge__12" sourceElement="_7" targetElement="_9">
  140. <omgdi:waypoint x="1055.0" y="272.5"/>
  141. <omgdi:waypoint x="1140.0" y="272.5"/>
  142. <bpmndi:BPMNLabel>
  143. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  144. </bpmndi:BPMNLabel>
  145. </bpmndi:BPMNEdge>
  146. <bpmndi:BPMNEdge bpmnElement="_15" id="BPMNEdge__15" sourceElement="_5" targetElement="_34">
  147. <omgdi:waypoint x="567.5" y="230.0"/>
  148. <omgdi:waypoint x="375.0" y="195.0"/>
  149. <omgdi:waypoint x="177.5" y="245.0"/>
  150. <bpmndi:BPMNLabel>
  151. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  152. </bpmndi:BPMNLabel>
  153. </bpmndi:BPMNEdge>
  154. <bpmndi:BPMNEdge bpmnElement="_14" id="BPMNEdge__14" sourceElement="_3" targetElement="_34">
  155. <omgdi:waypoint x="372.5" y="230.0"/>
  156. <omgdi:waypoint x="285.0" y="225.0"/>
  157. <omgdi:waypoint x="177.5" y="245.0"/>
  158. <bpmndi:BPMNLabel>
  159. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  160. </bpmndi:BPMNLabel>
  161. </bpmndi:BPMNEdge>
  162. <bpmndi:BPMNEdge bpmnElement="_17" id="BPMNEdge__17" sourceElement="_7" targetElement="_34">
  163. <omgdi:waypoint x="985.0" y="230.0"/>
  164. <omgdi:waypoint x="600.0" y="135.0"/>
  165. <omgdi:waypoint x="177.5" y="245.0"/>
  166. <bpmndi:BPMNLabel>
  167. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  168. </bpmndi:BPMNLabel>
  169. </bpmndi:BPMNEdge>
  170. <bpmndi:BPMNEdge bpmnElement="_16" id="BPMNEdge__16" sourceElement="_6" targetElement="_34">
  171. <omgdi:waypoint x="780.0" y="230.0"/>
  172. <omgdi:waypoint x="475.0" y="165.0"/>
  173. <omgdi:waypoint x="177.5" y="245.0"/>
  174. <bpmndi:BPMNLabel>
  175. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  176. </bpmndi:BPMNLabel>
  177. </bpmndi:BPMNEdge>
  178. <bpmndi:BPMNEdge bpmnElement="_19" id="BPMNEdge__19" sourceElement="_9" targetElement="_34">
  179. <omgdi:waypoint x="1195.0" y="230.0"/>
  180. <omgdi:waypoint x="675.0" y="105.0"/>
  181. <omgdi:waypoint x="177.5" y="245.0"/>
  182. <bpmndi:BPMNLabel>
  183. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  184. </bpmndi:BPMNLabel>
  185. </bpmndi:BPMNEdge>
  186. <bpmndi:BPMNEdge bpmnElement="_4" id="BPMNEdge__4" sourceElement="_34" targetElement="_3">
  187. <omgdi:waypoint x="235.0" y="272.5"/>
  188. <omgdi:waypoint x="330.0" y="272.5"/>
  189. <bpmndi:BPMNLabel>
  190. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  191. </bpmndi:BPMNLabel>
  192. </bpmndi:BPMNEdge>
  193. <bpmndi:BPMNEdge bpmnElement="_8" id="BPMNEdge__8" sourceElement="_3" targetElement="_5">
  194. <omgdi:waypoint x="430.0" y="272.5"/>
  195. <omgdi:waypoint x="520.0" y="272.5"/>
  196. <bpmndi:BPMNLabel>
  197. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  198. </bpmndi:BPMNLabel>
  199. </bpmndi:BPMNEdge>
  200. <bpmndi:BPMNEdge bpmnElement="_20" id="BPMNEdge__20" sourceElement="_5" targetElement="_26">
  201. <omgdi:waypoint x="570.0" y="315.0"/>
  202. <omgdi:waypoint x="570.0" y="400.0"/>
  203. <omgdi:waypoint x="1180.0" y="526.0"/>
  204. <bpmndi:BPMNLabel>
  205. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  206. </bpmndi:BPMNLabel>
  207. </bpmndi:BPMNEdge>
  208. <bpmndi:BPMNEdge bpmnElement="_11" id="BPMNEdge__11" sourceElement="_6" targetElement="_7">
  209. <omgdi:waypoint x="845.0" y="272.5"/>
  210. <omgdi:waypoint x="930.0" y="272.5"/>
  211. <bpmndi:BPMNLabel>
  212. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  213. </bpmndi:BPMNLabel>
  214. </bpmndi:BPMNEdge>
  215. <bpmndi:BPMNEdge bpmnElement="_10" id="BPMNEdge__10" sourceElement="_5" targetElement="_6">
  216. <omgdi:waypoint x="630.0" y="272.5"/>
  217. <omgdi:waypoint x="730.0" y="272.5"/>
  218. <bpmndi:BPMNLabel>
  219. <omgdc:Bounds height="0.0" width="0.0" x="0.0" y="0.0"/>
  220. </bpmndi:BPMNLabel>
  221. </bpmndi:BPMNEdge>
  222. </bpmndi:BPMNPlane>
  223. </bpmndi:BPMNDiagram>
  224. </definitions>