Class TemplateProcessingBuilderImpl
java.lang.Object
com.flowable.template.engine.impl.runtime.TemplateProcessingBuilderImpl
- All Implemented Interfaces:
TemplateProcessingBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Stringprotected TemplateServiceImplprotected Stringprotected VariableContainerprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBy default aContentItemis created for types that support it.booleanbooleanparentDeploymentId(String parentDeploymentId) Restricts the lookup of theTemplateDefinitionusing 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.voidsetDisableContentItemCreation(boolean disableContentItemCreation) voidsetParentDeploymentId(String parentDeploymentId) voidsetPayload(Map<String, Object> payload) voidsetTemplateKey(String templateKey) voidsetTemplateService(TemplateServiceImpl templateService) voidsetTenantId(String tenantId) voidsetVariableContainer(VariableContainer variableContainer) voidsetVariant(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:TemplateProcessingBuilderThe key of the template to process.- Specified by:
templateKeyin interfaceTemplateProcessingBuilder
-
variableContainer
Description copied from interface:TemplateProcessingBuilderAn 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:
variableContainerin interfaceTemplateProcessingBuilder
-
variableContainerSameDeployment
Description copied from interface:TemplateProcessingBuilderWhether the template model for processing should be looked within the same deployment of thevariableContainer. Has impact only ifvariableContainerhas been set.- Specified by:
variableContainerSameDeploymentin interfaceTemplateProcessingBuilder
-
variant
Description copied from interface:TemplateProcessingBuilderthe 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:
variantin interfaceTemplateProcessingBuilder
-
payload
Description copied from interface:TemplateProcessingBuilderthe optional payload, if the template is using placeholders to render properly (must be valid according the parameter definition)- Specified by:
payloadin interfaceTemplateProcessingBuilder
-
parentDeploymentId
Description copied from interface:TemplateProcessingBuilderRestricts the lookup of theTemplateDefinitionusing 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:
parentDeploymentIdin interfaceTemplateProcessingBuilder
-
tenantId
Description copied from interface:TemplateProcessingBuilderThe 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:
tenantIdin interfaceTemplateProcessingBuilder
-
disableContentItemCreation
Description copied from interface:TemplateProcessingBuilderBy default aContentItemis created for types that support it. Calling this method will disable the creation of that conten item.- Specified by:
disableContentItemCreationin interfaceTemplateProcessingBuilder
-
process
Description copied from interface:TemplateProcessingBuilderProcesses 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:
processin 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
-