WCIS_DBA.pk80005_assignment is present in Oracle and implements the attorney-assignment engine used for conflict screening, schedule assignment, calendar review, and assignment-result reporting.
This package evaluates assignment candidates for pending hearings, applies conflict and workload checks, writes assignment-result audit rows, updates schedule ownership when an attorney is successfully assigned, and exposes review/reporting queries for assignment calendars and conflicts.
BR-CLM-LGL-032 Assignment only succeeds when every blocker count is zero¶
Field
Value
Statement
assignIt and assignItBalanced only assign an attorney when the sum of adjuster, ALJ, rotation, calendar, load, vacation, holiday, employer, location, and attorney-conflict results is zero.
Trigger
The assignment engine evaluates a candidate attorney for a hearing.
Enforcement
Both functions calculate final_result as the sum of all blocker counts and branch on IF final_result = 0.
Outcome
Successful assignments write a CA result, update SCHEDULE.asgn_attorney_emplid, and call Pk80001_Legalnet.updateCaseStatus(..., 'ASSGN', ...); otherwise the candidate remains unassigned.
BR-CLM-LGL-033 Weekly load thresholds vary by attorney load percent¶
Field
Value
Statement
When weekly-load checking is enabled, attorneys with load percent below 34 are allowed one hearing day before load blocks them, attorneys below 67 are allowed two, and all others are allowed three.
Trigger
assignIt evaluates a candidate with weekly_case_load > 0.
Enforcement
assignIt sets hearing_days to 1, 2, or 3 from in_load_percent, then only treats the load as blocking when get_hearing_days(...) is greater than or equal to that threshold.
Outcome
Lower-capacity attorneys hit load-based assignment rejection sooner than higher-capacity attorneys.
Source
WCIS_DBA.pk80005_assignment.assignIt
BR-CLM-LGL-034 Rotation assignment only targets pending unassigned hearing rows in active rotation coverage¶
Field
Value
Statement
Rotation assignment evaluates only PENDA legal cases with HEAR schedules in SET or RESET status, no assigned attorney or outside counsel, an active matching out-of-town rotation row for the hearing location/date, and no recon issue on the case.
Trigger
assign_rotation_cases runs.
Enforcement
The cursor query filters on case_status_code = 'PENDA', schedule type/status, null assignment columns, out_of_town_rotation_assgn coverage, and a NOT EXISTS recon-issue subquery.
Outcome
Rotation assignment is limited to unresolved in-scope hearings and excludes recon cases.
Source
WCIS_DBA.pk80005_assignment.assign_rotation_cases
BR-CLM-LGL-035 Conflict and load helper functions treat missing data as zero blockers¶
Field
Value
Statement
The conflict and load helper functions normalize NO_DATA_FOUND and null aggregates to zero so that missing related rows do not fail the assignment engine.
Trigger
Any helper such as adjuster_conflict_check, employer_conflict_check, alj_conflict_check, attorney_conflict_check, calendar_conflict_check, case_load, or get_weekly_case_load runs.
Enforcement
Each routine catches NO_DATA_FOUND and/or assigns zero when the aggregate result is null.
Outcome
Candidate evaluation proceeds as "no blocker found" when supporting rows are absent.
BR-CLM-LGL-036 Calendar review filters to active attorney profiles and requested coverage locations¶
Field
Value
Statement
calendar_review only reports attorneys with active ATTORNEY_PROFILE rows and, unless the caller asks for ALL, only those whose primary, secondary, or tertiary hearing-location code matches the requested location.
Trigger
calendar_review is called from the quick-calendar flow.
Enforcement
The routine always filters a.EXP_DATE IS NULL; the location-specific branch further filters on the three hearing-location code columns.
Outcome
Calendar review reports current attorney coverage for the selected location set.
Source
WCIS_DBA.pk80005_assignment.calendar_review
BR-CLM-LGL-037 Assignment result reporting keeps the latest result per case in scope¶
Field
Value
Statement
get_assign_results reports only the latest ASSIGNMENT_RESULT row per legal case for the requested sequence or date scope, and splits assigned (CA, CAC) versus not-assigned result rows into separate query branches.
Trigger
Assignment-process reporting requests results by sequence number or date.
Enforcement
The query filters each branch to MAX(assignment_result_seq_num) per case (and date when applicable) and branches on assignment_result_code IN ('CA', 'CAC').
Outcome
Reports show the current terminal assignment result for each case rather than intermediate attempts.
Evaluates adjuster, employer, ALJ, attorney, calendar, vacation, location, rotation, holiday, and workload conditions before a hearing can be assigned.