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 StringThe filter property describes the filter for receiving a message.static final StringThe property message is the message object to be sent.static final StringThe 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 ObjectassembleMessage(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) voidexecute(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Execute an activity.jadex.core.ComponentIdentifierConvert a string to component identifierprotected voidreceiveMessage(MActivity activity, jadex.core.IComponent instance, ProcessThread thread) Receive a message.protected voidsendMessage(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:
executein interfaceIActivityHandler- Overrides:
executein 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.
-