org.ow2.orchestra.facade.runtime.impl
Class ProcessInstanceImpl
java.lang.Object
org.ow2.orchestra.facade.runtime.impl.RuntimeRecordImpl
org.ow2.orchestra.facade.runtime.impl.ActivityInstanceImpl
org.ow2.orchestra.facade.runtime.impl.ActivityWithSingleChildInstanceImpl
org.ow2.orchestra.facade.runtime.impl.ScopeActivityInstanceImpl
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
ProcessInstanceImpl
protected ProcessInstanceImpl()
ProcessInstanceImpl
public ProcessInstanceImpl(ProcessInstance record)
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 © 2012 OW2 Consortium. All Rights Reserved.