I am programming via State Machine in which I invoke two different workflows. I would need to know how can I pass one variable from the first workflow to the second workflow.
From the first workflow to the state machine I create the arguments in the first workflow, and then I import arguments and create the varible in the state machine. After that, I do not know how to pass this new variable to the second workflow.
First invoke workflow A within a sequence in a state machine and create OUT argument and hold the value or a variable with value in that out argument named out_argument1
Now create a global variable in main state machine which means that variable has access and scope with all the activities in your process
Now use a assign activity and assign that out argument to that global variable
Then when you are creating your second Invoke activity, create a IN argument in that workflow and pass this GLOBAL variable as input value
Thatβs it
You would have now passed the value from one workflow another