LeaveProcess.bpmn20.xml 8.8 KB

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