You create enumeration types in the data model editor, and edit their details. Then, you
define the list of values they can take.
About this task
An enumeration is composed of a name and a list of values. The data that the enumeration
represents can take only a value from this list.
In the following example, you see an enumeration called
customer category with
its possible values:
Procedure
- Click the Add button
next to
Data model and select Enumeration type from the
drop-down list.
- Enter a suitable name for the enumeration type. It is recommended to use a singular form
for the type name.
- If necessary, you can update the details of the enumeration type.
- Define a documentation property using the Documentation text field. This
documentation will be visible in the prediction menu in the rule editor.
- Edit the JSON name associated with the enumeration type.
- Change the plural form or the articles associated with the enumeration type. To do so, click the
placeholder for the article or plural form that you want to edit and edit it directly in the pop-up
window that opens. You can revert to the default verbalization by clicking Reset.
- Select the gender of the enumeration type if your decision service is in French. The masculine
gender is applied by default.
What to do next
You can now define the values of the enumeration type. Enumeration types can have values that are
manually defined in the data model editor or imported from an external data source: