Skip to content

Commit

Permalink
Merge pull request #106 from hmcts/PRL-4510-CA-ListWithoutNotice-wa
Browse files Browse the repository at this point in the history
PRL-4510-CA-ListWithoutNotice
  • Loading branch information
yogendraU authored Feb 27, 2024
2 parents 6bd61e0 + 3d2ca29 commit 5d96a1b
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 12 deletions.
27 changes: 22 additions & 5 deletions src/main/resources/wa-task-configuration-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" xmlns:camunda="http://camunda.org/schema/1.0/dmn" id="wa-configuration-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: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" xmlns:camunda="http://camunda.org/schema/1.0/dmn" id="wa-configuration-definition" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.11.0">
<decision id="wa-task-configuration-privatelaw-prlapps" name="Private Law Task configuration DMN">
<decisionTable id="DecisionTable_14cx079" hitPolicy="COLLECT">
<input id="InputClause_1gxyo7f" label="CCD Case Data" camunda:inputVariable="caseData">
Expand Down 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>"directionOnIssue","directionOnIssueResubmitted","gateKeeping","gateKeepingResubmitted","serviceOfApplicationC100","serviceOfApplicationFL401","serviceOfApplicationC100","adminServeOrderC100","serviceOfApplicationFL401","adminServeOrderFL401","reviewAdminOrderProvided","reviewAdminOrderByManager","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401"</text>
<text>"directionOnIssue","directionOnIssueResubmitted","gateKeeping","gateKeepingResubmitted","serviceOfApplicationC100","serviceOfApplicationFL401","serviceOfApplicationC100","adminServeOrderC100","serviceOfApplicationFL401","adminServeOrderFL401","reviewAdminOrderProvided","reviewAdminOrderByManager","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","listWithoutNoticeHearingC100"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0ixfp2h">
<text>"dueDateIntervalDays"</text>
Expand Down Expand Up @@ -531,7 +531,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0f0gzeq">
<text>"checkApplicationC100","checkApplicationResubmittedC100","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewSpecificAccessRequestCTSC","reviewCorrespondenceC100","produceHearingBundleC100","removeLegalRepresentativeC100", "replyToMessageForCourtAdminC100","reviewDocumentsForSolAndCafcassC100","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist"</text>
<text>"checkApplicationC100","checkApplicationResubmittedC100","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewSpecificAccessRequestCTSC","reviewCorrespondenceC100","produceHearingBundleC100","removeLegalRepresentativeC100", "replyToMessageForCourtAdminC100","reviewDocumentsForSolAndCafcassC100","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","listWithoutNoticeHearingC100"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0jiva8u">
<text>"majorPriority"</text>
Expand Down Expand Up @@ -635,7 +635,7 @@ caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1y3kj1v">
<text>"addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationC100","adminServeOrderC100","serviceOfApplicationFL401","adminServeOrderFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","reviewCorrespondenceC100","reviewCorrespondenceFL401","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","reviewDocumentsForSolAndCafcassC100", "reviewDocumentsForSolAndCafcassFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","replyToMessageForJudiciary","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe"</text>
<text>"addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationC100","adminServeOrderC100","serviceOfApplicationFL401","adminServeOrderFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","reviewCorrespondenceC100","reviewCorrespondenceFL401","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","reviewDocumentsForSolAndCafcassC100", "reviewDocumentsForSolAndCafcassFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","replyToMessageForJudiciary","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","listWithoutNoticeHearingC100"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0rvgay2">
<text>"workType"</text>
Expand Down Expand Up @@ -778,7 +778,7 @@ caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
<text>"checkApplicationC100", "checkApplicationResubmittedC100",
"addCaseNumber", "addCaseNumberResubmitted",
"sendToGateKeeperC100", "sendToGateKeeperResubmittedC100",
"reviewSpecificAccessRequestCTSC","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","reviewRaRequestsC100","reviewInactiveRaRequestsC100"</text>
"reviewSpecificAccessRequestCTSC","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","reviewRaRequestsC100","reviewInactiveRaRequestsC100","listWithoutNoticeHearingC100"</text>
</inputEntry>
<outputEntry id="LiteralExpression_18u6y8m">
<text>"roleCategory"</text>
Expand Down Expand Up @@ -1368,6 +1368,23 @@ caseData.allegationsOfHarmYesNo="Yes") then 3000 else 5000</text>
<text></text>
</outputEntry>
</rule>
<rule id="DecisionRule_1cpr55n">
<inputEntry id="UnaryTests_02xgesy">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_17rymvk">
<text>"listWithoutNoticeHearingC100"</text>
</inputEntry>
<outputEntry id="LiteralExpression_0he0eks">
<text>"description"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0oxopul">
<text>""</text>
</outputEntry>
<outputEntry id="LiteralExpression_0z83sm9">
<text></text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
Expand Down
73 changes: 72 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.11.0">
<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 @@ -6376,6 +6376,77 @@ and additionalData.Data.isHearingTaskNeeded != null) then
<text>"reviewDocsC100"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1l15w48">
<inputEntry id="UnaryTests_02sfnpt">
<text>"c100listWithoutNotice"</text>
</inputEntry>
<inputEntry id="UnaryTests_18ml055">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0aw85bo">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0j5vxce">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1tao2sl">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0jprk1j">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1ovf08j">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0zrl7yz">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0kaemi7">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_13zqwoh">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0hnnk9i">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0tq02nv">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_18s087r">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0sog3av">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0qulavn">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_147fulc">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0gd3xjk">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_17c8so4">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1jimnwy">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0b96u6r">
<text>"listWithoutNoticeHearingC100"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0s5z1l5">
<text>"List without notice hearing (see case notes)"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1x6qz0f">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_1fy7mrw">
<text>"listWithoutNoticeHearingC100"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/wa-task-permissions-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" xmlns:camunda="http://camunda.org/schema/1.0/dmn" id="wa-permissions-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: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" xmlns:camunda="http://camunda.org/schema/1.0/dmn" id="wa-permissions-definition" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.11.0">
<decision id="wa-task-permissions-privatelaw-prlapps" name="Private Law Permissions DMN">
<decisionTable id="DecisionTable_1pr5oic" hitPolicy="RULE ORDER">
<input id="InputClause_12crj6e" label="Task Type" biodi:width="578" camunda:inputVariable="taskType">
Expand Down Expand Up @@ -601,7 +601,7 @@
<inputEntry id="UnaryTests_14xrsqw">
<text>"checkApplicationC100", "checkApplicationResubmittedC100",
"addCaseNumber", "addCaseNumberResubmitted",
"sendToGateKeeperC100", "sendToGateKeeperResubmittedC100","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","reviewRaRequestsC100","reviewInactiveRaRequestsC100"</text>
"sendToGateKeeperC100", "sendToGateKeeperResubmittedC100","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","reviewRaRequestsC100","reviewInactiveRaRequestsC100","listWithoutNoticeHearingC100"</text>
</inputEntry>
<inputEntry id="UnaryTests_1pv1c0z">
<text></text>
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.15.1" 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.11.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 @@ -513,6 +513,18 @@
<text>"Review inactive RA requests"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1fnnxm3">
<description>LWNHC100</description>
<inputEntry id="UnaryTests_0pcfffj">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_1nuycri">
<text>"listWithoutNoticeHearingC100"</text>
</outputEntry>
<outputEntry id="LiteralExpression_175m60d">
<text>"List without notice hearing(see case notes)"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ void if_this_test_fails_needs_updating_with_your_changes() {
DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic();
assertThat(logic.getInputs().size(), is(2));
assertThat(logic.getOutputs().size(), is(3));
assertThat(logic.getRules().size(), is(79));
assertThat(logic.getRules().size(), is(80));
}
}
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(87));
assertThat(logic.getRules().size(), is(88));
}

static Stream<Arguments> scenarioProvider() {
Expand Down Expand Up @@ -928,6 +928,18 @@ static Stream<Arguments> scenarioProvider() {
"taskId", "appStatementOfServiceByAdmin"
)
)
),
Arguments.of(
"c100listWithoutNotice",
null,
null,
List.of(
Map.of(
"name", "List without notice hearing (see case notes)",
"processCategories", "listWithoutNoticeHearingC100",
"taskId", "listWithoutNoticeHearingC100"
)
)
)
);
}
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(42));
assertThat(logic.getRules().size(), is(43));
}
}

0 comments on commit 5d96a1b

Please sign in to comment.