Processes
Data Models
Working with Data Models
6min
use the data model designer to create your custom data type it helps you define the relationships between the data elements (attributes) you have, to give it a structure data models are a key concept in procesio as they can be used to configure the data type of process variables data model structure a data model is an organized view of attributes and their relationships with other data models each data model has one or more attributes each attribute has a data type, either primitive or data model, which would effectively create a relationship between 2 data models relationships consist of dependencies or associations between two data models thus a data model can have another data model as an attribute, describing the relationship between the two creating a data model here are the steps to create a data model and add attributes to it step 1 go to the designer panel and select data model designer to access the data models page step 2 once on the data models page, select create data model from the upper right corner step 3 a modal screen will pop up where you must set a name for your data model if you want to create several data models at this point, check the add another option and hit create a similar form will be displayed to set a name for the following data model step 5 press create when done step 6 the data model is now created and you can add attributes by pressing add attribute step 7 define the display name , type , and json property note the type of an attribute can be a primitive (integer, string, boolean etc ) or another data model created upfront this is how you can create relationships between two or more data models if you want to create several attributes at this point, check the add another option and click create a similar form will be displayed to set a name for the following attribute step 8 press create button to complete the attribute definition it will be listed within the data model you created using a data model in a process after you created a process you can add variables that have a custom data type that you defined in the data model designer for example, you have defined the data model country like in the image below in the process designer, you can create the \<country var> \<country var> variable that has the data type βcountryβ we can use the <%country var%> <%country var%> variable in any action configuration, by selecting an attribute of the βcountryβ data model when mapped to the property of an action, the format is <%variable name%> \<data model attribute name> <%variable name%> \<data model attribute name> , like in the image below