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, setCommandExecutorgetConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessTemplate, processTemplatepublic 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 TemplateServicepublic TemplateProcessingResult processTemplate(String templateKey, org.flowable.common.engine.api.variable.VariableContainer variableContainer, Map<String,Object> payload)
TemplateServiceVariableContainer 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 TemplateServicetemplateKey - 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.