Each process variable has a data type.ย PROCESIO supports the following data types:
string,ย integer,ย float,ย Boolean, date-time, JSON.
data model (a custom data type that can contain one or more attributes).
- Primitive Value (type string)
โFileโ is a data model that contains the following attributes:
- : the file path set automatically to the file location when itโs being uploaded to the PROCESIO platform
- : the name of the file
- : the file type
- : the file size
Use a โ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.
Be mindful of the data types 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 with the expected property type of the action. We refer to this as data mapping.
The variables used at a process level are called process variables. Each process may have:
- input process variables (optional)
- output process variables (optional)
- process variables used within the process (optional)
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โs certain data that you expect to get back from the process once the process has executed successfully.
ย You need to consider the following when mapping input/outputs to process variables:
- PROCESIO does not support mapping of data from one type to another thus you need to map data of same data types. You can always create a new process variable of the corresponding data type if needed.
- Exception: conversion from Integer to Float is allowed, as well as conversion from any primitive data type to String.ย
- Pay attention to type of a process variable. Even though 2 process variables may have the same data type, you cannot map a process variable declared as single value to a process variable declared as a list.
- : properties that expect a string data type will accept any type of variable and concatenations. ย
- Exception: A data model cannot be mapped to a String property. Mapping of a data model attribute to a String property is allowed.
- property: you can map only integer variables
- property: you can map both float and integer (conversion from Float to Integer is allowed)
- property: you can map only boolean variables
- For : you can map only Date-Time variable and hardcoded value with the format: dd/MM/yyyy hh:mm:ss (UTC).
- : you can map to a data model property only a data model variable of the same type. For example, a โCustomerโ property accepts only the โCustomerโ data type as a variable.ย
- : you can map to a โFileโ property only a โFileโ data model variable