---
title: Translate domain codes to and from enums
summary: Translate domain codes to and from enums.
status: draft
owner: Technical Writer
last_reviewed: 2026-07-31
library: SAIF.Business.Policy
reference_type: package
operation_id: OP-011
trigger: A caller passes either a persisted code or an enum value.
---

# 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](../business-rules.md#br-pol-003-persisted-policy-codes-map-to-fixed-domain-enums), [BR-POL-004](../business-rules.md#br-pol-004-unrecognized-codes-translate-to-safe-defaults)

## Process flow

The following diagram visualizes the main control flow for this operation.

```mermaid

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

- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [SQL catalog](../sql/index.md)
- [Database tables](../database-tables.md)

## Sources

- `Business\SAIF.Business.Policy\Enums.vb`
