Skip to content

Commit

Permalink
Merge pull request #93 from hmcts/feature/citizen-case-submission
Browse files Browse the repository at this point in the history
Citizen case submission
  • Loading branch information
yogendraU authored Jan 9, 2024
2 parents 243b954 + fda62c3 commit a8e9d96
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
52 changes: 51 additions & 1 deletion src/main/resources/wa-task-initiation-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:camunda="http://camunda.org/schema/1.0/dmn" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="wa-initiation-definition" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.1.0">
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:camunda="http://camunda.org/schema/1.0/dmn" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" xmlns:dmndi="https://www.omg.org/spec/DMN/20191111/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" id="wa-initiation-definition" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.15.1">
<decision id="wa-task-initiation-privatelaw-prlapps" name="Private Law Task initiation DMN">
<decisionTable id="DecisionTable_0jtevuc" hitPolicy="COLLECT" biodi:annotationsWidth="400">
<input id="Input_1" label="Event Id" biodi:width="216" camunda:inputVariable="eventId">
Expand Down Expand Up @@ -378,6 +378,56 @@
<text>"applicationCheck"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0dolujc">
<inputEntry id="UnaryTests_15of9sj">
<text>"citizen-case-submit"</text>
</inputEntry>
<inputEntry id="UnaryTests_148slq0">
<text>"SUBMITTED_PAID"</text>
</inputEntry>
<inputEntry id="UnaryTests_0h0x34x">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_113basm">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0uqsre2">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1oqb2gx">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0fvsfqe">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0seot7t">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1hzdp3u">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_05cowje">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1n58c61">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1na7wp8">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_00tib88">
<text>"checkApplicationC100"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1i7fw8x">
<text>"Check Application"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0qoayn6">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0d6n3uo">
<text>"applicationCheck"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1205pgi">
<inputEntry id="UnaryTests_1b29g9t">
<text>"issueAndSendToLocalCourtCallback"</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(12));
assertThat(logic.getOutputs().size(), is(4));
assertThat(logic.getRules().size(), is(45));
assertThat(logic.getRules().size(), is(46));
}

static Stream<Arguments> scenarioProvider() {
Expand Down Expand Up @@ -75,6 +75,22 @@ static Stream<Arguments> scenarioProvider() {
)
)
),
Arguments.of(
"citizen-case-submit",
"SUBMITTED_PAID",
mapAdditionalData("{\n"
+ " \"Data\":{\n"
+ " \"caseTypeOfApplication\":\"" + "" + "\"\n"
+ " }"
+ "}"),
singletonList(
Map.of(
"taskId", "checkApplicationC100",
"name", "Check Application",
"processCategories", "applicationCheck"
)
)
),
Arguments.of(
"fl401StatementOfTruthAndSubmit",
"SUBMITTED_PAID",
Expand Down

0 comments on commit a8e9d96

Please sign in to comment.