Tuesday, May 5, 2015

#398 BPEL-> Mediator -> BPEL: Passing Business Errors back thru Mediator

Scenario:

Sync BPEL1 calls Mediator that calls Sync BPEL2.

SyncBPEL2 throws a Business Error, Mediator needs to pass this back to SyncBPEL1.

In the following example I have the following components -

Sync BPEL 1 = BPELProcess3
Mediator = Route2BPEL1
Sync BPEL 2 = ErrorThrower

Here they are, in all their grandeur - 

ErrorThrower


























Note the explicit definition of the fault in the wsdl -

























Route2BPEL1











Again, this Mediator is defined from wsdl (Interface Definition from WSDL)

Note, the fault is also defined here -

























Note: I do not include any fault-policy definition in the Mediator project.

 BPELProcess3





















Catch configuration -























Test



















Here is the expected error message -

















Here is the process audit trail -


















































JDev workspace here







No comments: