Skip to content

Commit

Permalink
DTSAM-138 Retire old rules after PUBLICLAW_WA_1_3 Go Live - publiclaw…
Browse files Browse the repository at this point in the history
…_district_judge_mc_in_retirement_fee_paid_joh rule removed (#1847)

Co-authored-by: Matt Nayler <57350764+mattnayler@users.noreply.github.com>
  • Loading branch information
mikebrownccd and mattnayler authored Apr 16, 2024
1 parent dc9e5c1 commit c1d9c84
Showing 1 changed file with 0 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,37 +623,6 @@ then
logMsg("Rule : publiclaw_recorder_in_retirement_fee_paid_joh");
end;

/*
* 23: "PUBLICLAW District Judge (MC) - Sitting in Retirement - Fee Paid" business role mapping to JOH.
* Made obsolete in DTSAM-135 by PUBLICLAW_WA_1_3.
* To be removed in DTSAM-138.
*/
rule "publiclaw_district_judge_mc_in_retirement_fee_paid_joh"
when
$f: FeatureFlag(status && flagName == FeatureFlagEnum.PUBLICLAW_WA_1_1.getValue())
$f2: FeatureFlag(status == false, flagName == FeatureFlagEnum.PUBLICLAW_WA_1_3.getValue())
$jap: JudicialAccessProfile(appointment == "District Judge (MC)- Sitting in Retirement",
appointmentType in ("Fee Paid"),
(endTime == null || endTime.compareTo(ZonedDateTime.now()) >= 0),
validateAuthorisation(authorisations, "ABA3"))
then
insert(
JudicialOfficeHolder.builder()
.userId($jap.getUserId())
.office("PUBLICLAW District Judge (MC) - Sitting in Retirement - Fee Paid")
.jurisdiction("PUBLICLAW")
.ticketCodes($jap.getTicketCodes())
.beginTime($jap.getBeginTime())
.endTime($jap.getEndTime())
.regionId($jap.getRegionId())
.baseLocationId($jap.getBaseLocationId())
.primaryLocation($jap.getPrimaryLocationId())
.contractType($jap.getAppointmentType())
.build());
logMsg("Rule : publiclaw_district_judge_mc_in_retirement_fee_paid_joh");
end;


/*
* 23: "PUBLICLAW District Judge (MC) - Sitting in Retirement - Fee Paid" business role mapping to JOH.
*/
Expand Down

0 comments on commit c1d9c84

Please sign in to comment.