boundary_event.bpmn 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="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:camunda="http://camunda.org/schema/1.0/bpmn" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  3. <bpmn2:process id="Process_1" name="ttt" isExecutable="true">
  4. <bpmn2:startEvent id="StartEvent_1">
  5. <bpmn2:outgoing>Flow_15zn1tu</bpmn2:outgoing>
  6. </bpmn2:startEvent>
  7. <bpmn2:userTask id="task_request" name="申请">
  8. <bpmn2:extensionElements>
  9. <camunda:formData>
  10. <camunda:formField id="FormField_1grk6p0" label="name" type="string" />
  11. </camunda:formData>
  12. </bpmn2:extensionElements>
  13. <bpmn2:incoming>Flow_15zn1tu</bpmn2:incoming>
  14. <bpmn2:incoming>Flow_0nwaga3</bpmn2:incoming>
  15. <bpmn2:incoming>Flow_0nzbvpg</bpmn2:incoming>
  16. <bpmn2:outgoing>Flow_1rg4oob</bpmn2:outgoing>
  17. <bpmn2:outgoing>Flow_0bhibn0</bpmn2:outgoing>
  18. </bpmn2:userTask>
  19. <bpmn2:sequenceFlow id="Flow_15zn1tu" sourceRef="StartEvent_1" targetRef="task_request" />
  20. <bpmn2:sequenceFlow id="Flow_1rg4oob" sourceRef="task_request" targetRef="task_approve" />
  21. <bpmn2:userTask id="task_approve" name="审核" camunda:formKey="pass">
  22. <bpmn2:extensionElements>
  23. <camunda:formData>
  24. <camunda:formField id="pass" label="pass" type="boolean" defaultValue="false" />
  25. </camunda:formData>
  26. </bpmn2:extensionElements>
  27. <bpmn2:incoming>Flow_1rg4oob</bpmn2:incoming>
  28. <bpmn2:outgoing>Flow_193tusd</bpmn2:outgoing>
  29. </bpmn2:userTask>
  30. <bpmn2:exclusiveGateway id="Gateway_06baw71">
  31. <bpmn2:incoming>Flow_193tusd</bpmn2:incoming>
  32. <bpmn2:outgoing>Flow_0zubkyw</bpmn2:outgoing>
  33. <bpmn2:outgoing>Flow_0nwaga3</bpmn2:outgoing>
  34. </bpmn2:exclusiveGateway>
  35. <bpmn2:sequenceFlow id="Flow_193tusd" sourceRef="task_approve" targetRef="Gateway_06baw71" />
  36. <bpmn2:endEvent id="Event_15877ow">
  37. <bpmn2:incoming>Flow_0zubkyw</bpmn2:incoming>
  38. </bpmn2:endEvent>
  39. <bpmn2:sequenceFlow id="Flow_0zubkyw" sourceRef="Gateway_06baw71" targetRef="Event_15877ow">
  40. <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="JavaScript">pass=true;</bpmn2:conditionExpression>
  41. </bpmn2:sequenceFlow>
  42. <bpmn2:sequenceFlow id="Flow_0nwaga3" sourceRef="Gateway_06baw71" targetRef="task_request">
  43. <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="JavaScript">pass=false;</bpmn2:conditionExpression>
  44. </bpmn2:sequenceFlow>
  45. <bpmn2:sequenceFlow id="Flow_0nzbvpg" sourceRef="Event_catch" targetRef="task_request" />
  46. <bpmn2:sequenceFlow id="Flow_0bhibn0" sourceRef="task_request" targetRef="task_with_draw" />
  47. <bpmn2:userTask id="task_with_draw" name="撤回" camunda:formKey="cancel">
  48. <bpmn2:extensionElements>
  49. <camunda:formData>
  50. <camunda:formField id="withdraw" label="是否撤回" type="boolean" defaultValue="false" />
  51. </camunda:formData>
  52. <camunda:inputOutput>
  53. <camunda:outputParameter name="Output_2mfmjbe">
  54. <camunda:script scriptFormat="JavaScript">{"withdraw":true}</camunda:script>
  55. </camunda:outputParameter>
  56. </camunda:inputOutput>
  57. </bpmn2:extensionElements>
  58. <bpmn2:incoming>Flow_0bhibn0</bpmn2:incoming>
  59. <bpmn2:outgoing>Flow_0tj9nd6</bpmn2:outgoing>
  60. </bpmn2:userTask>
  61. <bpmn2:sequenceFlow id="Flow_0tj9nd6" sourceRef="task_with_draw" targetRef="Event_throw" />
  62. <bpmn2:boundaryEvent id="Event_catch" name="撤回" attachedToRef="task_approve">
  63. <bpmn2:outgoing>Flow_0nzbvpg</bpmn2:outgoing>
  64. <bpmn2:signalEventDefinition id="SignalEventDefinition_111s194" signalRef="Signal_0hhmd7l" />
  65. </bpmn2:boundaryEvent>
  66. <bpmn2:intermediateThrowEvent id="Event_throw">
  67. <bpmn2:incoming>Flow_0tj9nd6</bpmn2:incoming>
  68. <bpmn2:signalEventDefinition id="SignalEventDefinition_1tt7p06" signalRef="Signal_0hhmd7l" />
  69. </bpmn2:intermediateThrowEvent>
  70. </bpmn2:process>
  71. <bpmn2:signal id="Signal_0hhmd7l" name="cancel_sign" />
  72. <bpmndi:BPMNDiagram id="BPMNDiagram_1">
  73. <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
  74. <bpmndi:BPMNEdge id="Flow_0tj9nd6_di" bpmnElement="Flow_0tj9nd6">
  75. <di:waypoint x="500" y="290" />
  76. <di:waypoint x="552" y="290" />
  77. </bpmndi:BPMNEdge>
  78. <bpmndi:BPMNEdge id="Flow_0bhibn0_di" bpmnElement="Flow_0bhibn0">
  79. <di:waypoint x="380" y="190" />
  80. <di:waypoint x="380" y="290" />
  81. <di:waypoint x="400" y="290" />
  82. </bpmndi:BPMNEdge>
  83. <bpmndi:BPMNEdge id="Flow_0nzbvpg_di" bpmnElement="Flow_0nzbvpg">
  84. <di:waypoint x="540" y="208" />
  85. <di:waypoint x="540" y="230" />
  86. <di:waypoint x="400" y="230" />
  87. <di:waypoint x="400" y="190" />
  88. </bpmndi:BPMNEdge>
  89. <bpmndi:BPMNEdge id="Flow_0nwaga3_di" bpmnElement="Flow_0nwaga3">
  90. <di:waypoint x="680" y="125" />
  91. <di:waypoint x="680" y="50" />
  92. <di:waypoint x="380" y="50" />
  93. <di:waypoint x="380" y="110" />
  94. </bpmndi:BPMNEdge>
  95. <bpmndi:BPMNEdge id="Flow_0zubkyw_di" bpmnElement="Flow_0zubkyw">
  96. <di:waypoint x="705" y="150" />
  97. <di:waypoint x="772" y="150" />
  98. </bpmndi:BPMNEdge>
  99. <bpmndi:BPMNEdge id="Flow_193tusd_di" bpmnElement="Flow_193tusd">
  100. <di:waypoint x="590" y="150" />
  101. <di:waypoint x="655" y="150" />
  102. </bpmndi:BPMNEdge>
  103. <bpmndi:BPMNEdge id="Flow_1rg4oob_di" bpmnElement="Flow_1rg4oob">
  104. <di:waypoint x="430" y="150" />
  105. <di:waypoint x="490" y="150" />
  106. </bpmndi:BPMNEdge>
  107. <bpmndi:BPMNEdge id="Flow_15zn1tu_di" bpmnElement="Flow_15zn1tu">
  108. <di:waypoint x="278" y="150" />
  109. <di:waypoint x="330" y="150" />
  110. </bpmndi:BPMNEdge>
  111. <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
  112. <dc:Bounds x="242" y="132" width="36" height="36" />
  113. </bpmndi:BPMNShape>
  114. <bpmndi:BPMNShape id="Activity_09wmdbt_di" bpmnElement="task_request">
  115. <dc:Bounds x="330" y="110" width="100" height="80" />
  116. </bpmndi:BPMNShape>
  117. <bpmndi:BPMNShape id="Activity_0ds6ym0_di" bpmnElement="task_approve">
  118. <dc:Bounds x="490" y="110" width="100" height="80" />
  119. </bpmndi:BPMNShape>
  120. <bpmndi:BPMNShape id="Gateway_06baw71_di" bpmnElement="Gateway_06baw71" isMarkerVisible="true">
  121. <dc:Bounds x="655" y="125" width="50" height="50" />
  122. </bpmndi:BPMNShape>
  123. <bpmndi:BPMNShape id="Event_15877ow_di" bpmnElement="Event_15877ow">
  124. <dc:Bounds x="772" y="132" width="36" height="36" />
  125. </bpmndi:BPMNShape>
  126. <bpmndi:BPMNShape id="Activity_0fonc56_di" bpmnElement="task_with_draw">
  127. <dc:Bounds x="400" y="250" width="100" height="80" />
  128. </bpmndi:BPMNShape>
  129. <bpmndi:BPMNShape id="Event_0mceau4_di" bpmnElement="Event_throw">
  130. <dc:Bounds x="552" y="272" width="36" height="36" />
  131. </bpmndi:BPMNShape>
  132. <bpmndi:BPMNShape id="Event_0s1xb2l_di" bpmnElement="Event_catch">
  133. <dc:Bounds x="522" y="172" width="36" height="36" />
  134. <bpmndi:BPMNLabel>
  135. <dc:Bounds x="529" y="215" width="22" height="14" />
  136. </bpmndi:BPMNLabel>
  137. </bpmndi:BPMNShape>
  138. </bpmndi:BPMNPlane>
  139. </bpmndi:BPMNDiagram>
  140. </bpmn2:definitions>