<rcml>
<process id="ExampleProcess" name="example process">
<workdir id="workdir" home="./WORK" />
<!-- Ausführung -->
<exec id="ExampleExec" workdir="workdir">
<commandline processor="velocity">cmd move c:\*.txt c:\TXTs</commandline>
<!-- <commandline> setzt return-code von <exec> auf 0, falls erfolgreich, sonst != 0. -->
</exec>
<!-- Falls ein Fehler aufgetreten ist: Fehlermeldung an das EOMS-Core und Abbruch der Verarbeitung. -->
<if condition="${ExampleExec.testReturnCode(true)}">
<error message="${'Beim Aufruf des Befehls [cmd] Fehler: '
+ ExampleExec.getReturnCode() + '... der Prozess wird abgebrochen.'}"/>
</if>
<!-- Falls kein Fehler aufgetreten ist geht es normal weiter. -->
...
</process>
</rcml>