Skip to content

Commit

Permalink
Merge pull request #137 from hmcts/FPET-981
Browse files Browse the repository at this point in the history
FPET-981-added new task transferToAnotherCourt
  • Loading branch information
mohitvijay45 authored Nov 12, 2024
2 parents 7567545 + 6356441 commit 8232218
Show file tree
Hide file tree
Showing 10 changed files with 187 additions and 15 deletions.
23 changes: 23 additions & 0 deletions src/main/resources/wa-task-cancellation-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,29 @@
<text>"checkAwpHwfCitizen"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0swozs9">
<inputEntry id="UnaryTests_09n5qaj">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1wpxhzc">
<text>"hmcCaseUpdPrepForHearing","manageOrders","editAndApproveAnOrder","sendOrReplyToMessages","sendToGateKeeper","adminEditAndApproveAnOrder"</text>
</inputEntry>
<inputEntry id="UnaryTests_0wtzv6k">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_1ho1i3y">
<text>"Cancel"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0y1xaz3">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_10gqwal">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_04pltpt">
<text>"newCaseTransferredToCourt"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
Expand Down
30 changes: 25 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" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" id="wa-configuration-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" xmlns:camunda="http://camunda.org/schema/1.0/dmn" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" id="wa-configuration-definition" name="DRD" namespace="http://camunda.org/schema/1.0/dmn" exporter="Camunda Modeler" exporterVersion="5.13.0">
<decision id="wa-task-configuration-privatelaw-prlapps" name="Private Law Task configuration DMN">
<informationRequirement id="InformationRequirement_1iac9a2">
<requiredDecision href="#Decision_11ew6tt" />
Expand Down Expand Up @@ -349,7 +349,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0gtvl7x">
<text>"checkApplicationC100","checkApplicationResubmittedC100","checkApplicationFL401","checkApplicationResubmittedFL401","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleC100","produceHearingBundleFL100","updateHearingActualsC100","updateHearingActualsFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","confidentialCheckSOA","recreateApplicationPack","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewLangAndSmReq","listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments"</text>
<text>"checkApplicationC100","checkApplicationResubmittedC100","checkApplicationFL401","checkApplicationResubmittedFL401","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleC100","produceHearingBundleFL100","updateHearingActualsC100","updateHearingActualsFL401","requestSolicitorOrderC100","requestSolicitorOrderFL401","confidentialCheckSOA","recreateApplicationPack","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForLA","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","completefl416AndServe","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewLangAndSmReq","listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments","newCaseTransferredToCourt"</text>
</inputEntry>
<inputEntry id="UnaryTests_17b07qz">
<text></text>
Expand Down Expand Up @@ -429,7 +429,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_08jiuyj">
<text>"checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewSpecificAccessRequestAdmin","checkApplicationC100","checkApplicationResubmittedC100","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewSpecificAccessRequestCTSC","reviewAdminOrderProvided","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForJudiciary","reviewDocumentsForSolAndCafcassC100","reviewDocumentsForSolAndCafcassFL401","replyToMessageForLA","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","reviewAdditionalApplication","reviewLangAndSmReq","checkAwpHwfCitizen","confidentialCheckDocuments"</text>
<text>"checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewSpecificAccessRequestAdmin","checkApplicationC100","checkApplicationResubmittedC100","addCaseNumber","addCaseNumberResubmitted","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewSpecificAccessRequestCTSC","reviewAdminOrderProvided","removeLegalRepresentativeC100","removeLegalRepresentativeFL401","confidentialCheckSOA","replyToMessageForCourtAdminFL401","replyToMessageForCourtAdminC100","replyToMessageForJudiciary","reviewDocumentsForSolAndCafcassC100","reviewDocumentsForSolAndCafcassFL401","replyToMessageForLA","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","completefl416AndServe","reviewAdditionalApplication","reviewLangAndSmReq","checkAwpHwfCitizen","confidentialCheckDocuments","newCaseTransferredToCourt"</text>
</inputEntry>
<inputEntry id="UnaryTests_1qu6bwj">
<text></text>
Expand Down Expand Up @@ -712,7 +712,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0irt7go">
<text>"reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","reviewLangAndSmReq"</text>
<text>"reviewRaRequestsC100","reviewRaRequestsFL401","reviewInactiveRaRequestsC100","reviewInactiveRaRequestsFL401","reviewLangAndSmReq","newCaseTransferredToCourt"</text>
</inputEntry>
<inputEntry id="UnaryTests_1rwm1v2">
<text></text>
Expand Down Expand Up @@ -993,7 +993,7 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1glizm3">
<text>"checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleFL401","produceHearingBundleC100","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewCorrespondenceFL401","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewCorrespondenceC100","reviewSpecificAccessRequestAdmin","removeLegalRepresentativeFL401","reviewDocumentsForSolAndCafcassFL401","reviewDocumentsForSolAndCafcassC100","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsFL401","reviewInactiveRaRequestsFL401","recreateApplicationPack","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","confidentialCheckSOA","completefl416AndServe","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","replyToMessageForCourtAdminFL401","reviewRaRequestsC100","reviewInactiveRaRequestsC100","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewAdditionalApplication","reviewLangAndSmReq","listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments"</text>
<text>"checkApplicationFL401","checkApplicationResubmittedFL401","sendToGateKeeperFL401","sendToGateKeeperResubmittedFL401","sendToGateKeeperC100","sendToGateKeeperResubmittedC100","produceHearingBundleFL401","produceHearingBundleC100","serviceOfApplicationFL401","adminServeOrderFL401","updateHearingActualsFL401","requestSolicitorOrderFL401","reviewCorrespondenceFL401","serviceOfApplicationC100","adminServeOrderC100","updateHearingActualsC100","requestSolicitorOrderC100","reviewCorrespondenceC100","reviewSpecificAccessRequestAdmin","removeLegalRepresentativeFL401","reviewDocumentsForSolAndCafcassFL401","reviewDocumentsForSolAndCafcassC100","reviewAdminOrderByManager","createHearingRequest","createMultipleHearingRequest","createHearingRequestReserveListAssist","reviewRaRequestsFL401","reviewInactiveRaRequestsFL401","recreateApplicationPack","appStatementOfServiceBySol","appStatementOfServiceByLiP","appStatementOfServiceByBailiff","arrangeBailiffSOA","appStatementOfServiceByAdmin","confidentialCheckSOA","completefl416AndServe","removeLegalRepresentativeC100","replyToMessageForCourtAdminC100","replyToMessageForCourtAdminFL401","reviewRaRequestsC100","reviewInactiveRaRequestsC100","listWithoutNoticeHearingC100","listOnNoticeHearingFL401","reviewAdditionalApplication","reviewLangAndSmReq","listWithoutNoticeHearingFL401","confidentialCheckDocuments","checkAndReServeDocuments","newCaseTransferredToCourt"</text>
</inputEntry>
<inputEntry id="UnaryTests_1yzitym">
<text></text>
Expand Down Expand Up @@ -1850,6 +1850,26 @@ taskAttributes. taskType else if(taskType != null) then taskType else null</text
<text></text>
</outputEntry>
</rule>
<rule id="DecisionRule_1k1t9lk">
<inputEntry id="UnaryTests_1ep6dbi">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0vfkcpi">
<text>"newCaseTransferredToCourt"</text>
</inputEntry>
<inputEntry id="UnaryTests_039ji4o">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_0zjkr82">
<text>"description"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1inoiu9">
<text>"[Case transferred to your court]"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0szngte">
<text></text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<decision id="Decision_11ew6tt" name="Order ID">
Expand Down
82 changes: 81 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.26.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.13.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 @@ -9115,6 +9115,86 @@ and additionalData.Data.isHearingTaskNeeded != null) then
<text>"checkAndReServeDocuments"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0pkx6um">
<inputEntry id="UnaryTests_059200v">
<text>"transferToAnotherCourt"</text>
</inputEntry>
<inputEntry id="UnaryTests_1fwfgv6">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1k6u37r">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1c5sio6">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1c1tzm9">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_037sfxc">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1qfb7rc">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0r2657i">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1e3uzy7">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1sn7o7w">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1ps5xvu">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0p5fay4">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0kyrq6a">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_1h6xsg6">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_12rhmpl">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_15b4xvt">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_19vblh1">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0pxlols">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0llxogr">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0iy6i1m">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_112lvyd">
<text></text>
</inputEntry>
<inputEntry id="UnaryTests_0vymlt3">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_1acy1rw">
<text>"newCaseTransferredToCourt"</text>
</outputEntry>
<outputEntry id="LiteralExpression_18apejh">
<text>"Case transferred to your court"</text>
</outputEntry>
<outputEntry id="LiteralExpression_10mh250">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0gg1eiy">
<text>"newCaseTransferredToCourt"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
Expand Down
30 changes: 30 additions & 0 deletions src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,36 @@
<text>false</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1ybpkod">
<description>Admin task permissions</description>
<inputEntry id="UnaryTests_0s053pk">
<text>"newCaseTransferredToCourt"</text>
</inputEntry>
<inputEntry id="UnaryTests_02vdw8y">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_1bnrcam">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0swczxz">
<text>"hearing-centre-admin"</text>
</outputEntry>
<outputEntry id="LiteralExpression_17189bh">
<text>"Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1y0fs26">
<text>"ADMIN"</text>
</outputEntry>
<outputEntry id="LiteralExpression_16qrqab">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_00knnaz">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_1f9y7sp">
<text>false</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
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
Expand Up @@ -741,6 +741,18 @@
<text>"Check and re-serve documents"</text>
</outputEntry>
</rule>
<rule id="DecisionRule_18yyuwr">
<description>NCTTC</description>
<inputEntry id="UnaryTests_1lvag5l">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_001b1qm">
<text>"newCaseTransferredToCourt"</text>
</outputEntry>
<outputEntry id="LiteralExpression_02u7xnk">
<text>"Case transferred to your court"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
<dmndi:DMNDI>
Expand All @@ -750,4 +762,4 @@
</dmndi:DMNShape>
</dmndi:DMNDiagram>
</dmndi:DMNDI>
</definitions>
</definitions>
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ static Stream<Arguments> scenarioProvider() {
Map.of(
"action", "Cancel",
"processCategories", "createHearingRequest"
),
Map.of(
"action", "Cancel",
"processCategories", "newCaseTransferredToCourt"
)
)
),
Expand Down Expand Up @@ -185,7 +189,7 @@ void if_this_test_fails_needs_updating_with_your_changes() {
DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic();
assertThat(logic.getInputs().size(), is(3));
assertThat(logic.getOutputs().size(), is(4));
assertThat(logic.getRules().size(), is(15));
assertThat(logic.getRules().size(), is(16));

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void if_this_test_fails_needs_updating_with_your_changes() {
DmnDecisionTableImpl logic = (DmnDecisionTableImpl) decision.getDecisionLogic();
assertThat(logic.getInputs().size(), is(3));
assertThat(logic.getOutputs().size(), is(3));
assertThat(logic.getRules().size(), is(91));
assertThat(logic.getRules().size(), is(92));
}


Expand Down
Loading

0 comments on commit 8232218

Please sign in to comment.