To define an operation flow, define one or more operation steps in the toolkit operation definition file or the operation's self-defined file. If you decide to build your operation flow based on states and using a flow processor, define your operation steps as actions associated with the states of the business process. For more information on using a flow processor in this way, see Operation flow processors in the flows documentation.
<opStepsKColl id="flow1"> <opStep id="writeJournal" on0Do="sendHost" on1Do="rollback" onOtherDo="return"/> <opStep id="rollback" onOtherDo="return"/> <opStep id="sendHost" on0Do="receiveHost" onOtherDo="return"/> <opStep id="receiveHost" on0Do="next" on1Do="error1" onOtherDo="return"/> <opStep id="error1" on0Do="next" onOtherDo="return"/> <opStep id="exists" onTrue="next" onFalse="error1" dataElement="amount"/> </opStepsKColl>
<operation id="myServerOp" context="myServerOpCtx" implClass=”myPackage.MyOperation”> <refFormat name="csReplyFormat" refId="myCSServerOpFormat"/> <refOpSteps refId="flow1"/> </operation>