COPY C:\STAFCD\Part4\exercise4.1\*.xml C:\STAF\xml\*.xml
java -jar c:\STAF\services\STAX\STAXDoc.jar -d c:\STAXDoc\samples samples
PARMS "EXTENSION C:/STAFCD/Part4/extensions/ExtDelay.jar"to the STAX service configuration statement. This statement should now look like:
service stax library JSTAF execute c:/staf/services/stax/STAX.jar \ PARMS "EXTENSION C:/STAFCD/Part4/extensions/ExtDelay.jar"
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE stax SYSTEM "stax.dtd"> <stax> <defaultcall function="test"/> <function name="test"> <parallel> <block name="'Block A'"> <parallel> <stafcmd> <location>'local'</location> <service>'delay'</service> <request>'delay 10000'</request> </stafcmd> <ext-delay>20</ext-delay> </parallel> </block> <block name="'Block B'"> <ext-sleep>30</ext-sleep> </block> <block name="'Block C'"> <parallel> <ext-delay>10</ext-delay> </parallel> </block> <block name="'Block D'"> <parallel> <ext-wait>8</ext-wait> </parallel> </block> </parallel> </function> </stax>
COPY C:\STAFCD\Part4\samples\*.xml C:\STAF\services\stax\*.*
<script>callResult = STAXResult</script>and line 32 was changed to check callResult instead of STAXResult:
<if expr="callResult <= 50">Why was it necessary to make these changes? Why couldn't we just check/update the STAXResult value directly?