Working With Faults - How To Stop BPEL After A Fault Occurs
734084May 16 2011 — edited Feb 26 2020Hi, all~
I'm a little confused... having spent time as a java programmer in a prior life, I tend to assume that, unless a try-catch is around a block of code, if an exception is encountered my code is going to stop processing at that point.
In SOA 11.1.1.4, I have a BPEL process that occasionally throws a binding exception when attempting to execute a stored procedure in an Oracle DB (I'll likely post a second thread about that).
The part that's odd to me is that the BPEL process continues processing after this fault occurs... so I'll get a fault from my "getData" stored procedure and then the BPEL process will carry on and attempt to publish the (null) data to the subscribing processes (which naturally results in additional errors).
...is this expected behavior? I would have thought a BPEL process would enter a faulted state (and stop) when a fault occurs, but maybe not...?
Thanks in advance,
- Nathan