Interface TemplateProcessingResult
- All Known Implementing Classes:
DefaultTemplateProcessingResult
public interface TemplateProcessingResult
A template processing result represents the result from a processed
TemplateVariationDefinition through a
TemplateProcessor.-
Method Summary
Modifier and TypeMethodDescriptionorg.flowable.content.api.ContentItemIf the processed result is stored as a content item document, this will return it.Returns the document name with the appropriate extension applied (e.g.Returns the processed result as anInputStream.Returns the mime type of the produced document (e.g.Returns the processed content as a string (in case the content is processed directly).Returns the template holder containing all information like template definition and variation which was used to produce the result.
-
Method Details
-
getProcessedContent
String getProcessedContent()Returns the processed content as a string (in case the content is processed directly). -
getInputStream
InputStream getInputStream()Returns the processed result as anInputStream. Callers are responsible for closing the stream. -
getContentItem
org.flowable.content.api.ContentItem getContentItem()If the processed result is stored as a content item document, this will return it. -
getMimeType
String getMimeType()Returns the mime type of the produced document (e.g."application/pdf"), ornullif this result is not a document. -
getDocumentName
String getDocumentName()Returns the document name with the appropriate extension applied (e.g."myDoc.docx"), ornullif this result is not a document. -
getTemplateHolder
TemplateHolder getTemplateHolder()Returns the template holder containing all information like template definition and variation which was used to produce the result.
-