diff --git a/src/main/resources/dmn/wa-task-completion-st_cic-criminalinjuriescompensation.dmn b/src/main/resources/dmn/wa-task-completion-st_cic-criminalinjuriescompensation.dmn
index c14f76772d..21b63495f5 100644
--- a/src/main/resources/dmn/wa-task-completion-st_cic-criminalinjuriescompensation.dmn
+++ b/src/main/resources/dmn/wa-task-completion-st_cic-criminalinjuriescompensation.dmn
@@ -427,6 +427,17 @@
"Auto"
+
+
+ "create-draft-order"
+
+
+ "reviewStayRequestCaseListedJudge"
+
+
+ "Auto"
+
+
"create-draft-order"
diff --git a/src/main/resources/dmn/wa-task-configuration-st_cic-criminalinjuriescompensation.dmn b/src/main/resources/dmn/wa-task-configuration-st_cic-criminalinjuriescompensation.dmn
index 7d6a55fb9c..36e06dc4e2 100644
--- a/src/main/resources/dmn/wa-task-configuration-st_cic-criminalinjuriescompensation.dmn
+++ b/src/main/resources/dmn/wa-task-configuration-st_cic-criminalinjuriescompensation.dmn
@@ -114,7 +114,7 @@ Short name
- "processCaseWithdrawalDirections","processRule27Decision","processListingDirections","processDirectionsReListedCase","processDirectionsReListedCaseWithin5Days","processSetAsideDirections","processCorrections","processDirectionsReturned","processPostponementDirections","processTimeExtensionDirectionsReturned","processReinstatementDecisionNotice","processOtherDirectionsReturned","processWrittenReasons","processStrikeOutDirectionsReturned","processStayDirections","issueDecisionNotice","completeHearingOutcome","issueCaseToRespondent","reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","vetNewCaseDocuments","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewSpecificAccessRequestJudiciary","reviewSpecificAccessRequestLegalOps","reviewSpecificAccessRequestAdmin","reviewSpecificAccessRequestCTSC","followUpNoncomplianceOfDirections","registerNewCase","processFurtherEvidence","stitchCollateHearingBundle"
+ "processCaseWithdrawalDirections","processRule27Decision","processListingDirections","processDirectionsReListedCase","processDirectionsReListedCaseWithin5Days","processSetAsideDirections","processCorrections","processDirectionsReturned","processPostponementDirections","processTimeExtensionDirectionsReturned","processReinstatementDecisionNotice","processOtherDirectionsReturned","processWrittenReasons","processStrikeOutDirectionsReturned","processStayDirections","issueDecisionNotice","completeHearingOutcome","issueCaseToRespondent","reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","vetNewCaseDocuments","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewSpecificAccessRequestJudiciary","reviewSpecificAccessRequestLegalOps","reviewSpecificAccessRequestAdmin","reviewSpecificAccessRequestCTSC","followUpNoncomplianceOfDirections","registerNewCase","processFurtherEvidence","stitchCollateHearingBundle","reviewStayRequestCaseListedJudge"
"majorPriority"
@@ -133,7 +133,7 @@ else 5000
- "processCaseWithdrawalDirections","processRule27Decision","processListingDirections","processDirectionsReListedCase","processDirectionsReListedCaseWithin5Days","processSetAsideDirections","processCorrections","processDirectionsReturned","processPostponementDirections","processTimeExtensionDirectionsReturned","processReinstatementDecisionNotice","processOtherDirectionsReturned","processWrittenReasons","processStrikeOutDirectionsReturned","processStayDirections","issueDecisionNotice","completeHearingOutcome","issueCaseToRespondent","reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","vetNewCaseDocuments","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewSpecificAccessRequestJudiciary","reviewSpecificAccessRequestLegalOps","reviewSpecificAccessRequestAdmin","reviewSpecificAccessRequestCTSC","followUpNoncomplianceOfDirections","registerNewCase","processFurtherEvidence","stitchCollateHearingBundle"
+ "processCaseWithdrawalDirections","processRule27Decision","processListingDirections","processDirectionsReListedCase","processDirectionsReListedCaseWithin5Days","processSetAsideDirections","processCorrections","processDirectionsReturned","processPostponementDirections","processTimeExtensionDirectionsReturned","processReinstatementDecisionNotice","processOtherDirectionsReturned","processWrittenReasons","processStrikeOutDirectionsReturned","processStayDirections","issueDecisionNotice","completeHearingOutcome","issueCaseToRespondent","reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","vetNewCaseDocuments","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewSpecificAccessRequestJudiciary","reviewSpecificAccessRequestLegalOps","reviewSpecificAccessRequestAdmin","reviewSpecificAccessRequestCTSC","followUpNoncomplianceOfDirections","registerNewCase","processFurtherEvidence","stitchCollateHearingBundle","reviewStayRequestCaseListedJudge"
"minorPriority"
@@ -218,7 +218,7 @@ else 5000
- "reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge"
+ "reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewStayRequestCaseListedJudge"
"workType"
@@ -320,7 +320,7 @@ else 5000
- "reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewSpecificAccessRequestJudiciary"
+ "reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewSpecificAccessRequestJudiciary","reviewStayRequestCaseListedJudge"
"roleCategory"
@@ -405,7 +405,7 @@ else 5000
- "processReinstatementDecisionNotice","completeHearingOutcome","reviewNewCaseAndProvideDirectionsLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","vetNewCaseDocuments","reviewOtherRequestLO","reviewReinstatementRequestLO","registerNewCase","reviewNewCaseAndProvideDirectionsJudge","reviewStrikeOutRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewStayRequestJudge","reviewListingDirectionsJudge","reviewListingDirectionsLO","reviewCorrectionsRequest","reviewReinstatementRequestJudge","reviewOtherRequestJudge","reviewTimeExtensionRequestLO","reviewTimeExtensionRequestJudge"
+ "processReinstatementDecisionNotice","completeHearingOutcome","reviewNewCaseAndProvideDirectionsLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","vetNewCaseDocuments","reviewOtherRequestLO","reviewReinstatementRequestLO","registerNewCase","reviewNewCaseAndProvideDirectionsJudge","reviewStrikeOutRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewStayRequestJudge","reviewListingDirectionsJudge","reviewListingDirectionsLO","reviewCorrectionsRequest","reviewReinstatementRequestJudge","reviewOtherRequestJudge","reviewTimeExtensionRequestLO","reviewTimeExtensionRequestJudge","reviewStayRequestCaseListedJudge"
"dueDateIntervalDays"
@@ -541,7 +541,7 @@ else 5000
- "reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge"
+ "reviewNewCaseAndProvideDirectionsLO","reviewTimeExtensionRequestLO","reviewStrikeOutRequestLO","reviewStayRequestLO","reviewListingDirectionsLO","reviewWithdrawalRequestLO","reviewRule27RequestLO","reviewListCaseLO","reviewOtherRequestLO","reviewListCaseWithin5DaysLO","reviewPostponementRequestLO","reviewReinstatementRequestLO","reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewStayRequestCaseListedJudge"
"description"
diff --git a/src/main/resources/dmn/wa-task-initiation-st_cic-criminalinjuriescompensation.dmn b/src/main/resources/dmn/wa-task-initiation-st_cic-criminalinjuriescompensation.dmn
index e2671d67fb..6df277923f 100644
--- a/src/main/resources/dmn/wa-task-initiation-st_cic-criminalinjuriescompensation.dmn
+++ b/src/main/resources/dmn/wa-task-initiation-st_cic-criminalinjuriescompensation.dmn
@@ -1244,6 +1244,38 @@
"JUDICIAL"
+
+
+ "refer-to-judge"
+
+
+ "AwaitingHearing"
+
+
+ "Stay request"
+
+
+ "reviewStayRequestCaseListedJudge"
+
+
+ "Review stay request case listed - Judge"
+
+
+
+
+
+ 5
+
+
+ "Processing"
+
+
+ "decision_making_work"
+
+
+ "JUDICIAL"
+
+
"refer-to-judge"
diff --git a/src/main/resources/dmn/wa-task-permissions-st_cic-criminalinjuriescompensation.dmn b/src/main/resources/dmn/wa-task-permissions-st_cic-criminalinjuriescompensation.dmn
index b17f60b8e4..d1a2867732 100644
--- a/src/main/resources/dmn/wa-task-permissions-st_cic-criminalinjuriescompensation.dmn
+++ b/src/main/resources/dmn/wa-task-permissions-st_cic-criminalinjuriescompensation.dmn
@@ -229,7 +229,7 @@
- "reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge"
+ "reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewStayRequestCaseListedJudge"
@@ -258,7 +258,7 @@
- "reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge"
+ "reviewListCaseWithin5DaysJudge","reviewPostponementRequestJudge","reviewCorrectionsRequest","reviewWrittenReasonsRequest","reviewReinstatementRequestJudge","reviewSetAsideRequest","reviewStayRequestJudge","reviewNewCaseAndProvideDirectionsJudge","reviewOtherRequestJudge","reviewWithdrawalRequestJudge","reviewRule27RequestJudge","reviewListingDirectionsJudge","reviewListCaseJudge","reviewStrikeOutRequestJudge","reviewTimeExtensionRequestJudge","reviewStayRequestCaseListedJudge"
diff --git a/src/main/resources/dmn/wa-task-types-st_cic-criminalinjuriescompensation.dmn b/src/main/resources/dmn/wa-task-types-st_cic-criminalinjuriescompensation.dmn
index 88b097d3a3..b24e1b5533 100644
--- a/src/main/resources/dmn/wa-task-types-st_cic-criminalinjuriescompensation.dmn
+++ b/src/main/resources/dmn/wa-task-types-st_cic-criminalinjuriescompensation.dmn
@@ -427,6 +427,17 @@
"Review stay request - Judge"
+
+
+
+
+
+ "reviewStayRequestCaseListedJudge"
+
+
+ "Review stay request case listed - Judge"
+
+
diff --git a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskCompletionTest.java b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskCompletionTest.java
index 9030387ea7..16c3875e70 100644
--- a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskCompletionTest.java
+++ b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskCompletionTest.java
@@ -60,6 +60,7 @@
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_RULE27_REQ_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_RULE27_REQ_LO_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SET_ASIDE_REQ_TASK;
+import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_LO_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STRIKE_OUT_REQ_JUDGE_TASK;
@@ -302,6 +303,10 @@ static Stream scenarioProvider() {
"taskType", REVIEW_STAY_REQ_JUDGE_TASK,
"completionMode", AUTO_COMPLETE_MODE
),
+ Map.of(
+ "taskType", REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK,
+ "completionMode", AUTO_COMPLETE_MODE
+ ),
Map.of(
"taskType", REVIEW_NEW_CASE_PROVIDE_DIR_JUDGE_TASK,
"completionMode", AUTO_COMPLETE_MODE
@@ -414,7 +419,7 @@ void if_this_test_fails_needs_updating_with_your_changes() {
DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic();
assertThat(logic.getInputs().size(), is(1));
assertThat(logic.getOutputs().size(), is(2));
- assertThat(logic.getRules().size(), is(51));
+ assertThat(logic.getRules().size(), is(52));
}
@ParameterizedTest(name = "event id: {0}")
diff --git a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskTypesTest.java b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskTypesTest.java
index 726ae3b106..af3748a7cf 100644
--- a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskTypesTest.java
+++ b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskTypesTest.java
@@ -62,6 +62,7 @@
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_CTSC_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_JUDICIARY_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_LO_TASK;
+import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_LO_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STRIKE_OUT_REQ_JUDGE_TASK;
@@ -235,6 +236,10 @@ static Stream scenarioProvider() {
"taskTypeId", REVIEW_STAY_REQ_JUDGE_TASK,
"taskTypeName", "Review stay request - Judge"
),
+ Map.of(
+ "taskTypeId", REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK,
+ "taskTypeName", "Review stay request case listed - Judge"
+ ),
Map.of(
"taskTypeId", REVIEW_NEW_CASE_PROVIDE_DIR_JUDGE_TASK,
"taskTypeName", "Review new case and provide directions - Judge"
@@ -313,7 +318,7 @@ void check_dmn_changed() {
DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic();
assertThat(logic.getInputs().size(), is(1));
assertThat(logic.getOutputs().size(), is(2));
- assertThat(logic.getRules().size(), is(54));
+ assertThat(logic.getRules().size(), is(55));
}
@ParameterizedTest(name = "retrieve all task type data")
diff --git a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaConfigurationTest.java b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaConfigurationTest.java
index 123b3fc8e2..c0c675ecd4 100644
--- a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaConfigurationTest.java
+++ b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaConfigurationTest.java
@@ -88,6 +88,7 @@
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_CTSC_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_JUDICIARY_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_LO_TASK;
+import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_LO_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STRIKE_OUT_REQ_JUDGE_TASK;
@@ -812,6 +813,23 @@ static Stream scenarioProvider() throws IOException {
)
.build()
),
+ Arguments.of(
+ REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK,
+ CaseDataBuilder.defaultCase().build(),
+ ConfigurationExpectationBuilder.defaultExpectations()
+ .expectedValue(MINOR_PRIORITY, DEFAULT_MINOR_PRIORITY, true)
+ .expectedValue(MAJOR_PRIORITY, DEFAULT_MAJOR_PRIORITY, true)
+ .expectedValue(WORK_TYPE, DECISION_WORK_TYPE, true)
+ .expectedValue(ROLE_CATEGORY, ROLE_CATEGORY_JUDICIAL, true)
+ .expectedValue(DUE_DATE_INTERVAL_DAYS, "5", true)
+ .expectedValue(
+ DESCRIPTION,
+ "[Orders: Create draft](/cases/case-details/${[CASE_REFERENCE]}/trigger"
+ + "/create-draft-order)",
+ true
+ )
+ .build()
+ ),
Arguments.of(
REVIEW_NEW_CASE_PROVIDE_DIR_JUDGE_TASK,
CaseDataBuilder.defaultCase().build(),
diff --git a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaInitiationTest.java b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaInitiationTest.java
index 2d1f1c7136..6ce2566119 100644
--- a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaInitiationTest.java
+++ b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaInitiationTest.java
@@ -69,6 +69,7 @@
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_RULE27_REQ_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_RULE27_REQ_LO_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SET_ASIDE_REQ_TASK;
+import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_LO_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STRIKE_OUT_REQ_JUDGE_TASK;
@@ -691,6 +692,21 @@ static Stream scenarioProvider() {
)
)
),
+ Arguments.of(
+ "refer-to-judge",
+ "AwaitingHearing",
+ Map.of("Data", Map.of("cicCaseReferralTypeForWA", "Stay request")),
+ List.of(
+ Map.of(
+ "taskId", REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK,
+ "name", "Review stay request case listed - Judge",
+ "workingDaysAllowed", 5,
+ "processCategories", PROCESS_CATEGORY_PROCESSING,
+ "workType", DECISION_WORK_TYPE,
+ "roleCategory", ROLE_CATEGORY_JUDICIAL
+ )
+ )
+ ),
Arguments.of(
"refer-to-judge",
"CaseManagement",
@@ -880,7 +896,7 @@ void if_this_test_fails_needs_updating_with_your_changes() {
DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic();
assertThat(logic.getInputs().size(), is(3));
assertThat(logic.getOutputs().size(), is(7));
- assertThat(logic.getRules().size(), is(50));
+ assertThat(logic.getRules().size(), is(51));
}
@ParameterizedTest(name = "event id: {0} post event state: {1} appeal type: {2}")
diff --git a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaPermissionTest.java b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaPermissionTest.java
index ce3b43ffbf..ef45c026db 100644
--- a/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaPermissionTest.java
+++ b/src/test/java/uk/gov/hmcts/sptribs/dmn/CamundaTaskWaPermissionTest.java
@@ -66,6 +66,7 @@
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_CTSC_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_JUDICIARY_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_SPECIFIC_ACCESS_REQ_LO_TASK;
+import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_JUDGE_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STAY_REQ_LO_TASK;
import static uk.gov.hmcts.sptribs.dmnutils.CamundaTaskConstants.REVIEW_STRIKE_OUT_REQ_JUDGE_TASK;
@@ -288,6 +289,11 @@ static Stream scenarioProvider() {
DUMMY_CASE_DATA,
defaultJudicialPermissions()
),
+ Arguments.of(
+ REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK,
+ DUMMY_CASE_DATA,
+ defaultJudicialPermissions()
+ ),
Arguments.of(
REVIEW_NEW_CASE_PROVIDE_DIR_JUDGE_TASK,
DUMMY_CASE_DATA,
diff --git a/src/test/java/uk/gov/hmcts/sptribs/dmnutils/CamundaTaskConstants.java b/src/test/java/uk/gov/hmcts/sptribs/dmnutils/CamundaTaskConstants.java
index 5a20c0b233..53167a31af 100644
--- a/src/test/java/uk/gov/hmcts/sptribs/dmnutils/CamundaTaskConstants.java
+++ b/src/test/java/uk/gov/hmcts/sptribs/dmnutils/CamundaTaskConstants.java
@@ -67,6 +67,7 @@ private CamundaTaskConstants() {
public static final String REVIEW_RULE27_REQ_LO_TASK = "reviewRule27RequestLO";
public static final String PROCESS_RULE27_DECISION_TASK = "processRule27Decision";
public static final String REVIEW_STAY_REQ_JUDGE_TASK = "reviewStayRequestJudge";
+ public static final String REVIEW_STAY_REQ_CASE_LISTED_JUDGE_TASK = "reviewStayRequestCaseListedJudge";
public static final String REVIEW_STAY_REQ_LO_TASK = "reviewStayRequestLO";
public static final String PROCESS_STAY_DIR_TASK = "processStayDirections";
public static final String REVIEW_LISTING_DIR_JUDGE_TASK = "reviewListingDirectionsJudge";