Pass one variable from first workflow to a second workflow using state machine

Dear all,

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.

Many thanks in advance! :slight_smile:



Hope these steps would help you resolve this

  1. 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

  2. Now create a global variable in main state machine which means that variable has access and scope with all the activities in your process

  3. Now use a assign activity and assign that out argument to that global variable

  4. 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

Hope this would help you resolve this

Cheers @Angel_Llull

Thanks! :slight_smile:

1 Like

Anytime @Angel_Llull

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.