diff --git a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn index fbc9c970..2c707e5e 100644 --- a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn +++ b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn @@ -4068,7 +4068,7 @@ and additionalData.Data.isHearingTaskNeeded != null) then - + "No" @@ -4104,6 +4104,77 @@ and additionalData.Data.isHearingTaskNeeded != null) then "completefl416AndServe" + + + "confidentialityCheck" + + + "JUDICIAL_REVIEW","PREPARE_FOR_HEARING_CONDUCT_HEARING" + + + "FL401" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "Yes" + + + "Yes" + + + + + + + + + + + + + + + + + + "completefl416AndServe" + + + "Complete FL416 and serve applicant only" + + + + + + "completefl416AndServe" + + "confidentialityCheck" 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 38f31059..be5ef111 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 @@ -37,7 +37,7 @@ void if_this_test_fails_needs_updating_with_your_changes() { DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic(); assertThat(logic.getInputs().size(), is(19)); assertThat(logic.getOutputs().size(), is(4)); - assertThat(logic.getRules().size(), is(81)); + assertThat(logic.getRules().size(), is(82)); } static Stream scenarioProvider() { @@ -826,6 +826,25 @@ static Stream scenarioProvider() { mapAdditionalData("{\n" + " \"Data\":{\n" + " \"caseTypeOfApplication\":\"" + "FL401" + "\"\n," + + " \"isC8CheckNeeded\":\"" + "No" + "\"\n," + + " \"isOccupationOrderSelected\":\"" + "Yes" + "\"\n" + + " }" + + "}"), + List.of( + Map.of( + "name", "Complete FL416 and serve applicant only", + "processCategories", "completefl416AndServe", + "taskId", "completefl416AndServe" + ) + ) + ), + Arguments.of( + "confidentialityCheck", + "JUDICIAL_REVIEW", + mapAdditionalData("{\n" + + " \"Data\":{\n" + + " \"caseTypeOfApplication\":\"" + "FL401" + "\"\n," + + " \"isC8CheckApproved\":\"" + "Yes" + "\"\n," + " \"isOccupationOrderSelected\":\"" + "Yes" + "\"\n" + " }" + "}"),