public abstract class ADEPT2EBPReference extends de.aristaflow.adept2.model.common.defaultimplementation.SerialisableUserAttributeContainer implements EBPInstanceReference, ActivityReference, Adept2EbpRefProperties
ADEPT2ActivityReference)| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set<ChangedProperty<? extends java.io.Serializable>> |
changedProperties
Change tracker for worklist item, cf.
|
protected java.util.concurrent.locks.ReadWriteLock |
lock
Lock for accessing all data structures.
|
RUNTIME_MANAGER_URIS| Constructor and Description |
|---|
ADEPT2EBPReference(EBPInstanceReference ebpIR,
ExecutableBusinessProcessInstance ebpInstance,
java.lang.String activityReferenceType,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Creates a new activity reference object for ADEPT2-EBPs based on the
designated EBP-Instance-Reference.
|
ADEPT2EBPReference(EBPType type,
java.util.UUID instanceId,
java.util.UUID instanceLogId,
java.util.UUID baseTemplateId,
int nodeId,
int iteration,
java.net.URI[] executionManagerUris,
ExecutionControlProperties executionControlProperties,
java.lang.String activityReferenceType,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Creates a new activity reference object for ADEPT2-EBPs with no runtime
manager set.
|
ADEPT2EBPReference(EBPType type,
java.util.UUID instanceId,
java.util.UUID instanceLogId,
java.util.UUID baseTemplateId,
int nodeId,
int iteration,
java.net.URI[] executionManagerUris,
java.net.URI[] runtimeManagerUris,
ExecutionControlProperties executionControlProperties,
java.lang.String activityReferenceType,
java.util.Map<java.lang.String,java.lang.String> userAttributes)
Creates a new activity reference object for ADEPT2-EBPs.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object otherObject)
EBPInstanceReferences are equal in case they reference the
same executable business process, therefore
Object.equals(Object) and Object.hashCode()
have to be overridden. |
java.lang.String |
getActivityReferenceType()
Returns the type of the activity, e.g.
|
java.util.UUID |
getBaseTemplateID()
Gets the ID of the unmodified template of the corresponding process
instance.
|
java.util.Set<ChangedProperty<? extends java.io.Serializable>> |
getChangedProperties(boolean reset)
Gets all (types of) properties that have been changed since creation of the
corresponding/implementing object or last resetting of the change tracking
and resets the tracking afterwards if appropriate.
|
abstract java.lang.String |
getExecutableComponentName()
Gets the name of the executable component of the underlying activity in
case this is
an activity. |
ExecutionControlProperties |
getExecutionControlProperties()
Returns the execution control properties that reflect the abilities of the
executable business process instance of this worklist item.
|
java.net.URI[] |
getExecutionManagerURIs()
Returns the communication protocol depended URIs of the execution manager
which executes the referenced EBP-instance.
|
abstract java.lang.String |
getGUIContextID()
Gets the ID of the
GUIContext the
referenced activity/EBP needs. |
java.util.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.
|
java.util.UUID |
getInstanceLogId()
Gets the stable ID of the instance referred to by
EBPInstanceReference.getInstanceID(). |
int |
getNodeID()
Returns the ID of the node of the process graph which contains the activity
or which houses the sub-process.
|
int |
getNodeIteration()
Returns the iteration count of the node this
EBPInstanceReference references. |
java.net.URI[] |
getRuntimeManagerURIs()
Returns the communication protocol depended URIs of the runtime manager
instance which is used for executing the referenced EBP-instance.
|
EBPType |
getType()
Gets the type of the executable business process, for instance an activity
or a subprocess.
|
int |
hashCode()
EBPInstanceReferences are equal in case they reference the
same executable business process, therefore
Object.equals(Object) and Object.hashCode()
have to be overridden. |
void |
setRuntimeManagerURIs(java.net.URI[] runtimeManagerURI)
Sets the communication protocol depended URIs of the
RuntimeManager which
is used for executing the referenced EBP-instance. |
java.lang.String |
toString() |
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributes, setUserAttributeValue, subEquals, subHashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValueprotected transient java.util.concurrent.locks.ReadWriteLock lock
protected transient java.util.Set<ChangedProperty<? extends java.io.Serializable>> changedProperties
Adept2EbpRefProperties.public ADEPT2EBPReference(EBPType type, java.util.UUID instanceId, java.util.UUID instanceLogId, java.util.UUID baseTemplateId, int nodeId, int iteration, java.net.URI[] executionManagerUris, java.net.URI[] runtimeManagerUris, ExecutionControlProperties executionControlProperties, java.lang.String activityReferenceType, java.util.Map<java.lang.String,java.lang.String> userAttributes)
type - The type of the activity reference.instanceId - The ID of the ADEPT2 process instance.instanceLogId - The log ID of the ADEPT2 process instance.baseTemplateId - The ID of the instance's base template.nodeId - The ID of the corresponding node.iteration - The current iteration of the node.executionManagerUris - The URI of the execution manager responsible
for the corresponding process instance.runtimeManagerUris - The URI of the
RuntimeManager
used for executing the referenced EBP-Instance or null in case it
is yet unknown.executionControlProperties - The execution control properties as
defined for the corresponding
ExecutableBusinessProcessInstance.activityReferenceType - The type of the reference (activity or LWP).userAttributes - The user attributes of this reference.public ADEPT2EBPReference(EBPType type, java.util.UUID instanceId, java.util.UUID instanceLogId, java.util.UUID baseTemplateId, int nodeId, int iteration, java.net.URI[] executionManagerUris, ExecutionControlProperties executionControlProperties, java.lang.String activityReferenceType, java.util.Map<java.lang.String,java.lang.String> userAttributes)
type - The type of the activity reference.instanceId - The ID of the ADEPT2 process instance.instanceLogId - The log ID of the ADEPT2 process instance.baseTemplateId - The ID of the instance's base template.nodeId - The ID of the corresponding node.iteration - The current iteration of the node.executionManagerUris - The URI of the execution manager responsible for
the corresponding process instance.executionControlProperties - The execution control properties as
defined for the corresponding
ExecutableBusinessProcessInstance.activityReferenceType - The type of the reference (activity or LWP).userAttributes - The user attributes of this reference.public ADEPT2EBPReference(EBPInstanceReference ebpIR, ExecutableBusinessProcessInstance ebpInstance, java.lang.String activityReferenceType, java.util.Map<java.lang.String,java.lang.String> userAttributes)
ebpIR - The reference to the corresponding EBP
containing all information on identifying the EBP in the process
context, for instance, instance ID, node ID and node iteration.ebpInstance - The corresponding EBP-instance containing the activity
type ID and the execution control properties.activityReferenceType - The type of the reference (activity or LWP).userAttributes - The user attributes of this reference.public java.lang.String getActivityReferenceType()
ActivityReferencegetActivityReferenceType in interface ActivityReferencepublic int getNodeIteration()
EBPInstanceReferenceEBPInstanceReference references.getNodeIteration in interface EBPInstanceReferencepublic int getNodeID()
EBPInstanceReferenceInteger.MIN_VALUE.getNodeID in interface EBPInstanceReferencepublic java.util.UUID getInstanceID()
EBPInstanceReferencegetInstanceID in interface EBPInstanceReferencepublic java.util.UUID getInstanceLogId()
EBPInstanceReferenceEBPInstanceReference.getInstanceID().getInstanceLogId in interface EBPInstanceReferencepublic java.util.UUID getBaseTemplateID()
EBPInstanceReferencegetBaseTemplateID in interface EBPInstanceReferencepublic EBPType getType()
EBPInstanceReferencegetType in interface EBPInstanceReferencepublic java.net.URI[] getExecutionManagerURIs()
EBPInstanceReferencegetExecutionManagerURIs in interface EBPInstanceReferencepublic java.net.URI[] getRuntimeManagerURIs()
EBPInstanceReferencegetRuntimeManagerURIs in interface EBPInstanceReferencenull if the EBP-Instance has not been started yet.public void setRuntimeManagerURIs(java.net.URI[] runtimeManagerURI)
EBPInstanceReferenceRuntimeManager which
is used for executing the referenced EBP-instance.
Note: This method should only be called from the worklist (e.g. on the client side).
setRuntimeManagerURIs in interface EBPInstanceReferenceruntimeManagerURI - the URIs assigned to the appropriate
RuntimeManager
instance.public ExecutionControlProperties getExecutionControlProperties()
public abstract java.lang.String getExecutableComponentName()
an activity. Otherwise null
will be returned.an activity, otherwise
null.public abstract java.lang.String getGUIContextID()
GUIContext the
referenced activity/EBP needs. This allows the user to differentiate
whether the worklist item can be executed on the current client. In case of
a lightweight process,
GUIConstants.NULL_CONTEXT will
be returned.GUIContext
the referenced activity/EBP needs.AbstractActivity.getGUIContextID()public boolean equals(java.lang.Object otherObject)
EBPInstanceReferenceEBPInstanceReferences are equal in case they reference the
same executable business process, therefore
Object.equals(Object) and Object.hashCode()
have to be overridden.equals in interface EBPInstanceReferenceequals in class java.lang.ObjectotherObject - An instance of another object to compare this
EBPInstanceReference with.Object.equals(Object),
Object.hashCode()public int hashCode()
EBPInstanceReferenceEBPInstanceReferences are equal in case they reference the
same executable business process, therefore
Object.equals(Object) and Object.hashCode()
have to be overridden.hashCode in interface EBPInstanceReferencehashCode in class java.lang.ObjectObject.equals(Object),
Object.hashCode()public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Set<ChangedProperty<? extends java.io.Serializable>> getChangedProperties(boolean reset)
PropertyTrackergetChangedProperties in interface PropertyTrackerreset - Whether to clear the changes.