Class LWPActivityReference
- java.lang.Object
-
- de.aristaflow.adept2.model.common.defaultimplementation.DefaultUserAttributeContainer
-
- de.aristaflow.adept2.model.common.defaultimplementation.SerialisableUserAttributeContainer
-
- de.aristaflow.adept2.model.worklistmodel.ADEPT2EBPReference
-
- de.aristaflow.adept2.model.worklistmodel.LWPActivityReference
-
- All Implemented Interfaces:
PropertyTracker
,UserAttributeContainer
,EBPInstanceReference
,ActivityReference
,Adept2EbpRefProperties
,Serializable
public class LWPActivityReference extends ADEPT2EBPReference
An activity reference to an ADEPT2 lightweight-process represented by a node of a process instance.- Author:
- Kevin Goeser, Ulrich Kreher
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.aristaflow.adept2.model.worklistmodel.ADEPT2EBPReference
changedProperties, lock
-
Fields inherited from interface de.aristaflow.adept2.model.worklistmodel.Adept2EbpRefProperties
RUNTIME_MANAGER_URIS
-
-
Constructor Summary
Constructors Constructor Description LWPActivityReference(EBPInstanceReference ebpInstanceReference, LightWeightProcessInstance lwpInstance, Map<String,String> userAttributes)
Creates a new activity reference object for ADEPT2-LWPs based on the designated EBP-Instance-Reference.LWPActivityReference(UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, URI[] executionManagerUris, ExecutionControlProperties executionControlProperties, Map<String,String> userAttributes)
Creates a new activity reference object for ADEPT2-LWPs with no runtime manager set.LWPActivityReference(UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, URI[] executionManagerUris, URI[] runtimeManagerUris, ExecutionControlProperties executionControlProperties, Map<String,String> userAttributes)
Creates a new activity reference object for ADEPT2-LWPs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getExecutableComponentName()
Gets the name of the executable component of the underlying activity in case this isan activity
.String
getGUIContextID()
Gets the ID of theGUIContext
the referenced activity/EBP needs.-
Methods inherited from class de.aristaflow.adept2.model.worklistmodel.ADEPT2EBPReference
equals, getActivityReferenceType, getBaseTemplateID, getChangedProperties, getExecutionControlProperties, getExecutionManagerURIs, getInstanceID, getInstanceLogId, getNodeID, getNodeIteration, getRuntimeManagerURIs, getType, hashCode, setRuntimeManagerURIs, toString
-
Methods inherited from class de.aristaflow.adept2.model.common.defaultimplementation.DefaultUserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributes, setUserAttributeValue, subEquals, subHashCode
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.aristaflow.adept2.model.common.UserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValue
-
-
-
-
Constructor Detail
-
LWPActivityReference
public LWPActivityReference(UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, URI[] executionManagerUris, URI[] runtimeManagerUris, ExecutionControlProperties executionControlProperties, Map<String,String> userAttributes)
Creates a new activity reference object for ADEPT2-LWPs.- Parameters:
instanceId
- The (logical) ID of the ADEPT2 process instance.instanceLogId
- The (unchangeable) log ID of the ADEPT2 process instance.baseTemplateId
-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 theRuntimeManager
used for executing the referenced EBP-Instance or null in case it is yet unknown.executionControlProperties
- The execution control properties as defined for the correspondingExecutableBusinessProcessInstance
.userAttributes
- The user attributes of this reference.
-
LWPActivityReference
public LWPActivityReference(UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, URI[] executionManagerUris, ExecutionControlProperties executionControlProperties, Map<String,String> userAttributes)
Creates a new activity reference object for ADEPT2-LWPs with no runtime manager set.- Parameters:
instanceId
- The (logical) ID of the ADEPT2 process instance.instanceLogId
- The (unchangeable) log ID of the ADEPT2 process instance.baseTemplateId
-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 correspondingExecutableBusinessProcessInstance
.userAttributes
- The user attributes of this reference.
-
LWPActivityReference
public LWPActivityReference(EBPInstanceReference ebpInstanceReference, LightWeightProcessInstance lwpInstance, Map<String,String> userAttributes)
Creates a new activity reference object for ADEPT2-LWPs based on the designated EBP-Instance-Reference.- Parameters:
ebpInstanceReference
- 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.lwpInstance
- The corresponding instance of the lightweight process containing the (resolved) node and activity names, descriptions and further meta-information of the activity, for instance,ExecutionControlProperties
.userAttributes
- The user attributes of this reference.
-
-
Method Detail
-
getExecutableComponentName
public String getExecutableComponentName()
Description copied from class:ADEPT2EBPReference
Gets the name of the executable component of the underlying activity in case this isan activity
. Otherwisenull
will be returned.- Specified by:
getExecutableComponentName
in classADEPT2EBPReference
- Returns:
- The name of the executable component of the underlying activity if
this is
an activity
, otherwisenull
.
-
getGUIContextID
public String getGUIContextID()
Description copied from class:ADEPT2EBPReference
Gets the ID of theGUIContext
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.- Specified by:
getGUIContextID
in classADEPT2EBPReference
- Returns:
- The ID of the
GUIContext
the referenced activity/EBP needs. - See Also:
AbstractActivity.getGUIContextID()
-
-