* Template method that will be called whenever an event occurs the observer is interested in.
* @param e Event
*/
public void observeEvent(ObserverEvent e)
{
EngineExceptionHandlerEvent ee = (EngineExceptionHandlerEvent) e;
// Perform rollback
StandardRollbackProcessor rollbackProcessor = new StandardRollbackProcessor();
rollbackProcessor.setRollbackDataBehavior(RollbackDataBehavior.RESTORE_VARIABLES);
rollbackProcessor.setRollbackPositionBehavior(RollbackPositionBehavior.MAINTAIN_POSITION);
rollbackProcessor.performRollback(ee);
// Continue at the error socket of the current node
ee.setHandlingOption(EngineExceptionHandlerEvent.HANDLING_OPTION_ERROR_SOCKET);
ee.skipSubsequentObservers();
}