Package org.alfresco.service.cmr.action
Class ExecutionDetails
java.lang.Object
org.alfresco.service.cmr.action.ExecutionDetails
- All Implemented Interfaces:
Serializable
Holds all the details available to the
ActionTrackingService on a currently
executing Action.- Author:
- Nick Burch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExecutionDetails(ExecutionSummary executionSummary, NodeRef persistedActionRef, String runningOn, Date startedAt, boolean cancelRequested) ExecutionDetails(ExecutionSummary executionSummary, NodeRef persistedActionRef, NodeRef actionedUponNodeRef, String runningOn, Date startedAt, boolean cancelRequested) -
Method Summary
Modifier and TypeMethodDescriptionGets theNodeRefthe action is acting on.What is the id of the action?What kind of action is this?intWhich instance of the action is this? Every time you start an action, it gets a new instance ID, and this lets you tell the difference between two copies running in parallel.Gets theNodeRefwhere the action is persisted.Returns when this action started executing, or null if it is still pendingbooleanvoidsetExecutionSummary(ExecutionSummary executionSummary)
-
Constructor Details
-
ExecutionDetails
public ExecutionDetails() -
ExecutionDetails
public ExecutionDetails(ExecutionSummary executionSummary, NodeRef persistedActionRef, String runningOn, Date startedAt, boolean cancelRequested) -
ExecutionDetails
public ExecutionDetails(ExecutionSummary executionSummary, NodeRef persistedActionRef, NodeRef actionedUponNodeRef, String runningOn, Date startedAt, boolean cancelRequested)
-
-
Method Details
-
getExecutionSummary
-
setExecutionSummary
-
getActionType
What kind of action is this?- Returns:
- The action type, typically an executor bean name
-
getActionId
What is the id of the action?- Returns:
- The action ID
-
getExecutionInstance
public int getExecutionInstance()Which instance of the action is this? Every time you start an action, it gets a new instance ID, and this lets you tell the difference between two copies running in parallel.- Returns:
- The instance ID
-
getPersistedActionRef
Gets theNodeRefwhere the action is persisted.- Returns:
NodeReffor the persisted action
-
getActionedUponNodeRef
Gets theNodeRefthe action is acting on.- Returns:
NodeRefthe action is acting on
-
getRunningOn
-
getStartedAt
Returns when this action started executing, or null if it is still pending -
isCancelRequested
public boolean isCancelRequested()
-