Return origin error if compensation happens

Hello,

I’m trying to rollback an operation and tell clients it failed.

When BpmnError happens on T2, it triggers the compensation and then RT1 executed.

The process engine will return a success response, but the desired operation failed indeed.

How can I tell the client that the operation failed? Or should I use compensation if the operation failed?


Process_TestingAll.bpmn (6.6 KB)