public class OnMessage extends BpelObject implements Communication
Representation of a message-driven event handler. This is used as part of a
pick
activity in both the 1.1 and 2.0 dialects, and this is
used to represent the onMessage
component of an
eventHandlers
for a scope
or
process
in 1.1. In 2.0, the
OnEvent
is used as part of the
eventHandlers
construct for a scope
or
process
.
Note that the semantics of the variable set with #setVariable(String)
are different depending on whether this is attached to a
pick
activity or to an eventHandlers
for a
scope
or process
. In the case of the
pick
, the variable is interpreted as being declared in the
enclosing scope
, but for the other construct, the variable is
local to the onMessage
instance. (Recall that the
eventHandlers
construct implements replication like the
!
operator in the pi-calculus, so there may be multiple
instances of an onMessage
handler around simultaneously.
PickActivity
,
OnEvent
ATTR_LINENO
Constructor and Description |
---|
OnMessage(org.w3c.dom.Element el) |
Modifier and Type | Method and Description |
---|---|
Activity |
getActivity()
Get the activity associated with the event (i.e.
|
java.util.List<Correlation> |
getCorrelations() |
java.lang.String |
getMessageExchangeId()
Get the optional message exchange identifier.
|
java.lang.String |
getOperation()
Get the operation for the communication.
|
java.lang.String |
getPartnerLink()
Get the partnerLink link on which to communicate.
|
javax.xml.namespace.QName |
getPortType()
Get the port type for the communication.
|
java.lang.String |
getRoute() |
java.lang.String |
getVariable()
Get the input message variable for the event.
|
createBpelObject, getAttribute, getAttribute, getAttribute, getAttribute, getChildren, getChildren, getChildren, getColumnNo, getElement, getExtensibilityElement, getExtensibilityElements, getFirstChild, getFirstChild, getFirstExtensibilityElementElement, getLineNo, getNamespaceContext, getPath, getTextValue, getType, getURI, is11, is20Draft, isAttributeSet, rewriteTargetNS, setURI, toString
public java.lang.String getMessageExchangeId()
public java.lang.String getRoute()
public Activity getActivity()
public java.lang.String getVariable()
public java.lang.String getOperation()
Communication
getOperation
in interface Communication
public java.lang.String getPartnerLink()
Communication
getPartnerLink
in interface Communication
public javax.xml.namespace.QName getPortType()
Communication
getPortType
in interface Communication
null
)public java.util.List<Correlation> getCorrelations()
getCorrelations
in interface Communication