Convert between priority codes and enum values¶
Converts between the TaskPriority enum and the five-character priority code strings used in storage/display.
| Field | Value |
|---|---|
| Operation ID | OP-17 |
| Trigger | Priority conversion during task creation or display |
| Inputs | TaskPriority enum value or priority code string |
| Outputs | Mapped counterpart value |
| Primary components | clsClaimTaskGenerator.GetPriorityText (two shared overloads) |
| Entry point | SAIF.Business.Tasks.Claim/clsClaimTaskGenerator.vb |
Steps¶
GetPriorityText(TaskPriority) As StringmapsHigh → HIGH,Medium → MED,Urgent → URG,Low → LOW, elseINFO(BR-GEN-06).- If the enum value is unmapped: fall back to
INFO. GetPriorityText(String) As TaskPrioritymaps the code strings back to the enum, elseTaskPriority.Medium.- If the code string is unmapped: fall back to
TaskPriority.Medium.
Process flow¶
flowchart TD
Start([GetPriorityText called]) --> Type{Input type?}
Type -->|TaskPriority enum| MapEnum[Map to code string,<br>default INFO]
Type -->|Code string| MapCode[Map to enum,<br>default Medium]
MapEnum --> EndOk([Mapped value returned])
MapCode --> EndOk
Failure and edge-case behavior¶
- Unmapped values default silently with no error raised (BR-GEN-06).
Related documentation¶
Sources¶
- SAIF.Business.Tasks.Claim/clsClaimTaskGenerator.vb