Package org.jbpm.pvm.internal.env

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


  public EnvironmentInterceptorBinding() {
    super("environment-interceptor");
  }

  public Object parse(Element element, Parse parse, Parser parser) {
    EnvironmentFactory environmentFactory = (EnvironmentFactory) parse.findObject(JbpmConfiguration.class);
    return new EnvironmentInterceptorDescriptor(environmentFactory);
  }
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

 
  protected ConfigurationImpl configuration;
  protected Policy policy;
 
  public Object construct(WireContext wireContext) {
    EnvironmentFactory environmentFactory = (EnvironmentFactory) configuration.getProducedProcessEngine();
    EnvironmentInterceptor environmentInterceptor = new EnvironmentInterceptor();
    environmentInterceptor.setEnvironmentFactory(environmentFactory);
    if (policy!=null) {
      environmentInterceptor.setPolicy(policy);
    }
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.pvm.internal.env.EnvironmentFactory

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.