transition_train - added at_beginning_of_transition event