org.smartcomps.twister.engine.priv.core.dynamic
Interface ProcessInstance

All Known Implementing Classes:
ProcessInstanceImpl

public interface ProcessInstance

An instance of a static definition of the process, represents and execution of the process.


Field Summary
static int ACTIVE
          The Process Instance is currently running.
static int CANCELED
          The Process Instance received a cancellation signal from a user or another service.
static int COMPLETED
          The Execution Context has been properly completed.
static int FAULTED
          An error occured that prevented the Process Instance to finish its execution properly.
static int OPEN
          The Process Instance has been created but is not active yet, not doing its job (like waiting for a message, invoking a service or looping).
 
Method Summary
 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)
           
 

Field Detail

OPEN

public static final int OPEN
The Process Instance has been created but is not active yet, not doing its job (like waiting for a message, invoking a service or looping).

See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
The Process Instance is currently running.

See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
The Execution Context has been properly completed.

See Also:
Constant Field Values

CANCELED

public static final int CANCELED
The Process Instance received a cancellation signal from a user or another service.

See Also:
Constant Field Values

FAULTED

public static final int FAULTED
An error occured that prevented the Process Instance to finish its execution properly.

See Also:
Constant Field Values
Method Detail

getId

public java.lang.Long getId()

getProcess

public org.smartcomps.twister.engine.priv.core.definition.TwisterProcess getProcess()

getChildExecutionContext

public org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext getChildExecutionContext()

getStatus

public int getStatus()

getEvents

public java.util.Collection getEvents()
Returns:
a Collection of ExecutionEvent

getProperties

public java.util.Collection getProperties()
Returns:
a Collection of ValuedProperty

getPropertyFromName

public org.smartcomps.twister.engine.priv.core.dynamic.ValuedProperty getPropertyFromName(java.lang.String name)
Gets the ValuedProperty with given name.

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)

notifyTermination

public void notifyTermination(org.smartcomps.twister.engine.priv.core.dynamic.ExecutionContext ec)


Copyright © 2003 SmartComps. All Rights Reserved.