Package org.jbpm.pvm.internal.jobexecutor

Examples of org.jbpm.pvm.internal.jobexecutor.JobExecutor


     
      // release the lock on the timer
      release();
     
      // notify the jobExecutor at the end of the transaction
      JobExecutor jobExecutor = environment.get(JobExecutor.class);
      if (jobExecutor!=null) {
        Transaction transaction = environment.get(Transaction.class);
        if (transaction==null) {
          throw new JbpmException("no transaction in environment");
        }
View Full Code Here


  public JobExecutorDescriptor() {
    super(JobExecutor.class.getName());
  }

  public Object construct(WireContext wireContext) {
    JobExecutor jobExecutor = (JobExecutor) super.construct(wireContext);
    if (autoStart) {
      wireContext.addListener(new JobExecutorStopper(jobExecutor));
    }
    return jobExecutor;
  }
View Full Code Here

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

  public void close() {
    JobExecutor jobExecutor = get(JobExecutor.class);
    if (jobExecutor!=null) {
      // stop the job executor and wait till all job executor threads have stopped.
      jobExecutor.stop(true);
    }
    processEngineWireContext.fire(WireContext.EVENT_CLOSE, null);
  }
View Full Code Here

     
      // release the lock on the timer
      release();
     
      // notify the jobExecutor at the end of the transaction
      JobExecutor jobExecutor = environment.get(JobExecutor.class);
      if (jobExecutor!=null) {
        Transaction transaction = environment.get(Transaction.class);
        if (transaction==null) {
          throw new JbpmException("no transaction in environment");
        }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.jobexecutor.JobExecutor

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.