Class ActionTemplateServiceImpl
java.lang.Object
com.flowable.action.engine.impl.repository.ActionTemplateServiceImpl
- All Implemented Interfaces:
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 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
-
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String templateKey, String tenantId, String code, String language, ActionDefinitionModel actionDefinitionModel, Object scopedObject) Get the message for the giventemplateKey
.
-
Field Details
-
templateService
-
-
Constructor Details
-
ActionTemplateServiceImpl
-
-
Method Details
-
getMessage
public String getMessage(String templateKey, String tenantId, String code, String language, ActionDefinitionModel actionDefinitionModel, Object scopedObject) Description copied from interface:ActionTemplateService
Get the message for the giventemplateKey
. Thecode
andlanguage
are used as variants for the template engine and theactionDefinitionModel
andscopedObject
are used as the payload.- Specified by:
getMessage
in 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
-