From 3907579a69079b5ee462d17799e3995d9cd77fd4 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 17 九月 2025 21:54:38 +0800
Subject: [PATCH] 延时问题
---
blade-service/blade-mdm/src/main/resources/processesbpmn/dispatch.bpmn20.xml | 175 +++++++++++++++++++++++++++++++++++++---------------------
1 files changed, 111 insertions(+), 64 deletions(-)
diff --git a/blade-service/blade-mdm/src/main/resources/processesbpmn/dispatch.bpmn20.xml b/blade-service/blade-mdm/src/main/resources/processesbpmn/dispatch.bpmn20.xml
index 549a53d..e8891e2 100644
--- a/blade-service/blade-mdm/src/main/resources/processesbpmn/dispatch.bpmn20.xml
+++ b/blade-service/blade-mdm/src/main/resources/processesbpmn/dispatch.bpmn20.xml
@@ -1,37 +1,67 @@
<?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="${programmer}"/>
- <sequenceFlow id="sid-ac678e85-9f7b-4e8d-903f-2591ea7721ab" sourceRef="teamLeaderTask" targetRef="programmingTask"/>
- <userTask id="check" name="鏍″" flowable:assignee="${checker}"/>
- <sequenceFlow id="sid-6c33a84d-d03e-47f6-87c1-8e676b25e572" sourceRef="programmingTask" targetRef="programGateway"/>
- <userTask id="approveTask" name="楂樺笀瀹℃壒" flowable:assignee="${senior}"/>
- <sequenceFlow id="toCheckApproveGateway" sourceRef="check" targetRef="checkApproveGateway" name="鏍″瀹℃壒鍒ゆ柇缃戝叧"/>
- <endEvent id="approveEnd" name="瀹℃壒瀹屾垚"/>
- <sequenceFlow id="sid-1a414739-a80f-4436-8d7a-e7b65fae8233" sourceRef="approveTask" targetRef="seriorApproveGateway"/>
- <exclusiveGateway id="programGateway" name="缂栧埗瀹屾垚鍒ゆ柇缃戝叧"/>
- <sequenceFlow id="programingToCheck" sourceRef="programGateway" targetRef="check" 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="programingBackToLeader" sourceRef="programGateway" targetRef="teamLeaderTask" name="缂栧埗椹冲洖">
+ <sequenceFlow id="programingBackToLeader" sourceRef="programmingTask" targetRef="teamLeaderTask" name="缂栧埗椹冲洖">
<conditionExpression xsi:type="tFormalExpression">${approve=='N'}</conditionExpression>
</sequenceFlow>
- <exclusiveGateway id="checkApproveGateway" name="鏍″瀹℃壒鍒ゆ柇缃戝叧"/>
- <sequenceFlow id="flowCheckToPrograming" sourceRef="checkApproveGateway" targetRef="programmingTask" name="flow鏍″椹冲洖鍒扮紪鍒�">
+ <sequenceFlow id="flowCheckToPrograming" sourceRef="check" targetRef="programmingTask" name="flow鏍″椹冲洖鍒扮紪鍒�">
<conditionExpression xsi:type="tFormalExpression">${approve=='N'}</conditionExpression>
</sequenceFlow>
- <sequenceFlow id="flowToSeriorTask" sourceRef="checkApproveGateway" targetRef="approveTask" name="鍒伴珮甯堝鎵�">
+ <sequenceFlow id="flowToSeriorTask" sourceRef="check" targetRef="approveTask" name="鍒伴珮甯堝鎵�">
<conditionExpression xsi:type="tFormalExpression">${approve=='Y'}</conditionExpression>
</sequenceFlow>
- <exclusiveGateway id="seriorApproveGateway" name="楂樺笀鍒ゆ柇缃戝叧"/>
- <sequenceFlow id="sid-c0b195e7-17e5-44bf-8115-8b7126cb3ab3" sourceRef="seriorApproveGateway" targetRef="approveEnd">
+ <sequenceFlow id="sid-c0b195e7-17e5-44bf-8115-8b7126cb3ab3" sourceRef="approveTask" targetRef="approveEnd">
<conditionExpression xsi:type="tFormalExpression">${approve=='Y'}</conditionExpression>
</sequenceFlow>
- <sequenceFlow id="sid-03430665-d042-46b3-ab65-5ecde104ce8e" sourceRef="seriorApproveGateway" targetRef="check">
- <conditionExpression xsi:type="tFormalExpression"/>
+ <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="confirmIsUseableTask">
+ <conditionExpression xsi:type="tFormalExpression">${approve=='Y' && hasCuredProgram=='Y'}</conditionExpression>
+ </sequenceFlow>
+ <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="programmingTask">
+ <conditionExpression>${approve=='N'}</conditionExpression>
+ </sequenceFlow>
+ <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"/>
+ <sequenceFlow id="programmerEndLine" sourceRef="programmingTask" targetRef="exceptionHandleTask" name="宸ヨ壓鍛樼粨鏉�">
+ <conditionExpression>${approve=='E'}</conditionExpression>
</sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_dispatch">
@@ -41,71 +71,88 @@
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-5783eb04-78a8-4bde-b8bb-c12d28f07609" bpmnElement="sid-c1619263-d1ff-4106-9315-f9ab9a3bee71">
<omgdi:waypoint x="-290.0" y="-92.5"/>
- <omgdi:waypoint x="-240.0" y="-92.5"/>
+ <omgdi:waypoint x="-262.5" y="-92.50001"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-720b1ec1-043e-4a8a-bc4d-c50cf01678d7" bpmnElement="teamLeaderTask">
- <omgdc:Bounds x="-240.0" y="-125.0" width="70.0" height="65.0"/>
+ <omgdc:Bounds x="-262.5" y="-125.00001" width="70.0" height="65.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="shape-b1baea86-1882-4c5c-886f-44e3d9be3746" bpmnElement="programmingTask">
- <omgdc:Bounds x="-115.0" y="-122.5" width="85.0" height="60.0"/>
+ <omgdc:Bounds x="-72.5" y="-137.5" width="85.0" height="60.0"/>
</bpmndi:BPMNShape>
- <bpmndi:BPMNEdge id="edge-0079d499-1c0d-4745-9886-40df39794833" bpmnElement="sid-ac678e85-9f7b-4e8d-903f-2591ea7721ab">
- <omgdi:waypoint x="-170.0" y="-92.5"/>
- <omgdi:waypoint x="-115.0" y="-92.5"/>
- </bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-9237838e-5de2-4db7-8d46-3f4a69de7e6e" bpmnElement="check">
- <omgdc:Bounds x="85.0" y="-120.0" width="60.0" height="55.0"/>
+ <omgdc:Bounds x="130.0" y="-135.0" width="60.0" height="55.0"/>
</bpmndi:BPMNShape>
- <bpmndi:BPMNEdge id="edge-72007fd8-6ed8-402f-8bbc-81bd6c856fa7" bpmnElement="sid-6c33a84d-d03e-47f6-87c1-8e676b25e572">
- <omgdi:waypoint x="-30.0" y="-77.5"/>
- <omgdi:waypoint x="-30.0" y="-15.0"/>
- </bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-a42e90ff-9c82-4d5b-8f5b-0804754e89a6" bpmnElement="approveTask">
- <omgdc:Bounds x="130.0" y="1.0" width="50.0" height="45.0"/>
+ <omgdc:Bounds x="130.0" y="-4.0" width="50.0" height="45.0"/>
</bpmndi:BPMNShape>
- <bpmndi:BPMNEdge id="edge-7fe1281a-3bbf-4308-90a5-cbf70aa019dd" bpmnElement="toCheckApproveGateway">
- <omgdi:waypoint x="145.0" y="-92.5"/>
- <omgdi:waypoint x="240.0" y="-30.0"/>
- </bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="shape-f14acaf6-9747-4d52-87a1-d4c5b8f3d166" bpmnElement="approveEnd">
- <omgdc:Bounds x="245.0" y="51.0" width="30.0" height="30.0"/>
- </bpmndi:BPMNShape>
- <bpmndi:BPMNEdge id="edge-9cb8c108-2b94-4e39-b7ed-93ff0d86fe73" bpmnElement="sid-1a414739-a80f-4436-8d7a-e7b65fae8233">
- <omgdi:waypoint x="130.0" y="34.75"/>
- <omgdi:waypoint x="55.0" y="70.0"/>
- </bpmndi:BPMNEdge>
- <bpmndi:BPMNShape id="shape-b505d942-4475-416a-aec6-c02164e6ee05" bpmnElement="programGateway">
- <omgdc:Bounds x="-50.0" y="-15.0" width="40.0" height="40.0"/>
+ <omgdc:Bounds x="295.0" y="-6.5" width="30.0" height="30.0"/>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-6f05f47f-7804-4dd0-b6d2-e435b9efaa3c" bpmnElement="programingToCheck">
- <omgdi:waypoint x="-10.0" y="5.0"/>
- <omgdi:waypoint x="85.0" y="-78.75"/>
+ <omgdi:waypoint x="12.5" y="-92.5"/>
+ <omgdi:waypoint x="130.00002" y="-107.49999"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="edge-b38a8021-a54d-4671-aaf2-408bdbbbd374" bpmnElement="programingBackToLeader">
- <omgdi:waypoint x="-50.0" y="5.0"/>
- <omgdi:waypoint x="-170.0" y="-76.25"/>
+ <omgdi:waypoint x="-72.5" y="-92.5"/>
+ <omgdi:waypoint x="-192.5" y="-76.25001"/>
</bpmndi:BPMNEdge>
- <bpmndi:BPMNShape id="shape-b113f604-a178-455b-9518-9f4953322948" bpmnElement="checkApproveGateway">
- <omgdc:Bounds x="220.0" y="-30.0" width="40.0" height="40.0"/>
- </bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-c2232174-4a73-4c39-ac85-fc3854f0f18c" bpmnElement="flowCheckToPrograming">
- <omgdi:waypoint x="220.0" y="-10.0"/>
- <omgdi:waypoint x="-30.0" y="-92.5"/>
+ <omgdi:waypoint x="130.0" y="-121.25"/>
+ <omgdi:waypoint x="12.5" y="-107.5"/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="edge-d05b5f9f-9108-4a41-9e48-4db1e1b1e325" bpmnElement="flowToSeriorTask">
- <omgdi:waypoint x="240.0" y="10.0"/>
- <omgdi:waypoint x="180.0" y="12.25"/>
+ <omgdi:waypoint x="190.0" y="-93.75"/>
+ <omgdi:waypoint x="180.0" y="7.25"/>
</bpmndi:BPMNEdge>
- <bpmndi:BPMNShape id="shape-6be62567-0538-4a4f-b3ce-e819d7182666" bpmnElement="seriorApproveGateway">
- <omgdc:Bounds x="35.0" y="70.0" width="40.0" height="40.0"/>
- </bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="edge-715efa53-6c03-407b-87ec-640f99c481a0" bpmnElement="sid-c0b195e7-17e5-44bf-8115-8b7126cb3ab3">
- <omgdi:waypoint x="75.0" y="90.0"/>
- <omgdi:waypoint x="245.0" y="73.5"/>
+ <omgdi:waypoint x="180.0" y="29.749996"/>
+ <omgdi:waypoint x="295.0" y="1.0"/>
</bpmndi:BPMNEdge>
- <bpmndi:BPMNEdge id="edge-782277fd-866f-44d5-9046-af7c34c4b85c" bpmnElement="sid-03430665-d042-46b3-ab65-5ecde104ce8e">
- <omgdi:waypoint x="35.0" y="90.0"/>
- <omgdi:waypoint x="100.0" y="-65.0"/>
+ <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 id="edge-0408fc3c-c133-40e3-9006-c315b12e9790" bpmnElement="sid-46ccac64-2d48-4933-88a6-f2941ae131dd">
+ <omgdi:waypoint x="-192.5" y="-92.500015"/>
+ <omgdi:waypoint x="-132.5" y="-100.0"/>
+ <omgdi:waypoint x="-72.49999" y="-107.50001"/>
+ </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="-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="145.0" y="-80.00001"/>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="edge-7a5135fe-5eb1-425c-b920-3e2b5bf18454" bpmnElement="sid-d4133565-1a45-4bb6-b603-9b9e4db1cdbb">
+ <omgdi:waypoint x="167.5" y="-4.0"/>
+ <omgdi:waypoint x="-8.75" y="-77.5"/>
+ </bpmndi:BPMNEdge>
+ <bpmndi:BPMNEdge id="edge-223da197-47f2-44ef-847e-40d1fae1009b" bpmnElement="sid-80b50f96-7601-4ba2-8c32-968923170d25">
+ <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:BPMNEdge id="edge-a96e2c79-7b1b-4eef-9779-c6398a84f2ad" bpmnElement="programmerEndLine">
+ <omgdi:waypoint x="-72.5" y="-92.5"/>
+ <omgdi:waypoint x="-245.0" y="-28.75"/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
--
Gitblit v1.9.3