Page 1 of 1
How to tell if task was started from another task
Posted: Sat Oct 21, 2023 8:06 pm
by bgregory
I'm sure there is an easy explanation but:
I have a task called AB. Task AB calls task A and task B. How can I tell if task A or task B was started by itself or started from task AB?
Bob Gregory
Re: How to tell if task was started from another task
Posted: Sun Oct 22, 2023 5:35 pm
by Oleg
Pass some parameter from "AB" task to task A and Task B. For example Caller=AB
If you run the task manually, this parameter will not be present.
Re: How to tell if task was started from another task
Posted: Tue Oct 24, 2023 1:42 pm
by bgregory
Thank you Oleg... simple.
Re: How to tell if task was started from another task
Posted: Tue Oct 24, 2023 1:53 pm
by Oleg
Also you can declare variable
Caller on
Variable tab of task editor
If parent task passes a parameter with the same name, it overrides the corresponding declared task local variable.