Package org.activiti.workflow.simple.alfresco.model.config

Examples of org.activiti.workflow.simple.alfresco.model.config.Extension


    return model;
  }
 
  protected void addExtension(WorkflowDefinitionConversion conversion, String processId) {
    // Create form-configuration
    Extension extension = new Extension();
    Module module = new Module();
    extension.addModule(module);
    module.setId(MessageFormat.format(MODULE_ID, processId));
    AlfrescoConversionUtil.storeExtension(extension, conversion);
  }
View Full Code Here


 
  /**
   * Write the Share module XML in the given conversion to the given stream.
   */
  public void writeShareConfig(OutputStream out, WorkflowDefinitionConversion conversion, boolean asExtension) throws IOException {
    Extension extension = AlfrescoConversionUtil.getExtension(conversion);
    try {
      Object toMarshall = extension;
     
      // In case the configuration should NOT be exported as a module, wrap the configurations
      // in a "alfresco-configuration" element instead
      if(!asExtension) {
        toMarshall = new AlfrescoConfiguration();
        ((AlfrescoConfiguration) toMarshall).setConfigurations(extension.getModules().get(0).getConfigurations());
      }
      Marshaller marshaller = moduleJaxbContext.createMarshaller();
      marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
      marshaller.marshal(toMarshall, out);
    } catch (JAXBException jaxbe) {
View Full Code Here

 
  /**
   * Write the Share module XML in the given conversion to the given stream.
   */
  public void writeShareExtensionModule(OutputStream out, WorkflowDefinitionConversion conversion) throws IOException {
    Extension extension = AlfrescoConversionUtil.getExtension(conversion);
    try {
      ModuleDeployment toMarshall = new ModuleDeployment();
      toMarshall.setModule(extension.getModules().get(0).getId());
      // In case the configuration should NOT be exported as a module, wrap the configurations
      // in a "alfresco-configuration" element instead
      Marshaller marshaller = moduleJaxbContext.createMarshaller();
      marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
      marshaller.marshal(toMarshall, out);
View Full Code Here

TOP

Related Classes of org.activiti.workflow.simple.alfresco.model.config.Extension

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.