org.alfresco.service.cmr.action
Class ExecutionDetails

java.lang.Object
  extended by org.alfresco.service.cmr.action.ExecutionDetails
All Implemented Interfaces:
java.io.Serializable

public class ExecutionDetails
extends java.lang.Object
implements java.io.Serializable

Holds all the details available to the ActionTrackingService on a currently executing Action.

See Also:
Serialized Form

Constructor Summary
ExecutionDetails()
           
ExecutionDetails(ExecutionSummary executionSummary, org.alfresco.service.cmr.repository.NodeRef persistedActionRef, java.lang.String runningOn, java.util.Date startedAt, boolean cancelRequested)
           
 
Method Summary
 java.lang.String getActionId()
          What is the id of the action?
 java.lang.String getActionType()
          What kind of action is this?
 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.
 ExecutionSummary getExecutionSummary()
           
 org.alfresco.service.cmr.repository.NodeRef getPersistedActionRef()
           
 java.lang.String getRunningOn()
           
 java.util.Date getStartedAt()
          Returns when this action started executing, or null if it is still pending
 boolean isCancelRequested()
           
 void setExecutionSummary(ExecutionSummary executionSummary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
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()

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()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.