Skip to content

Commit fc89755

Browse files
authored
Update bpm-compensation.md
1 parent 3b0bb14 commit fc89755

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

docs/administration/bpm-compensation.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
*As of Advanced Pack v2.14.*
44

5-
Compensation mechanism is supposed to perform undo actions when something went wrong. Only successfully completed activities can be compensated. Both tasks and sub-processes can be compensated.
5+
The Compensation mechanism is supposed to perform undo actions when something went wrong. Only successfully completed activities can be compensated. Both tasks and sub-processes can be compensated.
66

7-
Compensation is initiated by triggering a Compensation Event (usually from an error handler). The throwing compensation event can specify an activity's ID that needs to be compensated. If the ID is omitted, all *visible* *compensable* activities will be compensated in the order reverse to their instantiation.
7+
A compensation is initiated by triggering a Compensation Event (usually from an error handler). The throwing compensation event can specify an activity's ID that needs to be compensated. If the ID is omitted, all *visible* *compensable* activities will be compensated in the order reverse to their instantiation.
88

9-
By utilizing intermediate throwing compensation events it is possible to establish a specific order in which compensations will be executed.
9+
By utilizing intermediate throwing compensation events, it is possible to establish a specific order in which compensations will be executed.
1010

1111
!!! note
1212

@@ -23,15 +23,15 @@ Boundary compensation:
2323

2424
When a sub-process is compensated with the boundary event, the compensation activity does not have access to the sub-process internal state (called Black-Box compensation). To be able to access the internal state, use the Compensation Event Sub-Process inside the sub-process.
2525

26-
When the parent process initiates compensation for the sub-process activity, if there's no boundary compensation event attached to that activity, it will check whether the sub-process contains an event sub-process with a compensation start event (called Compensation Handler). Then it executes the compensation handler. The compensation handler usually is supposed to explicitly throw compensation events to compensate activities of the sub-process.
26+
When the parent process initiates compensation for the sub-process activity, if there's no boundary compensation event attached to that activity, it will check whether the sub-process contains an event sub-process with a compensation start event (called Compensation Handler). Then, it executes the compensation handler. The compensation handler usually is supposed to explicitly throw compensation events to compensate activities of the sub-process.
2727

2828
Compensation event sub-process:
2929

3030
![Compensation Start Event](https://raw.githubusercontent.com/espocrm/documentation/master/docs/_static/images/administration/bpm/event-start-compensation.png)
3131

3232
An activity is considered **visible** from the throwing Event when:
3333

34-
* It is contained in normal flow at the same level of the process/sub-process.
34+
* It is contained in a normal flow at the same level of the process/sub-process.
3535
* It is contained in the parent process/sub-process of an event sub-process in which the Event is contained.
3636

3737
In the same level:
@@ -42,11 +42,9 @@ From the event sub-process:
4242

4343
![Compensation End Event, event sub-process](https://raw.githubusercontent.com/espocrm/documentation/master/docs/_static/images/administration/bpm/event-end-compensation-1.png)
4444

45-
4645
Compensation events:
4746

4847
* [Boundary](bpm-events.md#compensation-intermediate-event-boundary)
4948
* [Start](bpm-events.md#compensation-start-event)
5049
* [Intermediate throwing](bpm-events.md#compensation-intermediate-event-throwing)
5150
* [End](bpm-events.md#compensation-end-event)
52-

0 commit comments

Comments
 (0)