yangys
2025-09-11 0975559314f1d4ee44a03e87c2b369f1d3e0ff8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="UTF-8"?>
<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">
  <process id="program-replace" name="替换" isExecutable="true">
    <startEvent id="sid-0e059345-0bf2-4c18-af59-ee7aeef674c7"/>
    <endEvent id="replaceApproveEnd" name="通过结束">
      <extensionElements>
        <flowable:executionListener expression="${replaceFinishListener.handle(execution)}" event="end"/>
      </extensionElements>
    </endEvent>
    <userTask id="repalceCheckTask" name="数控程序校对" flowable:assignee="${assignee}"/>
    <userTask id="replaceProgrammingTask" name="数控程序编写" flowable:assignee="${assignee}"/>
    <userTask id="replaceApprove" name="程序替换审核" flowable:assignee="${assignee}"/>
    <sequenceFlow id="sid-bf9c31fa-f8c4-4ff5-b4d9-ce3cc0bd1fa2" sourceRef="replaceApprove" targetRef="replaceApproveEnd">
      <conditionExpression>${approve=='Y'}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-318e94d8-f335-428a-b2a1-81cb2e59993f" sourceRef="replaceProgrammingTask" targetRef="repalceCheckTask">
      <conditionExpression>${approve=='Y'}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-ffcf7c0a-7775-45fc-8e0a-368d70522633" sourceRef="repalceCheckTask" targetRef="replaceApprove">
      <conditionExpression>${approve=='Y'}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-c4180f0a-6120-4504-96e3-28ddd7975c15" sourceRef="replaceApprove" targetRef="replaceProgrammingTask">
      <conditionExpression>${approve=='N'}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-b78c5f58-0487-4cda-8ed8-0ea581b9e934" sourceRef="repalceCheckTask" targetRef="replaceProgrammingTask">
      <conditionExpression>${approve=='N'}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="sid-36e913be-1be9-49d3-a8a3-51aadd0e945c" sourceRef="sid-0e059345-0bf2-4c18-af59-ee7aeef674c7" targetRef="repalceCheckTask"/>
    <endEvent id="sid-75a8afef-26b1-4dce-9ad9-4a1d4efff08c" name="退出结束"/>
    <sequenceFlow id="sid-c86f3a13-5e74-423a-b80d-19ef482eb9e1" sourceRef="replaceProgrammingTask" targetRef="exceptionHandleTask">
      <conditionExpression>${approve=='N'}</conditionExpression>
    </sequenceFlow>
    <scriptTask id="exceptionHandleTask" name="异常设置任务" scriptFormat="groovy">
      <script><![CDATA[
          execution.setVariable("exception", "1");
        ]]></script>
    </scriptTask>
    <sequenceFlow id="sid-bb78fe61-b286-4147-ae83-9e95f8d39afe" sourceRef="exceptionHandleTask" targetRef="sid-75a8afef-26b1-4dce-9ad9-4a1d4efff08c"/>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_program-replace">
    <bpmndi:BPMNPlane bpmnElement="program-replace" id="BPMNPlane_program-replace">
      <bpmndi:BPMNShape id="shape-8139f243-404a-4d0c-b900-fb128511ff41" bpmnElement="sid-0e059345-0bf2-4c18-af59-ee7aeef674c7">
        <omgdc:Bounds x="-250.0" y="-70.0" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-ad73bcd6-a2b7-41a6-a773-09b8a6e6eb72" bpmnElement="replaceApproveEnd">
        <omgdc:Bounds x="205.0" y="-70.0" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-69fea4e5-2bbd-43d3-9bbb-53342e3d898d" bpmnElement="repalceCheckTask">
        <omgdc:Bounds x="-137.5" y="-105.0" width="50.000004" height="35.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-9d186c35-7e72-4cff-99f6-88352cb15b55" bpmnElement="replaceProgrammingTask">
        <omgdc:Bounds x="-145.0" y="2.5" width="45.0" height="35.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="shape-bd196b3d-c1ab-4167-a264-7cfc2cf6ec9e" bpmnElement="replaceApprove">
        <omgdc:Bounds x="60.0" y="-97.5" width="55.0" height="45.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="edge-4f9697eb-c584-4ac0-823c-fc168a8e3ba4" bpmnElement="sid-bf9c31fa-f8c4-4ff5-b4d9-ce3cc0bd1fa2">
        <omgdi:waypoint x="115.0" y="-75.0"/>
        <omgdi:waypoint x="205.0" y="-55.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-a8b88d46-e63b-4e07-a925-73611a824a50" bpmnElement="sid-318e94d8-f335-428a-b2a1-81cb2e59993f">
        <omgdi:waypoint x="-100.0" y="11.25"/>
        <omgdi:waypoint x="-112.5" y="-70.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-6b3872c2-4101-4b9e-9d27-98ee21a6b1b5" bpmnElement="sid-ffcf7c0a-7775-45fc-8e0a-368d70522633">
        <omgdi:waypoint x="-87.5" y="-96.25"/>
        <omgdi:waypoint x="60.0" y="-86.25"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-701c4cc7-5412-4218-9697-cd6f20f6d281" bpmnElement="sid-c4180f0a-6120-4504-96e3-28ddd7975c15">
        <omgdi:waypoint x="60.0" y="-63.75"/>
        <omgdi:waypoint x="-100.0" y="20.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-7aa67fcc-b2d7-4419-83e5-9f19eb19dfa5" bpmnElement="sid-b78c5f58-0487-4cda-8ed8-0ea581b9e934">
        <omgdi:waypoint x="-125.0" y="-70.0"/>
        <omgdi:waypoint x="-122.5" y="2.5"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="edge-e186ed3c-77ce-486e-af9b-8616c97278bb" bpmnElement="sid-36e913be-1be9-49d3-a8a3-51aadd0e945c">
        <omgdi:waypoint x="-220.0" y="-62.5"/>
        <omgdi:waypoint x="-137.5" y="-96.25"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="shape-3f281eec-371b-43b4-8b6e-b1985a98b3c6" bpmnElement="sid-75a8afef-26b1-4dce-9ad9-4a1d4efff08c">
        <omgdc:Bounds x="85.0" y="50.0" width="30.0" height="30.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="edge-57d6332c-3cbf-48e6-ac07-a81e31a72155" bpmnElement="sid-c86f3a13-5e74-423a-b80d-19ef482eb9e1">
        <omgdi:waypoint x="-100.0" y="28.75"/>
        <omgdi:waypoint x="-60.0" y="50.0"/>
        <omgdi:waypoint x="-35.0" y="56.25"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="shape-54d1b102-8869-4675-93a6-2cb479d0dd4a" bpmnElement="exceptionHandleTask">
        <omgdc:Bounds x="-35.0" y="22.5" width="55.0" height="45.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="edge-6e56e84b-e2e7-418d-ae90-e4117c63938f" bpmnElement="sid-bb78fe61-b286-4147-ae83-9e95f8d39afe">
        <omgdi:waypoint x="20.0" y="56.25"/>
        <omgdi:waypoint x="85.0" y="57.5"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>