diff --git a/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn b/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn index b6ea6d38..616459fa 100644 --- a/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn +++ b/src/main/resources/wa-task-permissions-privatelaw-prlapps.dmn @@ -1,5 +1,5 @@ - + @@ -68,7 +68,7 @@ "gatekeeping-judge" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "JUDICIAL" @@ -98,7 +98,7 @@ "hearing-judge" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "JUDICIAL" @@ -128,7 +128,7 @@ "allocated-judge" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "JUDICIAL" @@ -158,7 +158,7 @@ "allocated-legal-adviser" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "LEGAL_OPERATIONS" @@ -188,7 +188,7 @@ "allocated-judge" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "JUDICIAL" @@ -219,7 +219,7 @@ "judge" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "JUDICIAL" @@ -249,7 +249,7 @@ "specific-access-approver-judiciary" - "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "JUDICIAL" @@ -280,7 +280,7 @@ "allocated-legal-adviser" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "LEGAL_OPERATIONS" @@ -311,7 +311,7 @@ "tribunal-caseworker" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "LEGAL_OPERATIONS" @@ -341,7 +341,7 @@ "tribunal-caseworker" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "LEGAL_OPERATIONS" @@ -371,7 +371,7 @@ "specific-access-approver-legal-ops" - "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "LEGAL_OPERATIONS" @@ -402,7 +402,7 @@ "hearing-centre-admin" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -432,7 +432,7 @@ "hearing-centre-admin" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -462,7 +462,7 @@ "hearing-centre-admin" - "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -492,7 +492,7 @@ "hearing-centre-admin" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -521,7 +521,7 @@ "hearing-centre-admin" - "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -551,7 +551,7 @@ "specific-access-approver-admin" - "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -581,7 +581,7 @@ "hearing-centre-team-leader" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -612,7 +612,7 @@ "ctsc" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "CTSC" @@ -642,7 +642,7 @@ "hearing-centre-admin" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -672,7 +672,7 @@ "hearing-centre-admin" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -702,7 +702,7 @@ "hearing-centre-admin" - "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -734,7 +734,7 @@ "hearing-centre-admin" - "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -764,7 +764,7 @@ "hearing-centre-admin" - "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "ADMIN" @@ -794,7 +794,7 @@ "specific-access-approver-ctsc" - "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn" + "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" "CTSC" diff --git a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java index 35c62d0b..1dcf1903 100644 --- a/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java +++ b/src/test/java/uk/gov/hmcts/reform/prl/taskconfiguration/dmn/CamundaTaskPermissionTest.java @@ -34,28 +34,28 @@ class CamundaTaskPermissionTest extends DmnDecisionTableBaseUnitTest { "autoAssignable", true, "name", "gatekeeping-judge", "roleCategory", "JUDICIAL", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "assignmentPriority", 1 ); private static final Map allocatedJudge = Map.of( "autoAssignable", true, "name", "allocated-judge", "roleCategory", "JUDICIAL", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "assignmentPriority", 1 ); private static final Map allocatedJudgeTwo = Map.of( "autoAssignable", true, "name", "allocated-judge", "roleCategory", "JUDICIAL", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "assignmentPriority", 2 ); private static final Map judgeOne = Map.of( "autoAssignable", false, "name", "judge", "roleCategory", "JUDICIAL", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "315" ); @@ -63,53 +63,53 @@ class CamundaTaskPermissionTest extends DmnDecisionTableBaseUnitTest { "autoAssignable", false, "name", "specific-access-approver-judiciary", "roleCategory", "JUDICIAL", - "value", "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations","315" ); private static final Map specificLegalOps = Map.of( "autoAssignable", false, "name", "specific-access-approver-legal-ops", "roleCategory", "LEGAL_OPERATIONS", - "value", "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ); private static final Map specificAdmin = Map.of( "autoAssignable", false, "name", "specific-access-approver-admin", "roleCategory", "ADMIN", - "value", "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ); private static final Map specificCtsc = Map.of( "autoAssignable", false, "name", "specific-access-approver-ctsc", "roleCategory", "CTSC", - "value", "Read,Own,Claim,Unclaim,CompleteOwn,CancelOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ); private static final Map hearingJudge = Map.of( "autoAssignable", true, "name", "hearing-judge", "roleCategory", "JUDICIAL", "assignmentPriority", 1, - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ); private static final Map tribunalCaseworker = Map.of( "autoAssignable", false, "name", "tribunal-caseworker", "roleCategory", "LEGAL_OPERATIONS", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations","SKILL:ABA5:GATEKEEPING" ); private static final Map allocatedLegalAdviserOne = Map.of( "autoAssignable", true, "name", "allocated-legal-adviser", "roleCategory", "LEGAL_OPERATIONS", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "assignmentPriority", 1 ); private static final Map allocatedLegalAdviserThree = Map.of( "autoAssignable", true, "name", "allocated-legal-adviser", "roleCategory", "LEGAL_OPERATIONS", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "assignmentPriority", 3 ); @@ -297,7 +297,7 @@ void evaluate_task_admin_checkapplicationfl401(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:CHECKAPPLICATIONFL401" ) ))); @@ -323,7 +323,7 @@ void evaluate_task_admin_hearingManagementfl401(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:HEARINGMANAGEMENTFL401" ) ))); @@ -349,7 +349,7 @@ void evaluate_task_admin_orderManagementfl401(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:ORDERMANAGEMENTFL401" ) ))); @@ -375,7 +375,7 @@ void evaluate_task_admin_orderManagementfl401_2(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:ORDERMANAGEMENTFL401" ) ))); @@ -401,7 +401,7 @@ void evaluate_task_admin_reviewCorrespondencefl401(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:REVIEWCORRESPONDENCEFL401" ) ))); @@ -428,7 +428,7 @@ void evaluate_task_ctsc_checkApplicationc100(String taskType) { "autoAssignable", false, "name", "ctsc", "roleCategory", "CTSC", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations","SKILL:ABA5:CHECKAPPLICATIONC100" ) ))); @@ -454,7 +454,7 @@ void evaluate_task_ctsc_sendToGateKeeperc100(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations","SKILL:ABA5:CHECKAPPLICATIONC100" ) ))); @@ -480,7 +480,7 @@ void evaluate_task_ctsc_hearingManagementc100(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:HEARINGMANAGEMENTC100" ) ))); @@ -506,7 +506,7 @@ void evaluate_task_ctsc_orderManagementc100(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations","SKILL:ABA5:ORDERMANAGEMENTC100" ) ))); @@ -532,7 +532,7 @@ void evaluate_task_ctsc_orderManagementc100_2(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations","SKILL:ABA5:ORDERMANAGEMENTC100" ) ))); @@ -558,7 +558,7 @@ void evaluate_task_ctsc_reviewCorrespondencec100(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,CompleteOwn,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:REVIEWCORRESPONDENCEC100" ) ))); @@ -585,7 +585,7 @@ void evaluate_task_admin_removeLegalRepresentativeC100(String taskType) { "name", "hearing-centre-admin", "roleCategory", "ADMIN", "authorisations", "SKILL:ABA5:CHECKAPPLICATIONC100", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ) ))); } @@ -611,7 +611,7 @@ void evaluate_task_admin_removeLegalRepresentativeFL401(String taskType) { "name", "hearing-centre-admin", "roleCategory", "ADMIN", "authorisations", "SKILL:ABA5:CHECKAPPLICATIONFL401", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ) ))); } @@ -637,7 +637,7 @@ void evaluate_task_admin_reviewRaRequestsC100(String taskType) { "name", "hearing-centre-admin", "roleCategory", "ADMIN", "authorisations", "SKILL:ABA5:CHECKAPPLICATIONC100", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ) ))); } @@ -663,7 +663,7 @@ void evaluate_task_admin_reviewRaRequestFL401(String taskType) { "name", "hearing-centre-admin", "roleCategory", "ADMIN", "authorisations", "SKILL:ABA5:CHECKAPPLICATIONFL401", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ) ))); } @@ -690,7 +690,7 @@ void evaluate_task_admin_reviewInactiveRaRequestsC100(String taskType) { "name", "hearing-centre-admin", "roleCategory", "ADMIN", "authorisations", "SKILL:ABA5:CHECKAPPLICATIONC100", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ) ))); } @@ -716,7 +716,7 @@ void evaluate_task_admin_reviewInactiveRaRequestFL401(String taskType) { "name", "hearing-centre-admin", "roleCategory", "ADMIN", "authorisations", "SKILL:ABA5:CHECKAPPLICATIONFL401", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ) ))); } @@ -738,7 +738,7 @@ void evaluate_task_admin_confidentialCheckSoa(String taskType) { "name", "hearing-centre-team-leader", "roleCategory", "ADMIN", "authorisations", "SKILL:ABA5:ORDERMANAGEMENTFL401", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn" + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim" ) ))); } @@ -778,7 +778,7 @@ void evaluate_task_admin_createHearingRequest(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:HEARINGMANAGEMENTFL401" ) @@ -807,7 +807,7 @@ void evaluate_task_admin_statementOfService(String taskType) { "autoAssignable", false, "name", "hearing-centre-admin", "roleCategory", "ADMIN", - "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim,CompleteOwn", + "value", "Read,Own,UnclaimAssign,Claim,Unclaim,UnassignClaim", "authorisations", "SKILL:ABA5:ORDERMANAGEMENTFL401" )