leave.bpmn 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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="com.thinkgem.jeesite.modules.oa.leave">
  3. <process id="leave" name="请假流程" isExecutable="true">
  4. <documentation>请假流程演示</documentation>
  5. <startEvent id="startevent1" name="Start" activiti:initiator="applyUserId"></startEvent>
  6. <userTask id="deptLeaderAudit" name="部门领导审批" activiti:candidateGroups="dept"></userTask>
  7. <exclusiveGateway id="exclusivegateway5" name="Exclusive Gateway"></exclusiveGateway>
  8. <userTask id="modifyApply" name="调整申请" activiti:assignee="${applyUserId}">
  9. <extensionElements>
  10. <activiti:taskListener event="complete" delegateExpression="${leaveModifyProcessor}"></activiti:taskListener>
  11. </extensionElements>
  12. </userTask>
  13. <userTask id="hrAudit" name="人事审批" activiti:candidateGroups="hr"></userTask>
  14. <exclusiveGateway id="exclusivegateway6" name="Exclusive Gateway"></exclusiveGateway>
  15. <userTask id="reportBack" name="销假" activiti:assignee="${applyUserId}">
  16. <extensionElements>
  17. <activiti:taskListener event="complete" delegateExpression="${leaveReportProcessor}"></activiti:taskListener>
  18. </extensionElements>
  19. </userTask>
  20. <endEvent id="endevent1" name="End"></endEvent>
  21. <exclusiveGateway id="exclusivegateway7" name="Exclusive Gateway"></exclusiveGateway>
  22. <sequenceFlow id="flow2" sourceRef="startevent1" targetRef="deptLeaderAudit"></sequenceFlow>
  23. <sequenceFlow id="flow3" sourceRef="deptLeaderAudit" targetRef="exclusivegateway5"></sequenceFlow>
  24. <sequenceFlow id="flow4" name="不同意" sourceRef="exclusivegateway5" targetRef="modifyApply">
  25. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!deptLeaderPass}]]></conditionExpression>
  26. </sequenceFlow>
  27. <sequenceFlow id="flow5" name="同意" sourceRef="exclusivegateway5" targetRef="hrAudit">
  28. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${deptLeaderPass}]]></conditionExpression>
  29. </sequenceFlow>
  30. <sequenceFlow id="flow6" sourceRef="hrAudit" targetRef="exclusivegateway6"></sequenceFlow>
  31. <sequenceFlow id="flow7" name="同意" sourceRef="exclusivegateway6" targetRef="reportBack">
  32. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${hrPass}]]></conditionExpression>
  33. </sequenceFlow>
  34. <sequenceFlow id="flow8" sourceRef="reportBack" targetRef="endevent1"></sequenceFlow>
  35. <sequenceFlow id="flow9" name="不同意" sourceRef="exclusivegateway6" targetRef="modifyApply">
  36. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!hrPass}]]></conditionExpression>
  37. </sequenceFlow>
  38. <sequenceFlow id="flow10" name="重新申请" sourceRef="exclusivegateway7" targetRef="deptLeaderAudit">
  39. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${reApply}]]></conditionExpression>
  40. </sequenceFlow>
  41. <sequenceFlow id="flow11" sourceRef="modifyApply" targetRef="exclusivegateway7"></sequenceFlow>
  42. <sequenceFlow id="flow12" name="结束流程" sourceRef="exclusivegateway7" targetRef="endevent1">
  43. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!reApply}]]></conditionExpression>
  44. </sequenceFlow>
  45. </process>
  46. <bpmndi:BPMNDiagram id="BPMNDiagram_leave">
  47. <bpmndi:BPMNPlane bpmnElement="leave" id="BPMNPlane_leave">
  48. <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
  49. <omgdc:Bounds height="35.0" width="35.0" x="10.0" y="90.0"></omgdc:Bounds>
  50. </bpmndi:BPMNShape>
  51. <bpmndi:BPMNShape bpmnElement="deptLeaderAudit" id="BPMNShape_deptLeaderAudit">
  52. <omgdc:Bounds height="55.0" width="105.0" x="90.0" y="80.0"></omgdc:Bounds>
  53. </bpmndi:BPMNShape>
  54. <bpmndi:BPMNShape bpmnElement="exclusivegateway5" id="BPMNShape_exclusivegateway5">
  55. <omgdc:Bounds height="40.0" width="40.0" x="250.0" y="87.0"></omgdc:Bounds>
  56. </bpmndi:BPMNShape>
  57. <bpmndi:BPMNShape bpmnElement="modifyApply" id="BPMNShape_modifyApply">
  58. <omgdc:Bounds height="55.0" width="105.0" x="218.0" y="190.0"></omgdc:Bounds>
  59. </bpmndi:BPMNShape>
  60. <bpmndi:BPMNShape bpmnElement="hrAudit" id="BPMNShape_hrAudit">
  61. <omgdc:Bounds height="55.0" width="105.0" x="358.0" y="80.0"></omgdc:Bounds>
  62. </bpmndi:BPMNShape>
  63. <bpmndi:BPMNShape bpmnElement="exclusivegateway6" id="BPMNShape_exclusivegateway6">
  64. <omgdc:Bounds height="40.0" width="40.0" x="495.0" y="87.0"></omgdc:Bounds>
  65. </bpmndi:BPMNShape>
  66. <bpmndi:BPMNShape bpmnElement="reportBack" id="BPMNShape_reportBack">
  67. <omgdc:Bounds height="55.0" width="105.0" x="590.0" y="80.0"></omgdc:Bounds>
  68. </bpmndi:BPMNShape>
  69. <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
  70. <omgdc:Bounds height="35.0" width="35.0" x="625.0" y="283.0"></omgdc:Bounds>
  71. </bpmndi:BPMNShape>
  72. <bpmndi:BPMNShape bpmnElement="exclusivegateway7" id="BPMNShape_exclusivegateway7">
  73. <omgdc:Bounds height="40.0" width="40.0" x="250.0" y="280.0"></omgdc:Bounds>
  74. </bpmndi:BPMNShape>
  75. <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
  76. <omgdi:waypoint x="45.0" y="107.0"></omgdi:waypoint>
  77. <omgdi:waypoint x="90.0" y="107.0"></omgdi:waypoint>
  78. </bpmndi:BPMNEdge>
  79. <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
  80. <omgdi:waypoint x="195.0" y="107.0"></omgdi:waypoint>
  81. <omgdi:waypoint x="250.0" y="107.0"></omgdi:waypoint>
  82. </bpmndi:BPMNEdge>
  83. <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4">
  84. <omgdi:waypoint x="270.0" y="127.0"></omgdi:waypoint>
  85. <omgdi:waypoint x="270.0" y="190.0"></omgdi:waypoint>
  86. <bpmndi:BPMNLabel>
  87. <omgdc:Bounds height="14.0" width="36.0" x="10.0" y="0.0"></omgdc:Bounds>
  88. </bpmndi:BPMNLabel>
  89. </bpmndi:BPMNEdge>
  90. <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
  91. <omgdi:waypoint x="290.0" y="107.0"></omgdi:waypoint>
  92. <omgdi:waypoint x="358.0" y="107.0"></omgdi:waypoint>
  93. <bpmndi:BPMNLabel>
  94. <omgdc:Bounds height="14.0" width="24.0" x="-24.0" y="-17.0"></omgdc:Bounds>
  95. </bpmndi:BPMNLabel>
  96. </bpmndi:BPMNEdge>
  97. <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
  98. <omgdi:waypoint x="463.0" y="107.0"></omgdi:waypoint>
  99. <omgdi:waypoint x="495.0" y="107.0"></omgdi:waypoint>
  100. </bpmndi:BPMNEdge>
  101. <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
  102. <omgdi:waypoint x="535.0" y="107.0"></omgdi:waypoint>
  103. <omgdi:waypoint x="590.0" y="107.0"></omgdi:waypoint>
  104. <bpmndi:BPMNLabel>
  105. <omgdc:Bounds height="14.0" width="24.0" x="-22.0" y="-17.0"></omgdc:Bounds>
  106. </bpmndi:BPMNLabel>
  107. </bpmndi:BPMNEdge>
  108. <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
  109. <omgdi:waypoint x="642.0" y="135.0"></omgdi:waypoint>
  110. <omgdi:waypoint x="642.0" y="283.0"></omgdi:waypoint>
  111. </bpmndi:BPMNEdge>
  112. <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
  113. <omgdi:waypoint x="515.0" y="127.0"></omgdi:waypoint>
  114. <omgdi:waypoint x="514.0" y="217.0"></omgdi:waypoint>
  115. <omgdi:waypoint x="323.0" y="217.0"></omgdi:waypoint>
  116. <bpmndi:BPMNLabel>
  117. <omgdc:Bounds height="14.0" width="36.0" x="24.0" y="3.0"></omgdc:Bounds>
  118. </bpmndi:BPMNLabel>
  119. </bpmndi:BPMNEdge>
  120. <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
  121. <omgdi:waypoint x="250.0" y="300.0"></omgdi:waypoint>
  122. <omgdi:waypoint x="142.0" y="299.0"></omgdi:waypoint>
  123. <omgdi:waypoint x="142.0" y="135.0"></omgdi:waypoint>
  124. <bpmndi:BPMNLabel>
  125. <omgdc:Bounds height="14.0" width="48.0" x="8.0" y="-1.0"></omgdc:Bounds>
  126. </bpmndi:BPMNLabel>
  127. </bpmndi:BPMNEdge>
  128. <bpmndi:BPMNEdge bpmnElement="flow11" id="BPMNEdge_flow11">
  129. <omgdi:waypoint x="270.0" y="245.0"></omgdi:waypoint>
  130. <omgdi:waypoint x="270.0" y="280.0"></omgdi:waypoint>
  131. </bpmndi:BPMNEdge>
  132. <bpmndi:BPMNEdge bpmnElement="flow12" id="BPMNEdge_flow12">
  133. <omgdi:waypoint x="290.0" y="300.0"></omgdi:waypoint>
  134. <omgdi:waypoint x="625.0" y="300.0"></omgdi:waypoint>
  135. <bpmndi:BPMNLabel>
  136. <omgdc:Bounds height="14.0" width="48.0" x="-15.0" y="-20.0"></omgdc:Bounds>
  137. </bpmndi:BPMNLabel>
  138. </bpmndi:BPMNEdge>
  139. </bpmndi:BPMNPlane>
  140. </bpmndi:BPMNDiagram>
  141. </definitions>