public interface MyRoleMessageExchange extends MessageExchange
MessageExchange
interface
that is provided by the engine for message-exchanges where the engine acts as
the server (i.e. where the engine is "invoked").Modifier and Type | Interface and Description |
---|---|
static class |
MyRoleMessageExchange.CorrelationStatus
Enumeration of message correlation results.
|
MessageExchange.FailureType, MessageExchange.MessageExchangePattern, MessageExchange.Status
PROPERTY_SEP_MYROLE_SESSIONID, PROPERTY_SEP_PARTNERROLE_EPR, PROPERTY_SEP_PARTNERROLE_SESSIONID
Modifier and Type | Method and Description |
---|---|
void |
complete()
Complete the message, exchange: indicates that the client has receive the
response (if any).
|
java.lang.String |
getClientId()
Get the previously associated client key for this exchange.
|
MyRoleMessageExchange.CorrelationStatus |
getCorrelationStatus()
Get the correlation state of the the invocation.
|
javax.xml.namespace.QName |
getServiceName()
Get the name of the service targetted in this message exchange.
|
java.util.concurrent.Future |
invoke(Message request)
"Invoke" a process hosted by the BPEL engine.
|
void |
release(boolean instanceSucceeded)
Should be called by the external partner when it's done with the
message exchange.
|
void |
setClientId(java.lang.String clientKey)
Associate a client key with this message exchange.
|
createMessage, getEndpointReference, getFault, getFaultExplanation, getFaultResponse, getMessageExchangeId, getMessageExchangePattern, getOperation, getOperationName, getPortType, getProperty, getPropertyNames, getRequest, getResponse, getStatus, isTransactionPropagated, release, setProperty
MyRoleMessageExchange.CorrelationStatus getCorrelationStatus()
CorrelationType
for details).java.util.concurrent.Future invoke(Message request)
MessageExchange.getStatus()
method. It is possible that the response for the operation is not
immediately available (i.e the call to invoke(Message)
will
return before a response is available). In such cases,
MessageExchange.getStatus()
== Status#ASYNC
and the
integration layer will receive an asynchronous notification from the BPEL
engine via the
MessageExchangeContext.onAsyncReply(MyRoleMessageExchange)
when
the response become available.void complete()
void setClientId(java.lang.String clientKey)
clientKey
- java.lang.String getClientId()
javax.xml.namespace.QName getServiceName()
void release(boolean instanceSucceeded)