| | |
| | | <?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="dispatch" name="任务派工" isExecutable="true"> |
| | | <process id="dispatch" name="试切" isExecutable="true"> |
| | | <startEvent id="start" name="开始"/> |
| | | <sequenceFlow id="sid-c1619263-d1ff-4106-9315-f9ab9a3bee71" sourceRef="start" targetRef="teamLeaderTask"/> |
| | | <userTask id="teamLeaderTask" name="专业组长" flowable:assignee="${teamLeader}"/> |
| | | <userTask id="programmingTask" name="编制" flowable:assignee="${assignee}"/> |
| | | <userTask id="check" name="校对" flowable:assignee="${assignee}"/> |
| | | <userTask id="approveTask" name="高师审批" flowable:assignee="${assignee}"/> |
| | | <endEvent id="approveEnd" name="审批完成"/> |
| | | <userTask id="teamLeaderTask" name="任务分派" flowable:assignee="${assignee}"> |
| | | <documentation>专业组长任务分派</documentation> |
| | | </userTask> |
| | | <userTask id="programmingTask" name="数控程序编写" flowable:assignee="${assignee}"/> |
| | | <userTask id="check" name="数控程序校对" flowable:assignee="${assignee}"/> |
| | | <userTask id="approveTask" name="数控程序审批" flowable:assignee="${assignee}"> |
| | | <documentation>高师数控程序审批</documentation> |
| | | </userTask> |
| | | <endEvent id="approveEnd" name="审批完成"> |
| | | <extensionElements> |
| | | <flowable:executionListener expression="${dispatchFinishListener.handle(execution)}" event="end"/> |
| | | </extensionElements> |
| | | </endEvent> |
| | | <sequenceFlow id="programingToCheck" sourceRef="programmingTask" targetRef="check" name="编制完成给校对"> |
| | | <conditionExpression xsi:type="tFormalExpression">${approve=='Y'}</conditionExpression> |
| | | </sequenceFlow> |
| | |
| | | <sequenceFlow id="sid-c0b195e7-17e5-44bf-8115-8b7126cb3ab3" sourceRef="approveTask" targetRef="approveEnd"> |
| | | <conditionExpression xsi:type="tFormalExpression">${approve=='Y'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <serviceTask id="cureCheckServiceTask" flowable:exclusive="true" name="固化程序检查服务任务" flowable:expression="cureProgramCheckTask.execute(execution)"/> |
| | | <userTask id="confirmIsUseableTask" name="检查程序是否可用" flowable:assignee="${assignee}"/> |
| | | <sequenceFlow id="sid-46ccac64-2d48-4933-88a6-f2941ae131dd" sourceRef="teamLeaderTask" targetRef="programmingTask"> |
| | | <conditionExpression xsi:type="tFormalExpression">${approve=='Y' && hasCuredProgram=='N'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <sequenceFlow id="sid-af92e6ab-bc80-43ed-8b09-1d3ec54cc9e7" sourceRef="teamLeaderTask" targetRef="cureCheckServiceTask"> |
| | | <sequenceFlow id="sid-af92e6ab-bc80-43ed-8b09-1d3ec54cc9e7" sourceRef="teamLeaderTask" targetRef="confirmIsUseableTask"> |
| | | <conditionExpression xsi:type="tFormalExpression">${approve=='Y' && hasCuredProgram=='Y'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <sequenceFlow id="sid-353381d5-35c7-47b0-bf5b-2bafe865ab5e" sourceRef="cureCheckServiceTask" targetRef="confirmIsUseableTask"/> |
| | | <sequenceFlow id="sid-d144dad0-dc94-4a2b-96d6-9d8451b05ec1" sourceRef="confirmIsUseableTask" targetRef="check" name="固化程序可用"> |
| | | <conditionExpression>${approve=='Y'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <sequenceFlow id="sid-d4133565-1a45-4bb6-b603-9b9e4db1cdbb" sourceRef="approveTask" targetRef="check"> |
| | | <conditionExpression>${approve=='N'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <sequenceFlow id="sid-80b50f96-7601-4ba2-8c32-968923170d25" sourceRef="confirmIsUseableTask" targetRef="programmingTask"> |
| | | <sequenceFlow id="sid-80b50f96-7601-4ba2-8c32-968923170d25" sourceRef="confirmIsUseableTask" targetRef="programmingTask" name="不可用"> |
| | | <conditionExpression>${approve=='N'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <endEvent id="sid-59124fa5-62ee-4ba5-8bd9-cafc65aa5fcf" name="组长结束"/> |
| | | <sequenceFlow id="sid-1ef405f8-c119-4225-b41c-fb0aa978e42c" sourceRef="teamLeaderTask" targetRef="exceptionHandleTask"> |
| | | <conditionExpression>${approve=='N'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <sequenceFlow id="sid-b33e5cdc-e56b-4a8f-8956-2a3bb4f7e57a" sourceRef="confirmIsUseableTask" targetRef="teamLeaderTask" name="驳回"> |
| | | <conditionExpression>${approve=='R'}</conditionExpression> |
| | | </sequenceFlow> |
| | | <scriptTask id="exceptionHandleTask" scriptFormat="groovy"> |
| | | <script><![CDATA[ |
| | | execution.setVariable("exception", "1"); |
| | | ]]></script> |
| | | </scriptTask> |
| | | <sequenceFlow id="sid-7f62f3c2-08bf-4007-807d-3403ad831ed5" sourceRef="exceptionHandleTask" targetRef="sid-59124fa5-62ee-4ba5-8bd9-cafc65aa5fcf"/> |
| | | </process> |
| | | <bpmndi:BPMNDiagram id="BPMNDiagram_dispatch"> |
| | | <bpmndi:BPMNPlane bpmnElement="dispatch" id="BPMNPlane_dispatch"> |
| | |
| | | <omgdi:waypoint x="180.0" y="29.749996"/> |
| | | <omgdi:waypoint x="295.0" y="1.0"/> |
| | | </bpmndi:BPMNEdge> |
| | | <bpmndi:BPMNShape id="shape-8455618d-c1b9-4e6a-bca4-de965cc81633" bpmnElement="cureCheckServiceTask"> |
| | | <omgdc:Bounds x="-275.0" y="37.500004" width="65.0" height="39.999996"/> |
| | | </bpmndi:BPMNShape> |
| | | <bpmndi:BPMNShape id="shape-8f7064fc-4838-44cc-bf6d-ca15932a1e2e" bpmnElement="confirmIsUseableTask"> |
| | | <omgdc:Bounds x="-135.0" y="37.5" width="55.0" height="40.0"/> |
| | | </bpmndi:BPMNShape> |
| | |
| | | </bpmndi:BPMNEdge> |
| | | <bpmndi:BPMNEdge id="edge-d8883eca-269a-42cd-b2d4-134da6596afb" bpmnElement="sid-af92e6ab-bc80-43ed-8b09-1d3ec54cc9e7"> |
| | | <omgdi:waypoint x="-227.5" y="-60.000008"/> |
| | | <omgdi:waypoint x="-242.5" y="37.500008"/> |
| | | </bpmndi:BPMNEdge> |
| | | <bpmndi:BPMNEdge id="edge-44016aa6-bf48-4c73-8aaa-4cedf795d68b" bpmnElement="sid-353381d5-35c7-47b0-bf5b-2bafe865ab5e"> |
| | | <omgdi:waypoint x="-210.0" y="57.5"/> |
| | | <omgdi:waypoint x="-135.0" y="57.5"/> |
| | | <omgdi:waypoint x="-121.25" y="37.5"/> |
| | | </bpmndi:BPMNEdge> |
| | | <bpmndi:BPMNEdge id="edge-64e64024-1ffd-4cdf-be8f-4c5e4911a5bb" bpmnElement="sid-d144dad0-dc94-4a2b-96d6-9d8451b05ec1"> |
| | | <omgdi:waypoint x="-80.0" y="47.5"/> |
| | |
| | | <omgdi:waypoint x="-93.75" y="37.5"/> |
| | | <omgdi:waypoint x="-51.25" y="-77.5"/> |
| | | </bpmndi:BPMNEdge> |
| | | <bpmndi:BPMNShape id="shape-d9e76c38-3a8a-476a-af94-90eb350e46e2" bpmnElement="sid-59124fa5-62ee-4ba5-8bd9-cafc65aa5fcf"> |
| | | <omgdc:Bounds x="-325.0" y="22.499998" width="30.0" height="30.0"/> |
| | | </bpmndi:BPMNShape> |
| | | <bpmndi:BPMNEdge id="edge-961779c9-53bb-4d28-b5a6-2e16e2ab1c2f" bpmnElement="sid-1ef405f8-c119-4225-b41c-fb0aa978e42c"> |
| | | <omgdi:waypoint x="-262.5" y="-76.25001"/> |
| | | <omgdi:waypoint x="-258.75" y="-40.0"/> |
| | | </bpmndi:BPMNEdge> |
| | | <bpmndi:BPMNEdge id="edge-d08bab4f-6549-4732-9791-7be8d3fcbbfe" bpmnElement="sid-b33e5cdc-e56b-4a8f-8956-2a3bb4f7e57a"> |
| | | <omgdi:waypoint x="-107.5" y="37.500004"/> |
| | | <omgdi:waypoint x="-210.0" y="-60.000008"/> |
| | | </bpmndi:BPMNEdge> |
| | | <bpmndi:BPMNShape id="shape-99e2affe-de2c-43fb-8ab1-b1e26bb1c905" bpmnElement="exceptionHandleTask"> |
| | | <omgdc:Bounds x="-300.0" y="-40.0" width="55.0" height="45.0"/> |
| | | </bpmndi:BPMNShape> |
| | | <bpmndi:BPMNEdge id="edge-94f8ab21-dbbb-4ea4-9519-51002cbcfe4e" bpmnElement="sid-7f62f3c2-08bf-4007-807d-3403ad831ed5"> |
| | | <omgdi:waypoint x="-300.0" y="-17.5"/> |
| | | <omgdi:waypoint x="-295.0" y="37.5"/> |
| | | </bpmndi:BPMNEdge> |
| | | </bpmndi:BPMNPlane> |
| | | </bpmndi:BPMNDiagram> |
| | | </definitions> |