IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.automaton
Interface Action

All Superinterfaces:
Notifier
All Known Implementing Classes:
CheckAction, DSEAction, DSEStep, ExecuteOperationAct, ExecuteSubflowAct, ExecuteXUISubflowAct, StartAction

@ATTR(value={"id#String#REQUIRED","context#String#IMPLIED","implClass#String#IMPLIED"})
public interface Action
extends Notifier

Interface for Action which is an action to do in a State.


Field Summary
static java.lang.String COPYRIGHT
           
 
Method Summary
 void close()
          This method is for closing actions and releasing the processor and context objects.
 void close(boolean wasChained)
          This method is for actions that had their context's chained to the processor's.
 boolean evaluateGuardCondition(GuardCondition gc)
          Evaluate the given guardCondition.
 void execute()
          This is invoked to do whatever this Action is supposed to do.
 Context getContext()
          Get the context of this Action
 Vector getGuardConditions()
          Return a Vector containing the GuardConditions for this Action
 java.lang.String getName()
          This method returns the name attribute inherited from ProcessorNotifier.
 java.util.Hashtable getParms()
          Returns a hashtable containing the parameters in this Action
 Processor getProcessor()
          Returns the Processor who owns this Action
 DSEEventObject getSourceEvent()
          Returns the value of the sourceEvent property.
 void preProcess()
          This is invoked just before the execute method.
 void setContext(Context aContext)
          Sets the context to the Action
 void setGuardConditions(Vector guardConditions)
          Associates the action with a Vector of GuardConditions.
 void setName(java.lang.String notifierName)
          This method sets the name attribute inherited from ProcessorNotifier.
 void setParms(java.util.Hashtable parms)
          Associates the action with a hashtable of parameters
 void setProcessor(Processor aProcessor)
          Sets the processor who owns this Action
 void setSourceEvent(DSEEventObject newSourceEvent)
          Sets the value of the sourceEvent property.
 
Methods inherited from interface com.ibm.btt.base.Notifier
addHandler, getHandlersList, removeHandler, signalEvent, signalEvent, terminate
 

Field Detail

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

close

void close()
This method is for closing actions and releasing the processor and context objects.


close

void close(boolean wasChained)
This method is for actions that had their context's chained to the processor's. It unchains the context and closes the action, releasing the processor and context objects.

Parameters:
wasChained - boolean

evaluateGuardCondition

boolean evaluateGuardCondition(GuardCondition gc)
Evaluate the given guardCondition.

Parameters:
gc - com.ibm.btt.automaton.GuardCondition
Returns:
boolean

execute

void execute()
             throws java.lang.Exception
This is invoked to do whatever this Action is supposed to do.

Throws:
java.lang.Exception - The implementor of this class must decide when to throw an exception occurred to the automaton.

getContext

Context getContext()
Get the context of this Action

Returns:
com.ibm.btt.base.Context

getGuardConditions

Vector getGuardConditions()
Return a Vector containing the GuardConditions for this Action

Returns:
com.ibm.btt.base.Vector

getName

java.lang.String getName()
This method returns the name attribute inherited from ProcessorNotifier. Note: this is NOT the name of the action.

Specified by:
getName in interface Notifier
Returns:
java.lang.String

getParms

java.util.Hashtable getParms()
Returns a hashtable containing the parameters in this Action

Returns:
java.util.Hashtable

getProcessor

Processor getProcessor()
Returns the Processor who owns this Action

Returns:
com.ibm.btt.automaton.Processor

getSourceEvent

DSEEventObject getSourceEvent()
Returns the value of the sourceEvent property.

Returns:
com.ibm.btt.event.BTTProcessorEventObject

preProcess

void preProcess()
                throws java.lang.Exception
This is invoked just before the execute method.

Throws:
java.lang.Exception - The implementor of this class must decide when to throw an exception occurred to the automaton.

setContext

void setContext(Context aContext)
Sets the context to the Action

Parameters:
aContext - com.ibm.btt.base.Context

setGuardConditions

void setGuardConditions(Vector guardConditions)
Associates the action with a Vector of GuardConditions.

Parameters:
guardConditions - com.ibm.btt.base.Vector

setName

void setName(java.lang.String notifierName)
This method sets the name attribute inherited from ProcessorNotifier. Note: this is NOT the name of the action.

Specified by:
setName in interface Notifier
Parameters:
notifierName - java.lang.String

setParms

void setParms(java.util.Hashtable parms)
Associates the action with a hashtable of parameters

Parameters:
assertions - java.util.Hashtable

setProcessor

void setProcessor(Processor aProcessor)
Sets the processor who owns this Action

Parameters:
aProcessor - com.ibm.btt.automaton.Processor

setSourceEvent

void setSourceEvent(DSEEventObject newSourceEvent)
Sets the value of the sourceEvent property.

Parameters:
newSourceEvent - com.ibm.btt.event.BTTProcessorEventObject

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011