From 28b31261fa4983eb06cbbab9e0403a289b40a925 Mon Sep 17 00:00:00 2001
From: guygrewal77 <163517291+guygrewal77@users.noreply.github.com>
Date: Mon, 3 Feb 2025 18:30:57 +0000
Subject: [PATCH] DTSCCI-1527 - Updated test and Camunda diagram
---
.../resources/camunda/claim_dismissed.bpmn | 15 ++++---
.../reform/civil/bpmn/ClaimDismissedTest.java | 39 +++++++++----------
2 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/src/main/resources/camunda/claim_dismissed.bpmn b/src/main/resources/camunda/claim_dismissed.bpmn
index 1755ea089..4726e3728 100644
--- a/src/main/resources/camunda/claim_dismissed.bpmn
+++ b/src/main/resources/camunda/claim_dismissed.bpmn
@@ -33,10 +33,10 @@
-
+
- NOTIFY_1V2_PARTIES_FOR_CLAIM_DISMISSED
+ NOTIFY_PARTIES_FOR_CLAIM_DISMISSED
Flow_0bca286
@@ -81,11 +81,11 @@
Flow_0o65a0g
-
-
+
+
${empty flowFlags.GENERAL_APPLICATION_ENABLED || !flowFlags.GENERAL_APPLICATION_ENABLED}
-
+
@@ -112,7 +112,7 @@
-
+
@@ -179,6 +179,9 @@
+
+
+
diff --git a/src/test/java/uk/gov/hmcts/reform/civil/bpmn/ClaimDismissedTest.java b/src/test/java/uk/gov/hmcts/reform/civil/bpmn/ClaimDismissedTest.java
index b3bc92b22..60033fbe4 100644
--- a/src/test/java/uk/gov/hmcts/reform/civil/bpmn/ClaimDismissedTest.java
+++ b/src/test/java/uk/gov/hmcts/reform/civil/bpmn/ClaimDismissedTest.java
@@ -56,8 +56,8 @@ void shouldNotifyApplicantSolicitor_whenPastClaimNotificationDeadline() {
assertCompleteExternalTask(
applicantNotification,
PROCESS_CASE_EVENT,
- "NOTIFY_APPLICANT_SOLICITOR1_FOR_CLAIM_DISMISSED",
- "ClaimDismissedNotifyApplicantSolicitor1"
+ "NOTIFY_PARTIES_FOR_CLAIM_DISMISSED",
+ "ClaimDismissedNotifyParties"
);
//complete the RPA notification
@@ -77,7 +77,7 @@ void shouldNotifyApplicantSolicitor_whenPastClaimNotificationDeadline() {
}
@Test
- void shouldNotifyApplicantSolicitor_whenPastClaimDetailsNotificationDeadline() {
+ void shouldNotifyRelevantParties_whenPastClaimDetailsNotificationDeadline() {
//assert process has started
assertFalse(processInstance.isEnded());
@@ -103,8 +103,8 @@ void shouldNotifyApplicantSolicitor_whenPastClaimDetailsNotificationDeadline() {
assertCompleteExternalTask(
applicantNotification,
PROCESS_CASE_EVENT,
- "NOTIFY_APPLICANT_SOLICITOR1_FOR_CLAIM_DISMISSED",
- "ClaimDismissedNotifyApplicantSolicitor1"
+ "NOTIFY_PARTIES_FOR_CLAIM_DISMISSED",
+ "ClaimDismissedNotifyParties"
);
//Notify RPA - Handed Offline
@@ -146,13 +146,13 @@ void shouldNotifyAllParties_whenPastClaimDismissedDeadline() {
variables
);
- //complete the notification to 1v2 parties
- ExternalTask oneVTwopartiesNotification = assertNextExternalTask(PROCESS_CASE_EVENT);
+ //complete the notification to relevant parties
+ ExternalTask relevantPartiesNotification = assertNextExternalTask(PROCESS_CASE_EVENT);
assertCompleteExternalTask(
- oneVTwopartiesNotification,
+ relevantPartiesNotification,
PROCESS_CASE_EVENT,
- "NOTIFY_1V2_PARTIES_FOR_CLAIM_DISMISSED",
- "ClaimDismissedNotify1V2Parties"
+ "NOTIFY_PARTIES_FOR_CLAIM_DISMISSED",
+ "ClaimDismissedNotifyParties"
);
//complete the RPA notification
@@ -172,7 +172,7 @@ void shouldNotifyAllParties_whenPastClaimDismissedDeadline() {
}
@Test
- void shouldNotifyApplicantSolicitor_whenPastClaimNotificationDeadline_GAEnabled() {
+ void shouldNotifyRelevantParties_whenPastClaimNotificationDeadline_GAEnabled() {
//assert process has started
assertFalse(processInstance.isEnded());
@@ -180,7 +180,6 @@ void shouldNotifyApplicantSolicitor_whenPastClaimNotificationDeadline_GAEnabled(
assertThat(getProcessDefinitionByMessage(MESSAGE_NAME).getKey()).isEqualTo(PROCESS_ID);
VariableMap variables = Variables.createVariables();
- variables.putValue("flowState", "MAIN.CLAIM_DISMISSED_PAST_CLAIM_NOTIFICATION_DEADLINE");
variables.putValue("flowFlags", Map.of("GENERAL_APPLICATION_ENABLED", true));
//complete the start business process
@@ -216,8 +215,8 @@ void shouldNotifyApplicantSolicitor_whenPastClaimNotificationDeadline_GAEnabled(
assertCompleteExternalTask(
applicantNotification,
PROCESS_CASE_EVENT,
- "NOTIFY_APPLICANT_SOLICITOR1_FOR_CLAIM_DISMISSED",
- "ClaimDismissedNotifyApplicantSolicitor1"
+ "NOTIFY_PARTIES_FOR_CLAIM_DISMISSED",
+ "ClaimDismissedNotifyParties"
);
//complete the RPA notification
@@ -237,7 +236,7 @@ void shouldNotifyApplicantSolicitor_whenPastClaimNotificationDeadline_GAEnabled(
}
@Test
- void shouldNotifyApplicantSolicitor_whenPastClaimDetailsNotificationDeadline_GAEnabled() {
+ void shouldNotifyRelevantParties_whenPastClaimDetailsNotificationDeadline_GAEnabled() {
//assert process has started
assertFalse(processInstance.isEnded());
@@ -281,8 +280,8 @@ void shouldNotifyApplicantSolicitor_whenPastClaimDetailsNotificationDeadline_GAE
assertCompleteExternalTask(
applicantNotification,
PROCESS_CASE_EVENT,
- "NOTIFY_APPLICANT_SOLICITOR1_FOR_CLAIM_DISMISSED",
- "ClaimDismissedNotifyApplicantSolicitor1"
+ "NOTIFY_PARTIES_FOR_CLAIM_DISMISSED",
+ "ClaimDismissedNotifyParties"
);
//complete the RPA notification
@@ -324,13 +323,13 @@ void shouldNotifyAllParties_whenPastClaimDismissedDeadline_GAEnabled() {
variables
);
- //complete the notification to 1v2 parties
+ //complete the notification to relevant parties
ExternalTask oneVTwoPartiesNotification = assertNextExternalTask(PROCESS_CASE_EVENT);
assertCompleteExternalTask(
oneVTwoPartiesNotification,
PROCESS_CASE_EVENT,
- "NOTIFY_1V2_PARTIES_FOR_CLAIM_DISMISSED",
- "ClaimDismissedNotify1V2Parties"
+ "NOTIFY_PARTIES_FOR_CLAIM_DISMISSED",
+ "ClaimDismissedNotifyParties"
);
//complete the RPA notification