Translate domain codes to and from enums¶
Translate domain codes to and from enums.
| Field | Value |
|---|---|
| Operation ID | OP-011 |
| Trigger | A caller passes either a persisted code or an enum value. |
| Inputs | Policy-domain enum value or persisted string code |
| Outputs | Mapped enum value or code string |
| Primary components | Enums |
| Entry point | Business\SAIF.Business.Policy\Enums.vb |
Steps¶
- Evaluate the input with the appropriate
Select Caseconversion function. - Return the matching enum or code string for supported values.
- Return the unassigned/default enum member or an empty string for unsupported values.
- Apply related business rules: BR-POL-003, BR-POL-004
Process flow¶
The following diagram visualizes the main control flow for this operation.
flowchart TD
Start([Trigger]) --> Work[Execute operation steps]
Work --> Done([Return result])
Failure and edge-case behavior¶
- Business rules are cross-referenced from the catalog page and the SQL or procedure logic cited in these steps.
- Database and procedure failures surface according to the underlying implementation path.
Related documentation¶
Sources¶
Business\SAIF.Business.Policy\Enums.vb