Passing declared local variables as input parameters
Posted: Mon Jan 27, 2020 3:58 pm
Hi,
1) I have a task TASK_CALLER and a task TASK_PROCESSOR.
2) In the task TASK_PROCESSOR, I have explicitly declared (edit task -> tab "local variables") the variable VAR_TEST_BOOLEAN. It is not initialised (VAR_TEST_BOOLEAN=)
3) In the task TASK_CALLER I have a Start Task action calling the task TASK_PROCESSOR: Start Task "TASK_PROCESSOR".
4) In the action Start Task "TASK_PROCESSOR" I am passing a input parameter: VAR_TEST_BOOLEAN=true
5) When I run the TASK_CALLER, the value of VAR_TEST_BOOLEAN is displayed as empty (!). I was expecting true.
6) If I removed the explicit declaration in TASK_PROCESSOR and then run TASK_CALLER again, then the value of VAR_TEST_BOOLEAN is displayed as true.
@Oleg: is this the expedted behaviour?
I was convinced that: I) whatever you declared was the default value and II) the value would be replaced by a calling/input parameter.
Kind regards, Juanlu.
1) I have a task TASK_CALLER and a task TASK_PROCESSOR.
2) In the task TASK_PROCESSOR, I have explicitly declared (edit task -> tab "local variables") the variable VAR_TEST_BOOLEAN. It is not initialised (VAR_TEST_BOOLEAN=)
3) In the task TASK_CALLER I have a Start Task action calling the task TASK_PROCESSOR: Start Task "TASK_PROCESSOR".
4) In the action Start Task "TASK_PROCESSOR" I am passing a input parameter: VAR_TEST_BOOLEAN=true
5) When I run the TASK_CALLER, the value of VAR_TEST_BOOLEAN is displayed as empty (!). I was expecting true.
6) If I removed the explicit declaration in TASK_PROCESSOR and then run TASK_CALLER again, then the value of VAR_TEST_BOOLEAN is displayed as true.
@Oleg: is this the expedted behaviour?
I was convinced that: I) whatever you declared was the default value and II) the value would be replaced by a calling/input parameter.
Kind regards, Juanlu.