Package org.openbp.server.engine

Examples of org.openbp.server.engine.EngineExceptionHandlerEvent


   * 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();
  }
View Full Code Here

TOP

Related Classes of org.openbp.server.engine.EngineExceptionHandlerEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.