Skip to content

Commit

Permalink
Merge pull request #95 from hmcts/getkeeping-name-da
Browse files Browse the repository at this point in the history
Getkeeping task name change to Directions on Issue
  • Loading branch information
sathishkannan-hmcts authored Jan 12, 2024
2 parents a8e9d96 + 1c56bcc commit 969c458
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 22 deletions.
22 changes: 22 additions & 0 deletions src/main/resources/wa-task-completion-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,28 @@
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0q5nwqd">
<inputEntry id="UnaryTests_0mjsdfn">
<text>"manageOrders"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0a2jq5b">
<text>"directionOnIssue"</text>
</outputEntry>
<outputEntry id="LiteralExpression_04lzxsi">
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_15tex9n">
<inputEntry id="UnaryTests_0nj45ah">
<text>"returnApplication"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0euiann">
<text>"directionOnIssue"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0hnhngn">
<text>"Auto"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_19m181l">
<inputEntry id="UnaryTests_1fa5tqp">
<text>"manageOrders"</text>
Expand Down
41 changes: 29 additions & 12 deletions src/main/resources/wa-task-configuration-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0tvsteh">
<text>"gateKeeping","gateKeepingResubmitted","serviceOfApplicationC100","serviceOfApplicationFL401","adminServeOrderC100","adminServeOrderFL401","adminServeOrderCreatedByJudgeC100","adminServeOrderCreatedByJudgeFL401","reviewAdminOrderProvided"</text>
<text>"directionOnIssue","gateKeeping","gateKeepingResubmitted","serviceOfApplicationC100","serviceOfApplicationFL401","adminServeOrderC100","adminServeOrderFL401","adminServeOrderCreatedByJudgeC100","adminServeOrderCreatedByJudgeFL401","reviewAdminOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0ixfp2h">
<text>"dueDateIntervalDays"</text>
Expand Down Expand Up @@ -378,7 +378,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1tb79v4">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided", "replyToMessageForJudiciary"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided", "replyToMessageForJudiciary"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0tucp7d">
<text>"calculatedDates"</text>
Expand All @@ -395,7 +395,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0iktol6">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_1ijqt0h">
<text>"nextHearingDatePreDateOriginRef"</text>
Expand All @@ -412,7 +412,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0g9qqrs">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0uhqm5x">
<text>"nextHearingDatePreDateIntervalDays"</text>
Expand All @@ -429,7 +429,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0vgvmxc">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_06l1dup">
<text>"nextHearingDatePreDateNonWorkingCalendar"</text>
Expand All @@ -446,7 +446,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0yds9g8">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_18wcq2b">
<text>"nextHearingDatePreDateNonWorkingDaysOfWeek"</text>
Expand All @@ -463,7 +463,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1i9hse8">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0gykh0v">
<text>"nextHearingDatePreDateSkipNonWorkingDays"</text>
Expand All @@ -480,7 +480,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_19i7035">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0z0xy3x">
<text>"nextHearingDatePreDateMustBeWorkingDay"</text>
Expand All @@ -497,7 +497,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_06p8hre">
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
<text>"reviewCorrespondenceFL401","produceHearingBundleFL401","reviewCorrespondenceC100","produceHearingBundleC100","directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_07bc3mo">
<text>"priorityDateOriginEarliest"</text>
Expand Down Expand Up @@ -548,7 +548,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_05latny">
<text>"gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided","reviewAdminOrderProvided","confidentialCheckSOA", "replyToMessageForJudiciary"</text>
<text>"directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided","reviewAdminOrderProvided","confidentialCheckSOA", "replyToMessageForJudiciary"</text>
</inputEntry>
<outputEntry id="LiteralExpression_121l57m">
<text>"majorPriority"</text>
Expand Down Expand Up @@ -652,7 +652,7 @@ caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1gm06lg">
<text>"gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided","reviewAdminOrderProvided"</text>
<text>"directionOnIssue","gateKeeping","gateKeepingResubmitted","reviewSolicitorOrderProvided","reviewAdminOrderProvided"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0omxasv">
<text>"workType"</text>
Expand Down Expand Up @@ -737,7 +737,7 @@ caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_10f3uas">
<text>"gateKeeping", "gateKeepingResubmitted", "reviewSpecificAccessRequestLegalOps","replyToMessageForLAC100","replyToMessageForLA"</text>
<text>"directionOnIssue","gateKeeping", "gateKeepingResubmitted", "reviewSpecificAccessRequestLegalOps","replyToMessageForLAC100","replyToMessageForLA"</text>
</inputEntry>
<outputEntry id="LiteralExpression_05l5bvs">
<text>"roleCategory"</text>
Expand Down Expand Up @@ -994,6 +994,23 @@ caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
<text></text>
</outputEntry>
</rule>
<rule id="DecisionRule_1ax3bcz">
<inputEntry id="UnaryTests_1n2b1d3">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1wgrovz">
<text>"directionOnIssue"</text>
</inputEntry>
<outputEntry id="LiteralExpression_1i5mia9">
<text>"description"</text>
</outputEntry>
<outputEntry id="LiteralExpression_021pzlj">
<text>"[Directions on Issue]"</text>
</outputEntry>
<outputEntry id="LiteralExpression_10jxi2e">
<text></text>
</outputEntry>
</rule>
<rule id="DecisionRule_0lmjovk">
<inputEntry id="UnaryTests_1y6skp2">
<text></text>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/wa-task-initiation-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -666,10 +666,10 @@
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_12qxqyj">
<text>"gateKeeping"</text>
<text>"directionOnIssue"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0nfd078">
<text>"Gatekeeping"</text>
<text>"Directions on Issue"</text>
</outputEntry>
<outputEntry id="LiteralExpression_05x37ap">
<text></text>
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<rule id="DecisionRule_0ivpl63">
<description>Judicial task permissions</description>
<inputEntry id="UnaryTests_155q736">
<text>"gateKeeping",
<text>"directionOnIssue","gateKeeping",
"gateKeepingResubmitted","reviewSolicitorOrderProvided","reviewAdminOrderProvided", "replyToMessageForJudiciary"</text>
</inputEntry>
<inputEntry id="UnaryTests_0buofva">
Expand Down Expand Up @@ -86,7 +86,7 @@
<rule id="DecisionRule_1ydh51r">
<description>Judicial task permissions</description>
<inputEntry id="UnaryTests_0ngofzz">
<text>"gateKeeping",
<text>"directionOnIssue","gateKeeping",
"gateKeepingResubmitted","reviewSolicitorOrderProvided","reviewAdminOrderProvided", "replyToMessageForJudiciary"</text>
</inputEntry>
<inputEntry id="UnaryTests_0i05m2b">
Expand Down Expand Up @@ -147,7 +147,7 @@
<rule id="DecisionRule_1x1oenn">
<description>Tribunal caseworker task permissions</description>
<inputEntry id="UnaryTests_183egaw">
<text>"gateKeeping",
<text>"directionOnIssue","gateKeeping",
"gateKeepingResubmitted","replyToMessageForLA"</text>
</inputEntry>
<inputEntry id="UnaryTests_18tqbn3">
Expand Down
14 changes: 13 additions & 1 deletion src/main/resources/wa-task-types-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:modeler="http://camunda.org/schema/modeler/1.0" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="Definitions_1u2v3e3" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.11.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.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:modeler="http://camunda.org/schema/modeler/1.0" xmlns:biodi="http://bpmn.io/schema/dmn/biodi/2.0" id="Definitions_1u2v3e3" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.1.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.17.0">
<decision id="wa-task-types-privatelaw-prlapps" name="Private Law Task Types DMN">
<decisionTable id="DecisionTable_07kcj0o" hitPolicy="COLLECT">
<input id="Input_1">
Expand Down Expand Up @@ -129,6 +129,18 @@
<text>"Send to Gatekeeper Resubmitted C100"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0b3mdzp">
<description>DOI</description>
<inputEntry id="UnaryTests_00jcqzv">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0ffv2rz">
<text>"directionOnIssue"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1ql6tu9">
<text>"Directions on Issue"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_09isqs0">
<description>GK</description>
<inputEntry id="UnaryTests_030i0zo">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ static Stream<Arguments> scenarioProvider() {
"taskType", "sendToGateKeeperFL401Resubmitted",
"completionMode", "Auto"
),
Map.of(
"taskType", "directionOnIssue",
"completionMode", "Auto"
),
Map.of(
"taskType", "gateKeeping",
"completionMode", "Auto"
Expand Down Expand Up @@ -114,6 +118,10 @@ static Stream<Arguments> scenarioProvider() {
"taskType", "sendToGateKeeperFL401Resubmitted",
"completionMode", "Auto"
),
Map.of(
"taskType", "directionOnIssue",
"completionMode", "Auto"
),
Map.of(
"taskType", "gateKeeping",
"completionMode", "Auto"
Expand Down Expand Up @@ -288,7 +296,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(49));
assertThat(logic.getRules().size(), is(51));
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ static Stream<Arguments> scenarioProvider() {
+ "}"),
singletonList(
Map.of(
"taskId", "gateKeeping",
"name", "Gatekeeping",
"taskId", "directionOnIssue",
"name", "Directions on Issue",
"processCategories", "gateKeeping"
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ void given_null_or_empty_inputs_when_evaluate_dmn_it_returns_expected_rules(Stri
@SuppressWarnings("checkstyle:indentation")
@ParameterizedTest
@CsvSource(value = {
"directionOnIssue",
"gateKeeping",
"gateKeepingResubmitted"
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ 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(36));
assertThat(logic.getRules().size(), is(37));
}
}

0 comments on commit 969c458

Please sign in to comment.