cancel
Showing results for 
Search instead for 
Did you mean: 

Compensation with multiple call activities

makmitsa
Champ in-the-making
Champ in-the-making
Hello,

I have a problem with compensation in the following situation:


[img]http://ibin.co/2PvDQEgZeb9X[/img]


Once the compensation intermediate throw event has been started, only the compensation of sub process 2 gets called, I expected that compensation of both the call activities would have been called, which is not the case. The is no Activity Ref on the compensation intermediate throw event. The call activities in this scenario have a single service task..

Is this the expected behavior? (Only the last call activity compensation is called)

Any help would be appreciated,
Thanks
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

Could you create jUnit test for this case please?
https://forums.activiti.org/content/sticky-how-write-unit-test

may be you can have a look on the jUni tests in the activiti:
org.activiti.engine.test.bpmn.event.compensate.CompensateEventTest

Regards
Martin

Hi Martin,

I have created https://activiti.atlassian.net/browse/ACT-4102 with the unit test from your template attached.

thanks for your response,
MK

makmitsa
Champ in-the-making
Champ in-the-making
Hello,

is there any way someone could take a look at the test template? It would be very much appreciated.

Thank you,
MK

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

from the jira issue:
Is this the expected behavior? (Only the last call activity compensation is called)

I do not think so. I would expect to call all compensations.

Regards
Martin