How to use Compensation in a BPMN2 process definition to propagate thrown exception to SwitchYard application ?

Solution Unverified - Updated -

Issue

  • How to use Compensation in a BPMN2 process definition to propagate thrown exception to SwitchYard application ?
  • This use case requires to manage the fault handling while executing a BPMN2 process in conjunction with Compensation through SwitchYard . Compensation is working fine with BPMN2 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 into SwitchYard runtime. To achieve the above requirement users have to manually throw and exception in the compensation task in the On Exit Script section, in order to raise a fault. Is there a proper way to throw the original error out of a flow, back to SwitchYard 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content