Examples of removeContext()


Examples of org.jbpm.pvm.internal.env.Environment.removeContext()

    ExecutionContext originalExecutionContext = null;
    ExecutionContext subProcessExecutionContext = null;
    Environment environment = Environment.getCurrent();
    if (environment!=null) {
      originalExecutionContext = (ExecutionContext) environment.removeContext(Context.CONTEXTNAME_EXECUTION);
      subProcessExecutionContext = new ExecutionContext((ExecutionImpl) subProcessInstance);
      environment.setContext(subProcessExecutionContext);
    }

    try {
View Full Code Here

Examples of org.jbpm.pvm.internal.env.Environment.removeContext()

        transitionName = subProcessActivityName;
      }

    } finally {
      if (subProcessExecutionContext!=null) {
        environment.removeContext(subProcessExecutionContext);
      }
      if (originalExecutionContext!=null) {
        environment.setContext(originalExecutionContext);
      }
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentImpl.removeContext()

        throw e;
      } finally {
        atomicOperations = null;
       
        if (executionContext!=null) {
          environment.removeContext(executionContext);
        }
        if (originalExecutionContext!=null) {
          environment.setContext(originalExecutionContext);
        }
      }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentImpl.removeContext()

        }
      } catch (Exception exception) {
        log.error("exception while executing '"+job+"'", exception);
        handleJobExecutionException(environment, job, exception);
      } finally {
        environment.removeContext(jobContext);
      }

    } else {
      log.debug("job " + jobDbid + " no longer exists");
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentImpl.removeContext()

    ExecutionContext originalExecutionContext = null;
    ExecutionContext subProcessExecutionContext = null;
    EnvironmentImpl environment = EnvironmentImpl.getCurrent();
    if (environment!=null) {
      originalExecutionContext = (ExecutionContext) environment.removeContext(Context.CONTEXTNAME_EXECUTION);
      subProcessExecutionContext = new ExecutionContext((ExecutionImpl) subProcessInstance);
      environment.setContext(subProcessExecutionContext);
    }

    try {
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentImpl.removeContext()

        transitionName = subProcessActivityName;
      }

    } finally {
      if (subProcessExecutionContext!=null) {
        environment.removeContext(subProcessExecutionContext);
      }
      if (originalExecutionContext!=null) {
        environment.setContext(originalExecutionContext);
      }
    }
View Full Code Here

Examples of org.jbpm.pvm.internal.env.EnvironmentImpl.removeContext()

    environment.setContext(taskContext);
    try {
      Collection<Message> messages = mailProducer.produce(execution);
      environment.get(MailSession.class).send(messages);
    } finally {
      environment.removeContext(taskContext);
    }
  }

  public void setMailProducer(MailProducer mailProducer) {
    this.mailProducer = mailProducer;
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.