Create a local data model
You can define a data model local to a process, rule, or custom service.
- On the process for which to create a data model.
-
On the process modeling bar, click
Data model.
The Data models page appears.
The local data model inherits the process category.
-
Click
New.
The Add Data model dialog box is displayed.
- Enter a Name for the data model.
- Provide a Description of the data model.
-
Add fields to the data model.
-
Click
adjacent to the data model.
By default, a new field, FIELD1 of type Text is added to the data model. You can change the field type name by double-clicking the field.
- Provide a meaningful and unique Name for the field.
- In the Display name field, provide a name for the field to display at runtime.
- On the Type list, select a field type. The supported field types are Text, Boolean, Date, Number, Object, and List.
-
The
Default value is assigned when the data model gets created.
The default value is only available for Boolean, Date, and Number field types.
- You can configure the additional display properties for the Text, Number, and Date field types. See Add fields to a data model.
-
Click
adjacent to the data model.
-
Add more fields as required.
To delete a field, click for the field to delete.
-
You can rearrange the fields using drag and drop. The updated field order is automatically reflected even in the Data
object variable.
-
You can reorder the entire object, or fields that are at same level or within a list.
-
You can move the entire object or list up and down, or move fields from one object to another object; however, you cannot move the fields out of a list.
-
-
Click
Add.
The data model is saved as part of the process definition.
You can create a data model local to a business rule, case, or custom service in a similar manner.