New Transaction context on each process instance
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2013 04:13 AM
Hi,
I have created a process which will insert data in multiple tables in the same data base in different tasks in the workflow.But i want to maintain a transaction at the process instance level so that on encountering any error(either checked exception/ run time exceptions) the data inserted in the previous tasks will be rolled back.Is there any to start transaction when a process starts and end/rollback on completion/error.I am using activiti rest services to start the process instances from a different web app.
I have created a process which will insert data in multiple tables in the same data base in different tasks in the workflow.But i want to maintain a transaction at the process instance level so that on encountering any error(either checked exception/ run time exceptions) the data inserted in the previous tasks will be rolled back.Is there any to start transaction when a process starts and end/rollback on completion/error.I am using activiti rest services to start the process instances from a different web app.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2013 07:28 AM
As long as you don't have any wait states (like a user task) in your process, all the steps will be part of the same transaction.
So three sequential automatic steps are done in the same transaction.
So three sequential automatic steps are done in the same transaction.
