1. In a representation of a state machine having states and transitions, a method comprising the steps of: providing a first evaluation stage and a second evaluation stage for processing the state machine; detecting an occurrence of an event; determining if a valid first-stage transition in the first evaluation stage exists within the representation of the state machine; and if the valid first-stage transition does not exist in the first evaluation stage, determining if a valid second-stage transition exists in the second evaluation stage.