Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


com.oracle.bpel.client
Class CorrelationId

java.lang.Object
  extended by com.oracle.bpel.client.AbstractIdentifier
      extended by com.oracle.bpel.client.CorrelationId

All Implemented Interfaces:
java.io.Serializable

public final class CorrelationId
extends AbstractIdentifier
implements java.io.Serializable

Implementation of an Orabpel correlation identifier. A correlation identifier is used to locate and identify an activity that has been started in an Orabpel process domain. Once an identifier has been constructed it is immutable.

Correlation identifiers may be constructed without specifying a process revision tag component. However, if such an identifier is passed to the process domain as an argument in a call which requires a process revision tag the revision most recently deployed (also known as the default revision) will be assumed. In most cases, the process revision tag can be determined with a database lookup using the instance id of the key; however it is best to specify the revision tag if it is known in advance.

Please refer to AbstractIdentifier class for the URI format expected of correlation identifiers.

Since:
1.0
See Also:
Serialized Form

Field Summary
static java.lang.String TYPE_ASSIGN
          Activity type for assign activity.
static java.lang.String TYPE_EMPTY
          Activity type for empty activity.
static java.lang.String TYPE_INVOKE
          Activity type for invoke activity.
static java.lang.String TYPE_ONALARM
          Activity type for an onAlarm activity.
static java.lang.String TYPE_ONMESSAGE
          Activity type for an onMessage activity.
static java.lang.String TYPE_PICK
          Activity type for pick activity.
static java.lang.String TYPE_RECEIVE
          Activity type for receive activity.
static java.lang.String TYPE_RECEIVETASK
          Activity type for a task receive activity.
static java.lang.String TYPE_REPLY
          Activity type for a reply activity.
static java.lang.String TYPE_REQUESTTASK
          Activity type for a task receive activity.
static java.lang.String TYPE_SCOPE
          Activity type for a scope activity.
static java.lang.String TYPE_SEQUENCE
          Activity type for a sequence activity.
static java.lang.String TYPE_SUBFLOW
          Activity type for a process activity.
static java.lang.String TYPE_SWITCH
          Activity type for a switch activity.
static java.lang.String TYPE_TERMINATE
          Activity type for a terminate activity.
static java.lang.String TYPE_THROW
          Activity type for a throw activity.
static java.lang.String TYPE_UNKNOWN
          Activity type for an unknown activity.
static java.lang.String TYPE_WAIT
          Activity type for a wait activity.
static java.lang.String TYPE_WHILE
          Activity type for a while activity.

 

Fields inherited from class com.oracle.bpel.client.AbstractIdentifier
mBuf, mDomainId, mKey, mProcessId, mRevisionTag

 

Constructor Summary
CorrelationId(java.lang.String strFormat)
          Constructs a correlation identifier from the string representation of an identifier.
CorrelationId(java.lang.String domainId, java.lang.String processId, java.lang.String activityKey)
          Constructs a correlation identifier with a domain identifier, process identifier and activity key.
CorrelationId(java.lang.String domainId, java.lang.String processId, java.lang.String revisionTag, java.lang.String activityKey)
          Constructs a correlation identifier with a domain identifier, process identifier, revision tag and activity key.

 

Method Summary
 java.lang.String getActivityType()
          Returns the activity type specified by this correlation identifier.
static java.lang.String getActivityType(java.lang.String correlationId)
          Returns the activity type specified by the correlationId.
static java.lang.String getCorrelationId(java.lang.String domainId, java.lang.String processId, java.lang.String activityKey)
          Convenience routine; avoids explicit creation of CorrelationId.
static java.lang.String getCorrelationId(java.lang.String domainId, java.lang.String processId, java.lang.String revisionTag, java.lang.String activityKey)
          Convenience routine; avoids explicit creation of CorrelationId.

 

Methods inherited from class com.oracle.bpel.client.AbstractIdentifier
getDomainId, getInstanceId, getKey, getProcessId, getRevisionTag, hasKey, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

TYPE_ASSIGN

public static final java.lang.String TYPE_ASSIGN
Activity type for assign activity.
See Also:
Constant Field Values

TYPE_EMPTY

public static final java.lang.String TYPE_EMPTY
Activity type for empty activity.
See Also:
Constant Field Values

TYPE_INVOKE

public static final java.lang.String TYPE_INVOKE
Activity type for invoke activity.
See Also:
Constant Field Values

TYPE_PICK

public static final java.lang.String TYPE_PICK
Activity type for pick activity.
See Also:
Constant Field Values

TYPE_RECEIVE

public static final java.lang.String TYPE_RECEIVE
Activity type for receive activity.
See Also:
Constant Field Values

TYPE_REQUESTTASK

public static final java.lang.String TYPE_REQUESTTASK
Activity type for a task receive activity.
See Also:
Constant Field Values

TYPE_RECEIVETASK

