Class EventIntermediateMessageActivityHandler

java.lang.Object
jadex.bpmn.runtime.handler.DefaultActivityHandler
jadex.bpmn.runtime.handler.EventIntermediateMessageActivityHandler
All Implemented Interfaces:
IActivityHandler
Direct Known Subclasses:
EventIntermediateServiceActivityHandler

public class EventIntermediateMessageActivityHandler extends DefaultActivityHandler
Handler for message events.
  • Field Details

    • PROPERTY_FILTER

      public static final String PROPERTY_FILTER
      The filter property describes the filter for receiving a message.
      See Also:
    • PROPERTY_MESSAGE

      public static final String PROPERTY_MESSAGE
      The property message is the message object to be sent.
      See Also:
    • PROPERTY_RECEIVER

      public static final String PROPERTY_RECEIVER
      The property receiver is the cid of the intended receiver (may be null if set in message object, e.g. in FIPA messages).
      See Also:
  • Constructor Details

    • EventIntermediateMessageActivityHandler

      public EventIntermediateMessageActivityHandler()
  • Method Details

    • execute

      public void execute(MActivity activity, jadex.core.IComponent instance, ProcessThread thread)
      Execute an activity.
      Specified by:
      execute in interface IActivityHandler
      Overrides:
      execute in class DefaultActivityHandler
      Parameters:
      activity - The activity to execute.
      instance - The process instance.
      thread - The process thread.
    • getCid

      public jadex.core.ComponentIdentifier getCid(Object cid, jadex.core.ComponentIdentifier parent)
      Convert a string to component identifier
      Parameters:
      cid - The component identifier.
      Returns:
      parent The parent.
    • assembleMessage

      protected Object assembleMessage(MActivity activity, jadex.core.IComponent instance, ProcessThread thread)
      Returns:
    • sendMessage

      protected void sendMessage(MActivity activity, jadex.core.IComponent instance, ProcessThread thread)
      Send a message.
      Parameters:
      activity - The activity to execute.
      instance - The process instance.
      thread - The process thread.
    • receiveMessage

      protected void receiveMessage(MActivity activity, jadex.core.IComponent instance, ProcessThread thread)
      Receive a message.
      Parameters:
      activity - The activity to execute.
      instance - The process instance.
      thread - The process thread.