use of org.activiti.workflow.simple.alfresco.model.config.ModuleDeployment in project Activiti by Activiti.
the class AlfrescoArtifactExporter method writeShareExtensionModule.
/**
* 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);
} catch (JAXBException jaxbe) {
throw new IOException(jaxbe);
}
}
Aggregations