Package org.alfresco.service.cmr.action
Class ExecutionDetails
- java.lang.Object
-
- org.alfresco.service.cmr.action.ExecutionDetails
-
- All Implemented Interfaces:
java.io.Serializable
public class ExecutionDetails extends java.lang.Object implements java.io.SerializableHolds 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, org.alfresco.service.cmr.repository.NodeRef persistedActionRef, java.lang.String runningOn, java.util.Date startedAt, boolean cancelRequested)ExecutionDetails(ExecutionSummary executionSummary, org.alfresco.service.cmr.repository.NodeRef persistedActionRef, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, java.lang.String runningOn, java.util.Date startedAt, boolean cancelRequested)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.alfresco.service.cmr.repository.NodeRefgetActionedUponNodeRef()Gets theNodeRefthe action is acting on.java.lang.StringgetActionId()What is the id of the action?java.lang.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()org.alfresco.service.cmr.repository.NodeRefgetPersistedActionRef()Gets theNodeRefwhere the action is persisted.java.lang.StringgetRunningOn()java.util.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, org.alfresco.service.cmr.repository.NodeRef persistedActionRef, java.lang.String runningOn, java.util.Date startedAt, boolean cancelRequested)
-
ExecutionDetails
public ExecutionDetails(ExecutionSummary executionSummary, org.alfresco.service.cmr.repository.NodeRef persistedActionRef, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef, java.lang.String runningOn, java.util.Date startedAt, boolean cancelRequested)
-
-
Method Detail
-
getExecutionSummary
public ExecutionSummary getExecutionSummary()
-
setExecutionSummary
public void setExecutionSummary(ExecutionSummary executionSummary)
-
getActionType
public java.lang.String getActionType()
What kind of action is this?- Returns:
- The action type, typically an executor bean name
-
getActionId
public java.lang.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 org.alfresco.service.cmr.repository.NodeRef getPersistedActionRef()
Gets theNodeRefwhere the action is persisted.- Returns:
NodeReffor the persisted action
-
getActionedUponNodeRef
public org.alfresco.service.cmr.repository.NodeRef getActionedUponNodeRef()
Gets theNodeRefthe action is acting on.- Returns:
NodeRefthe action is acting on
-
getRunningOn
public java.lang.String getRunningOn()
-
getStartedAt
public java.util.Date getStartedAt()
Returns when this action started executing, or null if it is still pending
-
isCancelRequested
public boolean isCancelRequested()
-
-