Here is my composite -
The ValidateOrder Service can throw 2 business exception - MinorException and MajorException.
The business logic for error handling in the BPM process is simple - MinorException then retry -
MajorException skip.
The validate Order web service -
This is how the business logic for handling the MinorException is implemented in the BPM process -
I set the newly available pre-defined variable - "action" - to "back"
i.e. I want to rety the validateOrder service.
Deploy and test -
The business fault - MinorException is thrown and the instance is Recovered.
file is written -
Trace -
Now I implement the handler for the MajorError -
Here I just skip
Deploy and test -
Trace -
No comments:
Post a Comment