cancel
Showing results for 
Search instead for 
Did you mean: 

problems with compensation boundary

mvdh
Champ in-the-making
Champ in-the-making
Hello,

I have some problems with the implmentation of a compensation boundary event.
Currently I'm testig the syntax of this element, so I created a very simple process with one throwing compensation and one compensation boundary element.
My problem is, that "scripttask5" which is used for compensation, will never be executed.

I consulted the current User Guide, and in my opinion the BPMN notation shoud be correct.

Maybe some of your guys can help ne.

Many thanks in advance.

My BPMN File is attached.
2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
Hi,
please review your xml, it has errors on "scripttask5" task.
https://www.dropbox.com/s/7fsggqi9boce5x5/Screen%20Shot%202015-11-17%20at%2017.04.59.png?dl=0

mvdh
Champ in-the-making
Champ in-the-making
Found the mistake.

In the userguide the following is named:

In addition, the optional argument activityRef can be used to trigger compensation of a specific scope / activity:
intermediateThrowEvent id="throwCompensation"
compensateEventDefinition activityRef="bookHotel"
/intermediateThrowEvent

Because of this I had given the activityRef="scripttask2" value to the throwing compensation event. Scripttask2 is the activity where the boundary event is attached.

I changed it to activityRef="scripttask5" and it works. Scripttask5 is the compensation activity. It works also, if I spare the activityRef value.