Esempio n. 1
0
  public DBUserGroupCallbackImpl() {
    String propertiesLocation = System.getProperty("jbpm.usergroup.callback.properties");

    if (propertiesLocation == null) {
      propertiesLocation = DEFAULT_PROPERTIES_NAME;
    }
    logger.debug("Callback properties will be loaded from {}", propertiesLocation);
    InputStream in = this.getClass().getResourceAsStream(propertiesLocation);
    if (in != null) {
      config = new Properties();
      try {
        config.load(in);
      } catch (IOException e) {
        logger.error("Error when loading properties for DB user group callback", e);
        config = null;
      }
    }
    init();
  }
Esempio n. 2
0
 public DBUserGroupCallbackImpl(Properties config) {
   this.config = config;
   init();
 }