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.
  • Constructor Details

    • BpmNotificationTemplateProvider

      public BpmNotificationTemplateProvider()
  • Method Details

    • init

      @PostConstruct protected void init()
    • getAllNotificationTemplates

      public Map<String,String> getAllNotificationTemplates()
      Returns code and name for all existed notification templates.
    • getNotificationTemplateByCode

      public BpmNotificationTemplate getNotificationTemplateByCode(String notificationTemplateCode)
      Returns notification template by it code.
      Throws:
      IllegalStateException - if there is no notification template with such code