Package org.jbpm.env

Examples of org.jbpm.env.EnvironmentFactory


  private static final long serialVersionUID = 1L;

  public Object construct(WireContext wireContext) {
    EnvironmentInterceptor environmentInterceptor = new EnvironmentInterceptor();
    Environment environment = wireContext.getEnvironment();
    EnvironmentFactory environmentFactory = environment.getEnvironmentFactory();
    environmentInterceptor.setEnvironmentFactory(environmentFactory);
    return environmentInterceptor;
  }
View Full Code Here


* @author Tom Baeyens
*/
public class PvmDbSessionTest extends TestCase {
 
  public void testPvmDbSession() {
    EnvironmentFactory environmentFactory = EnvironmentFactory.parseResource(
        "org/jbpm/examples/ch10/jbpm.environment.xml"
    );
   
    Environment environment = environmentFactory.openEnvironment();
    try {
      PvmDbSession pvmDbSession = environment.get(PvmDbSession.class);
     
      ProcessDefinition processDefinition = ProcessFactory.build("persited process")
      .done();
View Full Code Here

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

TOP

Related Classes of org.jbpm.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.