Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Passing variables from predecessor task to Current task

Is there a way to set variables in Task 1 and pass them to the child task? It looks like every task has a different session so value of variable doesn't transfer in a task tree.

like image 915
vinny Avatar asked Nov 26 '25 11:11

vinny


1 Answers

Check out SYSTEM$SET_RETURN_VALUE:

Explicitly sets the return value for a task.

In a tree of tasks, a task can call this function to set a return value. Another task that identifies this task as the predecessor task (using the AFTER keyword in the task definition) can retrieve the return value set by the predecessor task.

There is an example in the link.

like image 186
waldente Avatar answered Nov 29 '25 01:11

waldente



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!