Creating an enumeration property
You define an enumeration property in an extension model file, and specify the enumeration values in an extension data file.
About this task
Attention:
Do not use a reserved SQL keyword as the name of a property.
Procedure
To create an enumeration property:
Results
You have now created an enumeration property and attached it to a rule model element.
To add an enumeration property to an event asset, you must manually edit the extension model files. You cannot use the Rule Model Extension Editor to add an enumeration property that is associated with an event asset.
In XML, you create an enumeration property as follows:
In the extension model file:
<class extends="ActionRule" name="MyRule"> <property name="state" type="State"/> </class> <enum name="States"/>In the extension data file:
<enum-data name="State"> <item>New York</item> <item>New Hampshire</item> <item>Rhode Island</item> </enum-data>