Processes
Process Designer

Working with Data Types

8min
each process variable has a data type procesio supports the following data types primitives string string , integer integer , float float / double double , boolean boolean , datetime datetime , json json , gu gu id id , object custom data model data model (custom data type with one or more attributes), file file examples of data types primitive value ( string string ) list of primitive values ( list< string string > ) data model data model list of data models data models the file file data type file is a data model data model that contains the following attributes path path to file (set on upload) name name of the file mime type file type size file size hash file checksum use a file file variable type as process input to be able to create processes that use dynamic files as attachments in the send email action or use it as an output variable to map to it a file that you get from the call api action or many others! πŸš€ mapping variables to other data types be mindful of the data type compatibility when passing values from one process variable to the property of an action each action property expects a given data type this means that the variable type must match the expected property type of the action we refer to this as data mapping don't worry, there are tooltips that tell you what data type is expected in input also, each variable will have a color coded tag to easily map the variable to its data type the variables used at a process level are called process variables each process may have input process variables output process variables process variables used within the process if the process needs certain dynamic data in order to start, you need to configure process variables that have the β€œinput” tag enabled declare variables as β€œoutput” if there is certain data that you expect to get back from the process once the process has been executed successfully you need to consider the following when mapping input/outputs to process variables procesio does not support mapping data from one type to another thus you need to map data of the same data types you can always create a new process variable of the corresponding data type if needed exception conversion from integer integer to float float is allowed, as well as conversion from any primitive data type to string string pay attention to the list<> type of a process variable even though 2 process variables may have the same data type, you cannot map a process variable declared as a single value to a process variable declared as a list mapping rules string string you can map any type of variable and concatenations exception a data model data model cannot be mapped to a string string property mapping of a data model data model attribute to a string string property is allowed integer integer property you can map only integer integer variables float float property you can map only float float and integer integer boolean boolean property you can map only boolean boolean variables variables datetime datetime property you can map only datetime datetime variables and hard coded values with the format dd/mm/yyyy hh\ mm\ ss data model data model you can map only a data model data model variable of the same type e g a β€œcustomer” property accepts only the β€œcustomer” data type as a variable file file you can map only another file file