general_approval.bpmn 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_02m23tv" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.21.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0">
  3. <bpmn:process id="general_approval" name="general_approval" isExecutable="true">
  4. <bpmn:startEvent id="task_start">
  5. <bpmn:outgoing>sid-4f57050a-5a96-4e2f-80e6-8b8c860d809d</bpmn:outgoing>
  6. </bpmn:startEvent>
  7. <bpmn:userTask id="task_draft" name="起草">
  8. <bpmn:incoming>sid-4f57050a-5a96-4e2f-80e6-8b8c860d809d</bpmn:incoming>
  9. <bpmn:incoming>flow_reject</bpmn:incoming>
  10. <bpmn:outgoing>Flow_07q4s39</bpmn:outgoing>
  11. <incoming>flow_approve_to_draft</incoming>
  12. <outgoing>sid-9b2eb87a-b8a6-4d80-8b1c-f61d6af8e40f</outgoing>
  13. </bpmn:userTask>
  14. <bpmn:sequenceFlow id="sid-4f57050a-5a96-4e2f-80e6-8b8c860d809d" sourceRef="task_start" targetRef="task_draft"/>
  15. <bpmn:userTask id="task_approve" name="审批">
  16. <bpmn:incoming>Flow_07q4s39</bpmn:incoming>
  17. <bpmn:outgoing>sid-4f16b97e-6ab9-4e9b-a3ca-bc9b6d1311af</bpmn:outgoing>
  18. </bpmn:userTask>
  19. <bpmn:inclusiveGateway id="gateway_approve" name="审批网关">
  20. <bpmn:incoming>sid-4f16b97e-6ab9-4e9b-a3ca-bc9b6d1311af</bpmn:incoming>
  21. <bpmn:outgoing>flow_passed</bpmn:outgoing>
  22. <bpmn:outgoing>flow_reject</bpmn:outgoing>
  23. </bpmn:inclusiveGateway>
  24. <bpmn:sequenceFlow id="sid-4f16b97e-6ab9-4e9b-a3ca-bc9b6d1311af" sourceRef="task_approve" targetRef="gateway_approve"/>
  25. <bpmn:sequenceFlow id="flow_passed" name="通过" sourceRef="gateway_approve" targetRef="task_completed">
  26. <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="Javascript"/>
  27. </bpmn:sequenceFlow>
  28. <bpmn:sequenceFlow id="flow_reject" name="驳回" sourceRef="gateway_approve" targetRef="task_draft">
  29. <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression" language="Javascript">next(null, this.environment.variables.passed == false);</bpmn:conditionExpression>
  30. </bpmn:sequenceFlow>
  31. <bpmn:sequenceFlow id="Flow_07q4s39" sourceRef="task_draft" targetRef="task_approve"/>
  32. <bpmn:boundaryEvent id="event_catch_withdraw" attachedToRef="task_approve">
  33. <bpmn:signalEventDefinition signalRef="withdraw1"/>
  34. <outgoing>flow_approve_to_draft</outgoing>
  35. </bpmn:boundaryEvent>
  36. <bpmn:sequenceFlow id="flow_approve_to_draft" sourceRef="event_catch_withdraw" targetRef="task_draft"/>
  37. <bpmn:userTask id="task_withdraw" name="撤回">
  38. <incoming>sid-9b2eb87a-b8a6-4d80-8b1c-f61d6af8e40f</incoming>
  39. <outgoing>sid-c904365e-c922-4058-b9aa-525f648242b8</outgoing>
  40. </bpmn:userTask>
  41. <bpmn:sequenceFlow id="sid-9b2eb87a-b8a6-4d80-8b1c-f61d6af8e40f" sourceRef="task_draft" targetRef="task_withdraw"/>
  42. <bpmn:intermediateThrowEvent id="event_throw_withdraw">
  43. <bpmn:signalEventDefinition signalRef="withdraw"/>
  44. <incoming>sid-c904365e-c922-4058-b9aa-525f648242b8</incoming>
  45. </bpmn:intermediateThrowEvent>
  46. <bpmn:sequenceFlow id="sid-c904365e-c922-4058-b9aa-525f648242b8" sourceRef="task_withdraw" targetRef="event_throw_withdraw"/>
  47. <bpmn:endEvent id="task_completed">
  48. <incoming>flow_passed</incoming>
  49. </bpmn:endEvent>
  50. </bpmn:process>
  51. <bpmndi:BPMNDiagram id="BPMNDiagram_general_approval">
  52. <bpmndi:BPMNPlane id="BPMNPlane_general_approval" bpmnElement="general_approval">
  53. <bpmndi:BPMNShape id="shape-640c9bcf-b64f-4b40-834f-d7625afef5d2" bpmnElement="gateway_approve">
  54. <dc:Bounds x="610" y="160" width="40" height="40"/>
  55. <bpmndi:BPMNLabel>
  56. <dc:Bounds x="608" y="210" width="44" height="14"/>
  57. </bpmndi:BPMNLabel>
  58. </bpmndi:BPMNShape>
  59. <bpmndi:BPMNShape id="shape-23e3a536-95b4-48f3-8b5d-5b5beb996583" bpmnElement="task_approve">
  60. <dc:Bounds x="442" y="158" width="75" height="45"/>
  61. </bpmndi:BPMNShape>
  62. <bpmndi:BPMNShape id="shape-62562f65-3cd9-46ef-b11a-66c87c1a9ac4" bpmnElement="task_draft">
  63. <dc:Bounds x="277" y="158" width="65" height="45"/>
  64. </bpmndi:BPMNShape>
  65. <bpmndi:BPMNShape id="shape-d56e6ed8-8a0f-4c8c-8c61-7f06805e1768" bpmnElement="task_start">
  66. <dc:Bounds x="155" y="165" width="30" height="30"/>
  67. </bpmndi:BPMNShape>
  68. <bpmndi:BPMNEdge id="edge-78163569-1d98-463b-9b18-f9a7b0f46f20" bpmnElement="flow_passed">
  69. <di:waypoint x="650" y="180"/>
  70. <di:waypoint x="710.0" y="180.00002"/>
  71. <bpmndi:BPMNLabel>
  72. <dc:Bounds x="672" y="155" width="22" height="14"/>
  73. </bpmndi:BPMNLabel>
  74. </bpmndi:BPMNEdge>
  75. <bpmndi:BPMNEdge id="edge-04601516-5b54-4d21-be94-97190c40151a" bpmnElement="sid-4f16b97e-6ab9-4e9b-a3ca-bc9b6d1311af">
  76. <di:waypoint x="517" y="180"/>
  77. <di:waypoint x="610" y="180"/>
  78. </bpmndi:BPMNEdge>
  79. <bpmndi:BPMNEdge id="edge-49e7b028-34fa-4fcf-899b-69b68b9cc5af" bpmnElement="flow_reject">
  80. <di:waypoint x="630" y="160"/>
  81. <di:waypoint x="630" y="109"/>
  82. <di:waypoint x="310" y="109"/>
  83. <di:waypoint x="310" y="158"/>
  84. <bpmndi:BPMNLabel>
  85. <dc:Bounds x="459" y="84" width="22" height="14"/>
  86. </bpmndi:BPMNLabel>
  87. </bpmndi:BPMNEdge>
  88. <bpmndi:BPMNEdge id="Flow_07q4s39_di" bpmnElement="Flow_07q4s39">
  89. <di:waypoint x="342" y="181"/>
  90. <di:waypoint x="442" y="181"/>
  91. </bpmndi:BPMNEdge>
  92. <bpmndi:BPMNEdge id="edge-92e26a2b-1198-4fa3-ac89-1b1007198fa9" bpmnElement="sid-4f57050a-5a96-4e2f-80e6-8b8c860d809d">
  93. <di:waypoint x="185" y="180"/>
  94. <di:waypoint x="277" y="180"/>
  95. </bpmndi:BPMNEdge>
  96. <bpmndi:BPMNShape id="shape-5d045d3f-7e35-4d4d-a05f-274354be3f0f" bpmnElement="event_catch_withdraw">
  97. <dc:Bounds x="468.17575" y="189.18909" width="30.0" height="30.0"/>
  98. </bpmndi:BPMNShape>
  99. <bpmndi:BPMNEdge id="edge-675deaf0-748f-4a95-8268-67d2788b6237" bpmnElement="flow_approve_to_draft">
  100. <di:waypoint x="483.17575" y="219.1891"/>
  101. <di:waypoint x="483.17575" y="237.96956"/>
  102. <di:waypoint x="325.75003" y="237.96956"/>
  103. <di:waypoint x="325.75003" y="203.0"/>
  104. </bpmndi:BPMNEdge>
  105. <bpmndi:BPMNShape id="shape-ee73f57d-1a63-43f2-be25-3bc4558b1a3b" bpmnElement="task_withdraw">
  106. <dc:Bounds x="279.5" y="280.0" width="60.0" height="40.0"/>
  107. </bpmndi:BPMNShape>
  108. <bpmndi:BPMNEdge id="edge-ec503824-9a1b-43b1-80f1-cbe0fd13c3de" bpmnElement="sid-9b2eb87a-b8a6-4d80-8b1c-f61d6af8e40f">
  109. <di:waypoint x="309.5" y="203.0"/>
  110. <di:waypoint x="309.5" y="280.0"/>
  111. </bpmndi:BPMNEdge>
  112. <bpmndi:BPMNShape id="shape-9932da49-9233-47d7-940d-10ac443da6be" bpmnElement="event_throw_withdraw">
  113. <dc:Bounds x="385.0" y="285.0" width="30.0" height="30.0"/>
  114. </bpmndi:BPMNShape>
  115. <bpmndi:BPMNEdge id="edge-16dc6b49-6d4c-4e9b-be9e-d53e8d61bc51" bpmnElement="sid-c904365e-c922-4058-b9aa-525f648242b8">
  116. <di:waypoint x="339.5" y="300.0"/>
  117. <di:waypoint x="385.0" y="300.0"/>
  118. </bpmndi:BPMNEdge>
  119. <bpmndi:BPMNShape id="shape-38e0bc12-a37e-4362-a9c1-9ef4e8fed234" bpmnElement="task_completed">
  120. <dc:Bounds x="710.0" y="165.0" width="30.0" height="30.0"/>
  121. </bpmndi:BPMNShape>
  122. </bpmndi:BPMNPlane>
  123. </bpmndi:BPMNDiagram>
  124. </bpmn:definitions>