reference to is task executing

hi

want to use the node to check on a behavior tree task

but how would one obtain a reference to the particular behavior tree task outside the task in the first place to run the node

thanks

managed to pass a reference from the task itself