Package io.jmix.bpm.notification
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 TypeMethodDescriptionrender(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 definitionscope- variable scope used for expression evaluationtask- task in scope, ornullfor a service taskrecipient- the recipient this rendering is for (exposed ascontext.recipientUser)assignee- the task assignee, ornull- Returns:
- rendered subject and body
-