org.ow2.bonita.facade.runtime.impl
Class ActivityBodyImpl

java.lang.Object
  extended by org.ow2.bonita.facade.runtime.impl.ActivityBodyImpl
All Implemented Interfaces:
java.io.Serializable, ActivityBody
Direct Known Subclasses:
AutomaticBodyImpl, RouteBodyImpl, SubflowBodyImpl, TaskInstanceImpl

public abstract class ActivityBodyImpl
extends java.lang.Object
implements ActivityBody

See Also:
Serialized Form

Field Summary
protected  long dbid
           
protected  java.util.Date endedDate
           
protected  java.util.Date readyDate
           
protected  java.util.Date startedDate
           
protected  java.util.List<StateUpdate> stateUpdates
           
protected  ActivityBodyUUID uuid
           
 
Constructor Summary
protected ActivityBodyImpl()
           
protected ActivityBodyImpl(ActivityBody activityBody)
           
protected ActivityBodyImpl(ActivityBodyUUID uuid)
           
 
Method Summary
 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.
For instance, if the body of the activity is a TaskInstance this UUID is a TaskUUID.
 void setActivityState(ActivityState newState, java.lang.String userId)
           
 void setEndedDate(java.util.Date date)
           
 void setReadyDate(java.util.Date date)
           
 void setStartedDate(java.util.Date date)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.bonita.facade.runtime.ActivityBody
copy
 

Field Detail

dbid

protected long dbid

uuid

protected ActivityBodyUUID uuid

startedDate

protected java.util.Date startedDate

endedDate

protected java.util.Date endedDate

readyDate

protected java.util.Date readyDate

stateUpdates

protected java.util.List<StateUpdate> stateUpdates
Constructor Detail

ActivityBodyImpl

protected ActivityBodyImpl()

ActivityBodyImpl

protected ActivityBodyImpl(ActivityBodyUUID uuid)

ActivityBodyImpl

protected ActivityBodyImpl(ActivityBody activityBody)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getUUID

public ActivityBodyUUID getUUID()
Description copied from interface: ActivityBody
Return the UUID of the ActivityBody.
For instance, if the body of the activity is a TaskInstance this UUID is a TaskUUID.

Specified by:
getUUID in interface ActivityBody
Returns:
The UUID of the ActivityBody.

getStartedDate

public java.util.Date getStartedDate()
Description copied from interface: ActivityBody
Returns the date recorded after the activity is started.

Specified by:
getStartedDate in interface ActivityBody
Returns:
The date recorded after the activity is started.

getEndedDate

public java.util.Date getEndedDate()
Description copied from interface: ActivityBody
Returns the date recorded after the activity is finished.

Specified by:
getEndedDate in interface ActivityBody
Returns:
The date recorded after the activity is finished.

getReadyDate

public java.util.Date getReadyDate()
Description copied from interface: ActivityBody
Returns the date recorded when the activ.

Specified by:
getReadyDate in interface ActivityBody
Returns:
The date recorded when the activity becomes READY.

getStateUpdates

public java.util.List<StateUpdate> getStateUpdates()
Description copied from interface: ActivityBody
Returns the list of recorded state changes.

Specified by:
getStateUpdates in interface ActivityBody
Returns:
The list of recorded state changes.

getState

public ActivityState getState()
Description copied from interface: ActivityBody
Returns the current state.

Specified by:
getState in interface ActivityBody
Returns:
The current state.

setStartedDate

public void setStartedDate(java.util.Date date)

setEndedDate

public void setEndedDate(java.util.Date date)

setReadyDate

public void setReadyDate(java.util.Date date)

setActivityState

public void setActivityState(ActivityState newState,
                             java.lang.String userId)


Copyright © 2009 OW2 Consortium. All Rights Reserved.