Enumeration¶
Defines a valid list of identifiers.
This is typically generated from all referenced enumeration models and need not be specified.
enumeration Season {
value = "SPRING";
value = "SUMMER";
value = "AUTUMN";
value = "WINTER";
}
Example 1 (Defining an enumeration and using that to define an attribute)¶
enumeration RemainderMode {
value = "RemainBalanceId" {
label = "Allocate remainder to Balance ID";
}
value = "RemainWageCode" {
label = "Allocate remainder to Wage Code";
}
value = "RemainNoAllow" {
label = "No Allocation of Remainder";
}
}
Using the enumeration for an attribute:
attribute RemainderAllowMode Enumeration(RemainderMode) {
default = "'RemainBalanceId'";
fetch = "''";
}
Example 2 (Using existing enumeration logical units)¶
attribute RemainderAllowMode Enumeration(RemainderMode) {
default = "'RemainBalanceId'";
fetch = "''";
}
Example 3 (An enumeration value passed as a parameter to a function)¶
attribute RunTimeCode Enumeration(OperationTimeCode) {
fetch = "RUN_TIME_CODE_DB";
label = "Factor Unit";
required = [true];
}