activiti并行网关执行时每个关联表的变化
2023-12-15 15:50:13
activiti并行网关执行时每个关联表的变化
🔊流程图
📆 通过请假节点
<?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:activiti="http://activiti.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.activiti.org/processdef">
<process id="parallelGateway" name="并行网关" isExecutable="true">
<startEvent id="startEvent1"></startEvent>
<userTask id="student" name="请假" activiti:assignee="admin">
<extensionElements>
<modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
</extensionElements>
</userTask>
<sequenceFlow id="sid-13B085EF-2E80-43D1-BEDF-8950B2A9B783" sourceRef="startEvent1" targetRef="student"></sequenceFlow>
<endEvent id="sid-9AFEE86D-C779-494A-8ACD-D2AC0E96C5AD"></endEvent>
<userTask id="userTask1" name="班长" activiti:assignee="test">
<extensionElements>
<modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
</extensionElements>
</userTask>
<userTask id="userTask2" name="班主任" activiti:assignee="test2">
<extensionElements>
<modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
</extensionElements>
</userTask>
<userTask id="userTask3" name="校长" activiti:assignee="test3">
<extensionElements>
<modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
</extensionElements>
</userTask>
<parallelGateway id="sid-5DDB2499-4CB7-46F5-BD50-455312B93033"></parallelGateway>
<sequenceFlow id="sid-B6BDAB4C-31D7-4C0D-A691-5B1B0BA45CD5" sourceRef="student" targetRef="sid-5DDB2499-4CB7-46F5-BD50-455312B93033"></sequenceFlow>
<parallelGateway id="sid-8B8D887B-14FC-4766-A0AA-558874F3ACD1"></parallelGateway>
<sequenceFlow id="sid-7DFC8B7A-5B14-4B29-BA7A-04A8A796045D" sourceRef="sid-5DDB2499-4CB7-46F5-BD50-455312B93033" targetRef="userTask1"></sequenceFlow>
<sequenceFlow id="sid-DCD4E730-E07A-4233-92B1-20F8902AFEC2" sourceRef="sid-5DDB2499-4CB7-46F5-BD50-455312B93033" targetRef="userTask2"></sequenceFlow>
<sequenceFlow id="sid-9CEADDDB-3F74-41E6-AE39-58026D4C77E8" sourceRef="userTask2" targetRef="sid-8B8D887B-14FC-4766-A0AA-558874F3ACD1"></sequenceFlow>
<sequenceFlow id="sid-68C89AA3-AC62-4F8F-9539-4F3743EAB039" sourceRef="userTask1" targetRef="sid-8B8D887B-14FC-4766-A0AA-558874F3ACD1"></sequenceFlow>
<sequenceFlow id="sid-AA6BAF4E-2895-4B1F-9779-3F8B4B0529D2" sourceRef="sid-8B8D887B-14FC-4766-A0AA-558874F3ACD1" targetRef="userTask3"></sequenceFlow>
<sequenceFlow id="sid-7D9A40CD-A52A-468F-87EB-1F8FB1C1045C" sourceRef="userTask3" targetRef="sid-9AFEE86D-C779-494A-8ACD-D2AC0E96C5AD"></sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_parallelGateway">
<bpmndi:BPMNPlane bpmnElement="parallelGateway" id="BPMNPlane_parallelGateway">
<bpmndi:BPMNShape bpmnElement="startEvent1" id="BPMNShape_startEvent1">
<omgdc:Bounds height="30.000000000000004" width="30.0" x="468.3333161142144" y="16.666666004392862"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="student" id="BPMNShape_student">
<omgdc:Bounds height="80.0" width="100.0" x="433.3333161142144" y="83.33333002196431"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-9AFEE86D-C779-494A-8ACD-D2AC0E96C5AD" id="BPMNShape_sid-9AFEE86D-C779-494A-8ACD-D2AC0E96C5AD">
<omgdc:Bounds height="28.000000000000114" width="28.0" x="469.3333161142144" y="549.9999781449644"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="userTask1" id="BPMNShape_userTask1">
<omgdc:Bounds height="80.0" width="100.0" x="316.6666540834644" y="266.6666560702858"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="userTask2" id="BPMNShape_userTask2">
<omgdc:Bounds height="80.0" width="100.0" x="566.6666441493574" y="266.6666560702858"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="userTask3" id="BPMNShape_userTask3">
<omgdc:Bounds height="80.0" width="100.00000000000011" x="433.3333161142144" y="433.3333161142144"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-5DDB2499-4CB7-46F5-BD50-455312B93033" id="BPMNShape_sid-5DDB2499-4CB7-46F5-BD50-455312B93033">
<omgdc:Bounds height="40.0" width="40.0" x="463.3333161142145" y="216.6666580571072"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="sid-8B8D887B-14FC-4766-A0AA-558874F3ACD1" id="BPMNShape_sid-8B8D887B-14FC-4766-A0AA-558874F3ACD1">
<omgdc:Bounds height="40.0" width="40.0" x="463.3333161142144" y="366.66665209664296"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="sid-13B085EF-2E80-43D1-BEDF-8950B2A9B783" id="BPMNEdge_sid-13B085EF-2E80-43D1-BEDF-8950B2A9B783">
<omgdi:waypoint x="483.3333161142144" y="46.666666004392866"></omgdi:waypoint>
<omgdi:waypoint x="483.3333161142144" y="83.33333002196431"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-DCD4E730-E07A-4233-92B1-20F8902AFEC2" id="BPMNEdge_sid-DCD4E730-E07A-4233-92B1-20F8902AFEC2">
<omgdi:waypoint x="496.30695692247645" y="243.69301724884525"></omgdi:waypoint>
<omgdi:waypoint x="566.6666441493574" y="280.5060535162372"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-9CEADDDB-3F74-41E6-AE39-58026D4C77E8" id="BPMNEdge_sid-9CEADDDB-3F74-41E6-AE39-58026D4C77E8">
<omgdi:waypoint x="566.6666441493574" y="336.6666557722626"></omgdi:waypoint>
<omgdi:waypoint x="495.83331616078056" y="379.1666521432091"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-AA6BAF4E-2895-4B1F-9779-3F8B4B0529D2" id="BPMNEdge_sid-AA6BAF4E-2895-4B1F-9779-3F8B4B0529D2">
<omgdi:waypoint x="483.72242116915095" y="406.27754704170644"></omgdi:waypoint>
<omgdi:waypoint x="483.56542443856506" y="433.3333161142144"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-7D9A40CD-A52A-468F-87EB-1F8FB1C1045C" id="BPMNEdge_sid-7D9A40CD-A52A-468F-87EB-1F8FB1C1045C">
<omgdi:waypoint x="483.3333161142144" y="513.3333161142144"></omgdi:waypoint>
<omgdi:waypoint x="483.3333161142144" y="549.9999781449644"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-68C89AA3-AC62-4F8F-9539-4F3743EAB039" id="BPMNEdge_sid-68C89AA3-AC62-4F8F-9539-4F3743EAB039">
<omgdi:waypoint x="416.6666540834644" y="340.9523700154021"></omgdi:waypoint>
<omgdi:waypoint x="471.4689092866094" y="378.531058924248"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-7DFC8B7A-5B14-4B29-BA7A-04A8A796045D" id="BPMNEdge_sid-7DFC8B7A-5B14-4B29-BA7A-04A8A796045D">
<omgdi:waypoint x="471.2797447369608" y="244.61308667985355"></omgdi:waypoint>
<omgdi:waypoint x="416.6666540834644" y="277.00804977025376"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="sid-B6BDAB4C-31D7-4C0D-A691-5B1B0BA45CD5" id="BPMNEdge_sid-B6BDAB4C-31D7-4C0D-A691-5B1B0BA45CD5">
<omgdi:waypoint x="483.5090115835925" y="163.33333002196431"></omgdi:waypoint>
<omgdi:waypoint x="483.74508081597196" y="217.07842275886466"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
📕通过一个并行节点
/**
* 完成任务
*/
@Test
public void completeTask() {
taskService.complete("137504");
}
🖥?再通过一个并行节点
/**
* 完成任务
*/
@Test
public void completeTask() {
taskService.complete("137507");
}
🔖再通过校长任务
/**
* 完成任务
*/
@Test
public void completeTask() {
taskService.complete("142503");
}
🖊?最后总结
🖲要熟练掌握技巧,一定多多坚持练习:骐骥一跃,不能十步;驽马十驾,功在不舍。
文章来源:https://blog.csdn.net/itScholar001/article/details/135016090
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!