def match_transition_with(name, from_state, *conditions)
      find(name).find do |trans|
        trans.matches?(from_state) &&
        trans.check_conditions(*conditions)
      end
    end
def match_transition_with(name, from_state, *conditions)
      find(name).find do |trans|
        trans.matches?(from_state) &&
        trans.check_conditions(*conditions)
      end
    end
Examine transitions for event name that start in from state
 and find one matching condition.

 @param [Symbol] name
   the event name

 @param [Symbol] from_state
   the current context from_state

 @return [Transition]
   The choice transition that matches

 @api public