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

Examples of com.agiletec.plugins.jpcontentworkflow.aps.system.services.workflow.parse.ContentWorkflowDOM


      ConfigInterface configManager = this.getConfigManager();
      String xml = configManager.getConfigItem(JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_CONFIG_ITEM);
      if (xml == null) {
        throw new ApsSystemException("Configuration item not present: " + JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_CONFIG_ITEM);
      }
      ContentWorkflowDOM configDOM = new ContentWorkflowDOM();
      this.setWorkflowConfig(configDOM.extractConfig(xml));
    } catch (Exception e) {
      ApsSystemUtils.logThrowable(e, this, "loadConfig");
    }
  }
View Full Code Here


 
  protected void updateWorkflow(Workflow workflow) throws ApsSystemException {
    Map<String, Workflow> config = this.getWorkflowConfig();
    config.put(workflow.getTypeCode(), workflow);
    try {
      String xml = new ContentWorkflowDOM().createConfigXml(config);
      this.getConfigManager().updateConfigItem(JpcontentworkflowSystemConstants.CONTENT_WORKFLOW_CONFIG_ITEM, xml);
      this.setWorkflowConfig(config);
    } catch (Exception e) {
      this.loadConfig();
      ApsSystemUtils.logThrowable(e, this, "updateWorkflow");
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcontentworkflow.aps.system.services.workflow.parse.ContentWorkflowDOM

Copyright © 2018 www.massapicom. 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.