public boolean init(final W4Main w4Main) throws W4ConnectorException {
    _w4Main = w4Main;

    _bpmService = w4Main.getBPMService();
    _executorService = Executors.newCachedThreadPool();
    _w4Context = W4ConnectorContext.getConnectorContext();
    log.info("   start folder : " + new File(".").getAbsolutePath());
    try {
      _sessionService = _bpmService.getSessionService();
      _processService = _bpmService.getProcessService();
      _workcaseService = _bpmService.getWorkcaseService();
      _taskService = _bpmService.getTaskService();
      return true;
    } catch (final BPMException e) {
      log.error(e);
      return false;
    }
  }
Ejemplo n.º 2
0
  private void stopBPMService() {

    bpmService.stop();
  }
Ejemplo n.º 3
0
  private void startBPMService(EntityManagerFactory emf) {

    bpmService = new BPMService(guvnorRoot, localBPMPath);
    bpmService.init(emf);
  }