Patent ID: 7694299

Claim:
A method for performing a composite task, comprising: determining, via one or more processors, an associated undo task for at least one subtask in a plurality of subtasks for the composite task, wherein a subtask of the plurality of subtasks is one of a local subtask, a distributed subtask, and a composite subtask, and wherein the at least one subtask is a distributed task that is associated with a local undo task; performing at least one of initializing one or more data items associated with the at least one subtask, and unassociating one or more data items associated with the at least one subtask; performing one or more subtasks in the plurality of subtasks, wherein the performing of the one or more subtasks includes a performing of the at least one subtask, which is a distributed subtask, on a remote task manager; performing the associated local undo task for the at least one subtask if the performing of any of the one or more subtasks fails.