Interface BpmNotificationRenderer

All Known Implementing Classes:
BpmNotificationRendererImpl

public interface BpmNotificationRenderer
Renders a notification's subject and body for a specific recipient, substituting process variables and context. The subject is always an inline expression; the body is either an inline expression or, when a template code is set, a rendered reusable message template.
  • Method Summary

    Modifier and Type
    Method
    Description
    render(NotificationDefinition definition, org.flowable.variable.api.delegate.VariableScope scope, @Nullable org.flowable.task.service.delegate.DelegateTask task, org.springframework.security.core.userdetails.UserDetails recipient, @Nullable org.springframework.security.core.userdetails.UserDetails assignee)
    Renders subject and body.
  • Method Details

    • render

      RenderedNotification render(NotificationDefinition definition, org.flowable.variable.api.delegate.VariableScope scope, @Nullable org.flowable.task.service.delegate.DelegateTask task, org.springframework.security.core.userdetails.UserDetails recipient, @Nullable org.springframework.security.core.userdetails.UserDetails assignee)
      Renders subject and body.
      Parameters:
      definition - notification definition
      scope - variable scope used for expression evaluation
      task - task in scope, or null for a service task
      recipient - the recipient this rendering is for (exposed as context.recipientUser)
      assignee - the task assignee, or null
      Returns:
      rendered subject and body