Пример #1
0
 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.");
   }
 }
Пример #2
0
  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);
  }