|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ActivityInstance
The ActivityInstance represents a snapshot of the execution state of an
activity instance.
The corresponding runtime object is stored in the activity_instance
table of the audit trail database.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.stardust.engine.api.runtime.IDescriptorProvider |
|---|
PRP_DESCRIPTOR_IDS, PRP_PROPVIDE_DESCRIPTORS |
| Method Summary | |
|---|---|
Activity |
getActivity()
Gets the workflow activity corresponding to this activity instance. |
ActivityInstanceAttributes |
getAttributes()
Get the ActivityInstanceAttributes |
org.eclipse.stardust.engine.core.benchmark.BenchmarkResult |
getBenchmarkResult()
Returns the current benchmark value of the activity instance |
double |
getCriticality()
Returns the current criticality of an activity instance |
ParticipantInfo |
getCurrentPerformer()
Gets the current Performer of this Activity Instance (or null). |
List<HistoricalEvent> |
getHistoricalEvents()
Gets a list of requested additional data like notes, delegations, state changes and exceptions. |
List<HistoricalState> |
getHistoricalStates()
Gets a list of historical states for the activity instance. |
Date |
getLastModificationTime()
Gets the time of the most recent modification of this activity instance. |
String |
getParticipantPerformerID()
Gets the ID of the current participant performer of this activity instance. |
String |
getParticipantPerformerName()
Gets the name of the current participant performer of this activity instance. |
UserInfo |
getPerformedBy()
Returns the user who performed this activity instance. |
String |
getPerformedByName()
Gets the name of the user who completed this activity instance. |
long |
getPerformedByOID()
Gets the OID of the user who completed this activity instance. |
UserInfo |
getPerformedOnBehalfOf()
Returns the user on behalf of this activity instance was performed. |
PermissionState |
getPermission(String permissionId)
Gets the PermissionState for the given permission id for the current user.This information can be used to decide if the user has the permission to perform a certain operation on this activity instance. |
String |
getProcessDefinitionId()
Gets the id of the process definition containing the workflow activity associated with this activity instance. |
ProcessInstance |
getProcessInstance()
Gets the process instance containing this activity instance. |
long |
getProcessInstanceOID()
Gets the OID of the process instance containing this activity instance. |
QualityAssuranceInfo |
getQualityAssuranceInfo()
Gets information about the performed quality assurance workflow |
QualityAssuranceUtils.QualityAssuranceState |
getQualityAssuranceState()
Gets the state of this activity instance regarding quality assurance |
Date |
getStartTime()
Gets the time of the creation of this activity instance. |
ActivityInstanceState |
getState()
Gets the current state of this activity instance. |
User |
getUserPerformer()
Gets the current User Object of this activity instance. |
String |
getUserPerformerName()
Gets the name of the current user performer of this activity instance. |
long |
getUserPerformerOID()
Gets the OID of the current user performer of this activity instance. |
boolean |
isAssignedToModelParticipant()
Gets whether the current performer of this activity instance is a model participant. |
boolean |
isAssignedToUser()
Gets whether the current performer of this activity instance is a user. |
boolean |
isAssignedToUserGroup()
Gets whether the current performer of this activity instance is a user group. |
boolean |
isScopeProcessInstanceNoteAvailable()
Gets whether a note for the scope process instance of this activity instance is available. |
| Methods inherited from interface org.eclipse.stardust.engine.api.runtime.RuntimeObject |
|---|
getModelElementID, getModelElementOID, getModelOID, getOID |
| Methods inherited from interface org.eclipse.stardust.engine.api.runtime.IDescriptorProvider |
|---|
getDescriptorDefinitions, getDescriptorValue |
| Method Detail |
|---|
QualityAssuranceInfo getQualityAssuranceInfo()
QualityAssuranceUtils.QualityAssuranceState getQualityAssuranceState()
QualityAssuranceUtils.QualityAssuranceState this instance is inActivityInstanceAttributes getAttributes()
ActivityInstanceAttributes
ActivityInstanceAttributes for this activity instanceActivityInstanceState getState()
Date getStartTime()
Date getLastModificationTime()
An activity instance is considered modified if it's state has changed.
getState()Activity getActivity()
String getProcessDefinitionId()
ProcessDefinitionlong getProcessInstanceOID()
ProcessInstance getProcessInstance()
null.
ProcessInstanceDetailsLevel.Core of the activity instancelong getUserPerformerOID()
isAssignedToUser()String getUserPerformerName()
isAssignedToUser()User getUserPerformer()
User Object of this activity instance.
User object or null if not assigned to a user.isAssignedToUser()String getParticipantPerformerID()
isAssignedToUser()String getParticipantPerformerName()
isAssignedToUser()boolean isAssignedToUser()
isAssignedToModelParticipant(),
isAssignedToUserGroup()boolean isAssignedToModelParticipant()
isAssignedToUser(),
isAssignedToUserGroup()boolean isAssignedToUserGroup()
isAssignedToUser(),
isAssignedToModelParticipant()ParticipantInfo getCurrentPerformer()
long getPerformedByOID()
String getPerformedByName()
UserInfo getPerformedBy()
UserInfo getPerformedOnBehalfOf()
boolean isScopeProcessInstanceNoteAvailable()
List<HistoricalState> getHistoricalStates()
List<HistoricalEvent> getHistoricalEvents()
HistoricalEventPolicy applied to
ActivityInstanceQuery and WorklistQuery. By default this list will be empty as
retrieval might degrade query performance.
HistoricalEvent,
HistoricalEventPolicyPermissionState getPermission(String permissionId)
PermissionState for the given permission id for the current user.
permissionId - - the id of the permission, valid values are: PermissionState.Granted - if the user has the specified permission PermissionState.Denied - if the user has not the specified permission PermissionState.Unknown if the permission is unknown. double getCriticality()
org.eclipse.stardust.engine.core.benchmark.BenchmarkResult getBenchmarkResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||