Reply To: [Unexpected Behaviour] ConditionTask and BT

NodeCanvas Forums Support [Unexpected Behaviour] ConditionTask and BT Reply To: [Unexpected Behaviour] ConditionTask and BT

#14549
Gavalakis
Keymaster

Hey,

Noted 🙂
I was about to send the new version tomorrow. I will see if I can squeeze that in. It is not as straightforward as it may seem. OnPause and OnResume for ActionTasks, are part of their own execution and for example OnPause in ActionTask, is called only if it is currently Running and the graph pauses. Since ConditionTasks do not have a “Running” state, OnPause and OnResume for them respectively, will need to be called whenever the graph pauses and resumes regardless of whether or not the ConditionTask was currently being evaluated (there is no “state” tracking that).

As such, I was planning to add callbacks in Tasks (for both Action and Condition) related to Graph state changes (OnGraphStarted, OnGraphStopped, OnGraphPaused and OnGraphResumed). These however are differnt (and called in different times) from the existing ActionTask OnPause and OnResume.

I hope this makes sense :). In any case, I will try to add these in the tomorrow version, or otherwise in the one right after that!

Thanks!

Join us on Discord: https://discord.gg/97q2Rjh