Runtime tools : Core components : Flows : Reference : Flow processor definition templates
  
Flow processor definition templates
The following is a template that you can use to define a processor in the toolkit processor definition file:
<processor id="processName" cleanEventsQueueOnSwitch="true|false" context="processNameCtxt">
<state id="stateName" type="stateType" typeIdInfo="stateTypeIdInfo">
<entryActions>
<actionTag id="actionName" actionAttribute1="value" actionAttribute2="value"
context="contextName">
<conditions>
<cond1 onTrue="continue" onFalse="skipAction"/>
<cond2 onTrue="continue" onFalse="skipAllActions"/>
<cond3 onTrue="continue" onFalse="skipConditions"/>
<cond4 onTrue="continue" onFalse="abortProcess"/>
<cond5 onTrue="continue" onFalse="execAndChangeState(stateId)"/>
<cond6 onTrue="continue" onFalse="changeState(stateId)"/>
</conditions>
</actionTag>
</entryActions>
<transitions>
<transition id="eventId" propagateEvent="true|false" targetState="nextStateName">
<actions>
<actionTag id="actionName" actionAttribute1="value" actionAttribute2="value">
<conditions>
<cond1 onTrue="continue" onFalse="skipAction"/>
<cond2 onTrue="changeState(stateId)" onFalse="skipAction"/>
</conditions>
</actionTag>
</actions>
</transition>
</transitions>
</state>
...
<! more states>
...
</processor>
The following are templates for definitions you can add to the toolkit configuration (btt.xml) file to support a new processor:
<kColl id="packages">/*new collection*/
<kColl id="operations">/*relocation*/
<field id="package1" value="com.ibm.dse.samples.appl" />
<field id="package2" value="com.ibm.dse.samples.sap" />
<field id="package3" value="mypackage1" />
</kColl>
<kColl id="processors">/*new collection*/
/*these packages may belong to any entity related to processors,
such as other Processors, States, Actions, Conditions,
Transitions*/
<field id="package1" value="com.ibm.dse.samples.appl" />
<field id="package2" value="com.ibm.dse.samples.automaton" />
<field id="package3" value="myprocesses" />
</kColl>
/*other definitions*/
</kColl>
<kColl id=files>
<field id="data" value="DSEDATA.XML" />
<field id="format" value="DSEFMTS.XML" />
<field id="context" value="DSECTXT.XML" />
<field id="service" value="DSESRVCE.XML" />
<field id="processor" value="DSEPROC.XML" /> /* Generic processors file*/
<field id="desktop" value="desktop.xml"/>
<kColl id="processors">/*new collection for self-defined processors* /
<processorDef id="proc1" value="proc1.xml" path="c:\dse\client\procs" />
<processorDef id="proc2" value="proc1.xml" path="c:\dse\client\procs" />
<processorDef id="proc3" value="proc2.xml" path="c:\dse\client\procs" />
</kColl>
</kColl>
<kColl id="tags">
...
<kColl id="processors">/*new collection*/
<field id="refFormat"/>
<field id="processor" value="com.ibm.dse.automaton.DSEProcessor" />
<field id="state" value="com.ibm.dse. automaton.DSEState" />
<field id="transition" value="com.ibm.dse. automaton.DSETransitionDescriptor" />
[<field id="actionTag1" value="aClass" />]
[<field id="actionTag2" value="aClass" />]
...
[<field id="ConditionTag1" value="aClass" />]
[<field id="ConditionTag2" value="aClass" />]
...
</kColl>
/*other definitions/
</kColl>
Go up to
Reference