Sync hearing schedule to Guidewire¶
This operation builds a Guidewire "matter" request from a legal hearing schedule and synchronizes it to the Guidewire claim system, optionally also pushing a related claim activity reminder.
| Field | Value |
|---|---|
| Operation ID | OP-LGL-006 |
| Trigger | Hearing schedule save (clsScheduleManager.SendDataToGw / clsAssignmentManager.SendDataToGw) |
| Inputs | clsLegalSchedule |
| Outputs | Guidewire matter/activity record (external system) |
| Primary components | clsScheduleManager.SendDataToGw, clsAssignmentManager.SendDataToGw, clsScheduleManager.CreateScheduleActivity |
| Entry point | SAIF.Application.Claim.Legal\LegalNet\clsScheduleManager.vb |
Steps¶
- Build a
GwMatterRequestfrom theclsLegalSchedule: case number, status, secretary/attorney user IDs, matter date/type, and — for closed/settled/dismissed statuses — a computedmatterClosedEffDate. - Check whether an attorney is currently assigned (
req.saifAttorneyName <> "") (BR-LGL-007). - If no attorney is assigned: skip the Guidewire call entirely; no matter is created/updated.
- If an attorney is assigned: call the
GwMatterApiAPI client (DPI.ApiClients.Item("GwMatterApi")) via aRetrieveWithBodyroute (create). - On failure of the create call: retry as an
Updateroute call.- On failure of the retry: log the exception via
Logging.clsLogError.CreateErrorwithout surfacing it to the caller (BR-LGL-008).
- On failure of the retry: log the exception via
- If the schedule type is
HEARorMEDand the sync succeeded: callCreateScheduleActivityto also push a Guidewire claim activity (hearing/mediation reserve reminder, due in 30 days). - On failure: log via
Logging.clsLogError.CreateErrorwithout surfacing it to the caller (BR-LGL-008).
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Schedule saved]) --> Build[Build GwMatterRequest]
Build --> Assigned{Attorney assigned?}
Assigned -->|No| Skip([Skip Guidewire sync])
Assigned -->|Yes| Create[GwMatterApi RetrieveWithBody create]
Create --> CreateOk{Succeeded?}
CreateOk -->|Yes| Type{Type HEAR or MED?}
CreateOk -->|No| Update[GwMatterApi Update route]
Update --> UpdateOk{Succeeded?}
UpdateOk -->|Yes| Type
UpdateOk -->|No| LogErr[Log error<br>no failure surfaced]
Type -->|Yes| Activity[CreateScheduleActivity<br>reminder due 30 days]
Type -->|No| EndOk([Done])
Activity --> EndOk
LogErr --> EndOk
Failure and edge-case behavior¶
- No attorney assigned: the sync is skipped entirely — this is a normal, expected branch, not an error.
- Create-route failure: automatically retried as an update-route call before being treated as a failure.
- Any Guidewire failure (create, update, or activity push): logged via
Logging.clsLogError.CreateErrorand never surfaced to the caller or the underlying case save (BR-LGL-008).
Related documentation¶
Sources¶
SAIF.Application.Claim.Legal\LegalNet\clsScheduleManager.vbSAIF.Application.Claim.Legal\LegalNet\clsAssignmentManager.vbSAIF.Application.Claim.Legal\LegalNet\GwMatterRequest.vb