Skip to content

Commit

Permalink
CIV-14244 LR Email notification Notice of Discontinuance (#1038)
Browse files Browse the repository at this point in the history
* CIV-14244 added bpmn for discontinue claim

* Revert "CIV-14244 added bpmn for discontinue claim"

This reverts commit 4d5ec0a.

* CIV-14244  Added bpmn for caseworker

* CIV-14244 Text modifications

* CIV-14244 Text modifications

* CIV-14244 Tests modification

* CIV-14244 Tests modification

* CIV-14244 Modify conditions foe LR or not Two Defendant

* CIV-14244 Chenge the conditions to notify the second defendant

* CIV-14244 Update verification order flag

* CIV-14244 Update verification order flag

* CIV-14244 Revert flag changes

---------

Co-authored-by: Azam <[email protected]>
Co-authored-by: Azam <[email protected]>
  • Loading branch information
3 people authored Jul 19, 2024
1 parent c11a826 commit 5ece26f
Show file tree
Hide file tree
Showing 2 changed files with 433 additions and 0 deletions.
279 changes: 279 additions & 0 deletions src/main/resources/camunda/discontinue_claim_claimant.bpmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,279 @@
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0rn46su" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.16.0">
<bpmn:process id="DISCONTINUE_CLAIM_CLAIMANT" name="Discontinue Claim Claimant " isExecutable="true">
<bpmn:startEvent id="DiscontinueClaimClaimant" name="Start">
<bpmn:outgoing>Flow_1if0h68</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1cb4oje" messageRef="Message_2ej4dfj" />
</bpmn:startEvent>
<bpmn:endEvent id="Event_0r8yo0r">
<bpmn:incoming>Flow_1hce35l</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1hce35l" sourceRef="Activity_0wretog" targetRef="Event_0r8yo0r" />
<bpmn:callActivity id="Activity_0wretog" name="End Business Process" calledElement="EndBusinessProcess">
<bpmn:extensionElements>
<camunda:in variables="all" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_19foubv</bpmn:incoming>
<bpmn:incoming>Flow_15io19y</bpmn:incoming>
<bpmn:incoming>Flow_0u26hre</bpmn:incoming>
<bpmn:outgoing>Flow_1hce35l</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:callActivity id="Activity_0y089q8" name="Start Business Process" calledElement="StartBusinessProcess">
<bpmn:extensionElements>
<camunda:in variables="all" />
<camunda:out variables="all" />
</bpmn:extensionElements>
<bpmn:incoming>Flow_1if0h68</bpmn:incoming>
<bpmn:outgoing>Flow_1qffyiy</bpmn:outgoing>
</bpmn:callActivity>
<bpmn:endEvent id="Event_1mtqud7">
<bpmn:incoming>Flow_0h072ea</bpmn:incoming>
</bpmn:endEvent>
<bpmn:boundaryEvent id="Event_0o3sg3o" name="Abort" attachedToRef="Activity_0y089q8">
<bpmn:outgoing>Flow_0h072ea</bpmn:outgoing>
<bpmn:errorEventDefinition id="ErrorEventDefinition_0uj9pwb" />
</bpmn:boundaryEvent>
<bpmn:sequenceFlow id="Flow_0h072ea" sourceRef="Event_0o3sg3o" targetRef="Event_1mtqud7" />
<bpmn:sequenceFlow id="Flow_1if0h68" sourceRef="DiscontinueClaimClaimant" targetRef="Activity_0y089q8" />
<bpmn:sequenceFlow id="Flow_1qffyiy" sourceRef="Activity_0y089q8" targetRef="GenerateNoticeOfDiscontinuance" />
<bpmn:exclusiveGateway id="Gateway_00bae9b">
<bpmn:incoming>Flow_1lzj11s</bpmn:incoming>
<bpmn:outgoing>Flow_1g00tur</bpmn:outgoing>
<bpmn:outgoing>Flow_15io19y</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:serviceTask id="NotifyDiscontinuancetDefendant1" name="Notify Discontinuance Defendant 1 (LR/LIP)" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="caseEvent">NOTIFY_DISCONTINUANCE_DEFENDANT1</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1g00tur</bpmn:incoming>
<bpmn:outgoing>Flow_1cagd2a</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1g00tur" name="Judges order vertification not rquired" sourceRef="Gateway_00bae9b" targetRef="NotifyDiscontinuancetDefendant1">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${empty JUDGE_ORDER_VERIFICATION_REQUIRED || JUDGE_ORDER_VERIFICATION_REQUIRED==false}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:serviceTask id="NotifyDiscontinuanceDefendant2" name="Notify Discontinuance Defendant2" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="caseEvent">NOTIFY_DISCONTINUANCE_DEFENDANT2</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0o1d6v6</bpmn:incoming>
<bpmn:outgoing>Flow_19foubv</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="NotifyDiscontinuanceClaimant" name="Notify Discontinuance  Claimant" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="caseEvent">NOTIFY_DISCONTINUANCE_CLAIMANT1</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0k3oglr</bpmn:incoming>
<bpmn:incoming>Flow_1sq8lia</bpmn:incoming>
<bpmn:outgoing>Flow_0bxssc2</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="GenerateNoticeOfDiscontinuance" name="Generate Notice of Discontinuance" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="caseEvent">GEN_NOTICE_OF_DISCONTINUANCE</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1qffyiy</bpmn:incoming>
<bpmn:outgoing>Flow_1lzj11s</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1lzj11s" sourceRef="GenerateNoticeOfDiscontinuance" targetRef="Gateway_00bae9b" />
<bpmn:sequenceFlow id="Flow_19foubv" sourceRef="NotifyDiscontinuanceDefendant2" targetRef="Activity_0wretog" />
<bpmn:exclusiveGateway id="Gateway_16v73ou">
<bpmn:incoming>Flow_1cagd2a</bpmn:incoming>
<bpmn:outgoing>Flow_0cuspnj</bpmn:outgoing>
<bpmn:outgoing>Flow_1sq8lia</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0cuspnj" name="LIP Defendant1" sourceRef="Gateway_16v73ou" targetRef="PostNoticeOfDiscontinuanceDefendant1LIP">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${!empty flowFlags.UNREPRESENTED_DEFENDANT_ONE &amp;&amp; flowFlags.UNREPRESENTED_DEFENDANT_ONE}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_15io19y" name="Judges orders verification required" sourceRef="Gateway_00bae9b" targetRef="Activity_0wretog">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${JUDGE_ORDER_VERIFICATION_REQUIRED==true}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:serviceTask id="PostNoticeOfDiscontinuanceDefendant1LIP" name="Post notice of Discontinuance Defendant1 LiP" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="caseEvent">SEND_DISCONTINUANCE_LETTER_LIP_DEFENDANT1</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0cuspnj</bpmn:incoming>
<bpmn:outgoing>Flow_0k3oglr</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_0k3oglr" sourceRef="PostNoticeOfDiscontinuanceDefendant1LIP" targetRef="NotifyDiscontinuanceClaimant" />
<bpmn:sequenceFlow id="Flow_1cagd2a" sourceRef="NotifyDiscontinuancetDefendant1" targetRef="Gateway_16v73ou" />
<bpmn:sequenceFlow id="Flow_1sq8lia" name="LR Defendant1" sourceRef="Gateway_16v73ou" targetRef="NotifyDiscontinuanceClaimant">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${empty flowFlags.UNREPRESENTED_DEFENDANT_ONE || !flowFlags.UNREPRESENTED_DEFENDANT_ONE}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:exclusiveGateway id="Gateway_19b5dvl">
<bpmn:incoming>Flow_0bxssc2</bpmn:incoming>
<bpmn:outgoing>Flow_0u26hre</bpmn:outgoing>
<bpmn:outgoing>Flow_0o1d6v6</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0u26hre" name=" Defendant2 LIP / Only 1 Defendant" sourceRef="Gateway_19b5dvl" targetRef="Activity_0wretog">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${!(!empty flowFlags.TWO_RESPONDENT_REPRESENTATIVES &amp;&amp; flowFlags.TWO_RESPONDENT_REPRESENTATIVES &amp;&amp; (empty flowFlags.UNREPRESENTED_DEFENDANT_TWO || !flowFlags.UNREPRESENTED_DEFENDANT_TWO))}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0o1d6v6" name="LR Defendant2" sourceRef="Gateway_19b5dvl" targetRef="NotifyDiscontinuanceDefendant2">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${(!empty flowFlags.TWO_RESPONDENT_REPRESENTATIVES &amp;&amp; flowFlags.TWO_RESPONDENT_REPRESENTATIVES &amp;&amp; (empty flowFlags.UNREPRESENTED_DEFENDANT_TWO || !flowFlags.UNREPRESENTED_DEFENDANT_TWO))}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0bxssc2" sourceRef="NotifyDiscontinuanceClaimant" targetRef="Gateway_19b5dvl" />
</bpmn:process>
<bpmn:message id="Message_0slk3de" />
<bpmn:error id="Error_0t2ju7k" name="StartBusinessAbort" errorCode="ABORT" />
<bpmn:error id="Error_1237qii" name="StartBusinessAbort" errorCode="ABORT" />
<bpmn:message id="Message_0htno5u" />
<bpmn:message id="Message_00airaq" />
<bpmn:message id="Message_1koptmo" name="DEFAULT_JUDGEMENT_NON_DIVERGENT_SPEC" />
<bpmn:message id="Message_2ej4dfj" name="DISCONTINUE_CLAIM_CLAIMANT" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DISCONTINUE_CLAIM_CLAIMANT">
<bpmndi:BPMNShape id="Event_1m02c2o_di" bpmnElement="DiscontinueClaimClaimant">
<dc:Bounds x="142" y="242" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="148" y="285" width="25" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0r8yo0r_di" bpmnElement="Event_0r8yo0r">
<dc:Bounds x="1552" y="242" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1307" y="285" width="86" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1x5rl4x_di" bpmnElement="Activity_0wretog">
<dc:Bounds x="1340" y="220" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0y089q8_di" bpmnElement="Activity_0y089q8">
<dc:Bounds x="230" y="220" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1mtqud7_di" bpmnElement="Event_1mtqud7">
<dc:Bounds x="262" y="122" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0hdpgwf" bpmnElement="Gateway_00bae9b" isMarkerVisible="true">
<dc:Bounds x="615" y="235" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="738" y="412" width="87" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ur71m1" bpmnElement="NotifyDiscontinuancetDefendant1">
<dc:Bounds x="590" y="340" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0e1o9i1" bpmnElement="NotifyDiscontinuanceDefendant2">
<dc:Bounds x="1220" y="340" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_03mfssw" bpmnElement="NotifyDiscontinuanceClaimant">
<dc:Bounds x="930" y="340" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1orii9b" bpmnElement="GenerateNoticeOfDiscontinuance">
<dc:Bounds x="430" y="220" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1uttihs" bpmnElement="Gateway_16v73ou" isMarkerVisible="true">
<dc:Bounds x="765" y="355" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="738" y="412" width="87" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0c5ievn" bpmnElement="PostNoticeOfDiscontinuanceDefendant1LIP">
<dc:Bounds x="840" y="460" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_19b5dvl_di" bpmnElement="Gateway_19b5dvl" isMarkerVisible="true">
<dc:Bounds x="1085" y="355" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0o3sg3o_di" bpmnElement="Event_0o3sg3o">
<dc:Bounds x="262" y="202" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="297" y="183" width="26" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1hce35l_di" bpmnElement="Flow_1hce35l">
<di:waypoint x="1440" y="260" />
<di:waypoint x="1552" y="260" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0h072ea_di" bpmnElement="Flow_0h072ea">
<di:waypoint x="280" y="202" />
<di:waypoint x="280" y="158" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1if0h68_di" bpmnElement="Flow_1if0h68">
<di:waypoint x="178" y="260" />
<di:waypoint x="230" y="260" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1qffyiy_di" bpmnElement="Flow_1qffyiy">
<di:waypoint x="330" y="260" />
<di:waypoint x="430" y="260" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1g00tur_di" bpmnElement="Flow_1g00tur">
<di:waypoint x="640" y="285" />
<di:waypoint x="640" y="340" />
<bpmndi:BPMNLabel>
<dc:Bounds x="653" y="292" width="74" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1lzj11s_di" bpmnElement="Flow_1lzj11s">
<di:waypoint x="530" y="260" />
<di:waypoint x="615" y="260" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19foubv_di" bpmnElement="Flow_19foubv">
<di:waypoint x="1270" y="340" />
<di:waypoint x="1270" y="260" />
<di:waypoint x="1340" y="260" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0cuspnj_di" bpmnElement="Flow_0cuspnj">
<di:waypoint x="790" y="405" />
<di:waypoint x="790" y="500" />
<di:waypoint x="840" y="500" />
<bpmndi:BPMNLabel>
<dc:Bounds x="791" y="433" width="77" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_15io19y_di" bpmnElement="Flow_15io19y">
<di:waypoint x="665" y="260" />
<di:waypoint x="1340" y="260" />
<bpmndi:BPMNLabel>
<dc:Bounds x="675" y="220" width="71" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0k3oglr_di" bpmnElement="Flow_0k3oglr">
<di:waypoint x="940" y="500" />
<di:waypoint x="980" y="500" />
<di:waypoint x="980" y="420" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1cagd2a_di" bpmnElement="Flow_1cagd2a">
<di:waypoint x="690" y="380" />
<di:waypoint x="765" y="380" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sq8lia_di" bpmnElement="Flow_1sq8lia">
<di:waypoint x="815" y="380" />
<di:waypoint x="930" y="380" />
<bpmndi:BPMNLabel>
<dc:Bounds x="836" y="362" width="74" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0u26hre_di" bpmnElement="Flow_0u26hre">
<di:waypoint x="1110" y="355" />
<di:waypoint x="1110" y="260" />
<di:waypoint x="1340" y="260" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1120" y="285" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0o1d6v6_di" bpmnElement="Flow_0o1d6v6">
<di:waypoint x="1135" y="380" />
<di:waypoint x="1220" y="380" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1133" y="393" width="75" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0bxssc2_di" bpmnElement="Flow_0bxssc2">
<di:waypoint x="1030" y="380" />
<di:waypoint x="1085" y="380" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Loading

0 comments on commit 5ece26f

Please sign in to comment.