Examples of deleteJob()


Examples of org.jbpm.db.JobSession.deleteJob()

    Job job = jobSession.loadJob(jobId);
    log.debug("executing job "+jobId);
    if (!job.execute(jbpmContext)) {
      log.warn("job "+jobId+" was not supposed to be deleted");
    }
    jobSession.deleteJob(job);
    return null;
  }

  private static Log log = LogFactory.getLog(ExecuteJobCommand.class);
}
View Full Code Here

Examples of org.jbpm.db.JobSession.deleteJob()

    try
    {
      log.debug("executing job " + job);
      if (job.execute(jbpmContext))
      {
        jobSession.deleteJob(job);
      }

    }
    catch (Exception e)
    {
View Full Code Here

Examples of org.jbpm.db.JobSession.deleteJob()

      job = jobSession.loadJob(job.getId());

      log.debug("executing " + job);
      try {
        if (job.execute(jbpmContext)) {
          jobSession.deleteJob(job);
        }
      }
      catch (Exception e) {
        log.debug("exception while executing " + job, e);
        if (!DbPersistenceService.isPersistenceException(e)) {
View Full Code Here

Examples of org.jbpm.db.JobSession.deleteJob()

      job = jobSession.loadJob(job.getId());

      try {
        log.debug("executing job "+job);
        if (job.execute(jbpmContext)) {
          jobSession.deleteJob(job);
        }

      } catch (Exception e) {
        log.debug("exception while executing '"+job+"'", e);
        StringWriter sw = new StringWriter();
View Full Code Here

Examples of org.jbpm.db.JobSession.deleteJob()

      job = jobSession.loadJob(job.getId());

      try {
        log.debug("executing job "+job);
        if (job.execute(jbpmContext)) {
          jobSession.deleteJob(job);
        }

      } catch (Exception e) {
        log.debug("exception while executing '"+job+"'", e);
        StringWriter sw = new StringWriter();
View Full Code Here

Examples of org.jbpm.db.JobSession.deleteJob()

      job = jobSession.loadJob(job.getId());

      try {
        log.debug("executing job "+job);
        if (job.execute(jbpmContext)) {
          jobSession.deleteJob(job);
        }

      } catch (Exception e) {
        log.debug("exception while executing '"+job+"'", e);
        StringWriter sw = new StringWriter();
View Full Code Here

Examples of org.lab41.dendrite.metagraph.MetaGraphTx.deleteJob()

            JobMetadata jobMetadata = tx.getJob(jobId);
            if (jobMetadata == null) {
                throw new NotFound(JobMetadata.class, jobId);
            }

            tx.deleteJob(jobMetadata);

            deleteJobResponse = new DeleteJobResponse();
        } catch (Throwable t) {
            tx.rollback();
            throw t;
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

  protected void doDispose() {
    if (logViewerVC != null) { // don't clean up twice
      Scheduler scheduler = (Scheduler) CoreSpringFactory.getBean("schedulerFactoryBean");
      // remove scheduler job first
      try {
        scheduler.deleteJob(jobName, LOG_DISPLAYER_GROUP);
        scheduler.removeJobListener(jobName);
      } catch (SchedulerException e) {
        logError("Can not delete log viewer job", e);
      }
      // remove logger appender and release StringWriter
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

      persitedProperties.destroy();
    }
    // Stop registration job
    Scheduler scheduler = (Scheduler) CoreSpringFactory.getBean("schedulerFactoryBean");
    try {
      scheduler.deleteJob(SCHEDULER_NAME, Scheduler.DEFAULT_GROUP);
    } catch (SchedulerException e) {
      logError("Could not shut down job::" + SCHEDULER_NAME, e);
    }
  }
View Full Code Here

Examples of org.quartz.Scheduler.deleteJob()

        super.stop();
        Scheduler scheduler = ((QuartzComponent) getServiceUnit().getComponent()).getScheduler();
        for (Trigger trg : getTriggers()) {
            scheduler.unscheduleJob(trg.getName(), trg.getGroup());
        }
        scheduler.deleteJob(getJobDetail().getName(), getJobDetail().getGroup());
        for (Map.Entry<String, Calendar> e : getCalendars().entrySet()) {
            scheduler.deleteCalendar(e.getKey());
        }
    }
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.