Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ TASK_NAME=SystemProgressHeldCasesTask ./gradlew bootRun
## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,66 @@
<text>false</text>
</outputEntry>
</rule>
<rule id="DecisionRule_0aihfny">
<description>"Access Request for CTSC can be approved by Hearing Centre Team Leader"</description>
<inputEntry id="UnaryTests_1k93o34">
<text>"reviewSpecificAccessRequestCTSC"</text>
</inputEntry>
<inputEntry id="UnaryTests_1hz1l4d">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_1h884gr">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0frc1c2">
<text>"hearing-centre-team-leader"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0dchiik">
<text>"Read,Own,Claim,Manage,Assign,Unassign,Complete,Cancel"</text>
</outputEntry>
<outputEntry id="LiteralExpression_16z67l7">
<text>"ADMIN"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0e3gtwo">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_1yoji79">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0qg4nj3">
<text>false</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1sbe7cd">
<description>"Access Request for CTSC can be approved by Regional Hearing Centre Team Leader"</description>
<inputEntry id="UnaryTests_05ax3g1">
<text>"reviewSpecificAccessRequestCTSC"</text>
</inputEntry>
<inputEntry id="UnaryTests_0euzjnf">
<text></text>
</inputEntry>
<outputEntry id="LiteralExpression_07drlyw">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0e6udrb">
<text>"regional-centre-team-leader"</text>
</outputEntry>
<outputEntry id="LiteralExpression_0wlg8gg">
<text>"Read,Own,Claim,Manage,Assign,Unassign,Complete,Cancel"</text>
</outputEntry>
<outputEntry id="LiteralExpression_1cigz0r">
<text>"ADMIN"</text>
</outputEntry>
<outputEntry id="LiteralExpression_18l5gp1">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_1n0m4ge">
<text></text>
</outputEntry>
<outputEntry id="LiteralExpression_0sj1t6k">
<text>false</text>
</outputEntry>
</rule>
<rule id="DecisionRule_1frfqlq">
<inputEntry id="UnaryTests_05pthd9">
<text>"processCaseWithdrawalDirections","processRule27Decision","processListingDirections","processDirectionsReListedCase","processDirectionsReListedCaseWithin5Days","processSetAsideDirections","processCorrections","processDirectionsReturned","processTimeExtensionDirectionsReturned","processReinstatementDecisionNotice","processOtherDirectionsReturned","processWrittenReasons","processStrikeOutDirectionsReturned","processStayDirections","issueDecisionNotice","completeHearingOutcome","issueCaseToRespondent","vetNewCaseDocuments","followUpNoncomplianceOfDirections","registerNewCase","stitchCollateHearingBundle","processPostponementDirections","processFurtherEvidence","createDueDate","issueDueDate","processListingDirectionsListed","processCaseWithdrawalDirectionsListed","processStayDirectionsListed","processRule27DecisionListed"</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void if_this_test_fails_needs_updating_with_your_changes() {
assertThat(logic.getOutputs().size(), is(7));
assertThatOutputContainInOrder(outputColumnIds, logic.getOutputs());
//Rules
assertThat(logic.getRules().size(), is(15));
assertThat(logic.getRules().size(), is(17));
}

@ParameterizedTest(name = "task type: {0} case data: {1}")
Expand Down Expand Up @@ -546,7 +546,9 @@ private static List<Map<String, Object>> defaultSpecificAccessRequestAdminPermis
private static List<Map<String, Object>> defaultSpecificAccessRequestCtscPermissions() {
return List.of(
taskSupervisorPermissions(),
ctscTeamLeaderSpecificAccessPermissions()
ctscTeamLeaderSpecificAccessPermissions(),
hearingCentreTeamLeaderSpecificAccessPermissionsCTSC(),
regionalHearingCentreTeamLeaderSpecificAccessPermissionsCTSC()
);
}

Expand Down Expand Up @@ -678,6 +680,24 @@ private static Map<String, Object> ctscTeamLeaderSpecificAccessPermissions() {
);
}

private static Map<String, Object> hearingCentreTeamLeaderSpecificAccessPermissionsCTSC() {
return Map.of(
"name", "hearing-centre-team-leader",
"value", "Read,Own,Claim,Manage,Assign,Unassign,Complete,Cancel",
"roleCategory", ROLE_CATEGORY_ADMIN,
"autoAssignable", false
);
}

private static Map<String, Object> regionalHearingCentreTeamLeaderSpecificAccessPermissionsCTSC() {
return Map.of(
"name", "regional-centre-team-leader",
"value", "Read,Own,Claim,Manage,Assign,Unassign,Complete,Cancel",
"roleCategory", ROLE_CATEGORY_ADMIN,
"autoAssignable", false
);
}

private static Map<String, Object> ctscPermissions() {
return Map.of(
"name", "ctsc",
Expand Down