Class DocumentTemplateProcessor

java.lang.Object
com.flowable.template.engine.impl.processor.DocumentTemplateProcessor
All Implemented Interfaces:
TemplateProcessor
Direct Known Subclasses:
AsposePdfTemplateProcessor, AsposeWordTemplateProcessor

public abstract class DocumentTemplateProcessor extends Object implements TemplateProcessor
  • Field Details

  • Constructor Details

  • Method Details

    • canRender

      public boolean canRender(TemplateModel templateModel, TemplateVariationModel templateVariation)
      Description copied from interface: TemplateProcessor
      Before a template is rendered, the service will call this method to check, whether this processor is able to handle the given template. Typically, this is based on the type / subType of the template.
      Specified by:
      canRender in interface TemplateProcessor
      Parameters:
      templateModel - the template definition containing meta information like type and sub type of the template
      templateVariation - the template to check, if it can be rendered by this processor
      Returns:
      true if it can be rendered by this processor, false otherwise
    • createProcessorContentItem

      protected abstract org.flowable.content.api.ContentItem createProcessorContentItem(org.flowable.content.api.ContentService contentService, String outputDocumentName, String outputDocumentType)
    • createContentItem

      protected org.flowable.content.api.ContentItem createContentItem(org.flowable.common.engine.api.variable.VariableContainer variableContainer, String outputDocumentName, String outputDocumentType, byte[] documentBytes) throws IOException
      Throws:
      IOException
    • getFromPayloadOrDefault

      protected String getFromPayloadOrDefault(Map<String,Object> payload, String key, String defaultValue)
    • getExpressionManager

      protected org.flowable.common.engine.impl.el.ExpressionManager getExpressionManager(Map<String,Object> payload)
    • getVariableContainer

      protected org.flowable.common.engine.api.variable.VariableContainer getVariableContainer(Map<String,Object> payload)
    • getContentInputStream

      protected InputStream getContentInputStream(TemplateHolder templateHolder)
    • getContentService

      protected org.flowable.content.api.ContentService getContentService()
    • isContentItemGenerationEnabled

      protected boolean isContentItemGenerationEnabled(Map<String,Object> templateProcessingSettings)