Package org.jbpm.pvm.internal.session

Examples of org.jbpm.pvm.internal.session.TimerSession


  public TimerImpl() {
  }
 
  public void schedule() {
    TimerSession timerSession = Environment.getFromCurrent(TimerSession.class);
    timerSession.schedule(this);
  }
View Full Code Here


    return parent;
  }
 
 
  protected void destroyTimers(CompositeElementImpl scope) {
    TimerSession timerSession = Environment.getFromCurrent(TimerSession.class, false);
    if (timerSession!=null) {
      log.debug("destroying timers of "+this);
      List<Timer> timers = timerSession.findTimersByExecution(this);
      for (Timer timer: timers) {
       
        Job job = Environment.getFromCurrent(JobImpl.class, false);
        if (timer!=job) {
          timerSession.cancel(timer);
        }
      }
    }
  }
View Full Code Here

    return parent;
  }
 
 
  protected void destroyTimers(CompositeElementImpl scope) {
    TimerSession timerSession = EnvironmentImpl.getFromCurrent(TimerSession.class, false);
    if (timerSession!=null) {
      log.debug("destroying timers of "+this);
      List<Timer> timers = timerSession.findTimersByExecution(this);
      for (Timer timer: timers) {
       
        Job job = EnvironmentImpl.getFromCurrent(JobImpl.class, false);
        if (timer!=job) {
          timerSession.cancel(timer);
        }
      }
    }
  }
View Full Code Here

  public TimerImpl() {
  }
 
  public void schedule() {
    this.dbid = DbidGenerator.getDbidGenerator().getNextId();
    TimerSession timerSession = EnvironmentImpl.getFromCurrent(TimerSession.class);
    timerSession.schedule(this);
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.session.TimerSession

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.