Skip to content

Commit

Permalink
Merge pull request #135 from hmcts/feature/courtnav-task-enablement
Browse files Browse the repository at this point in the history
Courtnav WA changes to enable task
  • Loading branch information
AlokDatta authored May 28, 2024
2 parents dc89221 + d62e3b2 commit f7d691c
Show file tree
Hide file tree
Showing 2 changed files with 191 additions and 1 deletion.
148 changes: 148 additions & 0 deletions src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,80 @@ and additionalData.Data.isHearingTaskNeeded != null) then
<text>"applicationCheck"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1mgqoux">
<inputEntry id="UnaryTests_1h34ynp">
<text>"testingSupportDummySolicitorCreateCourtNav"</text>
</inputEntry>
<inputEntry id="UnaryTests_17bm1no">
<text>"SUBMITTED_PAID"</text>
</inputEntry>
<inputEntry id="UnaryTests_0032nly">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1vbezn1">
<text>-</text>
</inputEntry>
<inputEntry id="UnaryTests_0jnuwl2">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0s97l3d">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0cxgfnu">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0gzbuwm">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0ca7ao2">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0j686mg">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1qv2ig1">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1qlld5o">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0zjzoom">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0z0q9fs">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_17pm8kc">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1e47fza">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0n0y0f0">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0h03yqh">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_15z3s5d">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0bgq3n1">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0oz67pr">
<text>"checkApplicationFL401"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1fsb0m2">
<text>"Check Application"</text>
</outputEntry>
<outputEntry id="LiteralExpression_13qnbsy">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_13mi2qv">
<text>"applicationCheck"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0mh63vx">
<inputEntry id="UnaryTests_0s8sdff">
<text>"fl401resubmit"</text>
Expand Down Expand Up @@ -557,6 +631,80 @@ and additionalData.Data.isHearingTaskNeeded != null) then
<text>"localCourtGatekeepingFL401"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1r515e6">
<inputEntry id="UnaryTests_1h3ugq0">
<text>"testingSupportDummySolicitorCreateCourtNav"</text>
</inputEntry>
<inputEntry id="UnaryTests_1imsof4">
<text>"SUBMITTED_PAID"</text>
</inputEntry>
<inputEntry id="UnaryTests_047hx5q">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1y4av4m">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0dyjzfs">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1aqvqyn">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0x4pifv">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0gzko3q">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0wvdwks">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0wc8iu6">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1gnwhb4">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_00evfpr">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1n3s19v">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1xosos6">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_05lkcrr">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_10pbhss">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0m5xr9p">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1xf0rzn">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_12yab93">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0w0umrb">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_11cxspx">
<text>"sendToGateKeeperFL401"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1ria8hs">
<text>"Send to Gatekeeper"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0se2lc0">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0ynh68e">
<text>"localCourtGatekeepingFL401"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_04rx9im">
<inputEntry id="UnaryTests_0ex8hvo">
<text>"fl401resubmit"</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arguments> scenarioProvider() {
Expand Down Expand Up @@ -128,6 +128,48 @@ static Stream<Arguments> 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",
Expand Down

0 comments on commit f7d691c

Please sign in to comment.