Netflix/conductor

variables are not getting set if the SET_VARIABLE task is followed by a workflow task

missioncoding opened this issue · 3 comments

The conductor is not setting any variables when a SET_VARIABLE task is followed by a workflow.
This is easy to reproduce with a small workflow having a set variable followed by another workflow.

image

As shown in the attached workflow sample snippet. the set_output_variables_ref_1 is trying to set two variables user and param.
even after the successful execution of the task the varaibles are not set and they dont even appear in the varaibles pane under"Workflow Input/output"

Hence when the last task divide in the snippet tries to access the variable param it gets null

image

I observe the same condition is true when the set variable task is followed by a switch task as well. the variables are not getting set globally. After the set variable task you can access using workflow.variables for the first access but post that the variable is getting set to null.

v1r3n commented

@missioncoding I believe this is a bug. Will send a PR to fix.

Thanks @v1r3n. it would be great to get a fix asap.