Package org.activiti.engine.impl.jobexecutor

Examples of org.activiti.engine.impl.jobexecutor.FailedJobListener


        .getProcessEngineConfiguration()
        .getCommandExecutor();
     
      commandContext.getTransactionContext().addTransactionListener(
        TransactionState.ROLLED_BACK,
        new FailedJobListener(commandExecutor, jobId, exception));
     
      // Dispatch an event, indicating job execution failed in a try-catch block, to prevent the original
      // exception to be swallowed
      if (commandContext.getEventDispatcher().isEnabled()) {
        try {
View Full Code Here


        .getProcessEngineConfiguration()
        .getCommandExecutorTxRequiresNew();
     
      commandContext.getTransactionContext().addTransactionListener(
        TransactionState.ROLLED_BACK,
        new FailedJobListener(commandExecutor, jobId, exception));
      
      // throw the original exception to indicate the ExecuteJobCmd failed
      throw exception;
    } finally {
      if(jobExecutorContext != null) {
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.jobexecutor.FailedJobListener

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.