Package com.agiletec.plugins.jpcontentworkflow.aps.system.services.notifier.parse

Examples of com.agiletec.plugins.jpcontentworkflow.aps.system.services.notifier.parse.WorkflowNotifierDOM.extractConfig()


  }
 
  public void testExtractConfig() throws Throwable {
    WorkflowNotifierDOM configDOM = new WorkflowNotifierDOM();
    String xml = this._configManager.getConfigItem(JpcontentworkflowSystemConstants.WORKFLOW_NOTIFIER_CONFIG_ITEM);
    NotifierConfig notifierConfig = configDOM.extractConfig(xml);
    assertFalse(notifierConfig.isActive());
    assertEquals(24, notifierConfig.getHoursDelay());
    assertTrue(notifierConfig.getStartScheduler().getTime()<(new Date()).getTime());
    assertEquals("CODE1", notifierConfig.getSenderCode());
    //assertEquals("email", notifierConfig.getMailAttrName());
View Full Code Here


    WorkflowNotifierDOM configDOM = new WorkflowNotifierDOM();
   
    NotifierConfig newConfig = this.prepareNotifierConfig();
    String xml = configDOM.createConfigXml(newConfig);
   
    NotifierConfig extractedConfig = configDOM.extractConfig(xml);
    this.compareNotifiers(newConfig, extractedConfig);
  }
 
  private NotifierConfig prepareNotifierConfig() {
    NotifierConfig notifierConfig = new NotifierConfig();
View Full Code Here

      String xml = configManager.getConfigItem(JpcontentworkflowSystemConstants.WORKFLOW_NOTIFIER_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpcontentworkflowSystemConstants.WORKFLOW_NOTIFIER_CONFIG_ITEM);
      }
      WorkflowNotifierDOM configDOM = new WorkflowNotifierDOM();
      this.setNotifierConfig(configDOM.extractConfig(xml));
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "loadConfigs");
      throw new ApsSystemException("Errore in fase di inizializzazione", t);
    }
  }
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.