Class AsposeWordTemplateProcessor

java.lang.Object
com.flowable.template.engine.impl.processor.DocumentTemplateProcessor
com.flowable.template.engine.impl.processor.AsposeWordTemplateProcessor
All Implemented Interfaces:
TemplateProcessor

public class AsposeWordTemplateProcessor extends DocumentTemplateProcessor implements TemplateProcessor
A TemplateProcessor using the Aspose ReportingEngine.
  • Field Details

  • Constructor Details

  • Method Details

    • processTemplate

      public TemplateProcessingResult processTemplate(TemplateHolder templateHolder, Map<String,Object> payload, Map<String,Object> templateProcessingSettings)
      Description copied from interface: TemplateProcessor
      Processes a template given by its definition which might have been loaded through the TemplateRepositoryService. The payload is used for the placeholders within the template content and must be valid according the TemplateVariationModel.getParameters() definition.
      Specified by:
      processTemplate in interface TemplateProcessor
      Parameters:
      templateHolder - the template holder with template and template variation information
      payload - the optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition)
      Returns:
      the template processing results
    • createProcessorContentItem

      protected org.flowable.content.api.ContentItem createProcessorContentItem(org.flowable.content.api.ContentService contentService, String outputDocumentName, String outputDocumentType)
      Specified by:
      createProcessorContentItem in class DocumentTemplateProcessor
    • saveOptions

      protected com.aspose.words.SaveOptions saveOptions(String outputDocumentType, String pdfComplianceLevel)
    • getAsByteArray

      protected byte[] getAsByteArray(com.aspose.words.Document doc, com.aspose.words.SaveOptions saveOptions) throws Exception
      Throws:
      Exception
    • getOutputDocumentType

      protected String getOutputDocumentType(Map<String,Object> payload, String outputDocumentName)
    • getTemplateDocument

      protected com.aspose.words.Document getTemplateDocument(TemplateHolder templateHolder)
    • getSupportedContentTypes

      public Map<String,Integer> getSupportedContentTypes()
    • setSupportedContentTypes

      public void setSupportedContentTypes(Map<String,Integer> supportedContentTypes)
    • getCustomKnownTypes

      public Set<Class<?>> getCustomKnownTypes()
    • setCustomKnownTypes

      public void setCustomKnownTypes(Set<Class<?>> customKnownTypes)