Class ProcessMessageDeliverer

java.lang.Object
com.flowable.notification.process.ProcessMessageDeliverer
All Implemented Interfaces:
MessageDeliverer

public class ProcessMessageDeliverer
extends java.lang.Object
implements MessageDeliverer
A MessageDeliverer that triggers a process if the message has not been delivered and the context supports such messages
Author:
Filip Hrisafov
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.String processDefinitionKey  
    protected org.flowable.engine.RuntimeService runtimeService  
  • Constructor Summary

    Constructors 
    Constructor Description
    ProcessMessageDeliverer​(org.flowable.engine.RuntimeService runtimeService, java.lang.String processDefinitionKey)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDelivererType()
    The type of the message deliverer.
    int getPriority()  
    void sendMessage​(DeliveryContext<?> deliveryContext)
    Perform sending of a message using the provided delivery context.
    protected void triggerProcess​(java.lang.String recipientId)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ProcessMessageDeliverer

      public ProcessMessageDeliverer​(org.flowable.engine.RuntimeService runtimeService, java.lang.String processDefinitionKey)
  • Method Details

    • sendMessage

      public void sendMessage​(DeliveryContext<?> deliveryContext)
      Description copied from interface: MessageDeliverer
      Perform sending of a message using the provided delivery context. The message deliverer should decide on it's own whether a message should be sent. Usually message should always be send if a user is connected in real time. Notification (offline) senders should first check if no message has been delivered and only then perform a delivery (if they can).
      Specified by:
      sendMessage in interface MessageDeliverer
      Parameters:
      deliveryContext - the delivery context that can be used to transfer data between multiple delivers
    • triggerProcess

      protected void triggerProcess​(java.lang.String recipientId)
    • getDelivererType

      public java.lang.String getDelivererType()
      Description copied from interface: MessageDeliverer
      The type of the message deliverer. Usually used to create a message based on the type
      Specified by:
      getDelivererType in interface MessageDeliverer
      Returns:
      type of the deliverer
    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface MessageDeliverer