Use a Compensate event to compensate all the activities in a compensation flow. You can only add Compensation events to compensation flows or exception flows. Generally you Compensate events to an exception flow or to a group that contains an exception flow.
If you do not specify the activity to compensate the Engine uses the default compensation mechanism of the group. The default compensation order of a group is the inverted execution order.
If you specify an activity to compensate the Engine invokes the compensation of this activity.
The default behaviour of a group when an internal exception occurs within is to automatically compensates all the activities that were run successfully.