The trouble is not with the exit on done’s behaviour… It is that everyone uses:
SEQUENCE (exit on success)
–SEQUENCE (exit on failure)
----- code here #1
----- code here #2
----- code here #3
–SEQUENCE (exit on done)
----- error code line #1
----- error code line #2
----- error code line #3
Which in java is the equivalent of doing:
try
{
//code here #1
//code here #2
//code here #3
}
catch (Exception e)
{
try { error line of code #1 } catch (Exception e) {}
try { error line of code #2 } catch (Exception e) {}
try { error line of code #3 } catch (Exception e) {}
}
Which is not what a java try-catch block is all about:
SEQUENCE (exit on success)
–SEQUENCE (exit on failure)
----- code here #1
----- code here #2
----- code here #3
–SEQUENCE (exit on done)
----- error code line #1
----- error code line #2
----- error code line #3
which corresponds to:
try
{
//code here #1
//code here #2
//code here #3
}
catch (Exception e)
{
// error line of code #1
// error line of code #2
// error line of code #3
}
Which is what a try catch is about… try-catch-finally is another matter… Perhaps that’s where the confusion about the exit on done stuff crept in.
regards,
Nathan
PS couldn’t use the pre tag to stop the formatting getting messed up as it mucked up the closing braces in the java code… Hmm…
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB