Skip to content

Commit

Permalink
Merge pull request #180 from hmcts/directiononissue-autocomplete
Browse files Browse the repository at this point in the history
Directions on Issue task should be auto completed by list on notice a…
  • Loading branch information
sathishkannan-hmcts authored Oct 23, 2024
2 parents dae9717 + cad2b58 commit 1dbb9d5
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 3 deletions.
48 changes: 46 additions & 2 deletions src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="wa-completion-definition" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.26.0">
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="wa-completion-definition" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.1.0">
<decision id="wa-task-completion-privatelaw-prlapps" name="Private Law Task completion DMN">
<decisionTable id="DecisionTable_01re27m" hitPolicy="COLLECT">
<input id="eventId" label="Event ID" biodi:width="437">
Expand Down Expand Up @@ -284,6 +284,28 @@
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1bwy9uj">
<inputEntry id="UnaryTests_0493prq">
<text>"fl401ListOnNotice"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0x72xlg">
<text>"directionOnIssue"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0qb9ciq">
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1inazzf">
<inputEntry id="UnaryTests_1jagps6">
<text>"listWithoutNotice"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0c8s65y">
<text>"directionOnIssue"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0abgz2p">
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0rv95b2">
<inputEntry id="UnaryTests_1ih7ttg">
<text>"manageOrders"</text>
Expand All @@ -295,9 +317,20 @@
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0iy0937">
<inputEntry id="UnaryTests_0llq19g">
<text>"returnApplication"</text>
</inputEntry>
<outputEntry id="LiteralExpression_1t8s33k">
<text>"directionOnIssueResubmitted"</text>
</outputEntry>
<outputEntry id="LiteralExpression_02qywv3">
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1p3stm6">
<inputEntry id="UnaryTests_1oy0t8b">
<text>"returnApplication"</text>
<text>"fl401ListOnNotice"</text>
</inputEntry>
<outputEntry id="LiteralExpression_13oz1bj">
<text>"directionOnIssueResubmitted"</text>
Expand All @@ -306,6 +339,17 @@
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_104f1eq">
<inputEntry id="UnaryTests_0dahw6a">
<text>"listWithoutNotice"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0a5k5hg">
<text>"directionOnIssueResubmitted"</text>
</outputEntry>
<outputEntry id="LiteralExpression_110b3ax">
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_19m181l">
<inputEntry id="UnaryTests_1fa5tqp">
<text>"manageOrders"</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,32 @@ static Stream<Arguments> 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"
)
)
)
);
}
Expand All @@ -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));
}


Expand Down

0 comments on commit 1dbb9d5

Please sign in to comment.