Class TemplateProcessingBuilderImpl
java.lang.Object
com.flowable.template.engine.impl.runtime.TemplateProcessingBuilderImpl
- All Implemented Interfaces:
TemplateProcessingBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected String
protected String
protected TemplateServiceImpl
protected String
protected VariableContainer
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBy default aContentItem
is created for types that support it.boolean
boolean
parentDeploymentId
(String parentDeploymentId) Restricts the lookup of theTemplateDefinition
using theTemplateProcessingBuilder.templateKey(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
.void
setDisableContentItemCreation
(boolean disableContentItemCreation) void
setParentDeploymentId
(String parentDeploymentId) void
setPayload
(Map<String, Object> payload) void
setTemplateKey
(String templateKey) void
setTemplateService
(TemplateServiceImpl templateService) void
setTenantId
(String tenantId) void
setVariableContainer
(VariableContainer variableContainer) void
setVariant
(Map<String, Object> variant) 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)
-
Field Details
-
templateService
-
templateKey
-
variableContainer
-
variableContainerSameDeployment
protected boolean variableContainerSameDeployment -
variant
-
payload
-
disableContentItemCreation
protected boolean disableContentItemCreation -
parentDeploymentId
-
tenantId
-
-
Constructor Details
-
TemplateProcessingBuilderImpl
-
-
Method Details
-
templateKey
Description copied from interface:TemplateProcessingBuilder
The key of the template to process.- Specified by:
templateKey
in interfaceTemplateProcessingBuilder
-
variableContainer
Description copied from interface:TemplateProcessingBuilder
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.- Specified by:
variableContainer
in interfaceTemplateProcessingBuilder
-
variableContainerSameDeployment
Description copied from interface:TemplateProcessingBuilder
Whether the template model for processing should be looked within the same deployment of thevariableContainer
. Has impact only ifvariableContainer
has been set.- Specified by:
variableContainerSameDeployment
in interfaceTemplateProcessingBuilder
-
variant
Description copied from interface:TemplateProcessingBuilder
the variant of the template needed (according the variation definitionsTemplateModel.getVariationDefinitions()
, might be null or empty if the template only has one single variation)- Specified by:
variant
in interfaceTemplateProcessingBuilder
-
payload
Description copied from interface:TemplateProcessingBuilder
the optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition)- Specified by:
payload
in interfaceTemplateProcessingBuilder
-
parentDeploymentId
Description copied from interface:TemplateProcessingBuilder
Restricts the lookup of theTemplateDefinition
using theTemplateProcessingBuilder.templateKey(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.- Specified by:
parentDeploymentId
in interfaceTemplateProcessingBuilder
-
tenantId
Description copied from interface:TemplateProcessingBuilder
The tenantId for looking up the template definition. If aTemplateProcessingBuilder.variableContainer(VariableContainer)
is set, the tenant id will be taken from there, unless a tenantId was explicitely set with this method.- Specified by:
tenantId
in interfaceTemplateProcessingBuilder
-
disableContentItemCreation
Description copied from interface:TemplateProcessingBuilder
By default aContentItem
is created for types that support it. Calling this method will disable the creation of that conten item.- Specified by:
disableContentItemCreation
in interfaceTemplateProcessingBuilder
-
process
Description copied from interface:TemplateProcessingBuilder
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.- Specified by:
process
in interfaceTemplateProcessingBuilder
-
getTemplateService
-
setTemplateService
-
getTemplateKey
-
setTemplateKey
-
getVariableContainer
-
setVariableContainer
-
isVariableContainerSameDeployment
public boolean isVariableContainerSameDeployment() -
getVariant
-
setVariant
-
getPayload
-
setPayload
-
isDisableContentItemCreation
public boolean isDisableContentItemCreation() -
setDisableContentItemCreation
public void setDisableContentItemCreation(boolean disableContentItemCreation) -
getParentDeploymentId
-
setParentDeploymentId
-
getTenantId
-
setTenantId
-