Examples of AtomicOperation


Examples of org.activiti.engine.impl.pvm.runtime.AtomicOperation

    return TYPE;
  }
 
  public void execute(JobEntity job, String configuration, ExecutionEntity execution, CommandContext commandContext) {
    // ATM only AtomicOperationTransitionCreateScope can be performed asynchronously
    AtomicOperation atomicOperation = AtomicOperation.TRANSITION_CREATE_SCOPE;
    commandContext.performOperation(atomicOperation, execution);
  }
View Full Code Here

Examples of org.activiti.engine.impl.pvm.runtime.AtomicOperation

    nextOperations.add(executionOperation);
    if (nextOperations.size()==1) {
      try {
        Context.setExecutionContext(execution);
        while (!nextOperations.isEmpty()) {
          AtomicOperation currentOperation = nextOperations.removeFirst();
          if (log.isTraceEnabled()) {
            log.trace("AtomicOperation: {} on {}", currentOperation, this);
          }
          if (execution.getReplacedBy() == null) {
            currentOperation.execute(execution);
          } else {
            currentOperation.execute(execution.getReplacedBy());
          }
        }
      } finally {
        Context.removeExecutionContext();
      }
View Full Code Here

Examples of org.activiti.engine.impl.pvm.runtime.AtomicOperation

    return TYPE;
  }
 
  public void execute(JobEntity job, String configuration, ExecutionEntity execution, CommandContext commandContext) {
    // ATM only AtomicOperationTransitionCreateScope can be performed asynchronously
    AtomicOperation atomicOperation = AtomicOperation.TRANSITION_CREATE_SCOPE;
   
    commandContext
      .performOperation(atomicOperation, execution);
  }
View Full Code Here

Examples of org.activiti.engine.impl.pvm.runtime.AtomicOperation

    nextOperations.add(executionOperation);
    if (nextOperations.size()==1) {
      try {
        Context.setExecutionContext(execution);
        while (!nextOperations.isEmpty()) {
          AtomicOperation currentOperation = nextOperations.removeFirst();
          if (log.isLoggable(Level.FINEST)) {
            log.finest("AtomicOperation: " + currentOperation + " on " + this);
          }
          currentOperation.execute(execution);
        }
      } finally {
        Context.removeExecutionContext();
      }
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.model.op.AtomicOperation

        }
      }
     
      try {
        while (! atomicOperations.isEmpty()) {
          AtomicOperation atomicOperation = atomicOperations.poll();
          atomicOperation.perform(this);
        }

      } catch (RuntimeException e ) {
        throw e;
      } finally {
View Full Code Here

Examples of org.jbpm.pvm.internal.model.op.AtomicOperation

        }
      }
     
      try {
        while (! atomicOperations.isEmpty()) {
          AtomicOperation atomicOperation = atomicOperations.poll();
          atomicOperation.perform(this);
        }

      } catch (RuntimeException e ) {
        throw e;
      } finally {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.