diff --git a/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn b/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
index edb60242..68ad2d92 100644
--- a/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
+++ b/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
@@ -1,5 +1,5 @@
-
+
@@ -713,9 +713,31 @@
"Auto"
+
+
+ "serviceOfDocumentsConfCheck"
+
+
+ "confidentialCheckDocuments"
+
+
+ "Auto"
+
+
+
+
+ "serviceOfDocuments"
+
+
+ "checkAndReServeDocuments"
+
+
+ "Auto"
+
+
- "manageOrders","serviceOfApplication","createBundle","adminEditAndApproveAnOrder","returnApplication","sendOrReplyToMessages","adminRemoveLegalRepresentativeC100","adminRemoveLegalRepresentativeFL401","c100ManageFlags","fl401ManageFlags","statementOfService"
+ "manageOrders","serviceOfApplication","createBundle","adminEditAndApproveAnOrder","returnApplication","sendOrReplyToMessages","adminRemoveLegalRepresentativeC100","adminRemoveLegalRepresentativeFL401","c100ManageFlags","fl401ManageFlags","statementOfService","serviceOfDocuments"
diff --git a/src/main/resources/wa-task-configuration-privatelaw-prlapps.dmn b/src/main/resources/wa-task-configuration-privatelaw-prlapps.dmn
index 62f81a01..b2837d4b 100644
--- a/src/main/resources/wa-task-configuration-privatelaw-prlapps.dmn
+++ b/src/main/resources/wa-task-configuration-privatelaw-prlapps.dmn
@@ -349,7 +349,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null
- "checkApplicationC100","checkApplicationResubmittedC100","checkApplicationFL401","checkApplicationResubmittedFL401","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleC100","produceHearingBundleFL100","updateHearingActualsC100","updateHearingActualsFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","confidentialCheckSOA","recreateApplicationPack","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewLangAndSmReq","listWithoutNoticeHearingFL401"
+ "checkApplicationC100","checkApplicationResubmittedC100","checkApplicationFL401","checkApplicationResubmittedFL401","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleC100","produceHearingBundleFL100","updateHearingActualsC100","updateHearingActualsFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","confidentialCheckSOA","recreateApplicationPack","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewLangAndSmReq","listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments"
@@ -429,7 +429,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null
- "checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewSpecificAccessRequestAdmin","checkApplicationC100","checkApplicationResubmittedC100","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewSpecificAccessRequestCTSC","reviewAdminOrderProvided","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForJudiciary","reviewDocumentsForSolAndCafcassC100","reviewDocumentsForSolAndCafcassFL401","replyToMessageForLA","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","reviewAdditionalApplication","reviewLangAndSmReq","checkAwpHwfCitizen"
+ "checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewSpecificAccessRequestAdmin","checkApplicationC100","checkApplicationResubmittedC100","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewSpecificAccessRequestCTSC","reviewAdminOrderProvided","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForJudiciary","reviewDocumentsForSolAndCafcassC100","reviewDocumentsForSolAndCafcassFL401","replyToMessageForLA","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","reviewAdditionalApplication","reviewLangAndSmReq","checkAwpHwfCitizen","confidentialCheckDocuments"
@@ -672,7 +672,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null
- "reviewSolicitorOrderProvided","reviewAdminOrderProvided","confidentialCheckSOA","recreateApplicationPack","replyToMessageForJudiciary","reviewAdminOrderByManager","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","checkAwpHwfCitizen"
+ "reviewSolicitorOrderProvided","reviewAdminOrderProvided","confidentialCheckSOA","recreateApplicationPack","replyToMessageForJudiciary","reviewAdminOrderByManager","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","checkAwpHwfCitizen","confidentialCheckDocuments","checkAndReServeDocuments"
@@ -853,7 +853,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null
- "addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationC100","adminServeOrderC100","serviceOfApplicationFL401","adminServeOrderFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","reviewCorrespondenceC100","reviewCorrespondenceFL401","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","reviewDocumentsForSolAndCafcassC100","reviewDocumentsForSolAndCafcassFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","replyToMessageForJudiciary","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewAdditionalApplication","reviewLangAndSmReq","recreateApplicationPack","replyToMessageForCourtAdminFL401","checkAwpHwfCitizen","listWithoutNoticeHearingFL401"
+ "addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationC100","adminServeOrderC100","serviceOfApplicationFL401","adminServeOrderFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","reviewCorrespondenceC100","reviewCorrespondenceFL401","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","reviewDocumentsForSolAndCafcassC100","reviewDocumentsForSolAndCafcassFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","replyToMessageForJudiciary","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewAdditionalApplication","reviewLangAndSmReq","recreateApplicationPack","replyToMessageForCourtAdminFL401","checkAwpHwfCitizen","listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments"
@@ -993,7 +993,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null
- "checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleFL401","produceHearingBundleC100","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewCorrespondenceFL401","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewCorrespondenceC100","reviewSpecificAccessRequestAdmin","removeLegalRepresentativeFL401","reviewDocumentsForSolAndCafcassFL401","reviewDocumentsForSolAndCafcassC100","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsFL401","reviewInactiveRaRequestsFL401","recreateApplicationPack","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","confidentialCheckSOA","completefl416AndServe","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","replyToMessageForCourtAdminFL401","reviewRaRequestsC100","reviewInactiveRaRequestsC100","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewAdditionalApplication","reviewLangAndSmReq","listWithoutNoticeHearingFL401"
+ "checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleFL401","produceHearingBundleC100","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewCorrespondenceFL401","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewCorrespondenceC100","reviewSpecificAccessRequestAdmin","removeLegalRepresentativeFL401","reviewDocumentsForSolAndCafcassFL401","reviewDocumentsForSolAndCafcassC100","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsFL401","reviewInactiveRaRequestsFL401","recreateApplicationPack","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","confidentialCheckSOA","completefl416AndServe","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","replyToMessageForCourtAdminFL401","reviewRaRequestsC100","reviewInactiveRaRequestsC100","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewAdditionalApplication","reviewLangAndSmReq","listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments"
@@ -1810,6 +1810,46 @@ taskAttributes. taskType else if(taskType != null) then taskType else null
+
+
+
+
+
+ "confidentialCheckDocuments"
+
+
+
+
+
+ "description"
+
+
+ "[Confidential check - Documents](/cases/case-details/${[CASE_REFERENCE]}/trigger/serviceOfDocumentsConfCheck/serviceOfDocumentsConfCheck1)"
+
+
+
+
+
+
+
+
+
+
+ "checkAndReServeDocuments"
+
+
+
+
+
+ "description"
+
+
+ "[Check and re-serve documents](/cases/case-details/${[CASE_REFERENCE]}/trigger/serviceOfDocuments/serviceOfDocuments1)"
+
+
+
+
+
diff --git a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
index 024b1654..9cb3d443 100644
--- a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
+++ b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
@@ -1,5 +1,5 @@
-
+
@@ -8955,6 +8955,166 @@ and additionalData.Data.isHearingTaskNeeded != null) then
"reviewDocsFL401"
+
+
+ "serviceOfDocuments"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "Yes"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "confidentialCheckDocuments"
+
+
+ "Confidential check - Documents"
+
+
+
+
+
+ "confidentialCheckDocuments"
+
+
+
+
+ "serviceOfDocumentsConfCheck"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "No"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ "checkAndReServeDocuments"
+
+
+ "Check and re-serve documents"
+
+
+
+
+
+ "checkAndReServeDocuments"
+
+
diff --git a/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn b/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn
index e4b0a5b9..7ab889d3 100644
--- a/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn
+++ b/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn
@@ -479,7 +479,7 @@
Admin task permissions
- "serviceOfApplicationFL401","adminServeOrderFL401","recreateApplicationPack","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe"
+ "serviceOfApplicationFL401","adminServeOrderFL401","recreateApplicationPack","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","checkAndReServeDocuments"
@@ -628,7 +628,7 @@
Admin task permissions
- "reviewAdminOrderByManager","confidentialCheckSOA"
+ "reviewAdminOrderByManager","confidentialCheckSOA","confidentialCheckDocuments"
diff --git a/src/main/resources/wa-task-types-privatelaw-prlapps.dmn b/src/main/resources/wa-task-types-privatelaw-prlapps.dmn
index 91231161..1d1aa633 100644
--- a/src/main/resources/wa-task-types-privatelaw-prlapps.dmn
+++ b/src/main/resources/wa-task-types-privatelaw-prlapps.dmn
@@ -717,6 +717,30 @@
"Check HWF on additional application"
+
+ CCSOD
+
+
+
+
+ "confidentialCheckDocuments"
+
+
+ "Confidential check - Documents"
+
+
+
+ CHKRESDOCS
+
+
+
+
+ "checkAndReServeDocuments"
+
+
+ "Check and re-serve documents"
+
+
@@ -726,4 +750,4 @@
-
+
\ No newline at end of file
diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskCompletionTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskCompletionTest.java
index 78313aa2..c58d9b3e 100644
--- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskCompletionTest.java
+++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskCompletionTest.java
@@ -366,6 +366,25 @@ static Stream scenarioProvider() {
"completionMode", "Auto"
)
)
+ ),
+ Arguments.of(
+ "serviceOfDocumentsConfCheck",
+ List.of(
+ Map.of(
+ "taskType", "confidentialCheckDocuments",
+ "completionMode", "Auto"
+ )
+ )
+ ),
+ Arguments.of(
+ "serviceOfDocuments",
+ List.of(
+ Map.of(
+ "taskType", "checkAndReServeDocuments",
+ "completionMode", "Auto"
+ ),
+ Map.of()
+ )
)
);
}
@@ -388,7 +407,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(65));
+ assertThat(logic.getRules().size(), is(67));
}
diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskConfigurationTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskConfigurationTest.java
index aa3a6b40..353da269 100644
--- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskConfigurationTest.java
+++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskConfigurationTest.java
@@ -34,7 +34,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(3));
- assertThat(logic.getRules().size(), is(89));
+ assertThat(logic.getRules().size(), is(91));
}
@@ -232,7 +232,8 @@ void when_caseData_then_return_expected_dueDateFields() {
"updateHearingActualsC100","updateHearingActualsFL401","requestSolicitorOrderC100",
"requestSolicitorOrderFL401","confidentialCheckSOA","recreateApplicationPack",
"replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForLA",
- "completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewLangAndSmReq"
+ "completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewLangAndSmReq",
+ "listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments"
})
void when_given_task_type_then_return_dueDateIntervalDays_and_validate_description(String taskType) {
VariableMap inputVariables = new VariableMapImpl();
@@ -510,7 +511,7 @@ void when_given_task_type_then_return_dueDateIntervalDaysIsFive_and_validate_des
"reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100",
"reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP",
"appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin",
- "completefl416AndServe","reviewAdditionalApplication","reviewLangAndSmReq"
+ "completefl416AndServe","reviewAdditionalApplication","reviewLangAndSmReq","confidentialCheckDocuments"
})
void when_given_task_type_then_return_priorityDateOriginRef_and_validate_description(String taskType) {
VariableMap inputVariables = new VariableMapImpl();
@@ -813,7 +814,7 @@ void when_given_task_type_then_return_majorPriorityForValue5000_and_not_validate
"appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff",
"arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe",
"replyToMessageForLA","createHearingRequest","createMultipleHearingRequest",
- "createHearingRequestReserveListAssist"
+ "createHearingRequestReserveListAssist","confidentialCheckDocuments","checkAndReServeDocuments"
})
void when_given_task_type_then_return_majorPriorityForCaseTypeOfApplication_and_validate_description(
String taskType) {
@@ -1155,7 +1156,7 @@ void when_given_task_type_then_return_roleCategory_and_validate_description(
"completefl416AndServe","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100",
"replyToMessageForCourtAdminFL401","reviewRaRequestsC100","reviewInactiveRaRequestsC100",
"listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewAdditionalApplication",
- "reviewLangAndSmReq"
+ "reviewLangAndSmReq","confidentialCheckDocuments","checkAndReServeDocuments"
})
void when_given_task_type_then_return_roleCategoryForValueAdmin_and_validate_description(
String taskType) {
@@ -1507,6 +1508,7 @@ private static String getDescriptionBasedOnTaskType(String taskType) {
case "listWithoutNoticeHearingC100":
case "listOnNoticeHearingFL401":
+ case "listWithoutNoticeHearingFL401":
return "";
case "reviewAdditionalApplication":
@@ -1521,6 +1523,14 @@ private static String getDescriptionBasedOnTaskType(String taskType) {
case "checkHwfApplicationC100":
return "[Check HWF application](/cases/case-details/${[CASE_REFERENCE]}#Application_)";
+ case "confidentialCheckDocuments":
+ return "[Confidential check - Documents](/cases/case-details/${[CASE_REFERENCE]}"
+ + "/trigger/serviceOfDocumentsConfCheck/serviceOfDocumentsConfCheck1)";
+
+ case "checkAndReServeDocuments":
+ return "[Check and re-serve documents](/cases/case-details/${[CASE_REFERENCE]}"
+ + "/trigger/serviceOfDocuments/serviceOfDocuments1)";
+
default:
break;
}
@@ -1547,7 +1557,8 @@ private static String getDescriptionBasedOnTaskType(String taskType) {
"arrangeBailiffSOA", "appStatementOfServiceByAdmin",
"completefl416AndServe", "listWithoutNoticeHearingC100",
"listOnNoticeHearingFL401", "reviewAdditionalApplication",
- "reviewLangAndSmReq", "recreateApplicationPack", "replyToMessageForCourtAdminFL401"
+ "reviewLangAndSmReq", "recreateApplicationPack", "replyToMessageForCourtAdminFL401",
+ "confidentialCheckDocuments","checkAndReServeDocuments"
})
void when_given_task_type_then_name_workType_and_validate_value_routine_work(
String taskType) {
diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java
index fec80595..7d2fd447 100644
--- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java
+++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskInitiationTest.java
@@ -41,7 +41,7 @@ void if_this_test_fails_needs_updating_with_your_changes() {
DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic();
assertThat(logic.getInputs().size(), is(22));
assertThat(logic.getOutputs().size(), is(4));
- assertThat(logic.getRules().size(), is(109));
+ assertThat(logic.getRules().size(), is(111));
}
static Stream scenarioProvider() {
@@ -1327,6 +1327,38 @@ static Stream scenarioProvider() {
"processCategories", "orderId_1234567890"
)
)
+ ),
+ Arguments.of(
+ "serviceOfDocuments",
+ null,
+ mapAdditionalData("{\n"
+ + " \"Data\":{\n"
+ + " \"isC8CheckNeeded\":\"" + "Yes" + "\"\n"
+ + " }"
+ + "}"),
+ singletonList(
+ Map.of(
+ "name", "Confidential check - Documents",
+ "processCategories", "confidentialCheckDocuments",
+ "taskId", "confidentialCheckDocuments"
+ )
+ )
+ ),
+ Arguments.of(
+ "serviceOfDocumentsConfCheck",
+ null,
+ mapAdditionalData("{\n"
+ + " \"Data\":{\n"
+ + " \"isC8CheckApproved\":\"" + "No" + "\"\n"
+ + " }"
+ + "}"),
+ singletonList(
+ Map.of(
+ "name", "Check and re-serve documents",
+ "processCategories", "checkAndReServeDocuments",
+ "taskId", "checkAndReServeDocuments"
+ )
+ )
)
);
}
diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java
index 815f5654..85696169 100644
--- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java
+++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java
@@ -515,7 +515,7 @@ void evaluate_task_ctsc_orderManagementc100(String taskType) {
@SuppressWarnings("checkstyle:indentation")
@ParameterizedTest
@CsvSource(value = {
- "serviceOfApplicationC100","adminServeOrderC100",
+ "serviceOfApplicationC100","adminServeOrderC100"
})
void evaluate_task_ctsc_orderManagementc100_2(String taskType) {
VariableMap inputVariables = new VariableMapImpl();
@@ -725,7 +725,9 @@ void evaluate_task_admin_reviewInactiveRaRequestFL401(String taskType) {
@ParameterizedTest
@CsvSource(value = {
- "confidentialCheckSOA"
+ "reviewAdminOrderByManager",
+ "confidentialCheckSOA",
+ "confidentialCheckDocuments"
})
void evaluate_task_admin_confidentialCheckSoa(String taskType) {
VariableMap inputVariables = new VariableMapImpl();
@@ -794,8 +796,9 @@ void evaluate_task_admin_createHearingRequest(String taskType) {
"appStatementOfServiceByLiP",
"appStatementOfServiceByBailiff",
"arrangeBailiffSOA",
+ "arrangeBailiffSOA",
"appStatementOfServiceByAdmin",
- "completefl416AndServe"
+ "completefl416AndServe",
})
void evaluate_task_admin_statementOfService(String taskType) {
VariableMap inputVariables = new VariableMapImpl();
diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskTypeFilterTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskTypeFilterTest.java
index 9efb8217..ca91876d 100644
--- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskTypeFilterTest.java
+++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskTypeFilterTest.java
@@ -148,6 +148,10 @@ static Stream scenarioProvider() {
"taskTypeName", "Check HWF application"));
taskTypes.add(Map.of("taskTypeId", "checkAwpHwfCitizen",
"taskTypeName", "Check HWF on additional application"));
+ taskTypes.add(Map.of("taskTypeId", "confidentialCheckDocuments",
+ "taskTypeName", "Confidential check - Documents"));
+ taskTypes.add(Map.of("taskTypeId", "checkAndReServeDocuments",
+ "taskTypeName", "Check and re-serve documents"));
return Stream.of(
Arguments.of(
taskTypes
@@ -171,6 +175,6 @@ 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(59));
+ assertThat(logic.getRules().size(), is(61));
}
}