diff --git a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn index 5ed6431d..84ed7637 100644 --- a/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn +++ b/src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn @@ -335,6 +335,80 @@ and additionalData.Data.isHearingTaskNeeded != null) then "applicationCheck" + + + "testingSupportDummySolicitorCreateCourtNav" + + + "SUBMITTED_PAID" + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "checkApplicationFL401" + + + "Check Application" + + + + + + "applicationCheck" + + "fl401resubmit" @@ -557,6 +631,80 @@ and additionalData.Data.isHearingTaskNeeded != null) then "localCourtGatekeepingFL401" + + + "testingSupportDummySolicitorCreateCourtNav" + + + "SUBMITTED_PAID" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "sendToGateKeeperFL401" + + + "Send to Gatekeeper" + + + + + + "localCourtGatekeepingFL401" + + "fl401resubmit" 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 8b627d38..13cc9af2 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(20)); assertThat(logic.getOutputs().size(), is(4)); - assertThat(logic.getRules().size(), is(97)); + assertThat(logic.getRules().size(), is(99)); } static Stream scenarioProvider() { @@ -128,6 +128,48 @@ static Stream scenarioProvider() { ) ) ), + Arguments.of( + "courtnav-case-creation", + "SUBMITTED_PAID", + mapAdditionalData("{\n" + + " \"Data\":{\n" + + " \"caseTypeOfApplication\":\"" + "" + "\"\n" + + " }" + + "}"), + List.of( + Map.of( + "taskId", "checkApplicationFL401", + "name", "Check Application", + "processCategories", "applicationCheck" + ), + Map.of( + "taskId", "sendToGateKeeperFL401", + "name", "Send to Gatekeeper", + "processCategories", "localCourtGatekeepingFL401" + ) + ) + ), + Arguments.of( + "testingSupportDummySolicitorCreateCourtNav", + "SUBMITTED_PAID", + mapAdditionalData("{\n" + + " \"Data\":{\n" + + " \"caseTypeOfApplication\":\"" + "" + "\"\n" + + " }" + + "}"), + List.of( + Map.of( + "taskId", "checkApplicationFL401", + "name", "Check Application", + "processCategories", "applicationCheck" + ), + Map.of( + "taskId", "sendToGateKeeperFL401", + "name", "Send to Gatekeeper", + "processCategories", "localCourtGatekeepingFL401" + ) + ) + ), Arguments.of( "fl401resubmit", "SUBMITTED_PAID",