public void createStateDefaultTransition ( final TransitionableState state , final String targetState ) { if ( state == null ) { LOGGER . trace ( "Cannot add default transition of [{}] to the given state is null and cannot be found in the flow." , targetState ) ; return ; } val transition = createTransition ( targetState ) ; state . getTransitionSet ( ) . add ( transition ) ; }
Add a default transition to a given state .