Skip to content

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

  1. Evaluate the input with the appropriate Select Case conversion function.
  2. Return the matching enum or code string for supported values.
  3. Return the unassigned/default enum member or an empty string for unsupported values.
  4. 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.

Sources

  • Business\SAIF.Business.Policy\Enums.vb