Class BpmNotificationRecipientResolverImpl

java.lang.Object
io.jmix.bpm.notification.impl.BpmNotificationRecipientResolverImpl
All Implemented Interfaces:
BpmNotificationRecipientResolver

@Component("bpm_BpmNotificationRecipientResolver") public class BpmNotificationRecipientResolverImpl extends Object implements BpmNotificationRecipientResolver
Default BpmNotificationRecipientResolver implementation that resolves recipients from the process/task state (assignee, initiator, candidates) or by evaluating a recipient expression.
  • Field Details

  • Constructor Details

    • BpmNotificationRecipientResolverImpl

      public BpmNotificationRecipientResolverImpl()
  • Method Details

    • resolveRecipients

      public 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)
      Description copied from interface: BpmNotificationRecipientResolver
      Resolves recipients for a notification definition.
      Specified by:
      resolveRecipients in interface BpmNotificationRecipientResolver
      Parameters:
      definition - notification definition
      scope - the variable scope (execution or task) used to evaluate expressions
      task - the task in scope, or null for a service task; required for assignee/candidate recipient types
      Returns:
      distinct recipients; empty if none resolve
    • candidateLinks

      protected List<org.flowable.identitylink.api.IdentityLink> candidateLinks(@Nullable org.flowable.task.service.delegate.DelegateTask task)
    • addExpressionResult

      protected void addExpressionResult(List<org.springframework.security.core.userdetails.UserDetails> recipients, @Nullable Object value)
    • addByUsername

      protected void addByUsername(List<org.springframework.security.core.userdetails.UserDetails> recipients, String username)
    • distinct

      protected List<org.springframework.security.core.userdetails.UserDetails> distinct(List<org.springframework.security.core.userdetails.UserDetails> recipients)
    • getExpressionManager

      protected org.flowable.common.engine.impl.el.ExpressionManager getExpressionManager()