Interface TemplateProcessingBuilder
- All Known Implementing Classes:
TemplateProcessingBuilderImpl
public interface TemplateProcessingBuilder
-
Method Summary
Modifier and TypeMethodDescriptionBy default aContentItem
is created for types that support it.parentDeploymentId
(String parentDeploymentId) Restricts the lookup of theTemplateDefinition
using thetemplateKey(String)
to the given parent deployment.the optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition)process()
Processes a template referenced through its key and variant data (if set) which is then looked up within the repository and represented by aTemplateVariationModel
.templateKey
(String templateKey) The key of the template to process.The tenantId for looking up the template definition.variableContainer
(VariableContainer variableContainer) An instance that has variables such as a task, process or case instance.variableContainerSameDeployment
(boolean sameDeployment) Whether the template model for processing should be looked within the same deployment of thevariableContainer
.the variant of the template needed (according the variation definitionsTemplateModel.getVariationDefinitions()
, might be null or empty if the template only has one single variation)
-
Method Details
-
templateKey
The key of the template to process. -
variableContainer
An instance that has variables such as a task, process or case instance. When no variant variables were set and a variable container is passed, the model is inspected to retrieve the variant variables from it. If the variant variables are set explicitely, these variables are ignored. -
variableContainerSameDeployment
Whether the template model for processing should be looked within the same deployment of thevariableContainer
. Has impact only ifvariableContainer
has been set. -
variant
the variant of the template needed (according the variation definitionsTemplateModel.getVariationDefinitions()
, might be null or empty if the template only has one single variation) -
payload
the optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition) -
parentDeploymentId
Restricts the lookup of theTemplateDefinition
using thetemplateKey(String)
to the given parent deployment. This is typically needed when the template service is called for example from the process or case engine to generate a document and it needs to look up the template definition in the same deployment. -
tenantId
The tenantId for looking up the template definition. If avariableContainer(VariableContainer)
is set, the tenant id will be taken from there, unless a tenantId was explicitely set with this method. -
disableContentItemCreation
TemplateProcessingBuilder disableContentItemCreation()By default aContentItem
is created for types that support it. Calling this method will disable the creation of that conten item. -
process
TemplateProcessingResult process()Processes a template referenced through its key and variant data (if set) which is then looked up within the repository and represented by aTemplateVariationModel
. The payload is used for the placeholders within the template content and must be valid according theTemplateVariationModel.getParameters()
definition.
-