Class ADEPT2ActivityReference
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.ADEPT2ActivityReference
- All Implemented Interfaces:
PropertyTracker,UserAttributeContainer,EBPInstanceReference,ActivityReference,Adept2EbpRefProperties,Serializable
An activity reference to an ADEPT2 activity represented by a node of a
process instance.
- See Also:
-
Field Summary
Fields inherited from class de.aristaflow.adept2.model.worklistmodel.ADEPT2EBPReference
changedProperties, lockFields inherited from interface de.aristaflow.adept2.model.worklistmodel.Adept2EbpRefProperties
RUNTIME_MANAGER_URIS -
Constructor Summary
ConstructorsConstructorDescriptionADEPT2ActivityReference(EBPType type, UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, String executableComponentName, String guiContextId, boolean supportsViewOnly, URI[] executionManagerUris, URI[] runtimeManagerUris, ExecutionControlProperties executionControlProperties, Map<String, String> userAttributes) Creates a new activity reference object for ADEPT2-activities.ADEPT2ActivityReference(EBPInstanceReference ebpInstanceReference, ActivityInstance activityInstance, Map<String, String> userAttributes) Creates a new activity reference object for ADEPT2-activities based on the designated EBP-Instance-Reference.ADEPT2ActivityReference(UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, String executableComponentName, String guiContextId, URI[] executionManagerUris, ExecutionControlProperties executionControlProperties, Map<String, String> userAttributes, boolean supportsViewOnly) Creates a new activity reference object for ADEPT2-activities with no runtime manager set. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the executable component of the underlying activity in case this isan activity.Gets the ID of theGUIContextthe referenced activity/EBP needs.booleanWhether the activity supports the view-only-mode.Methods inherited from class de.aristaflow.adept2.model.worklistmodel.ADEPT2EBPReference
equals, getActivityReferenceType, getBaseTemplateID, getChangedProperties, getExecutionControlProperties, getExecutionManagerURIs, getInstanceID, getInstanceLogId, getNodeID, getNodeIteration, getRuntimeManagerURIs, getType, hashCode, setRuntimeManagerURIs, toStringMethods inherited from class de.aristaflow.adept2.model.common.defaultimplementation.DefaultUserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributes, setUserAttributeValue, subEquals, subHashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface de.aristaflow.adept2.model.common.UserAttributeContainer
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValue
-
Constructor Details
-
ADEPT2ActivityReference
public ADEPT2ActivityReference(EBPType type, UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, String executableComponentName, String guiContextId, boolean supportsViewOnly, URI[] executionManagerUris, URI[] runtimeManagerUris, ExecutionControlProperties executionControlProperties, Map<String, String> userAttributes) Creates a new activity reference object for ADEPT2-activities.- Parameters:
type- The EBP type of the activity reference.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.executableComponentName-guiContextId- The ID of the GUI context the referenced activity needs.executionManagerUris- The URI of the execution manager responsible for the corresponding process instance.runtimeManagerUris- The URI of theRuntimeManagerused 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.supportsViewOnly- Whether the activity supports the view-only-mode.
-
ADEPT2ActivityReference
public ADEPT2ActivityReference(UUID instanceId, UUID instanceLogId, UUID baseTemplateId, int nodeId, int iteration, String executableComponentName, String guiContextId, URI[] executionManagerUris, ExecutionControlProperties executionControlProperties, Map<String, String> userAttributes, boolean supportsViewOnly) Creates a new activity reference object for ADEPT2-activities 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.executableComponentName-guiContextId- The ID of the GUI context the referenced activity needs.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.supportsViewOnly- Whether the activity supports the view-only-mode.
-
ADEPT2ActivityReference
public ADEPT2ActivityReference(EBPInstanceReference ebpInstanceReference, ActivityInstance activityInstance, Map<String, String> userAttributes) Creates a new activity reference object for ADEPT2-activities 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.activityInstance- The corresponding activity-instance 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 Details
-
getExecutableComponentName
Description copied from class:ADEPT2EBPReferenceGets the name of the executable component of the underlying activity in case this isan activity. Otherwisenullwill be returned.- Specified by:
getExecutableComponentNamein classADEPT2EBPReference- Returns:
- The name of the executable component of the underlying activity if
this is
an activity, otherwisenull.
-
getGUIContextID
Description copied from class:ADEPT2EBPReferenceGets the ID of theGUIContextthe 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_CONTEXTwill be returned.- Specified by:
getGUIContextIDin classADEPT2EBPReference- Returns:
- The ID of the
GUIContextthe referenced activity/EBP needs. - See Also:
-
supportsViewOnly
public boolean supportsViewOnly()Whether the activity supports the view-only-mode.- Returns:
- true, if the activity supports the view only mode.
-