Skip to content

Commit

Permalink
CIV-16322 added ga location update to CUI claimant response journey (#…
Browse files Browse the repository at this point in the history
…1183)

* CIV-16322 added ga location update to CUI journey

* CIV-16322 resolved conflicts

* Update preview and aat charts

---------

Co-authored-by: skhajuria <sankhajuria@gmail.com>
  • Loading branch information
deepthidoppalapudihmcts and sankhajuria authored Jan 30, 2025
1 parent cdea8ac commit af090c5
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 37 deletions.
1 change: 1 addition & 0 deletions charts/civil-camunda/values.aat.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ camunda-bpm:
enabled: true
java:
keyVaults: []
image: hmctsprivatetemp.azurecr.io/camunda/bpm:latest
releaseNameOverride: ${SERVICE_NAME}-camunda
ingressHost: civil-camunda-camunda-staging-aat.service.core-compute-aat.internal
imagePullPolicy: Always
Expand Down
1 change: 1 addition & 0 deletions charts/civil-camunda/values.preview.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ ccd:
camunda-bpm:
enabled: true
java:
image: hmctsprivatetemp.azurecr.io/camunda/bpm:latest
keyVaults: []
releaseNameOverride: ${SERVICE_NAME}-camunda
ingressHost: camunda-${SERVICE_FQDN}
Expand Down
126 changes: 89 additions & 37 deletions src/main/resources/camunda/claimant_response_cui.bpmn
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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_18h9iji" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.27.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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_18h9iji" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.5.1">
<bpmn:process id="CLAIMANT_RESPONSE_CUI_PROCESS_ID" name="Claimant response cui process" isExecutable="true" camunda:historyTimeToLive="P90D">
<bpmn:startEvent id="CLRCUI_StartEvent_1" name="start">
<bpmn:outgoing>Flow_0uwkh9v</bpmn:outgoing>
Expand Down Expand Up @@ -78,15 +78,14 @@
<bpmn:sequenceFlow id="Flow_FullAdmitPayImmediatly" name="Full admit" sourceRef="Gateway_RESPONSE_FLOW" targetRef="NotifyLiPRespondentClaimantConfirmToProceed">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${flowState == "MAIN.FULL_ADMISSION"||flowState == "MAIN.FULL_ADMIT_PAY_IMMEDIATELY"||flowState == "MAIN.FULL_ADMIT_PAY_IMMEDIATELY"}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0g9m4jb" sourceRef="NotifyLiPApplicantClaimantConfirmToProceed" targetRef="Generate_LIP_Claimant_DQ" />
<bpmn:serviceTask id="NotifyLiPApplicantClaimantConfirmToProceed" name="Notify Applicant" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="caseEvent">NOTIFY_LIP_APPLICANT_CLAIMANT_CONFIRM_TO_PROCEED</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0v6zgri</bpmn:incoming>
<bpmn:outgoing>Flow_0g9m4jb</bpmn:outgoing>
<bpmn:outgoing>Flow_0vcdfve</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="CLRCUI_PART_ADMISSION_NOT_SETTLED_NO_MEDIATION" name="&#10;part admit not settled" sourceRef="Gateway_RESPONSE_FLOW" targetRef="JudicialReferral">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${flowState == "MAIN.PART_ADMIT_NOT_SETTLED_NO_MEDIATION"}</bpmn:conditionExpression>
Expand All @@ -101,8 +100,8 @@
<camunda:inputParameter name="caseEvent">GENERATE_RESPONSE_DQ_LIP_SEALED</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0g9m4jb</bpmn:incoming>
<bpmn:incoming>Flow_1p158ux</bpmn:incoming>
<bpmn:incoming>Flow_0qomvto</bpmn:incoming>
<bpmn:incoming>Flow_0h4qr2u</bpmn:incoming>
<bpmn:outgoing>Flow_0beyd6n</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_0beyd6n" sourceRef="Generate_LIP_Claimant_DQ" targetRef="Gateway_0btqyj3" />
Expand Down Expand Up @@ -227,9 +226,8 @@
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0a5zz1s</bpmn:incoming>
<bpmn:outgoing>Flow_1p158ux</bpmn:outgoing>
<bpmn:outgoing>Flow_1msvhgp</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1p158ux" sourceRef="GenerateJudgmentByDeterminationPdf" targetRef="Generate_LIP_Claimant_DQ" />
<bpmn:serviceTask id="GenerateJudgmentByAdmissionPdf" name="Generate Judgment By Admission PDF" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
Expand Down Expand Up @@ -441,6 +439,30 @@
<bpmn:outgoing>Flow_1d396po</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_1d396po" sourceRef="PostPINInLetterLIPDefendant" targetRef="Gateway_08rlyk5" />
<bpmn:exclusiveGateway id="Gateway_12dmvul">
<bpmn:incoming>Flow_0vcdfve</bpmn:incoming>
<bpmn:incoming>Flow_1msvhgp</bpmn:incoming>
<bpmn:outgoing>Flow_0x1cuga</bpmn:outgoing>
<bpmn:outgoing>Flow_0qomvto</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0vcdfve" sourceRef="NotifyLiPApplicantClaimantConfirmToProceed" targetRef="Gateway_12dmvul" />
<bpmn:serviceTask id="TriggerAndUpdateGenAppLocation" name="Trigger and Update General Application Location" camunda:type="external" camunda:topic="processCaseEvent">
<bpmn:extensionElements>
<camunda:inputOutput>
<camunda:inputParameter name="caseEvent">TRIGGER_UPDATE_GA_LOCATION</camunda:inputParameter>
</camunda:inputOutput>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0x1cuga</bpmn:incoming>
<bpmn:outgoing>Flow_0h4qr2u</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_0x1cuga" name="general applications enabled" sourceRef="Gateway_12dmvul" targetRef="TriggerAndUpdateGenAppLocation">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${!empty flowFlags.GENERAL_APPLICATION_ENABLED &amp;&amp; flowFlags.GENERAL_APPLICATION_ENABLED}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0qomvto" name="general application disabled" sourceRef="Gateway_12dmvul" targetRef="Generate_LIP_Claimant_DQ">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${empty flowFlags.GENERAL_APPLICATION_ENABLED || !flowFlags.GENERAL_APPLICATION_ENABLED}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_1msvhgp" sourceRef="GenerateJudgmentByDeterminationPdf" targetRef="Gateway_12dmvul" />
<bpmn:sequenceFlow id="Flow_0h4qr2u" sourceRef="TriggerAndUpdateGenAppLocation" targetRef="Generate_LIP_Claimant_DQ" />
</bpmn:process>
<bpmn:message id="Message_0ttrrz3" name="CLAIMANT_RESPONSE_CUI" />
<bpmn:error id="Error_1alq6sw" name="StartBusinessAbort" errorCode="ABORT" />
Expand All @@ -452,6 +474,9 @@
<dc:Bounds x="160" y="528" width="23" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_07ek9xj_di" bpmnElement="CLRUI_End">
<dc:Bounds x="2632" y="485" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0p15z9i_di" bpmnElement="Gateway_RESPONSE_FLOW" isMarkerVisible="true">
<dc:Bounds x="415" y="478" width="50" height="50" />
<bpmndi:BPMNLabel>
Expand All @@ -469,6 +494,10 @@
<dc:Bounds x="240" y="463" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0negovp_di" bpmnElement="END_BUSINESS_PROCESS">
<dc:Bounds x="2490" y="463" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1xo1yot_di" bpmnElement="NotifyLiPRespondentClaimantConfirmToProceed">
<dc:Bounds x="920" y="463" width="100" height="80" />
<bpmndi:BPMNLabel />
Expand All @@ -477,10 +506,6 @@
<dc:Bounds x="1070" y="463" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0anwp1i" bpmnElement="Generate_LIP_Claimant_DQ">
<dc:Bounds x="1200" y="463" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0us1dhc_di" bpmnElement="Gateway_RPA_FLOW" isMarkerVisible="true">
<dc:Bounds x="1505" y="478" width="50" height="50" />
<bpmndi:BPMNLabel>
Expand Down Expand Up @@ -555,6 +580,14 @@
<dc:Bounds x="2350" y="730" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ec49q4" bpmnElement="updateClaimantClaimStateID">
<dc:Bounds x="1560" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0aq0usx" bpmnElement="SendJudgmentDetailsToCJES">
<dc:Bounds x="1680" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_074cub0_di" bpmnElement="Gateway_074cub0" isMarkerVisible="true">
<dc:Bounds x="1915" y="745" width="50" height="50" />
</bpmndi:BPMNShape>
Expand All @@ -566,21 +599,14 @@
<dc:Bounds x="2180" y="610" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_07ek9xj_di" bpmnElement="CLRUI_End">
<dc:Bounds x="2632" y="485" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0negovp_di" bpmnElement="END_BUSINESS_PROCESS">
<dc:Bounds x="2490" y="463" width="100" height="80" />
<bpmndi:BPMNShape id="BPMNShape_149txem" bpmnElement="GenerateDefendantCCJDashboardNotification">
<dc:Bounds x="2520" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_13k0xop" bpmnElement="GenerateClaimantCCJDashboardNotification">
<dc:Bounds x="2370" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_149txem" bpmnElement="GenerateDefendantCCJDashboardNotification">
<dc:Bounds x="2520" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_072bzew" bpmnElement="NotifyJoRoboticsOnContinuousFeed">
<dc:Bounds x="2290" y="970" width="100" height="80" />
</bpmndi:BPMNShape>
Expand All @@ -590,14 +616,6 @@
<dc:Bounds x="738" y="412" width="87" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ec49q4" bpmnElement="updateClaimantClaimStateID">
<dc:Bounds x="1560" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0aq0usx" bpmnElement="SendJudgmentDetailsToCJES">
<dc:Bounds x="1680" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1orii9b" bpmnElement="GenerateJudgmentByAdmissionDocClaimant">
<dc:Bounds x="1810" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
Expand All @@ -610,6 +628,17 @@
<dc:Bounds x="2060" y="880" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_12dmvul_di" bpmnElement="Gateway_12dmvul" isMarkerVisible="true">
<dc:Bounds x="1085" y="605" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1ctrg77" bpmnElement="TriggerAndUpdateGenAppLocation">
<dc:Bounds x="1060" y="700" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0anwp1i" bpmnElement="Generate_LIP_Claimant_DQ">
<dc:Bounds x="1210" y="463" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0yhzfu9_di" bpmnElement="Event_0yhzfu9">
<dc:Bounds x="272" y="445" width="36" height="36" />
</bpmndi:BPMNShape>
Expand Down Expand Up @@ -640,10 +669,6 @@
<dc:Bounds x="672" y="485" width="49" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0g9m4jb_di" bpmnElement="Flow_0g9m4jb">
<di:waypoint x="1170" y="503" />
<di:waypoint x="1200" y="503" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0fz18qx_di" bpmnElement="CLRCUI_PART_ADMISSION_NOT_SETTLED_NO_MEDIATION">
<di:waypoint x="440" y="528" />
<di:waypoint x="440" y="700" />
Expand All @@ -667,7 +692,7 @@
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0beyd6n_di" bpmnElement="Flow_0beyd6n">
<di:waypoint x="1300" y="503" />
<di:waypoint x="1310" y="503" />
<di:waypoint x="1345" y="503" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_187wcee_di" bpmnElement="Flow_187wcee">
Expand Down Expand Up @@ -756,10 +781,6 @@
<di:waypoint x="1090" y="1000" />
<di:waypoint x="1190" y="1000" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1p158ux_di" bpmnElement="Flow_1p158ux">
<di:waypoint x="1250" y="960" />
<di:waypoint x="1250" y="543" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0xb2qk0_di" bpmnElement="Flow_0xb2qk0">
<di:waypoint x="710" y="790" />
<di:waypoint x="970" y="790" />
Expand Down Expand Up @@ -919,6 +940,37 @@
<di:waypoint x="2160" y="920" />
<di:waypoint x="2185" y="920" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0vcdfve_di" bpmnElement="Flow_0vcdfve">
<di:waypoint x="1110" y="543" />
<di:waypoint x="1110" y="605" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0x1cuga_di" bpmnElement="Flow_0x1cuga">
<di:waypoint x="1110" y="655" />
<di:waypoint x="1110" y="700" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1050" y="650" width="59" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0qomvto_di" bpmnElement="Flow_0qomvto">
<di:waypoint x="1135" y="630" />
<di:waypoint x="1230" y="630" />
<di:waypoint x="1230" y="543" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1156" y="590" width="53" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1msvhgp_di" bpmnElement="Flow_1msvhgp">
<di:waypoint x="1240" y="960" />
<di:waypoint x="1240" y="910" />
<di:waypoint x="1020" y="910" />
<di:waypoint x="1020" y="630" />
<di:waypoint x="1085" y="630" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0h4qr2u_di" bpmnElement="Flow_0h4qr2u">
<di:waypoint x="1160" y="740" />
<di:waypoint x="1300" y="740" />
<di:waypoint x="1300" y="543" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public class ClaimantResponseCuiTest extends BpmnBaseTest {
//Activity IDs
private static final String NOTIFY_LIP_RESPONDENT_CLAIMANT_CONFIRM_TO_PROCEED_ACTIVITY_ID
= "NotifyLiPRespondentClaimantConfirmToProceed";
private static final String TRIGGER_UPDATE_GA_LOCATION = "TRIGGER_UPDATE_GA_LOCATION";
private static final String TRIGGER_UPDATE_GA_LOCATION_ACTIVITY_ID = "TriggerAndUpdateGenAppLocation";
private static final String DQ_PDF_ACTIVITY_ID = "Generate_LIP_Claimant_DQ";
private static final String DQ_PDF_EVENT = "GENERATE_RESPONSE_DQ_LIP_SEALED";

Expand Down Expand Up @@ -127,6 +129,11 @@ void shouldRunProcess() {

notifyRespondentClaimantConfirmsToProceed();
notifyApplicantClaimantConfirmsToProceed();
assertCompletedCaseEvent(
TRIGGER_UPDATE_GA_LOCATION,
TRIGGER_UPDATE_GA_LOCATION_ACTIVITY_ID,
variables
);
generateDQPdf();
updateClaimState();
createClaimantDashboardNotification();
Expand Down Expand Up @@ -341,6 +348,11 @@ void shouldRunProcess_ClaimFullDefenceNotAgreeMediation() {

notifyRespondentClaimantConfirmsToProceed();
notifyApplicantClaimantConfirmsToProceed();
assertCompletedCaseEvent(
TRIGGER_UPDATE_GA_LOCATION,
TRIGGER_UPDATE_GA_LOCATION_ACTIVITY_ID,
variables
);
generateDQPdf();
updateClaimState();
createClaimantDashboardNotification();
Expand Down

0 comments on commit af090c5

Please sign in to comment.