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

java.lang.Object
  extended by org.ow2.orchestra.facade.runtime.impl.RuntimeRecordImpl
      extended by org.ow2.orchestra.facade.runtime.impl.ActivityInstanceImpl
          extended by org.ow2.orchestra.facade.runtime.impl.ActivityWithSingleChildInstanceImpl
              extended by org.ow2.orchestra.facade.runtime.impl.ScopeActivityInstanceImpl
                  extended by org.ow2.orchestra.facade.runtime.impl.ProcessInstanceImpl
All Implemented Interfaces:
Serializable, Record, ActivityInstance, ActivityWithSingleChildInstance, ProcessInstance, RuntimeRecord, ScopeActivityInstance

public class ProcessInstanceImpl
extends ScopeActivityInstanceImpl
implements ProcessInstance

Describes a process instance.

Author:
Alfonso Fuca, Guillaume Renault
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ow2.orchestra.facade.runtime.impl.ScopeActivityInstanceImpl
compensationHandlerActivityUUID, correlationSet, eventInstanceUUIDs, faultHandlerActivityUUID, partnerLink, scopeState, terminationHandlerActivityUUID, variables
 
Fields inherited from class org.ow2.orchestra.facade.runtime.impl.ActivityWithSingleChildInstanceImpl
enclosedActivityUUID
 
Fields inherited from class org.ow2.orchestra.facade.runtime.impl.ActivityInstanceImpl
definitionUUID, lastException, uuid
 
Fields inherited from class org.ow2.orchestra.facade.runtime.impl.RuntimeRecordImpl
activityState, endedDate, instanceUUID, processUUID, startedDate
 
Constructor Summary
protected ProcessInstanceImpl()
           
  ProcessInstanceImpl(ProcessInstance record)
           
 
Method Summary
 void addProcessInstanceState(ProcessInstanceStateUpdate state)
          Add a ProcessInstanceStateUpdate object in the list.
 ActivityState getInstanceState()
          Returns the current instance state.
 List<ProcessInstanceStateUpdate> getProcessInstanceStateUpdate()
          Returns the list of process instance states.
 ActivityType getType()
          Get the type of the activity instance.
 ProcessInstanceUUID getUUID()
          Get the uuid of the activity instance
 String toString()
           
 
Methods inherited from class org.ow2.orchestra.facade.runtime.impl.ScopeActivityInstanceImpl
getCompensationHandlerActivityUUID, getCorrelationSet, getEventInstanceUUIDs, getFaultHandlerActivityUUID, getPartnerLink, getScopeState, getTerminationHandlerActivityUUID, getVariables
 
Methods inherited from class org.ow2.orchestra.facade.runtime.impl.ActivityWithSingleChildInstanceImpl
getEnclosedActivityUUID
 
Methods inherited from class org.ow2.orchestra.facade.runtime.impl.ActivityInstanceImpl
equals, getDefinitionUUID, getLastException, hashCode
 
Methods inherited from class org.ow2.orchestra.facade.runtime.impl.RuntimeRecordImpl
end, getEndedDate, getProcessDefinitionUUID, getProcessInstanceUUID, getStartedDate, getState
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.orchestra.facade.runtime.ScopeActivityInstance
getCompensationHandlerActivityUUID, getCorrelationSet, getEventInstanceUUIDs, getFaultHandlerActivityUUID, getPartnerLink, getScopeState, getTerminationHandlerActivityUUID, getVariables
 
Methods inherited from interface org.ow2.orchestra.facade.runtime.ActivityWithSingleChildInstance
getEnclosedActivityUUID
 
Methods inherited from interface org.ow2.orchestra.facade.runtime.ActivityInstance
getDefinitionUUID, getLastException
 
Methods inherited from interface org.ow2.orchestra.facade.runtime.RuntimeRecord
getEndedDate, getProcessDefinitionUUID, getProcessInstanceUUID, getStartedDate, getState
 

Constructor Detail

ProcessInstanceImpl

protected ProcessInstanceImpl()

ProcessInstanceImpl

public ProcessInstanceImpl(ProcessInstance record)
Method Detail

getType

public ActivityType getType()
Description copied from interface: ActivityInstance
Get the type of the activity instance. Types are defined in ActivityType

Specified by:
getType in interface ActivityInstance
Overrides:
getType in class ScopeActivityInstanceImpl
Returns:
the type of the activity (corresponding to ActivityType)

toString

public String toString()
Overrides:
toString in class ScopeActivityInstanceImpl

getUUID

public ProcessInstanceUUID getUUID()
Description copied from interface: ActivityInstance
Get the uuid of the activity instance

Specified by:
getUUID in interface ActivityInstance
Specified by:
getUUID in interface ProcessInstance
Overrides:
getUUID in class ActivityInstanceImpl
Returns:
the UUID of the activity instance.

getProcessInstanceStateUpdate

public List<ProcessInstanceStateUpdate> getProcessInstanceStateUpdate()
Description copied from interface: ProcessInstance
Returns the list of process instance states.

Specified by:
getProcessInstanceStateUpdate in interface ProcessInstance
Returns:
the list of state updates for this instance.

addProcessInstanceState

public void addProcessInstanceState(ProcessInstanceStateUpdate state)
Add a ProcessInstanceStateUpdate object in the list.

Specified by:
addProcessInstanceState in interface ProcessInstance
Parameters:
state - the ProcessInstanceStateUpdate object

getInstanceState

public ActivityState getInstanceState()
Returns the current instance state.

Returns:
the current instance state.


Copyright © 2011 OW2 Consortium. All Rights Reserved.