Defining custom variables
There are various ways to introduce custom variables in a CLOUDFLOW workflow.
Via Form Builder
You can set custom variables via the Form Builder.
When you enter a value in a form field, a variable is created. This can be used throughout the complete workflow. This is one of the ways variables are introduced in your flow and can be used throughout the flow.
In the Set Variable node
You can set custom variables in the Set Variable node.
In various other nodes
Various nodes contain the field Variable name:.
This field will create a variable containing the result of the node.
For example, the Get Meta Data node, the meta_data variable will contain the metadata of the incoming file.
Via a script
You can set custom variables via the Script node.
Via an API call
When you submit to a workflow using the public API you can introduce a list of custom variables with matching values to the workflow as an object.
Example
In this example the variable email is introduced with value test@hybridsoftware.com to the workflow Demoflow: api.hub.start_from_whitepaper_with_variables("Demoflow","Input",{"email":"test@hybridsoftware.com"})
Via Expression Builder
You can introduce custom variables in Expression Builder.