Skip to content

Commit

Permalink
Merge pull request #622 from bcgov/SRS-263
Browse files Browse the repository at this point in the history
added "async after" to save workflow state
  • Loading branch information
nikhila-aot authored Feb 16, 2024
2 parents f18c238 + 3ef56c3 commit 3d036e9
Show file tree
Hide file tree
Showing 8 changed files with 2,172 additions and 2,172 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<bpmn:flowNodeRef>Gateway_1w01edb</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:callActivity id="Activity_1gjzpac" name="Send Decision Email" calledElement="common-email-workflow">
<bpmn:callActivity id="Activity_1gjzpac" name="Send Decision Email" camunda:asyncBefore="true" calledElement="common-email-workflow">
<bpmn:extensionElements>
<camunda:in variables="all" />
<camunda:inputOutput>
Expand Down Expand Up @@ -536,7 +536,7 @@ execution.setVariable('requestType', 'SRCR');</camunda:script>
<bpmn:outgoing>Flow_0usnr75</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:sequenceFlow id="Flow_0ok0leq" sourceRef="Gateway_0dafbzo" targetRef="Gateway_102i3iq" />
<bpmn:parallelGateway id="Gateway_0dafbzo">
<bpmn:parallelGateway id="Gateway_0dafbzo" camunda:asyncAfter="true">
<bpmn:incoming>Flow_0h34vew</bpmn:incoming>
<bpmn:outgoing>Flow_0ok0leq</bpmn:outgoing>
<bpmn:outgoing>Flow_1s0g73f</bpmn:outgoing>
Expand All @@ -547,14 +547,14 @@ execution.setVariable('requestType', 'SRCR');</camunda:script>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0usnr75" sourceRef="Activity_1ofb88n" targetRef="Event_045qv4i" />
<bpmn:sequenceFlow id="Flow_1k1fe9x" sourceRef="Gateway_1tmyq93" targetRef="Gateway_0wyokmr" />
<bpmn:parallelGateway id="Gateway_1tmyq93">
<bpmn:parallelGateway id="Gateway_1tmyq93" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1ccbyzk</bpmn:incoming>
<bpmn:outgoing>Flow_1k1fe9x</bpmn:outgoing>
<bpmn:outgoing>Flow_1ul7bba</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:sequenceFlow id="Flow_1ul7bba" sourceRef="Gateway_1tmyq93" targetRef="Activity_1ofb88n" />
<bpmn:sequenceFlow id="Flow_031wsso" sourceRef="Gateway_0uvp3zl" targetRef="Gateway_137ft2z" />
<bpmn:parallelGateway id="Gateway_0uvp3zl">
<bpmn:parallelGateway id="Gateway_0uvp3zl" camunda:asyncAfter="true">
<bpmn:incoming>Flow_0mtd57d</bpmn:incoming>
<bpmn:outgoing>Flow_031wsso</bpmn:outgoing>
<bpmn:outgoing>Flow_1bt2bp2</bpmn:outgoing>
Expand Down Expand Up @@ -683,7 +683,7 @@ execution.setVariable('nirStatus', "Resubmitted");</camunda:script>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0bwxoom" sourceRef="Activity_1n3rj1g" targetRef="Activity_1os7sys" />
<bpmn:sequenceFlow id="Flow_0x0w3ip" sourceRef="Activity_1os7sys" targetRef="Event_0ml6v2t" />
<bpmn:parallelGateway id="Gateway_1awj7az">
<bpmn:parallelGateway id="Gateway_1awj7az" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1oam11w</bpmn:incoming>
<bpmn:outgoing>Flow_1a96k7r</bpmn:outgoing>
<bpmn:outgoing>Flow_1rvfhly</bpmn:outgoing>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ task.execution.setVariable('userRole','Site Information Advisor');</camunda:scri
<bpmn:outgoing>Flow_1oam11w</bpmn:outgoing>
<bpmn:outgoing>Flow_0l71ern</bpmn:outgoing>
</bpmn:userTask>
<bpmn:callActivity id="Activity_1gjzpac" name="Send Decision Email" calledElement="common-email-workflow">
<bpmn:callActivity id="Activity_1gjzpac" name="Send Decision Email" camunda:asyncBefore="true" calledElement="common-email-workflow">
<bpmn:extensionElements>
<camunda:in variables="all" />
<camunda:inputOutput>
Expand Down Expand Up @@ -204,7 +204,7 @@ execution.setVariable('returnedBy', "cssaTeam");</camunda:script>
<bpmn:sequenceFlow id="Flow_1xaizis" sourceRef="Gateway_15uoiyo" targetRef="Activity_0w5t5av" />
<bpmn:sequenceFlow id="Flow_153luo3" sourceRef="Gateway_15uoiyo" targetRef="Activity_1os7sys" />
<bpmn:sequenceFlow id="Flow_04r78pc" sourceRef="Gateway_1pd38qv" targetRef="Activity_1e0i2ru" />
<bpmn:parallelGateway id="Gateway_1pd38qv">
<bpmn:parallelGateway id="Gateway_1pd38qv" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1ua4w6m</bpmn:incoming>
<bpmn:outgoing>Flow_04r78pc</bpmn:outgoing>
<bpmn:outgoing>Flow_1twoj9j</bpmn:outgoing>
Expand Down Expand Up @@ -639,17 +639,17 @@ execution.setVariable('requestType', 'SRCR');</camunda:script>
<camunda:executionListener class="org.camunda.bpm.extension.hooks.listeners.RequestStateListener" event="take" />
</bpmn:extensionElements>
</bpmn:sequenceFlow>
<bpmn:parallelGateway id="Gateway_0n1oykh">
<bpmn:parallelGateway id="Gateway_0n1oykh" camunda:asyncAfter="true">
<bpmn:incoming>Flow_0wzucup</bpmn:incoming>
<bpmn:outgoing>Flow_0wuyk5q</bpmn:outgoing>
<bpmn:outgoing>Flow_0o1fhdi</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:parallelGateway id="Gateway_01ys7kk">
<bpmn:parallelGateway id="Gateway_01ys7kk" camunda:asyncAfter="true">
<bpmn:incoming>Flow_0jq9w2c</bpmn:incoming>
<bpmn:outgoing>Flow_0ojaeu2</bpmn:outgoing>
<bpmn:outgoing>Flow_0s3yccc</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:parallelGateway id="Gateway_1bl74qu">
<bpmn:parallelGateway id="Gateway_1bl74qu" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1j4ubaw</bpmn:incoming>
<bpmn:outgoing>Flow_17jc772</bpmn:outgoing>
<bpmn:outgoing>Flow_03ti4c1</bpmn:outgoing>
Expand All @@ -664,7 +664,7 @@ execution.setVariable('requestType', 'SRCR');</camunda:script>
<bpmn:outgoing>Flow_115hro3</bpmn:outgoing>
<bpmn:outgoing>Flow_1tvwlrp</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:task id="Activity_1n3rj1g" name="Update Application">
<bpmn:task id="Activity_1n3rj1g" name="Update Application" camunda:asyncAfter="true">
<bpmn:extensionElements>
<camunda:executionListener class="org.camunda.bpm.extension.hooks.listeners.ApplicationStateListener" event="end" />
<camunda:executionListener class="org.camunda.bpm.extension.hooks.listeners.BPMFormDataPipelineListener" event="start" />
Expand Down Expand Up @@ -713,7 +713,7 @@ system.out.println (" here " + execution.getVariable('riskclassification'));</bp
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0bwxoom" sourceRef="Activity_1n3rj1g" targetRef="Activity_1os7sys" />
<bpmn:sequenceFlow id="Flow_00msr8t" sourceRef="Activity_040vqyo" targetRef="Activity_07ktr3j" />
<bpmn:parallelGateway id="Gateway_15uoiyo">
<bpmn:parallelGateway id="Gateway_15uoiyo" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1oam11w</bpmn:incoming>
<bpmn:outgoing>Flow_1xaizis</bpmn:outgoing>
<bpmn:outgoing>Flow_153luo3</bpmn:outgoing>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ task.execution.setVariable('userRole','Site Information Advisor');</camunda:scri
<bpmn:incoming>Flow_05t61qf</bpmn:incoming>
<bpmn:outgoing>Flow_05135h6</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:exclusiveGateway id="Gateway_1txthk0" name="Action Taken">
<bpmn:exclusiveGateway id="Gateway_1txthk0" name="Action Taken" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1k5fi3f</bpmn:incoming>
<bpmn:outgoing>Flow_05t61qf</bpmn:outgoing>
<bpmn:outgoing>Flow_1lfvq5z</bpmn:outgoing>
Expand All @@ -197,7 +197,7 @@ task.execution.setVariable('userRole','Site Information Advisor');</camunda:scri
<bpmn:endEvent id="Event_1jftbqf" name="End Flow">
<bpmn:incoming>Flow_05135h6</bpmn:incoming>
</bpmn:endEvent>
<bpmn:exclusiveGateway id="Gateway_0ojnh7a">
<bpmn:exclusiveGateway id="Gateway_0ojnh7a" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1vu5vy0</bpmn:incoming>
<bpmn:outgoing>Flow_0q4y5zz</bpmn:outgoing>
<bpmn:outgoing>Flow_1yl0zu1</bpmn:outgoing>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1rb8wsa" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.11.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0">
<bpmn:definitions xmlns:bpmn="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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1rb8wsa" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.0.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0">
<bpmn:collaboration id="Collaboration_14e80c3">
<bpmn:participant id="Participant_1569q03" name="SIR Workflow 1.0" processRef="sir-workflow-v1" />
</bpmn:collaboration>
Expand Down Expand Up @@ -70,7 +70,7 @@ execution.setVariable('name',firstname);
<bpmn:startEvent id="Event_02fettt" name="Submit Form">
<bpmn:outgoing>Flow_1la2yud</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Activity_06nypz0" name="Review SIR Form" camunda:candidateGroups="formsflow/formsflow-reviewer/site-information-advisor">
<bpmn:userTask id="Activity_06nypz0" name="Review SIR Form" camunda:asyncAfter="true" camunda:candidateGroups="formsflow/formsflow-reviewer/site-information-advisor">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="action" label="Action" type="string" />
Expand Down Expand Up @@ -183,6 +183,73 @@ system.out.println ("Reviewed by SDM");</bpmn:script>
<dc:Bounds x="190" y="80" width="1085" height="330" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_03fx6t9_di" bpmnElement="Flow_03fx6t9">
<di:waypoint x="940" y="750" />
<di:waypoint x="1002" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1d66let_di" bpmnElement="Flow_1d66let">
<di:waypoint x="370" y="750" />
<di:waypoint x="510" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0x1z3oy_di" bpmnElement="Flow_0x1z3oy">
<di:waypoint x="610" y="750" />
<di:waypoint x="700" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1e1420i_di" bpmnElement="Flow_1e1420i">
<di:waypoint x="320" y="580" />
<di:waypoint x="320" y="710" />
<bpmndi:BPMNLabel>
<dc:Bounds x="258" y="648" width="45" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_04l5mhw_di" bpmnElement="Flow_04l5mhw">
<di:waypoint x="800" y="750" />
<di:waypoint x="840" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0c55q6w_di" bpmnElement="Flow_0c55q6w">
<di:waypoint x="570" y="620" />
<di:waypoint x="710" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_00vwzxv_di" bpmnElement="Flow_00vwzxv">
<di:waypoint x="810" y="620" />
<di:waypoint x="912" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_036aw17_di" bpmnElement="Flow_036aw17">
<di:waypoint x="350" y="580" />
<di:waypoint x="350" y="620" />
<di:waypoint x="470" y="620" />
<bpmndi:BPMNLabel>
<dc:Bounds x="378" y="603" width="44" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ua4w6m_di" bpmnElement="Flow_1ua4w6m">
<di:waypoint x="370" y="540" />
<di:waypoint x="640" y="540" />
<di:waypoint x="640" y="220" />
<bpmndi:BPMNLabel>
<dc:Bounds x="642" y="313" width="48" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_07ndmfw_di" bpmnElement="Flow_07ndmfw">
<di:waypoint x="590" y="160" />
<di:waypoint x="320" y="160" />
<di:waypoint x="320" y="242" />
<bpmndi:BPMNLabel>
<dc:Bounds x="425" y="126" width="62" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_180n8hx" bpmnElement="Flow_1la2yud">
<di:waypoint x="250" y="158" />
<di:waypoint x="250" y="282" />
<di:waypoint x="270" y="282" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0unffch_di" bpmnElement="Flow_0unffch">
<di:waypoint x="320" y="322" />
<di:waypoint x="320" y="500" />
<bpmndi:BPMNLabel>
<dc:Bounds x="293" y="384" width="76" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="BPMNShape_0zk5qh7" bpmnElement="Activity_1ozfgid">
<dc:Bounds x="270" y="242" width="100" height="80" />
<bpmndi:BPMNLabel />
Expand Down Expand Up @@ -234,73 +301,6 @@ system.out.println ("Reviewed by SDM");</bpmn:script>
<dc:Bounds x="1010" y="775" width="20" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0unffch_di" bpmnElement="Flow_0unffch">
<di:waypoint x="320" y="322" />
<di:waypoint x="320" y="500" />
<bpmndi:BPMNLabel>
<dc:Bounds x="293" y="384" width="76" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_180n8hx" bpmnElement="Flow_1la2yud">
<di:waypoint x="250" y="158" />
<di:waypoint x="250" y="282" />
<di:waypoint x="270" y="282" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_07ndmfw_di" bpmnElement="Flow_07ndmfw">
<di:waypoint x="590" y="160" />
<di:waypoint x="320" y="160" />
<di:waypoint x="320" y="242" />
<bpmndi:BPMNLabel>
<dc:Bounds x="425" y="126" width="62" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ua4w6m_di" bpmnElement="Flow_1ua4w6m">
<di:waypoint x="370" y="540" />
<di:waypoint x="640" y="540" />
<di:waypoint x="640" y="220" />
<bpmndi:BPMNLabel>
<dc:Bounds x="642" y="313" width="48" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_036aw17_di" bpmnElement="Flow_036aw17">
<di:waypoint x="350" y="580" />
<di:waypoint x="350" y="620" />
<di:waypoint x="470" y="620" />
<bpmndi:BPMNLabel>
<dc:Bounds x="378" y="603" width="44" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_00vwzxv_di" bpmnElement="Flow_00vwzxv">
<di:waypoint x="810" y="620" />
<di:waypoint x="912" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0c55q6w_di" bpmnElement="Flow_0c55q6w">
<di:waypoint x="570" y="620" />
<di:waypoint x="710" y="620" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_04l5mhw_di" bpmnElement="Flow_04l5mhw">
<di:waypoint x="800" y="750" />
<di:waypoint x="840" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1e1420i_di" bpmnElement="Flow_1e1420i">
<di:waypoint x="320" y="580" />
<di:waypoint x="320" y="710" />
<bpmndi:BPMNLabel>
<dc:Bounds x="258" y="648" width="45" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0x1z3oy_di" bpmnElement="Flow_0x1z3oy">
<di:waypoint x="610" y="750" />
<di:waypoint x="700" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1d66let_di" bpmnElement="Flow_1d66let">
<di:waypoint x="370" y="750" />
<di:waypoint x="510" y="750" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03fx6t9_di" bpmnElement="Flow_03fx6t9">
<di:waypoint x="940" y="750" />
<di:waypoint x="1002" y="750" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ task.execution.setVariable('userRole','CSSA Team');</camunda:script>
<bpmn:incoming>Flow_1qaodt0</bpmn:incoming>
<bpmn:outgoing>Flow_0bo4cc7</bpmn:outgoing>
</bpmn:userTask>
<bpmn:parallelGateway id="Gateway_1og7p31">
<bpmn:parallelGateway id="Gateway_1og7p31" camunda:asyncAfter="true">
<bpmn:incoming>Flow_0bo4cc7</bpmn:incoming>
<bpmn:outgoing>Flow_13r7dqy</bpmn:outgoing>
<bpmn:outgoing>Flow_1d8a6i9</bpmn:outgoing>
Expand Down Expand Up @@ -532,7 +532,7 @@ task.execution.setVariable('userRole','Statutory Decision Maker');</camunda:scri
<bpmn:outgoing>Flow_12ysqpj</bpmn:outgoing>
<bpmn:outgoing>Flow_0ted4eh</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:parallelGateway id="Gateway_1vz1eaa">
<bpmn:parallelGateway id="Gateway_1vz1eaa" camunda:asyncAfter="true">
<bpmn:incoming>Flow_1ifelq5</bpmn:incoming>
<bpmn:outgoing>Flow_0tc1zyz</bpmn:outgoing>
<bpmn:outgoing>Flow_0e8b4d4</bpmn:outgoing>
Expand Down Expand Up @@ -574,7 +574,7 @@ task.execution.setVariable('userRole','Case Worker');</camunda:script>
<bpmn:incoming>Flow_1lj8tdk</bpmn:incoming>
<bpmn:outgoing>Flow_0klnns9</bpmn:outgoing>
</bpmn:userTask>
<bpmn:parallelGateway id="Gateway_1q4ox6z">
<bpmn:parallelGateway id="Gateway_1q4ox6z" camunda:asyncAfter="true">
<bpmn:incoming>Flow_0klnns9</bpmn:incoming>
<bpmn:outgoing>Flow_1lhwgrf</bpmn:outgoing>
<bpmn:outgoing>Flow_1gnzs70</bpmn:outgoing>
Expand Down Expand Up @@ -623,7 +623,7 @@ task.execution.setVariable('userRole','Site Risk Classification Officer');
<bpmn:incoming>Flow_19r835c</bpmn:incoming>
<bpmn:outgoing>Flow_0njekxy</bpmn:outgoing>
</bpmn:userTask>
<bpmn:parallelGateway id="Gateway_1ih6c9g">
<bpmn:parallelGateway id="Gateway_1ih6c9g" camunda:asyncAfter="true">
<bpmn:incoming>Flow_0njekxy</bpmn:incoming>
<bpmn:outgoing>Flow_1bqktnr</bpmn:outgoing>
<bpmn:outgoing>Flow_1s9sm8u</bpmn:outgoing>
Expand Down
Loading

0 comments on commit 3d036e9

Please sign in to comment.