org.ow2.bonita.facade.runtime
Interface ActivityBody

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
AutomaticBody, RouteBody, SubflowBody, TaskInstance

public interface ActivityBody
extends java.io.Serializable

Runtime (recorded) data concerning activities is divided in a common part and a body.
This interface concerns the body of the activity.
It provides three common methods for the four interfaces dedicated for body of activity
(getting ActivityBodyUUID, started and ended date).


Method Summary
 ActivityBody copy()
           
 java.util.Date getEndedDate()
          Returns the date recorded after the activity is finished.
 java.util.Date getReadyDate()
          Returns the date recorded when the activ.
 java.util.Date getStartedDate()
          Returns the date recorded after the activity is started.
 ActivityState getState()
          Returns the current state.
 java.util.List<StateUpdate> getStateUpdates()
          Returns the list of recorded state changes.
 ActivityBodyUUID getUUID()
          Return the UUID of the ActivityBody.
 

Method Detail

getUUID

ActivityBodyUUID getUUID()
Return the UUID of the ActivityBody.
For instance, if the body of the activity is a TaskInstance this UUID is a TaskUUID.

Returns:
The UUID of the ActivityBody.

copy

ActivityBody copy()

getStartedDate

java.util.Date getStartedDate()
Returns the date recorded after the activity is started.

Returns:
The date recorded after the activity is started.

getEndedDate

java.util.Date getEndedDate()
Returns the date recorded after the activity is finished.

Returns:
The date recorded after the activity is finished.

getReadyDate

java.util.Date getReadyDate()
Returns the date recorded when the activ.

Returns:
The date recorded when the activity becomes READY.

getState

ActivityState getState()
Returns the current state.

Returns:
The current state.

getStateUpdates

java.util.List<StateUpdate> getStateUpdates()
Returns the list of recorded state changes.

Returns:
The list of recorded state changes.


Copyright © 2009 OW2 Consortium. All Rights Reserved.