public class CorrelationKey
extends java.lang.Object
implements java.io.Serializable
Message correlation key. Correlation keys are used to match up incoming
messages with a particular process instance. The basic procedure
is to generate and save a correlation key when a receive
or
pick activity is activated, and then to match incoming messages
against all correlation keys so saved, finally associating the message with
the process instance that had the matching correlation key. In reality this
process is somewhat more complicated as pains must be taken to avoid race
conditions and to make the matching efficient.
The correlation keys used in the above process consists of a collection
of name-value pairs, with the name corresponding to a property name (as
defined using the <property>
element of the BPEL process
document) and with the value corresponding to the value of said property as
obtained from a message by means of a property alias (as defined using
the <propertyAlias;>
BPEL process document element).
Constructor and Description |
---|
CorrelationKey(java.lang.String canonicalForm) |
CorrelationKey(java.lang.String csetName,
java.lang.String[] keyValues)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Equals comperator method.
|
java.lang.String |
getCorrelationSetName()
Return the OCorrelation id for the correlation set
|
java.lang.String[] |
getValues()
Return the values for the correlation set
|
int |
hashCode()
Generate a hash code from the hash codes of the elements.
|
boolean |
isMatch(CorrelationKey[] keys)
Check if this key matches any member in a set of keys.
|
java.lang.String |
toCanonicalString() |
java.lang.String |
toString() |
public CorrelationKey(java.lang.String csetName, java.lang.String[] keyValues)
csetName
- correlation set identifierkeyValues
- correlation key valuespublic CorrelationKey(java.lang.String canonicalForm)
public java.lang.String getCorrelationSetName()
public java.lang.String[] getValues()
public boolean isMatch(CorrelationKey[] keys)
keys
- set of keys to match againsttrue
if one of the keys in the set
equals(..)
this key, false
otherwisepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- CorrelationKey
object to compare withtrue
if the given objectpublic int hashCode()
hashCode
in class java.lang.Object
AbstractMap.hashCode()
,
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toCanonicalString()