Explain what is meant by a ‘compensation action’ and, using an example, show why these actions may have to be included in workflows.
What will be an ideal response?
A compensation action is an action that is included in a workflow to ‘undo’ a
transaction that has been completed earlier in the workflow.
Compensation actions may have to be included in workflows because the
success of the entire workflow may rely on all included workflows successfully
completing. If some of these included workflows are successful but some aren’t,
then the compensating actions have to be executed to ensure that the overall system
is left in a consistent state.
Compensation actions are required when dependent services, offered by
different suppliers, are composed to create an integrated service. For example, say
a meeting organiser has to book a room for a meeting then organise catering for the
people attending the meeting. It may not be possible to do this concurrently as the
numbers attending the meeting may not be known. If the room is booked but,
subsequently, it transpires that no catering is available that day, then the booking
must be cancelled by a compensating action.
You might also like to view...
A ________ function is not a member of a class, but it has access to the private members of the class.
A) static B) constructor C) destructor D) friend E) None of the above
An interview that begins in a very specific way, then examines general issues, and concludes very specifically is said to have a ________ shape.
A) diamond B) cube C) funnel D) pyramid
In daily life, using a low-level, abstract list of chores makes your day manageable.
Answer the following statement true (T) or false (F)
When you export a table structure from one Access database to another, the new database has to be created
Indicate whether the statement is true or false