Sending variables between flows (Entry and EXIT)
# 📖tutorials
e
An input of two variables will be made to a flow, which will return the sum.
1. A flow called "Sum" is created
2. Two "workflow" variables of numerical type are created
3. The input of variables to the flow is enabled.
3. Using the execution card, we sum the two variables and return them in a third "workflow" variable called "response".
workflow.response = workflow.num1 + workflow.num2
4. Enable “response” as output variables.
5. To use the summation, we send values to the input variables.
6. Finally, in order to visualize and save the response of the flow we do the following: {{workflow.[flow name].[variable]}}
I hope this brief tutorial will be helpful 👍
It is worth mentioning that it was not necessary to create any variable in the main flow in order to store the summer output value.
w
Nice work, my 2 cents
workflow.<cardName>.<variableName>
if your card name has blanks you can write
workflow["card name"].myVar
to use that sintax the Card name must not have blanks, (by default is equal to workflow name) but you can change the name of Card. For example you can use the same workflow card more the once in the same primary workflow.
3 Views