public class TemplateServiceImpl extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<TemplateEngineConfiguration> implements TemplateService
TemplateVariationModel
. For the rendering part, it uses
registered TemplateProcessor
mapped to types for the lookup.Constructor and Description |
---|
TemplateServiceImpl(TemplateEngineConfiguration engineConfiguration) |
TemplateServiceImpl(TemplateEngineConfiguration engineConfiguration,
org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
TemplateProcessingResult |
processTemplate(String templateKey,
String tenantId,
Map<String,Object> variant,
Map<String,Object> payload) |
TemplateProcessingResult |
processTemplate(String templateKey,
org.flowable.common.engine.api.variable.VariableContainer variableContainer,
Map<String,Object> payload)
Simplified method to render a template based on a
VariableContainer instance such as a process or case instance. |
getCommandExecutor, setCommandExecutor
getConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processTemplate, processTemplate
public TemplateServiceImpl(TemplateEngineConfiguration engineConfiguration)
public TemplateServiceImpl(TemplateEngineConfiguration engineConfiguration, org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
public TemplateProcessingResult processTemplate(String templateKey, String tenantId, Map<String,Object> variant, Map<String,Object> payload)
processTemplate
in interface TemplateService
public TemplateProcessingResult processTemplate(String templateKey, org.flowable.common.engine.api.variable.VariableContainer variableContainer, Map<String,Object> payload)
TemplateService
VariableContainer
instance such as a process or case instance.
The variable container is used to
- determine the tenantId
- determine the variant variables
- used as payload to render the templateprocessTemplate
in interface TemplateService
templateKey
- the key of the template to processvariableContainer
- an instance that has variables such as a task, process or case instance.Copyright © 2019. All rights reserved.