{
final StateFacade state = (StateFacade)stateIterator.next();
final Collection events = state.getDeferrableEvents();
for (final Iterator eventIterator = events.iterator(); eventIterator.hasNext();)
{
final EventFacade event = (EventFacade)eventIterator.next();
if (event instanceof JBpmAction)
{
final JBpmAction action = (JBpmAction)event;
if (this.equals(action.getOperation()))
{
internalActions.add(event);
}
}
}
}
final Collection transitions = graph.getTransitions();
for (final Iterator transitionIterator = transitions.iterator(); transitionIterator.hasNext();)
{
final TransitionFacade transition = (TransitionFacade)transitionIterator.next();
final EventFacade event = transition.getTrigger();
if (event != null)
{
if (event instanceof JBpmAction)
{
final JBpmAction action = (JBpmAction)event;