diff --git a/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn b/src/main/resources/wa-task-completion-privatelaw-prlapps.dmn index 5af8cd87..edb60242 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 @@ - + @@ -284,6 +284,28 @@ "Auto" + + + "fl401ListOnNotice" + + + "directionOnIssue" + + + "Auto" + + + + + "listWithoutNotice" + + + "directionOnIssue" + + + "Auto" + + "manageOrders" @@ -295,9 +317,20 @@ "Auto" + + + "returnApplication" + + + "directionOnIssueResubmitted" + + + "Auto" + + - "returnApplication" + "fl401ListOnNotice" "directionOnIssueResubmitted" @@ -306,6 +339,17 @@ "Auto" + + + "listWithoutNotice" + + + "directionOnIssueResubmitted" + + + "Auto" + + "manageOrders" 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 07caef7b..78313aa2 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 @@ -340,6 +340,32 @@ static Stream scenarioProvider() { ), Map.of() ) + ), + Arguments.of( + "listWithoutNotice", + asList( + Map.of( + "taskType", "directionOnIssue", + "completionMode", "Auto" + ), + Map.of( + "taskType", "directionOnIssueResubmitted", + "completionMode", "Auto" + ) + ) + ), + Arguments.of( + "fl401ListOnNotice", + asList( + Map.of( + "taskType", "directionOnIssue", + "completionMode", "Auto" + ), + Map.of( + "taskType", "directionOnIssueResubmitted", + "completionMode", "Auto" + ) + ) ) ); } @@ -362,7 +388,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(61)); + assertThat(logic.getRules().size(), is(65)); }