public void startJobExecuter() throws Exception { log.debug("Starting JBPM job executer now..."); Jbpm.instance().getJbpmConfiguration().startJobExecutor(); if (Jbpm.instance().getJbpmConfiguration().getJobExecutor().isStarted()) { log.info("JBPM Job executer has successfully started."); } else { log.error("Could not start JBPM Job executer for unknown reason."); } }
public ProcessInstance getProcessInstance(Long id) { JbpmContext context = Jbpm.instance().getJbpmConfiguration().createJbpmContext(); // log.debug("!!!!!!!!!!!!!!!!!!!!!!!!!: " + context); /* try { log.debug("!!!!!!!!!!!!!!!!!!!!!!!!!: " + context.getConnection().isClosed()); }catch(SQLException e) { e.printStackTrace(); } */ return context.getProcessInstance(id); }