Package org.jbpm.job

Examples of org.jbpm.job.Timer.execute()


  public Object execute(JbpmContext jbpmContext) throws Exception {
    Timer timer = (Timer) jbpmContext.getJobSession().getJob(timerId);
    if (timer!=null) {
      log.debug("executing timer "+timerId);
      timer.execute(jbpmContext);
    } else {
      log.info("execution of timer "+timerId+" was skipped cause the timer was deleted from the database");
    }
    return timer;
  }
View Full Code Here


          return null ;
      }
      timer.setLockOwner(getClass().getName()); // prevent others from removing timer
      log.debug("executing " + timer);
      try {
        if (timer.execute(jbpmContext)) {
          jbpmContext.getServices().getSchedulerService().deleteTimer(timer);
        } else if (timer.getRepeat() != null) {
            if (log.isDebugEnabled()) {
                log.debug("scheduling timer for repeat on " + timer.getDueDate());
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.