Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Calling argument from another workflow

Dears,

I have an issue that, I want to recall the argument. I already define it in a workflow. But I need to use it in another workflow in the same package.

I added Invoke Workflow to import the argument

I created a new variable and add it as default value

Is there any idea how to get the text from workflow to another workflow? Thanks in advance.

like image 476
Sarah AH Avatar asked Dec 28 '25 08:12

Sarah AH


1 Answers

You should consider your workflows as functions using Arguments as inputs and outputs. These Arguments need to be visible to the respected Workflow in order to be accepted.

Let me give you a simple example of 2 workflows passing one Argument form the first to the second:

  1. We have a sequence of 2 Workflows as follow:

enter image description here

  1. In Sequence we have one variable (desiredText) that will store the value of output variable from WorkFlow_1 and assign it to the input variable of WorkFlow_2:

enter image description here

  1. In Sequence and in Import Arguments of WorkFlow_1 we set the value of the output Argument (out_desiredText) to the local variable in Sequence we mentioned in step 2 (desiredText)

enter image description here

  1. Respectively in Import Arguments of WorkFlow_2 we set the values for the input Argument (in_desiredText) from the local variable (desiredText)

enter image description here

  1. WorkFlow_1 looks like (desiredText holds the value to be passed):

enter image description here

  1. WorkFlow_2 looks like (desiredText receives the value passed):

enter image description here

Hope this will clarify on how in/out Arguments are working.

like image 90
Konstantinos Palaiodimos Avatar answered Dec 31 '25 00:12

Konstantinos Palaiodimos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!