How to use Compensation in a BPMN2 process definition to propagate thrown exception to SwitchYard application ?
Issue
- How to use
Compensationin aBPMN2process definition to propagate thrown exception toSwitchYardapplication ? - This use case requires to manage the fault handling while executing a
BPMN2process in conjunction withCompensationthroughSwitchYard.Compensationis working fine withBPMN2processes, but some users expect that the original error (exception) that caused the flow to compensate in the first place to be thrown out of the process back intoSwitchYardruntime. To achieve the above requirement users have to manually throw and exception in the compensation task in theOn Exit Scriptsection, in order to raise a fault. Is there a proper way to throw the original error out of a flow, back toSwitchYardruntime after compensation ?
Environment
- Red Hat JBoss Fuse Service Works (FSW)
- 6.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
