OP-023: Resolve the most-recent external injured-worker user for a customer group¶
GetInjuredWorkerUserByCustomerId is invoked over the Security route on SAIF.Services.WCF.Services.Security.SecurityService; this page documents the process end to end, from route dispatch to the message the caller receives.
Field
Value
Operation ID
OP-023
Trigger
Caller invokes GetInjuredWorkerUserByCustomerId over the Security route.
LogRequestDetails logs the operation name and arguments (BR-WCF-032).
GetCustomerUserId runs with the user-type codes fixed to WORK, GUARD, POWA, joining ExternalUser to its UserTypes, filtering by CustomerGroupId, ordering by LastLogonDate descending, and taking the first user id (BR-WCF-034); a null user id returns null.
Otherwise the resolved user id runs through the same TryGetExternalUser projection used by GetExternalUser (BR-WCF-019a, BR-WCF-020a, BR-WCF-021a).
Return.
On failure: an Oracle/NHibernate exception is logged by the installed error handler and surfaced as a generic SOAP fault with exception detail included.
The following diagram visualizes this process's control flow.
flowchart TD
A["Log request details"]
B["Resolve most-recent injured-worker<br>user id for customer"]
B1{"User id resolved?"}
B2["Null user id: return null"]
C["Project user via TryGetExternalUser"]
D["Return."]
A --> B
B --> B1
B1 -->|"No"| B2
B1 -->|"Yes"| C
B2 --> D
C --> D
Note: Statements marked with * were inferred from code structure, naming
conventions, or contextual evidence where direct confirmation was not available
in source artifacts. Statements marked with ** could not be confirmed; treat
as unknown until verified.