Examples of buildProcessEngine()


Examples of org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration.buildProcessEngine()

    StandaloneProcessEngineConfiguration engineConfiguration1 = new StandaloneInMemProcessEngineConfiguration();
    engineConfiguration1.setProcessEngineName(getClass().getName() + "-engine1");
    engineConfiguration1.setJdbcUrl("jdbc:h2:mem:activiti1");
    engineConfiguration1.setJobExecutorActivate(false);
    engineConfiguration1.setJobExecutor(jobExecutor);
    ProcessEngine engine1 = engineConfiguration1.buildProcessEngine();
   
    // and a second one
    StandaloneProcessEngineConfiguration engineConfiguration2 = new StandaloneInMemProcessEngineConfiguration();
    engineConfiguration2.setProcessEngineName(getClass().getName() + "engine2");
    engineConfiguration2.setJdbcUrl("jdbc:h2:mem:activiti2");
View Full Code Here

Examples of org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration.buildProcessEngine()

    StandaloneProcessEngineConfiguration engineConfiguration2 = new StandaloneInMemProcessEngineConfiguration();
    engineConfiguration2.setProcessEngineName(getClass().getName() + "engine2");
    engineConfiguration2.setJdbcUrl("jdbc:h2:mem:activiti2");
    engineConfiguration2.setJobExecutorActivate(false);
    engineConfiguration1.setJobExecutor(jobExecutor);
    ProcessEngine engine2 = engineConfiguration2.buildProcessEngine();
              
    jobExecutor.registerProcessEngine((ProcessEngineImpl) engine1);
    jobExecutor.registerProcessEngine((ProcessEngineImpl) engine2);
   
    // stop the acquisition
View Full Code Here

Examples of org.jbpm.api.Configuration.buildProcessEngine()

      String jbpmTestCfgResource = System.getProperty("jbpm.test.cfg.resource");
      if (jbpmTestCfgResource!=null) {
        configuration.setResource(jbpmTestCfgResource);
      }

      processEngine = configuration.buildProcessEngine();
     
      log.debug("using ProcessEngine "+System.identityHashCode(processEngine));

      repositoryService = processEngine.get(RepositoryService.class);
      executionService = processEngine.getExecutionService();
View Full Code Here

Examples of org.jbpm.api.Configuration.buildProcessEngine()

            Configuration config = new Configuration();
            if (configurationResource != null)
            {
                config.setResource(configurationResource);
            }
            setProcessEngine(config.buildProcessEngine());
            containerManaged = false;
        }
        if (processDefinitions != null)
        {
            for (Object def : processDefinitions.values())
View Full Code Here

Examples of org.jbpm.api.Configuration.buildProcessEngine()

public class JbpmFactoryBean
{
    public static ProcessEngine buildProcessEngine()
    {
        Configuration config = new Configuration();
        return config.buildProcessEngine()
    }
}

View Full Code Here

Examples of org.jbpm.api.Configuration.buildProcessEngine()

        configuration.setResource(jbpmCfgXml);
      } else {
        log.debug("using default jbpm.cfg.xml configuration");
      }
     
      processEngine = configuration.buildProcessEngine();

      processEngines.put(jbpmCfgXml, processEngine);
    }
    return processEngine;
  }
View Full Code Here

Examples of org.jbpm.api.Configuration.buildProcessEngine()

            Configuration config = new Configuration();
            if (configurationResource != null)
            {
                config.setResource(configurationResource);
            }
            setProcessEngine(config.buildProcessEngine());
            containerManaged = false;
        }
        if (processDefinitions != null)
        {
            for (Object def : processDefinitions.values())
View Full Code Here

Examples of org.jbpm.api.Configuration.buildProcessEngine()

public class JbpmFactoryBean
{
    public static ProcessEngine buildProcessEngine()
    {
        Configuration config = new Configuration();
        return config.buildProcessEngine()
    }
}

View Full Code Here

Examples of org.jbpm.api.Configuration.buildProcessEngine()

        configuration.setResource(jbpmCfgXml);
      } else {
        log.debug("using default jbpm.cfg.xml configuration");
      }
     
      processEngine = configuration.buildProcessEngine();

      processEngines.put(jbpmCfgXml, processEngine);
    }
    return processEngine;
  }
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.