Package io.jmix.bpm.notification
Interface BpmNotificationRecipientResolver
- All Known Implementing Classes:
BpmNotificationRecipientResolverImpl
public interface BpmNotificationRecipientResolver
Resolves the set of users a notification should be delivered to, from its declared recipient type.
-
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.security.core.userdetails.UserDetails> resolveRecipients(NotificationDefinition definition, org.flowable.variable.api.delegate.VariableScope scope, @Nullable org.flowable.task.service.delegate.DelegateTask task) Resolves recipients for a notification definition.
-
Method Details
-
resolveRecipients
List<org.springframework.security.core.userdetails.UserDetails> resolveRecipients(NotificationDefinition definition, org.flowable.variable.api.delegate.VariableScope scope, @Nullable org.flowable.task.service.delegate.DelegateTask task) Resolves recipients for a notification definition.- Parameters:
definition- notification definitionscope- the variable scope (execution or task) used to evaluate expressionstask- the task in scope, ornullfor a service task; required for assignee/candidate recipient types- Returns:
- distinct recipients; empty if none resolve
-