Skip to content

Commit

Permalink
Merge pull request #115 from hmcts/fix/PRL-5386-task-priority-checkAp…
Browse files Browse the repository at this point in the history
…plication

Priority setup for check application task
  • Loading branch information
AlokDatta authored Apr 5, 2024
2 parents 95be532 + 6615ffc commit 5786dcd
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text>"majorPriority"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1h1xvth">
<text>if (caseData.isUrgentFlag != null and caseData.isUrgentFlag="Yes") then 2000 else if (caseData.allegationsOfHarmYesNo != null and caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
<text>if (caseData.isCaseUrgent != null and caseData.isCaseUrgent="Yes") then 2000 else if (caseData.newAllegationsOfHarmYesNo != null and caseData.newAllegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
</outputEntry>
<outputEntry id="LiteralExpression_0gfut7a">
<text></text>
Expand All @@ -555,8 +555,8 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
</outputEntry>
<outputEntry id="LiteralExpression_0w906jt">
<text>if (caseData.caseTypeOfApplication = "FL401") then 1000 else if (caseData.caseTypeOfApplication = "C100" and caseDate.isCaseUrgent != null and caseData.isCaseUrgent="Yes") then 2000
else if (caseData.caseTypeOfApplication = "C100" and caseData.allegationsOfHarmYesNo != null and
caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
else if (caseData.caseTypeOfApplication = "C100" and caseData.newAllegationsOfHarmYesNo != null and
caseData.newAllegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
</outputEntry>
<outputEntry id="LiteralExpression_0ve8n1e">
<text></text>
Expand Down
71 changes: 71 additions & 0 deletions src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -6518,6 +6518,77 @@ and additionalData.Data.isHearingTaskNeeded != null) then
<text>"reviewDocsC100"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1dq8fxj">
<inputEntry id="UnaryTests_1llhs7k">
<text>"reviewAndSubmit"</text>
</inputEntry>
<inputEntry id="UnaryTests_19wo9i1">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0jwtlz8">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_19l2hbq">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0nbks5e">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_073d96t">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0qnyx7a">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_13kttyw">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_10ydcvi">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1l9k4ws">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0hl5k59">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0rnhkyp">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_02qls3a">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1jjj3fw">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1s99x5j">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0pnq7yu">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1glo8fq">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1u1vgsr">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0qvhxb5">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0wumq3s">
<text>"reviewDocumentsForSolAndCafcassC100"</text>
</outputEntry>
<outputEntry id="LiteralExpression_09n6mn9">
<text>"Review Documents"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0g0je6w">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0gsrt7k">
<text>"reviewDocsC100"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1l15w48">
<inputEntry id="UnaryTests_02sfnpt">
<text>"c100listWithoutNotice"</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(19));
assertThat(logic.getOutputs().size(), is(4));
assertThat(logic.getRules().size(), is(90));
assertThat(logic.getRules().size(), is(91));
}

static Stream<Arguments> scenarioProvider() {
Expand Down

0 comments on commit 5786dcd

Please sign in to comment.