IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.automaton.ext
Class ExecuteSubflowAct

java.lang.Object
  extended by com.ibm.btt.base.DSENotifier
      extended by com.ibm.btt.automaton.DSEAction
          extended by com.ibm.btt.automaton.ext.ExecuteSubflowAct
All Implemented Interfaces:
Action, Notifier, java.io.Externalizable, java.io.Serializable

@ATTR(value={"processor#String#REQUIRED","inputMapFmt#String#IMPLIED","outputMapFmt#String#IMPLIED"})
public class ExecuteSubflowAct
extends DSEAction

This class provides the behaviour for a sample DSEAction to create and execute nested subflows within the automaton.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.btt.automaton.DSEAction
context, inputMapFmtTag, operationTag, outputMapFmtTag, sourceEvent, tag
 
Fields inherited from class com.ibm.btt.base.DSENotifier
handlersList, name
 
Constructor Summary
ExecuteSubflowAct()
          Creates an object of type ExecuteSubFlow.
ExecuteSubflowAct(boolean mustRegister)
          Creates an object of type ExecuteSubFlow.
ExecuteSubflowAct(java.lang.String aName)
          Creates an object of type ExecuteSubFlow.
ExecuteSubflowAct(java.lang.String aName, java.lang.String aTID)
          Creates an object of type ExecuteSubFlow.
 
Method Summary
 void execute()
          This method is used for nesting processes; it starts another processor instance and waits until it terminates its flow. - it reads in the value of the "processor" attribute of the action creating the specified instance of processor - gets the action context and the subProcssor cntext so it can chain them together - copies the data from the current processor context to the subprocessor context, using the inputMapFmt defined as a parameter of the action. - executes the subprocessor - copies the data back from the subprocessor context to the processor context, using the outputMapFmt defined as a parameter of the action -gets the subprocessor's final state from its typeIdInfo atribute to get the event name to fire as the exit event (the event the parent processor is waiting for)
 
Methods inherited from class com.ibm.btt.automaton.DSEAction
chainOrAssignContext, chainOrAssignContext, close, close, evaluateGuardCondition, externalizer, getContext, getGuardConditions, getInputMapFmtTag, getOperationTag, getOutputMapFmtTag, getParms, getProcessor, getService, getSourceEvent, initializeFrom, mapTheInput, mapTheOutput, preProcess, readExternal, readExternal, removeExternal, setContext, setGuardConditions, setInputMapFmtTag, setOperationTag, setOutputMapFmtTag, setParms, setProcessor, setSourceEvent, toString, toStrings, toTags, writeExternal, writeExternal
 
Methods inherited from class com.ibm.btt.base.DSENotifier
addHandler, getHandlersList, getName, removeHandler, setName, signalEvent, signalEvent, signalEvent, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.automaton.Action
getName, setName
 
Methods inherited from interface com.ibm.btt.base.Notifier
addHandler, getHandlersList, removeHandler, signalEvent, signalEvent, terminate
 
Methods inherited from interface com.ibm.btt.base.Externalizable
getName, setName
 

Constructor Detail

ExecuteSubflowAct

public ExecuteSubflowAct()
Creates an object of type ExecuteSubFlow.


ExecuteSubflowAct

public ExecuteSubflowAct(java.lang.String aName)
Creates an object of type ExecuteSubFlow.

Parameters:
aName - java.lang.String

ExecuteSubflowAct

public ExecuteSubflowAct(java.lang.String aName,
                         java.lang.String aTID)
Creates an object of type ExecuteSubFlow.

Parameters:
aName - java.lang.String
aTID - java.lang.String

ExecuteSubflowAct

public ExecuteSubflowAct(boolean mustRegister)
Creates an object of type ExecuteSubFlow.

Parameters:
mustRegister - boolean
Method Detail

execute

public void execute()
             throws java.lang.Exception
This method is used for nesting processes; it starts another processor instance and waits until it terminates its flow. - it reads in the value of the "processor" attribute of the action creating the specified instance of processor - gets the action context and the subProcssor cntext so it can chain them together - copies the data from the current processor context to the subprocessor context, using the inputMapFmt defined as a parameter of the action. - executes the subprocessor - copies the data back from the subprocessor context to the processor context, using the outputMapFmt defined as a parameter of the action -gets the subprocessor's final state from its typeIdInfo atribute to get the event name to fire as the exit event (the event the parent processor is waiting for)

Specified by:
execute in interface Action
Specified by:
execute in class DSEAction
Throws:
java.lang.Exception - The implementor of this class must decide when to throw an exception occurred to the automaton.

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011