Package org.jbpm.api

Examples of org.jbpm.api.Configuration


  protected synchronized void initialize() {
    if (processEngine==null) {

      String jbpmTestCfgType = System.getProperty("jbpm.test.cfg.type");
      Configuration configuration = new Configuration(jbpmTestCfgType);

      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


    public void initialise()
    {
        if (processEngine == null)
        {
            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

*/
public class JbpmFactoryBean
{
    public static ProcessEngine buildProcessEngine()
    {
        Configuration config = new Configuration();
        return config.buildProcessEngine()
    }
View Full Code Here

  private static final Log log = LogFactory.getLog(AntHelper.class);

  public static ProcessEngine getProcessEngine(String jbpmCfgXml) {
    ProcessEngine processEngine = (JbpmConfiguration) processEngines.get(jbpmCfgXml);
    if (processEngine == null) {
      Configuration configuration = new Configuration();
      if (jbpmCfgXml!=null) {
        log.debug("using jbpm configuration "+jbpmCfgXml);
        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

 
  JobExecutor jobExecutor;
 
  public void init() throws ServletException {
    String configurationResource = getInitParameter("jbpm.configuration.resource", "jbpm.cfg.xml");
    EnvironmentFactory environmentFactory = (EnvironmentFactory) new Configuration().setResource(configurationResource).buildProcessEngine();
    jobExecutor = environmentFactory.get(JobExecutor.class);
    if (jobExecutor==null) {
      throw new JbpmException("no job executor configured in resource "+configurationResource);
    }
    jobExecutor.start();
View Full Code Here

    @Override
    public void initialise()
    {
        if (processEngine == null)
        {
            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

*/
public class JbpmFactoryBean
{
    public static ProcessEngine buildProcessEngine()
    {
        Configuration config = new Configuration();
        return config.buildProcessEngine()
    }
View Full Code Here

        Thread t = Thread.currentThread();
        ClassLoader previousLoader = t.getContextClassLoader();
        try {
            ClassLoader newClassLoader = getClass().getClassLoader();
            t.setContextClassLoader(newClassLoader);
            configuration = new Configuration();
            configuration.setHibernateSessionFactory(registry.getSessionFactory());
        } finally {
            t.setContextClassLoader(previousLoader);
        }
    }
View Full Code Here

    return resource;
  }

  private static EnvironmentFactory parseConfig(String resource) {
    log.debug("parsing configuration from " + resource);
    return (EnvironmentFactory) new Configuration().setResource(resource).buildProcessEngine();
  }
View Full Code Here

 
  JobExecutor jobExecutor;
 
  public void init() throws ServletException {
    String configurationResource = getInitParameter("jbpm.configuration.resource", "jbpm.cfg.xml");
    EnvironmentFactory environmentFactory = (EnvironmentFactory) new Configuration().setResource(configurationResource).buildProcessEngine();
    jobExecutor = environmentFactory.get(JobExecutor.class);
    if (jobExecutor==null) {
      throw new JbpmException("no job executor configured in resource "+configurationResource);
    }
    jobExecutor.start();
View Full Code Here

TOP

Related Classes of org.jbpm.api.Configuration

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.