Importing a data model definition file
You create a data model inside a decision service. Then, you import a definition file to
automatically populate the data model with the types it contains.
Step 1: Creating a decision service
- Sign in to Decision Intelligence Client Managed Software by using your instance credentials.
- On the home page, click Create a new automation.
- In the decision automation, click New decision +.
- Enter a unique name in the Name field.
- Click Create.
Step 2: Importing a definition file to create a data model
- From the decision service, open the Data tab.
- Click Create +.
- Enter a name for the data model.
- Import your definition file using one of these methods:
- Drag the
person.jsonfile into the drop target area. - Click the drop target area and browse to the file on your local system.
This JSON file uses the Swagger Open API 2.0 format. It contains data types such as string, Boolean, date, and enumeration.
- Drag the
- Explore the imported data model.It contains two data types:
- A composite type person that contains attributes that describe a person's characteristics, including a date of birth, a given name, and a surname.
- An enumeration type person habitation enum that lists possible habitation values such as an apartment, a house, or a boat.