Class ActionTemplateServiceImpl
java.lang.Object
com.flowable.action.engine.impl.repository.ActionTemplateServiceImpl
- All Implemented Interfaces:
ActionTemplateService
public class ActionTemplateServiceImpl extends java.lang.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 TemplateServicetemplateServiceFields 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
Modifier and Type Method Description java.lang.StringgetMessage(java.lang.String templateKey, java.lang.String tenantId, java.lang.String code, java.lang.String language, ActionDefinitionModel actionDefinitionModel, java.lang.Object scopedObject)Get the message for the giventemplateKey.
-
Field Details
-
Constructor Details
-
Method Details
-
getMessage
public java.lang.String getMessage(java.lang.String templateKey, java.lang.String tenantId, java.lang.String code, java.lang.String language, ActionDefinitionModel actionDefinitionModel, java.lang.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
-