Package org.alfresco.service.cmr.action
Class ExecutionDetails
- java.lang.Object
-
- org.alfresco.service.cmr.action.ExecutionDetails
-
- All Implemented Interfaces:
Serializable
public class ExecutionDetails extends Object implements Serializable
Holds all the details available to theActionTrackingServiceon a currently executing Action.- Author:
- Nick Burch
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExecutionDetails()ExecutionDetails(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeRefgetActionedUponNodeRef()Gets theNodeRefthe action is acting on.StringgetActionId()What is the id of the action?StringgetActionType()What kind of action is this?intgetExecutionInstance()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.ExecutionSummarygetExecutionSummary()NodeRefgetPersistedActionRef()Gets theNodeRefwhere the action is persisted.StringgetRunningOn()DategetStartedAt()Returns when this action started executing, or null if it is still pendingbooleanisCancelRequested()voidsetExecutionSummary(ExecutionSummary executionSummary)
-
-
-
Constructor Detail
-
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 Detail
-
getExecutionSummary
public ExecutionSummary getExecutionSummary()
-
setExecutionSummary
public void setExecutionSummary(ExecutionSummary executionSummary)
-
getActionType
public String getActionType()
What kind of action is this?- Returns:
- The action type, typically an executor bean name
-
getActionId
public String 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
public NodeRef getPersistedActionRef()
Gets theNodeRefwhere the action is persisted.- Returns:
NodeReffor the persisted action
-
getActionedUponNodeRef
public NodeRef getActionedUponNodeRef()
Gets theNodeRefthe action is acting on.- Returns:
NodeRefthe action is acting on
-
getRunningOn
public String getRunningOn()
-
getStartedAt
public Date getStartedAt()
Returns when this action started executing, or null if it is still pending
-
isCancelRequested
public boolean isCancelRequested()
-
-