At my AM task I need to use an "OnTaskEnd" to write final variable values, that was created and modified in "Main" function.
How I can get that variables in Events?
The only way I found is to create a global Task Variables and then use "Set" instead of "Create" in "Main". But I use dynamically created variables (read name and value from external file) and it is not a very handy not having all variables available inside Events.
May be useful to add a flag at "Create variable" called "Global" with the meaning that the variable will be visible at all functions and events.