Interface TemplateProcessingBuilder
-
- All Known Implementing Classes:
TemplateProcessingBuilderImpl
public interface TemplateProcessingBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateProcessingBuilderdisableContentItemCreation()By default aContentItemis created for types that support it.TemplateProcessingBuilderparentDeploymentId(java.lang.String parentDeploymentId)Restricts the lookup of theTemplateDefinitionusing thetemplateKey(String)to the given parent deployment.TemplateProcessingBuilderpayload(java.util.Map<java.lang.String,java.lang.Object> payload)the optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition)TemplateProcessingResultprocess()Processes a template referenced through its key and variant data (if set) which is then looked up within the repository and represented by aTemplateVariationModel.TemplateProcessingBuildertemplateKey(java.lang.String templateKey)The key of the template to process.TemplateProcessingBuildertenantId(java.lang.String tenantId)The tenantId for looking up the template definition.TemplateProcessingBuildervariableContainer(org.flowable.common.engine.api.variable.VariableContainer variableContainer)An instance that has variables such as a task, process or case instance.TemplateProcessingBuildervariableContainerSameDeployment(boolean sameDeployment)Whether the template model for processing should be looked within the same deployment of thevariableContainer.TemplateProcessingBuildervariant(java.util.Map<java.lang.String,java.lang.Object> 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)
-
-
-
Method Detail
-
templateKey
TemplateProcessingBuilder templateKey(java.lang.String templateKey)
The key of the template to process.
-
variableContainer
TemplateProcessingBuilder variableContainer(org.flowable.common.engine.api.variable.VariableContainer 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
TemplateProcessingBuilder variableContainerSameDeployment(boolean sameDeployment)
Whether the template model for processing should be looked within the same deployment of thevariableContainer. Has impact only ifvariableContainerhas been set.
-
variant
TemplateProcessingBuilder variant(java.util.Map<java.lang.String,java.lang.Object> 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
TemplateProcessingBuilder payload(java.util.Map<java.lang.String,java.lang.Object> payload)
the optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition)
-
parentDeploymentId
TemplateProcessingBuilder parentDeploymentId(java.lang.String parentDeploymentId)
Restricts the lookup of theTemplateDefinitionusing 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
TemplateProcessingBuilder tenantId(java.lang.String 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 aContentItemis 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.
-
-