BehaviorTree - How to use BTService

How are you supposed to use the BTService Node?

I made a function in my AI Controller class that set’s a variable.

Is the proper workflow, to call that function from the service, then have a Decorator Node do the check on the variable? I’m trying to use the BT in the way it was intended. This variable is one that requires a looping of Actors and some comparisons of distance, so it shouldn’t be called all the time.

thanks,

This is the graph in the service.