public TransitionDefinition getTransition(String eventId) { for (Iterator it = transitions.iterator(); it.hasNext();) { Transition transition = (Transition) it.next(); if (transition.getId().equals(eventId)) { return transition; } } return null; }
/** * Returns the transition that matches the event with the provided id. * @param eventId the event id * @return the transition that matches, or null if no match is found. */ public TransitionDefinition getGlobalTransition(String eventId) { for (Iterator it = globalTransitionSet.iterator(); it.hasNext();) { Transition transition = (Transition) it.next(); if (transition.getId().equals(eventId)) { return transition; } } return null; }