Package jadex.bpmn.runtime.handler
Class EventIntermediateMessageActivityHandler
java.lang.Object
jadex.bpmn.runtime.handler.DefaultActivityHandler
jadex.bpmn.runtime.handler.EventIntermediateMessageActivityHandler
- All Implemented Interfaces:
IActivityHandler
- Direct Known Subclasses:
EventIntermediateServiceActivityHandler
Handler for message events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The filter property describes the filter for receiving a message.static final String
The property message is the message object to be sent.static final String
The property receiver is the cid of the intended receiver (may be null if set in message object, e.g.Fields inherited from class jadex.bpmn.runtime.handler.DefaultActivityHandler
DEBUG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
assembleMessage
(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) void
execute
(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Execute an activity.jadex.core.ComponentIdentifier
Convert a string to component identifierprotected void
receiveMessage
(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Receive a message.protected void
sendMessage
(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Send a message.Methods inherited from class jadex.bpmn.runtime.handler.DefaultActivityHandler
cancel, doExecute, getBpmnFeature
-
Field Details
-
PROPERTY_FILTER
The filter property describes the filter for receiving a message.- See Also:
-
PROPERTY_MESSAGE
The property message is the message object to be sent.- See Also:
-
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
Execute an activity.- Specified by:
execute
in interfaceIActivityHandler
- Overrides:
execute
in classDefaultActivityHandler
- Parameters:
activity
- The activity to execute.instance
- The process instance.thread
- The process thread.
-
getCid
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.
-