From c1d9c84837af2eca800c5216450bf6e0afc21bc0 Mon Sep 17 00:00:00 2001 From: mikebrownccd <104495891+mikebrownccd@users.noreply.github.com> Date: Tue, 16 Apr 2024 09:59:09 +0100 Subject: [PATCH] DTSAM-138 Retire old rules after PUBLICLAW_WA_1_3 Go Live - publiclaw_district_judge_mc_in_retirement_fee_paid_joh rule removed (#1847) Co-authored-by: Matt Nayler <57350764+mattnayler@users.noreply.github.com> --- ...bliclaw-judicial-office-holder-mapping.drl | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/src/main/resources/validationrules/publiclaw/publiclaw-judicial-office-holder-mapping.drl b/src/main/resources/validationrules/publiclaw/publiclaw-judicial-office-holder-mapping.drl index e408c398f7..342d031b95 100644 --- a/src/main/resources/validationrules/publiclaw/publiclaw-judicial-office-holder-mapping.drl +++ b/src/main/resources/validationrules/publiclaw/publiclaw-judicial-office-holder-mapping.drl @@ -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. */