Package io.jmix.bpm.notifications
Class BpmNotificationTemplateProvider
java.lang.Object
io.jmix.bpm.notifications.BpmNotificationTemplateProvider
@Component
@ConditionalOnClass(name="io.jmix.notifications.NotificationManager")
public class BpmNotificationTemplateProvider
extends Object
Provides methods for fetching configured notification templates that can be used in BPM.
WARNING: this functionality is experimental and may be removed in future releases. Please don't use it in your project.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns code and name for all existed notification templates.getNotificationTemplateByCode
(String notificationTemplateCode) Returns notification template by it code.protected void
init()
-
Constructor Details
-
BpmNotificationTemplateProvider
public BpmNotificationTemplateProvider()
-
-
Method Details
-
init
@PostConstruct protected void init() -
getAllNotificationTemplates
Returns code and name for all existed notification templates. -
getNotificationTemplateByCode
Returns notification template by it code.- Throws:
IllegalStateException
- if there is no notification template with such code
-