Package org.openbp.server.engine

Examples of org.openbp.server.engine.StandardRollbackProcessor


  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


    {
      String msg = LogUtil.error(getClass(), "Invalid $0 activity argument (argument value $1, token $2).", PARAM_ROLLBACKPOSITIONBEHAVIOR, rollbackPositionBehaviorStr, hc.getTokenContext());
      throw new EngineException("InvalidActivityArgument", msg);
    }

    StandardRollbackProcessor rollbackProcessor = new StandardRollbackProcessor();
    rollbackProcessor.setRollbackDataBehavior(rollbackDataBehavior);
    rollbackProcessor.setRollbackPositionBehavior(rollbackPositionBehavior);
    rollbackProcessor.performRollback(hc);

    return true;
    // }}*Handler implementation*
  }
 
View Full Code Here

TOP

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

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.