LeaveProcess.bpmn20.xml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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"
  3. xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn"
  4. xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
  5. xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI"
  6. typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
  7. targetNamespace="http://www.flowable.org/processdef">
  8. <process id="Leave" name="请假流程" isExecutable="true">
  9. <documentation>请假流程</documentation>
  10. <startEvent id="start" name="开始" flowable:initiator="applyUser"></startEvent>
  11. <userTask id="hrTask" name="人事审批" flowable:assignee="${taskUser}">
  12. <extensionElements>
  13. <modeler:initiator-can-complete xmlns:modeler="http://flowable.org/modeler">
  14. <![CDATA[false]]></modeler:initiator-can-complete>
  15. </extensionElements>
  16. </userTask>
  17. <exclusiveGateway id="judgeTask"></exclusiveGateway>
  18. <userTask id="managerTak" name="经理审批" flowable:candidateGroups="manager"></userTask>
  19. <userTask id="bossTask" name="老板审批" flowable:candidateGroups="boss"></userTask>
  20. <endEvent id="end" name="结束"></endEvent>
  21. <sequenceFlow id="flow1" sourceRef="start" targetRef="hrTask"></sequenceFlow>
  22. <sequenceFlow id="managerPassFlow" name="通过" sourceRef="managerTak" targetRef="end">
  23. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression>
  24. </sequenceFlow>
  25. <userTask id="userTask" name="调整申请" flowable:assignee="${applyUser}">
  26. <extensionElements>
  27. <modeler:initiator-can-complete xmlns:modeler="http://flowable.org/modeler">
  28. <![CDATA[false]]></modeler:initiator-can-complete>
  29. </extensionElements>
  30. </userTask>
  31. <sequenceFlow id="bossPassFlow" name="通过" sourceRef="bossTask" targetRef="end">
  32. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression>
  33. </sequenceFlow>
  34. <sequenceFlow id="judgeMore" name="大于3天" sourceRef="judgeTask" targetRef="bossTask">
  35. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${days > 3}]]></conditionExpression>
  36. </sequenceFlow>
  37. <sequenceFlow id="managerNotPassFlow" name="驳回" sourceRef="managerTak" targetRef="userTask">
  38. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression>
  39. </sequenceFlow>
  40. <sequenceFlow id="bossNotPassFlow" name="驳回" sourceRef="bossTask" targetRef="userTask">
  41. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression>
  42. </sequenceFlow>
  43. <sequenceFlow id="hrPassFlow" name="同意" sourceRef="hrTask" targetRef="judgeTask">
  44. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression>
  45. </sequenceFlow>
  46. <sequenceFlow id="hrNotPassFlow" name="驳回" sourceRef="hrTask" targetRef="userTask">
  47. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression>
  48. </sequenceFlow>
  49. <sequenceFlow id="judgeLess" name="小于3天" sourceRef="judgeTask" targetRef="managerTak">
  50. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${days <= 3}]]></conditionExpression>
  51. </sequenceFlow>
  52. <sequenceFlow id="userPassFlow" name="重新申请" sourceRef="userTask" targetRef="hrTask">
  53. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${pass}]]></conditionExpression>
  54. </sequenceFlow>
  55. <sequenceFlow id="userNotPassFlow" name="关闭申请" sourceRef="userTask" targetRef="end">
  56. <conditionExpression xsi:type="tFormalExpression"><![CDATA[${!pass}]]></conditionExpression>
  57. </sequenceFlow>
  58. </process>
  59. <bpmndi:BPMNDiagram id="BPMNDiagram_Leave">
  60. <bpmndi:BPMNPlane bpmnElement="Leave" id="BPMNPlane_Leave">
  61. <bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
  62. <omgdc:Bounds height="30.0" width="30.0" x="300.0" y="135.0"></omgdc:Bounds>
  63. </bpmndi:BPMNShape>
  64. <bpmndi:BPMNShape bpmnElement="hrTask" id="BPMNShape_hrTask">
  65. <omgdc:Bounds height="80.0" width="100.0" x="360.0" y="165.0"></omgdc:Bounds>
  66. </bpmndi:BPMNShape>
  67. <bpmndi:BPMNShape bpmnElement="judgeTask" id="BPMNShape_judgeTask">
  68. <omgdc:Bounds height="40.0" width="40.0" x="255.0" y="300.0"></omgdc:Bounds>
  69. </bpmndi:BPMNShape>
  70. <bpmndi:BPMNShape bpmnElement="managerTak" id="BPMNShape_managerTak">
  71. <omgdc:Bounds height="80.0" width="100.0" x="555.0" y="75.0"></omgdc:Bounds>
  72. </bpmndi:BPMNShape>
  73. <bpmndi:BPMNShape bpmnElement="bossTask" id="BPMNShape_bossTask">
  74. <omgdc:Bounds height="80.0" width="100.0" x="450.0" y="420.0"></omgdc:Bounds>
  75. </bpmndi:BPMNShape>
  76. <bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
  77. <omgdc:Bounds height="28.0" width="28.0" x="705.0" y="390.0"></omgdc:Bounds>
  78. </bpmndi:BPMNShape>
  79. <bpmndi:BPMNShape bpmnElement="userTask" id="BPMNShape_userTask">
  80. <omgdc:Bounds height="80.0" width="100.0" x="510.0" y="270.0"></omgdc:Bounds>
  81. </bpmndi:BPMNShape>
  82. <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
  83. <omgdi:waypoint x="327.9390183144677" y="157.4917313275668"></omgdi:waypoint>
  84. <omgdi:waypoint x="360.0" y="176.05263157894737"></omgdi:waypoint>
  85. </bpmndi:BPMNEdge>
  86. <bpmndi:BPMNEdge bpmnElement="hrPassFlow" id="BPMNEdge_hrPassFlow">
  87. <omgdi:waypoint x="363.04347826086956" y="244.95000000000002"></omgdi:waypoint>
  88. <omgdi:waypoint x="285.77299999999997" y="310.79999999999995"></omgdi:waypoint>
  89. </bpmndi:BPMNEdge>
  90. <bpmndi:BPMNEdge bpmnElement="hrNotPassFlow" id="BPMNEdge_hrNotPassFlow">
  91. <omgdi:waypoint x="459.95" y="236.21875000000006"></omgdi:waypoint>
  92. <omgdi:waypoint x="513.9794844818516" y="270.0"></omgdi:waypoint>
  93. </bpmndi:BPMNEdge>
  94. <bpmndi:BPMNEdge bpmnElement="judgeLess" id="BPMNEdge_judgeLess">
  95. <omgdi:waypoint x="274.3359375" y="300.66397214564284"></omgdi:waypoint>
  96. <omgdi:waypoint x="274.3359375" y="115.0"></omgdi:waypoint>
  97. <omgdi:waypoint x="554.9999999999982" y="115.0"></omgdi:waypoint>
  98. </bpmndi:BPMNEdge>
  99. <bpmndi:BPMNEdge bpmnElement="userPassFlow" id="BPMNEdge_userPassFlow">
  100. <omgdi:waypoint x="510.0" y="310.0"></omgdi:waypoint>
  101. <omgdi:waypoint x="411.0" y="310.0"></omgdi:waypoint>
  102. <omgdi:waypoint x="411.0" y="244.95000000000002"></omgdi:waypoint>
  103. </bpmndi:BPMNEdge>
  104. <bpmndi:BPMNEdge bpmnElement="bossPassFlow" id="BPMNEdge_bossPassFlow">
  105. <omgdi:waypoint x="549.9499999999998" y="447.2146118721461"></omgdi:waypoint>
  106. <omgdi:waypoint x="705.4331577666419" y="407.4567570622598"></omgdi:waypoint>
  107. </bpmndi:BPMNEdge>
  108. <bpmndi:BPMNEdge bpmnElement="judgeMore" id="BPMNEdge_judgeMore">
  109. <omgdi:waypoint x="287.29730895645025" y="327.65205479452055"></omgdi:waypoint>
  110. <omgdi:waypoint x="450.0" y="428.8888888888889"></omgdi:waypoint>
  111. </bpmndi:BPMNEdge>
  112. <bpmndi:BPMNEdge bpmnElement="managerPassFlow" id="BPMNEdge_managerPassFlow">
  113. <omgdi:waypoint x="620.7588235294118" y="154.95"></omgdi:waypoint>
  114. <omgdi:waypoint x="713.8613704477151" y="390.96328050279476"></omgdi:waypoint>
  115. </bpmndi:BPMNEdge>
  116. <bpmndi:BPMNEdge bpmnElement="userNotPassFlow" id="BPMNEdge_userNotPassFlow">
  117. <omgdi:waypoint x="609.95" y="339.5301886792453"></omgdi:waypoint>
  118. <omgdi:waypoint x="706.9383699359797" y="396.87411962686997"></omgdi:waypoint>
  119. </bpmndi:BPMNEdge>
  120. <bpmndi:BPMNEdge bpmnElement="bossNotPassFlow" id="BPMNEdge_bossNotPassFlow">
  121. <omgdi:waypoint x="515.98" y="420.0"></omgdi:waypoint>
  122. <omgdi:waypoint x="544.0" y="349.95000000000005"></omgdi:waypoint>
  123. </bpmndi:BPMNEdge>
  124. <bpmndi:BPMNEdge bpmnElement="managerNotPassFlow" id="BPMNEdge_managerNotPassFlow">
  125. <omgdi:waypoint x="595.438344721373" y="154.95"></omgdi:waypoint>
  126. <omgdi:waypoint x="567.9366337262223" y="270.0"></omgdi:waypoint>
  127. </bpmndi:BPMNEdge>
  128. </bpmndi:BPMNPlane>
  129. </bpmndi:BPMNDiagram>
  130. </definitions>