How to use Compensation in a BPMN2 process definition to propagate thrown exception to SwitchYard application ?
Issue
- How to use
Compensation
in aBPMN2
process definition to propagate thrown exception toSwitchYard
application ? - This use case requires to manage the fault handling while executing a
BPMN2
process in conjunction withCompensation
throughSwitchYard
.Compensation
is working fine withBPMN2
processes, 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 intoSwitchYard
runtime. To achieve the above requirement users have to manually throw and exception in the compensation task in theOn Exit Script
section, in order to raise a fault. Is there a proper way to throw the original error out of a flow, back toSwitchYard
runtime 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, tools, and much more.