Class ActionTemplateServiceImpl
- java.lang.Object
-
- com.flowable.action.engine.impl.repository.ActionTemplateServiceImpl
-
- All Implemented Interfaces:
ActionTemplateService
public class ActionTemplateServiceImpl extends Object implements ActionTemplateService
The default implementation for a confirmation template service using the template engine to render template based confirmation messages and titles.- Author:
- Micha Kiener, Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected TemplateServicetemplateService-
Fields inherited from interface com.flowable.action.api.repository.ActionTemplateService
PAYLOAD_PARAM_NAME_ACTION, PAYLOAD_PARAM_NAME_SCOPED_OBJECT, VARIANT_KEY_CODE, VARIANT_KEY_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description ActionTemplateServiceImpl(TemplateService templateService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage(String templateKey, String tenantId, String code, String language, ActionDefinitionModel actionDefinitionModel, Object scopedObject)Get the message for the giventemplateKey.
-
-
-
Field Detail
-
templateService
protected final TemplateService templateService
-
-
Constructor Detail
-
ActionTemplateServiceImpl
public ActionTemplateServiceImpl(TemplateService templateService)
-
-
Method Detail
-
getMessage
public String getMessage(String templateKey, String tenantId, String code, String language, ActionDefinitionModel actionDefinitionModel, Object scopedObject)
Description copied from interface:ActionTemplateServiceGet the message for the giventemplateKey. Thecodeandlanguageare used as variants for the template engine and theactionDefinitionModelandscopedObjectare used as the payload.- Specified by:
getMessagein interfaceActionTemplateService- Parameters:
templateKey- the key for the templatetenantId- the tenant id that should be used when resolving the messagecode- the optional code (defaults to "default" if not provided)language- the optional language (defaults to "en" if not provided)actionDefinitionModel- the action definition model that is passed as part of the payload for the template servicescopedObject- the optional object under scoped if the message should be created with a scoped object (it is passed to the template service as part of the payload)- Returns:
- the generated message
-
-