org.smartcomps.twister.engine.priv.core.dynamic.impl
Class ProcessInstanceImpl

java.lang.Object
  |
  +--org.smartcomps.twister.engine.priv.core.dynamic.impl.ProcessInstanceImpl
All Implemented Interfaces:
ProcessInstance

public class ProcessInstanceImpl
extends java.lang.Object
implements ProcessInstance

Persistent implementation of the ProcessInstance interface.


Field Summary
 
Fields inherited from interface org.smartcomps.twister.engine.priv.core.dynamic.ProcessInstance
ACTIVE, CANCELED, COMPLETED, FAULTED, OPEN
 
Constructor Summary
ProcessInstanceImpl()
           
 
Method Summary
 void addProperty(org.smartcomps.twister.engine.priv.core.dynamic.ValuedProperty property)
           
 org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext getChildExecutionContext()
           
 java.util.Collection getEvents()
           
 java.lang.Long getId()
           
 org.smartcomps.twister.engine.priv.core.definition.TwisterProcess getProcess()
           
 java.util.Collection getProperties()
           
 org.smartcomps.twister.engine.priv.core.dynamic.ValuedProperty getPropertyFromName(java.lang.String name)
          Gets the ValuedProperty with given name.
 int getStatus()
           
 void notifyExecution(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
           
 void notifyTermination(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
           
 void setChildExecutionContext(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext childExecutionContext)
           
 void setEvents(java.util.Collection events)
           
 void setId(java.lang.Long id)
           
 void setProcess(org.smartcomps.twister.engine.priv.core.definition.TwisterProcess process)
           
 void setProperties(java.util.Collection properties)
           
 void setStatus(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessInstanceImpl

public ProcessInstanceImpl()
Method Detail

getId

public java.lang.Long getId()
Specified by:
getId in interface ProcessInstance

setId

public void setId(java.lang.Long id)

getStatus

public int getStatus()
Specified by:
getStatus in interface ProcessInstance

setStatus

public void setStatus(int status)

getEvents

public java.util.Collection getEvents()
Specified by:
getEvents in interface ProcessInstance
Returns:
a Collection of ExecutionEvent

setEvents

public void setEvents(java.util.Collection events)

getProcess

public org.smartcomps.twister.engine.priv.core.definition.TwisterProcess getProcess()
Specified by:
getProcess in interface ProcessInstance

setProcess

public void setProcess(org.smartcomps.twister.engine.priv.core.definition.TwisterProcess process)

getChildExecutionContext

public org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext getChildExecutionContext()
Specified by:
getChildExecutionContext in interface ProcessInstance

setChildExecutionContext

public void setChildExecutionContext(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext childExecutionContext)

getProperties

public java.util.Collection getProperties()
Specified by:
getProperties in interface ProcessInstance
Returns:
a Collection of ValuedProperty

setProperties

public void setProperties(java.util.Collection properties)

addProperty

public void addProperty(org.smartcomps.twister.engine.priv.core.dynamic.ValuedProperty property)

getPropertyFromName

public org.smartcomps.twister.engine.priv.core.dynamic.ValuedProperty getPropertyFromName(java.lang.String name)
Description copied from interface: ProcessInstance
Gets the ValuedProperty with given name.

Specified by:
getPropertyFromName in interface ProcessInstance
Parameters:
name -
Returns:
the ValuedProperty with given name, null if no such property exists

notifyExecution

public void notifyExecution(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Specified by:
notifyExecution in interface ProcessInstance

notifyTermination

public void notifyTermination(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)
Specified by:
notifyTermination in interface ProcessInstance


Copyright © 2003 SmartComps. All Rights Reserved.