public static final java.lang.String TYPE_RECEIVETASK
Activity type for a task receive activity.
See Also:
Constant Field Values

TYPE_REPLY

public static final java.lang.String TYPE_REPLY
Activity type for a reply activity.
See Also:
Constant Field Values

TYPE_SCOPE

public static final java.lang.String TYPE_SCOPE
Activity type for a scope activity.
See Also:
Constant Field Values

TYPE_SUBFLOW

public static final java.lang.String TYPE_SUBFLOW
Activity type for a process activity.
See Also:
Constant Field Values

TYPE_SEQUENCE

public static final java.lang.String TYPE_SEQUENCE
Activity type for a sequence activity.
See Also:
Constant Field Values

TYPE_SWITCH

public static final java.lang.String TYPE_SWITCH
Activity type for a switch activity.
See Also:
Constant Field Values

TYPE_THROW

public static final java.lang.String TYPE_THROW
Activity type for a throw activity.
See Also:
Constant Field Values

TYPE_WAIT

public static final java.lang.String TYPE_WAIT
Activity type for a wait activity.
See Also:
Constant Field Values

TYPE_ONALARM

public static final java.lang.String TYPE_ONALARM
Activity type for an onAlarm activity.
See Also:
Constant Field Values

TYPE_ONMESSAGE

public static final java.lang.String TYPE_ONMESSAGE
Activity type for an onMessage activity.
See Also:
Constant Field Values

TYPE_WHILE

public static final java.lang.String TYPE_WHILE
Activity type for a while activity.
See Also:
Constant Field Values

TYPE_TERMINATE

public static final java.lang.String TYPE_TERMINATE
Activity type for a terminate activity.
See Also:
Constant Field Values

TYPE_UNKNOWN

public static final java.lang.String TYPE_UNKNOWN
Activity type for an unknown activity.
See Also:
Constant Field Values

Constructor Detail

CorrelationId

public CorrelationId(java.lang.String domainId,
                     java.lang.String processId,
                     java.lang.String revisionTag,
                     java.lang.String activityKey)
Constructs a correlation identifier with a domain identifier, process identifier, revision tag and activity key.
Parameters:
domainId - the Orabpel domain id; if null is passed, the domain identifier will default to "unknown".
processId - the process identifier; if null is passed, the process identifier will default to "*".
revisionTag - the process revision tag; this parameter is optional so null can be passed in.
activityKey - the key used by the process domain to identify the activity.

CorrelationId

public CorrelationId(java.lang.String domainId,
                     java.lang.String processId,
                     java.lang.String activityKey)
Constructs a correlation identifier with a domain identifier, process identifier and activity key. This constructor is provided for convenience purposes when the process revision tag is not known.
Parameters:
domainId - the Orabpel domain id; if null is passed, the domain identifier will default to "unknown".
processId - the process identifier; if null is passed, the process identifier will default to "*".
activityKey - the key used by the process domain to identify the activity.

CorrelationId

public CorrelationId(java.lang.String strFormat)
Constructs a correlation identifier from the string representation of an identifier. The string is expected to conform to the URI format of an identifier, otherwise the default values for each of the identifier parts will be assumed.
domain-id
"default"
process-id
"*"
revision-tag
null
key
null
Parameters:
strFormat - the string representation of a correlation identifier.

Method Detail

getCorrelationId

public static java.lang.String getCorrelationId(java.lang.String domainId,
                                                java.lang.String processId,
                                                java.lang.String revisionTag,
                                                java.lang.String activityKey)
Convenience routine; avoids explicit creation of CorrelationId. Used to generate the string representation of a correlation identifier given its constituent parts.
Parameters:
domainId - the Orabpel domain id; if null is passed, the domain identifier will default to "unknown".
processId - the process identifier; if null is passed, the process identifier will default to "*".
revisionTag - the process revision tag; this parameter is optional so null can be passed in.
activityKey - the key used by the process domain to identify the activity.

getCorrelationId

public static java.lang.String getCorrelationId(java.lang.String domainId,
                                                java.lang.String processId,
                                                java.lang.String activityKey)
Convenience routine; avoids explicit creation of CorrelationId. Performs the same action as getCorrelationId( String, String, String, String ) but allows for creation of a correlation identifier without a process revision tag.
Parameters:
domainId - the Orabpel domain id; if null is passed, the domain identifier will default to "unknown".
processId - the process identifier; if null is passed, the process identifier will default to "*".
activityKey - the key used by the process domain to identify the activity.

getActivityType

public java.lang.String getActivityType()
Returns the activity type specified by this correlation identifier.

getActivityType

public static java.lang.String getActivityType(java.lang.String correlationId)
Returns the activity type specified by the correlationId.
Parameters:
correlationId - the correlation identitifer string

Skip navigation links

Oracle BPEL Process Manager Client Java API Reference
10g Release 3 (10.1.3.1.0)

B28986-01


Copyright © 2006, Oracle. All rights reserved.