org.ow2.orchestra.facade.runtime.impl
Class RuntimeRecordImpl

java.lang.Object
  extended by org.ow2.orchestra.facade.runtime.impl.RuntimeRecordImpl
All Implemented Interfaces:
Serializable, Record, RuntimeRecord
Direct Known Subclasses:
ActivityInstanceImpl

public abstract class RuntimeRecordImpl
extends Object
implements RuntimeRecord

Author:
Gael Lalire
See Also:
Serialized Form

Field Summary
protected  ActivityState activityState
          The activity state.
protected  Date endedDate
           
protected  ProcessInstanceUUID instanceUUID
           
protected  ProcessDefinitionUUID processUUID
           
protected  Date startedDate
           
 
Constructor Summary
protected RuntimeRecordImpl()
           
protected RuntimeRecordImpl(RuntimeRecord src)
           
 
Method Summary
 void end(ActivityState finishState)
          Call this method when the runtime is ended.
 boolean equals(Object obj)
           
 Date getEndedDate()
           
 ProcessDefinitionUUID getProcessDefinitionUUID()
           
 ProcessInstanceUUID getProcessInstanceUUID()
          Returns the instance processDefinitionUUID (generated at the creation of the instance).
 Date getStartedDate()
           
 ActivityState getState()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

startedDate

protected Date startedDate

endedDate

protected Date endedDate

processUUID

protected ProcessDefinitionUUID processUUID

instanceUUID

protected ProcessInstanceUUID instanceUUID

activityState

protected ActivityState activityState
The activity state.

Constructor Detail

RuntimeRecordImpl

protected RuntimeRecordImpl()

RuntimeRecordImpl

protected RuntimeRecordImpl(RuntimeRecord src)
Method Detail

getProcessDefinitionUUID

public ProcessDefinitionUUID getProcessDefinitionUUID()
Specified by:
getProcessDefinitionUUID in interface RuntimeRecord
Returns:
the process definition uuid

getProcessInstanceUUID

public ProcessInstanceUUID getProcessInstanceUUID()
Description copied from interface: RuntimeRecord
Returns the instance processDefinitionUUID (generated at the creation of the instance).

Specified by:
getProcessInstanceUUID in interface RuntimeRecord
Returns:
The instance processDefinitionUUID.

getEndedDate

public Date getEndedDate()
Specified by:
getEndedDate in interface RuntimeRecord
Returns:
the date recorded when the runtime is finished or null if runtime is not finished.

getStartedDate

public Date getStartedDate()
Specified by:
getStartedDate in interface RuntimeRecord
Returns:
the date recorded.

end

public void end(ActivityState finishState)
Call this method when the runtime is ended.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

getState

public ActivityState getState()
Specified by:
getState in interface RuntimeRecord
Returns:
the state of activity

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011 OW2 Consortium. All Rights Reserved.