Interface EBPInstanceReference
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ADEPT2ActivityReference,ADEPT2EBPReference,LWPActivityReference
public interface EBPInstanceReference extends Serializable
This interface provides a reference to an instance of an executable business process (EBP) or rather to the corresponding container. The container is identified by- the process instance
- the node ID
- the node iteration
- the URI of the corresponding execution manager.
EBPInstanceReferencecontains the ID of the corresponding (base) template.
AnEBPInstanceReferencecan therefore be used to uniquely identify an activity (-instance), a super-process instance or a top-level process instance.
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDGenerated ID for serialisation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object otherObject)EBPInstanceReferences are equal in case they reference the same executable business process, thereforeObject.equals(Object)andObject.hashCode()have to be overridden.UUIDgetBaseTemplateID()Gets the ID of the unmodified template of the corresponding process instance.URI[]getExecutionManagerURIs()Returns the communication protocol depended URIs of the execution manager which executes the referenced EBP-instance.UUIDgetInstanceID()Returns the ID of the process instance the activity belongs to, the corresponding super-process instance or the instance itself in case of a reference to a top-level instance.UUIDgetInstanceLogId()Gets the stable ID of the instance referred to bygetInstanceID().intgetNodeID()Returns the ID of the node of the process graph which contains the activity or which houses the sub-process.intgetNodeIteration()Returns the iteration count of the node thisEBPInstanceReferencereferences.URI[]getRuntimeManagerURIs()Returns the communication protocol depended URIs of the runtime manager instance which is used for executing the referenced EBP-instance.EBPTypegetType()Gets the type of the executable business process, for instance an activity or a subprocess.inthashCode()EBPInstanceReferences are equal in case they reference the same executable business process, thereforeObject.equals(Object)andObject.hashCode()have to be overridden.voidsetRuntimeManagerURIs(URI[] runtimeManagerURIs)Sets the communication protocol depended URIs of theRuntimeManagerwhich is used for executing the referenced EBP-instance.
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
Generated ID for serialisation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
EBPType getType()
Gets the type of the executable business process, for instance an activity or a subprocess.- Returns:
- The type of the executable business process, for instance an activity or a subprocess.
-
getInstanceID
UUID getInstanceID()
Returns the ID of the process instance the activity belongs to, the corresponding super-process instance or the instance itself in case of a reference to a top-level instance.- Returns:
- The ID of the corresponding process instance.
-
getInstanceLogId
UUID getInstanceLogId()
Gets the stable ID of the instance referred to bygetInstanceID().- Returns:
- The stable ID of the corresponding process instance.
-
getBaseTemplateID
UUID getBaseTemplateID()
Gets the ID of the unmodified template of the corresponding process instance.- Returns:
- The ID of the unmodified template of the corresponding process instance.
-
getNodeID
int getNodeID()
Returns the ID of the node of the process graph which contains the activity or which houses the sub-process. In case of a reference for a top-level instance, this will beInteger.MIN_VALUE.- Returns:
- The ID of the process node containing the activity or sub-process.
-
getNodeIteration
int getNodeIteration()
Returns the iteration count of the node thisEBPInstanceReferencereferences.- Returns:
- The iteration count of the node.
-
getExecutionManagerURIs
URI[] getExecutionManagerURIs()
Returns the communication protocol depended URIs of the execution manager which executes the referenced EBP-instance.- Returns:
- The URIs of the execution manager responsible for the referenced EBP-instance.
-
getRuntimeManagerURIs
URI[] getRuntimeManagerURIs()
Returns the communication protocol depended URIs of the runtime manager instance which is used for executing the referenced EBP-instance. This reference is only valid after the EBP-instance has been started. Before this method will return null.
These URIs have to be set by the worklist when starting the corresponding entry.- Returns:
- The communication protocol depended URIs of the runtime manager
responsible for starting the referenced EBP-Instance or
nullif the EBP-Instance has not been started yet.
-
setRuntimeManagerURIs
void setRuntimeManagerURIs(URI[] runtimeManagerURIs)
Sets the communication protocol depended URIs of theRuntimeManagerwhich is used for executing the referenced EBP-instance.Note: This method should only be called from the worklist (e.g. on the client side).
- Parameters:
runtimeManagerURIs- the URIs assigned to the appropriateRuntimeManagerinstance.
-
equals
boolean equals(Object otherObject)
EBPInstanceReferences are equal in case they reference the same executable business process, thereforeObject.equals(Object)andObject.hashCode()have to be overridden.- Overrides:
equalsin classObject- Parameters:
otherObject- An instance of another object to compare thisEBPInstanceReferencewith.- Returns:
- True, if this instance references the same instance of an executable business process as the designated object.
- See Also:
Object.equals(Object),Object.hashCode()
-
hashCode
int hashCode()
EBPInstanceReferences are equal in case they reference the same executable business process, thereforeObject.equals(Object)andObject.hashCode()have to be overridden.- Overrides:
hashCodein classObject- See Also:
Object.equals(Object),Object.hashCode()
-
-