Interface EBPInstanceReference
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ADEPT2ActivityReference,ADEPT2EBPReference,LWPActivityReference
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
An
- the process instance
- the node ID
- the node iteration
- the URI of the corresponding execution manager.
EBPInstanceReference contains the ID of the
corresponding (base) template. An
EBPInstanceReference can therefore be used to uniquely
identify an activity (-instance), a super-process instance or a top-level
process instance.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longGenerated ID for serialisation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEBPInstanceReferences are equal in case they reference the same executable business process, thereforeObject.equals(Object)andObject.hashCode()have to be overridden.Gets the ID of the unmodified template of the corresponding process instance.URI[]Returns the communication protocol depended URIs of the execution manager which executes the referenced EBP-instance.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.Gets the stable ID of the instance referred to bygetInstanceID().intReturns the ID of the node of the process graph which contains the activity or which houses the sub-process.intReturns the iteration count of the node thisEBPInstanceReferencereferences.URI[]Returns the communication protocol depended URIs of the runtime manager instance which is used for executing the referenced EBP-instance.getType()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 Details
-
serialVersionUID
static final long serialVersionUIDGenerated ID for serialisation.- See Also:
-
-
Method Details
-
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
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
EBPInstanceReferences are equal in case they reference the same executable business process, thereforeObject.equals(Object)andObject.hashCode()have to be overridden. -
hashCode
int hashCode()EBPInstanceReferences are equal in case they reference the same executable business process, thereforeObject.equals(Object)andObject.hashCode()have to be overridden.
-