Class MessageEventProducer

All Implemented Interfaces:
JSONable, JSONCacheable, Serializable

public class MessageEventProducer extends EventProducer
Represents a send message event.
See Also:
  • Field Details

    • LOG

      protected static final org.apache.log4j.Logger LOG
  • Constructor Details

  • Method Details

    • getBody

      public String getBody()
      Gets the body of the message that will be sent.
      Returns:
      the body
      See Also:
    • setBody

      public void setBody(String body_)
      Sets the body of the message that will be sent.
      Parameters:
      body_ - the body
      See Also:
    • getPropertyMappings

      public Mapping[] getPropertyMappings()
      Gets the property mappings.
      Returns:
      the property mappings
      See Also:
    • setPropertyMappings

      public void setPropertyMappings(Mapping[] propertyMappings_)
      Sets the property mappings. If the Process Model UUID mapping or Process Model ID mapping is passed in and the value of either is null, both are set to empty arrays.
      Parameters:
      propertyMappings_ - the property mappings
      See Also:
    • getTopic

      public String getTopic()
      Gets the JMS topic.
      Returns:
      the JMS topic
      See Also:
    • setTopic

      public void setTopic(String topic_)
      Sets the JMS topic. Use the topic defined at com.appiancorp.suiteapi.messaging.MessagingProperties#PROCESS_TOPIC to send a message to Appian Process.
      Parameters:
      topic_ - the JMS topic
      See Also:
    • getMessageType

      public String getMessageType()
      Gets the message type (stored in the property mappings at key InternalMessage.JMS_TYPE_KEY).
      Returns:
      the message type
    • toString

      public String toString()
      Overrides:
      toString in class Event
    • fillInAppianTypes

      public void fillInAppianTypes(AppianTypeCache cache_)
      Adds the primary keys of any Appian-typed objects that are used by the mapping of this node to the given cache.
      Parameters:
      cache_ - the cache that will hold the values