de.danet.an.workflow.api
Interface ExecutionObject

All Superinterfaces:
java.io.Serializable, WfExecutionObject, WfObject
All Known Subinterfaces:
Activity, Process

public interface ExecutionObject
extends WfExecutionObject

Interface ExecutionObject extends the OMG execution object with additional methods that allow the type-safe state class to be used to query and set state. The OMG API provides string based methods only to enable vendors to define additional sub-states. The type-safe equivalent is to define new subclasses of the state classes.


Nested Class Summary
 
Nested classes inherited from class de.danet.an.workflow.omgcore.WfExecutionObject
WfExecutionObject.ClosedState, WfExecutionObject.NotRunningState, WfExecutionObject.OpenState, WfExecutionObject.State
 
Method Summary
 void changeState(WfExecutionObject.State newState)
          Type-safe equivalent to WfExecutionObject.changeState().
 boolean debugEnabled()
          Checks if the execution object is in debugging mode.
 WfExecutionObject.State typedState()
          Type-safe equivalent to WfExecutionObject.state().
 
Methods inherited from interface de.danet.an.workflow.omgcore.WfExecutionObject
abort, changeState, description, history, howClosed, key, lastStateTime, name, priority, processContext, resume, setDescription, setName, setPriority, setProcessContext, state, suspend, terminate, validStates, whileOpen, whyNotRunning, workflowState
 

Method Detail

typedState

public WfExecutionObject.State typedState()
                                   throws java.rmi.RemoteException
Type-safe equivalent to WfExecutionObject.state().

Returns:
the state.
Throws:
java.rmi.RemoteException - if a system-level error occurs.

changeState

public void changeState(WfExecutionObject.State newState)
                 throws java.rmi.RemoteException,
                        InvalidStateException,
                        TransitionNotAllowedException
Type-safe equivalent to WfExecutionObject.changeState().

Parameters:
newState - state to change to.
Throws:
InvalidStateException - if newState is an invalid state for the execution object.
TransitionNotAllowedException - if the transition from the current state to newState is not allowed.
java.rmi.RemoteException - if a system-level error occurs.

debugEnabled

public boolean debugEnabled()
                     throws java.rmi.RemoteException
Checks if the execution object is in debugging mode.

Returns:
true if the execution object is in debugging mode
Throws:
java.rmi.RemoteException - if a system-level error occurs