IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.rcp.xui.automaton
Class ExecuteXUISubflowAct

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

@ATTR(value="processor#String#REQUIRED")
public class ExecuteXUISubflowAct
extends DSEAction

This class provides the behaviour for a sample DSEAction to create and execute nested XUI 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
ExecuteXUISubflowAct()
          Creates an object of type ExecuteXuiSubflowAct.
ExecuteXUISubflowAct(boolean mustRegister)
          Creates an object of type ExecuteXuiSubflowAct.
ExecuteXUISubflowAct(java.lang.String aName)
          Creates an object of type ExecuteXuiSubflowAct.
ExecuteXUISubflowAct(java.lang.String aName, java.lang.String aTID)
          Creates an object of type ExecuteXuiSubflowAct.
 
Method Summary
 void execute()
          This method is used for nesting processes; it starts another processor instance and waits until it terminates its flow; it passes the parent composite to the new processor. - 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

ExecuteXUISubflowAct

public ExecuteXUISubflowAct()
Creates an object of type ExecuteXuiSubflowAct.


ExecuteXUISubflowAct

public ExecuteXUISubflowAct(java.lang.String aName)
Creates an object of type ExecuteXuiSubflowAct.

Parameters:
aName - java.lang.String

ExecuteXUISubflowAct

public ExecuteXUISubflowAct(java.lang.String aName,
                            java.lang.String aTID)
Creates an object of type ExecuteXuiSubflowAct.

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

ExecuteXUISubflowAct

public ExecuteXUISubflowAct(boolean mustRegister)
Creates an object of type ExecuteXuiSubflowAct.

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 passes the parent composite to the new processor. - 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