Question
· Dec 14, 2017

Using THROW/CATCH within Business Process Lanaguage

We are starting to look into our BPL's and catch errors that calls may return. Can someone explain how to use the THROW and CATCH within the Business Process Language or have a sample of how it should work?

Thanks

Scott Roth

The Ohio State University Wexner Medical Center

Discussion (3)1
Log in or sign up to continue

Generally it goes like this:

<scope>
Do stuff, maybe throw exceptions (or just set status variable to error status)
<faulthandlers>
<catchall>
Process errors. context.%LastError contains your error
</catchall>
</faulthandlers>
</scope>

Check docs for these elements, there are several examples available:

Also, check EnsLib.ebXML.Process.MessageSender for example.