|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.DSEHandler
com.ibm.btt.automaton.DSEState
com.ibm.btt.automaton.ext.DSEBaseState
public abstract class DSEBaseState
Field Summary | |
---|---|
static java.lang.String |
EXIT_EVENT_NAME
Name of the parameter in which the state stores the name of the event that the automaton uses to go on with the flow. |
Tag |
inputFormatTag
Map format used to map data from the calling processor context to the context of the processor that this state executes. |
Tag |
outputFormatTag
Map format used to map data from the context of the processor that this state executes to the calling processor context. |
Fields inherited from class com.ibm.btt.automaton.DSEState |
---|
ABORT_PROCESS, actionHandlers, CHANGE_STATE, CONDITIONS, CONTINUE, DEFAULT_TYPE, done, ENTRY_ACTIONS, entryActionsTags, EXECUTE_ACTION_AND_CHANGESTATE, EXIT_ACTIONS, exitActionsTags, exitEventName, FINAL_TYPE, ignoreEntryActions, INITIAL_TYPE, name, PAGE_TYPE, pqThread, processor, runningModeFlag, sharedNotifiers, SKIP_ACTION, SKIP_ALL_ACTIONS, SKIP_CONDITIONS, SUBFLOW_TYPE, suspendedThread, SUSPENDTIME, tag, transitions, TRANSITIONS, type, TYPE, TYPE_ID_INFO, typeIdInfo |
Constructor Summary | |
---|---|
DSEBaseState()
|
Method Summary | |
---|---|
void |
activate()
Activates an state. |
protected void |
afterActivate()
The dispose logic after state activation, here to release resources used by this state. |
protected void |
beforeActivate()
The preparation for state activation, it will be invoked after entry actions and before input mapping. |
protected void |
changeProcessorState(DSEEventObject event)
This utility method is used to change the state of a processor in response to a change state event. |
protected abstract void |
doActivate()
Execute the main logic for this state, also handle the exitEventName to navigate to next state. |
protected void |
doDataMapping(DataMapperFormat format,
Context sourceCtx,
Context targetCtx)
This utility method maps data from the source context to the target context using the supplied DataMapperFormat. |
protected void |
fireDSEChangeStateEvent(java.lang.String targetStateName,
boolean ignoreEntryActionsFlag,
boolean ignoreExitActionsFlag,
java.lang.String transitionName)
Dispatches a change state event with required information. |
protected abstract Context |
getContext()
Get the context of state which will be used by input and output mapping. |
Tag |
getInputFormatTag()
Returns the input format tag attribute of this class. |
Tag |
getOutputFormatTag()
Returns the output format tag attribute of this class. |
protected void |
processEventQueue(Vector otherTrigs)
Provides an internal routine for the activate() method. |
protected void |
processQueue(Vector otherTrigs)
Processes the events queue of the processor. |
void |
setInputFormatTag(Tag newInputFormatTag)
Sets the input format tag property. |
void |
setOutputFormatTag(Tag newOutputFormatTag)
Sets the output format tag property. |
protected void |
signalEvent()
Creates and signals the event that the state processes. |
Methods inherited from class com.ibm.btt.base.DSEHandler |
---|
handleEvent, handleEvent, stopHandlingEvent, stopHandlingEvent |
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.State |
---|
abort, getEntryActions, getName, getProcessor, getTransitions, getType, getTypeIdInfo, initializeFrom, resume, setEntryActions, setIgnoreEntryActions, setName, setProcessor, setTransitions, setType, setTypeIdInfo, suspend, terminate |
Methods inherited from interface com.ibm.btt.base.Handler |
---|
dispatchEvent, handleEvent, handleEvent, stopHandlingEvent, stopHandlingEvent |
Field Detail |
---|
public static final java.lang.String EXIT_EVENT_NAME
public Tag inputFormatTag
public Tag outputFormatTag
Constructor Detail |
---|
public DSEBaseState()
Method Detail |
---|
public void activate() throws DSEInvalidArgumentException, DSEProcessorException
This method waits until this event is received. It then tries to raise the event created from the information received from the state. The state processes this event and put it on the queue. Processing the event queue provokes a state change.
activate
in interface State
activate
in class DSEState
DSEInvalidArgumentException
DSEProcessorException
protected void beforeActivate() throws DSEInvalidArgumentException, DSEProcessorException
DSEInvalidArgumentException
DSEProcessorException
protected abstract void doActivate() throws DSEInvalidArgumentException, DSEProcessorException
DSEInvalidArgumentException
DSEProcessorException
protected void afterActivate() throws DSEInvalidArgumentException, DSEProcessorException
DSEInvalidArgumentException
DSEProcessorException
protected abstract Context getContext()
protected void changeProcessorState(DSEEventObject event) throws DSEProcessorException
event
- com.ibm.btt.base.DSEEventObject
DSEProcessorException
public Tag getInputFormatTag()
getInputFormatTag
in interface FormatEnabledState
public void setInputFormatTag(Tag newInputFormatTag)
setInputFormatTag
in interface FormatEnabledState
newInputFormatTag
- com.ibm.btt.base.Tagpublic Tag getOutputFormatTag()
getOutputFormatTag
in interface FormatEnabledState
public void setOutputFormatTag(Tag newOutputFormatTag)
setOutputFormatTag
in interface FormatEnabledState
newOutputFormatTag
- com.ibm.btt.base.Tagprotected void processQueue(Vector otherTrigs) throws DSEInvalidArgumentException, DSEProcessorException
otherTrigs
- Vector
DSEInvalidArgumentException
DSEProcessorException
protected void processEventQueue(Vector otherTrigs) throws DSEInvalidArgumentException, DSEProcessorException
processEventQueue
in class DSEState
otherTrigs
- com.ibm.btt.base.Vector
DSEInvalidArgumentException
DSEProcessorException
protected void doDataMapping(DataMapperFormat format, Context sourceCtx, Context targetCtx) throws DSEException
format
- com.ibm.btt.base.DataMapperFormatsourceCtx
- com.ibm.btt.base.ContexttargetCtx
- com.ibm.btt.base.Context
DSEException
protected void signalEvent() throws DSEProcessorException
DSEProcessorException
protected void fireDSEChangeStateEvent(java.lang.String targetStateName, boolean ignoreEntryActionsFlag, boolean ignoreExitActionsFlag, java.lang.String transitionName) throws DSEProcessorException
targetStateName
- java.lang.StringignoreEntryActionsFlag
- booleanignoreExitActionsFlag
- booleantransitionName
- java.lang.String
DSEProcessorException
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |