Patent ID: 7584474
Filing Date: 2009-09-01
Classification: G06F,Y10S

Abstract:
1. A method for ensuring atomicity in a workflow, comprising: demarcating tasks in the workflow to be processed atomically using transaction tags; suspending a first transaction and executing a task from the demarcated tasks in a new transaction when the workflow encounters the transaction tags indicating the new transaction; retrying the task for a configurable number of retries or period of time if the task is not performed successfully within a configurable timeout period; resuming the first transaction when the task in the new transaction is executed using a processor; wherein when one of the transaction tags is encountered, a context relating to the first transaction is queued as a Java Messaging Service (JMS) message as part of the first transaction; wherein the JMS message is queued as part of the first transaction, the first transaction is paused to start the new transaction; wherein if the new transaction fails, the new transaction rolls back and the queued JMS message is resent from the JMS queue; wherein after the new transaction rolls back due to failure and the JMS message is resent, the transaction attempts again to go forward along a path of execution; wherein the JMS message is obtained from the queue if the new transaction commits; and wherein the transaction tags indicate which tasks are to be performed as a group.