Using Behavior to manage robot flows