Examples of PvmEnvironment


Examples of org.jbpm.pvm.internal.env.PvmEnvironment

      return super.get(key);
    }

    public EnvironmentImpl openEnvironment() {
      PvmEnvironment environment = new PvmEnvironment(this);

      if (log.isTraceEnabled())
        log.trace("opening jbpm-spring" + environment);

      environment.setContext(new SpringContext(applicationContext));

      installAuthenticatedUserId(environment);
      installProcessEngineContext(environment);
      installTransactionContext(environment);
View Full Code Here

Examples of org.jbpm.pvm.internal.env.PvmEnvironment

     */
    @Override
    public Environment openEnvironment(List<WireObject> txWireObjects) {

        PvmEnvironment environment = new PvmEnvironment(this);

        // FIXME: All beneath should be a super call

        // set the classloader
        ClassLoader classLoader = processEngineWireContext.getClassLoader();
        if (classLoader != null) {
            environment.setClassLoader(classLoader);
        }

        // add the process-engine context
        environment.setContext(new SpringContext(applicationContext));
        environment.setContext(processEngineWireContext);

        // add the transaction context
        WireDefinition usedWireDefinition = transactionWireDefinition;
        if (txWireObjects != null) {
            usedWireDefinition = new WireDefinition(transactionWireDefinition,
                    txWireObjects);
        }

        WireContext transactionContext = new WireContext(usedWireDefinition,
                Context.CONTEXTNAME_TRANSACTION, environment, true);
        // add the environment block context to the environment
        environment.setContext(transactionContext);

        Environment.pushEnvironment(environment);
        try {
            // finish the creation of the environment wire context
            transactionContext.create();
View Full Code Here

Examples of org.jbpm.pvm.internal.env.PvmEnvironment

  public Environment openEnvironment() {
    return openEnvironment(null);
  }
 
  public Environment openEnvironment(List<WireObject> txWireObjects) {
    PvmEnvironment environment = new PvmEnvironment(this);

    if (log.isTraceEnabled()) log.trace("opening " + environment);

    // set the classloader
    ClassLoader classLoader = processEngineWireContext.getClassLoader();
    if (classLoader != null) {
      environment.setClassLoader(classLoader);
    }

    // add the process-engine context
    environment.setContext(processEngineWireContext);

    // add the transaction context
    WireDefinition usedWireDefinition = transactionWireDefinition;
    if (txWireObjects!=null) {
      usedWireDefinition = new WireDefinition(transactionWireDefinition, txWireObjects);
    }
   
    WireContext transactionContext = new WireContext(usedWireDefinition, Context.CONTEXTNAME_TRANSACTION, environment, true);
    // add the environment block context to the environment
    environment.setContext(transactionContext);

    Environment.pushEnvironment(environment);
    try {
      // finish the creation of the environment wire context
      transactionContext.create();
View Full Code Here

Examples of org.jbpm.pvm.internal.env.PvmEnvironment

   
    return springProcessEngine;
  }

  public EnvironmentImpl openEnvironment() {
    PvmEnvironment environment = new PvmEnvironment(this);

    if (log.isTraceEnabled())
      log.trace("opening jbpm-spring" + environment);

    environment.setContext(new SpringContext(applicationContext));

    installAuthenticatedUserId(environment);
    installProcessEngineContext(environment);
    installTransactionContext(environment);
View Full Code Here

Examples of org.jbpm.pvm.internal.env.PvmEnvironment

  public RepositoryService getRepositoryService() {
    return get(RepositoryService.class);
  }

  public EnvironmentImpl openEnvironment() {
    PvmEnvironment environment = new PvmEnvironment(this);

    if (log.isTraceEnabled()) log.trace("opening " + environment);

    installAuthenticatedUserId(environment);
    installProcessEngineContext(environment);
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.