I have execution Listeners in all of the components. The execution Listeners performs insert/update to a external tables apart from Activiti Schema.
I have an exception thrown @Execution Listener in Service Task. I see that the transaction is handled in the following way: 1. Data in the Activiti Tables has been rolled back. This is as expected as a wait state was not reached. Hence the transaction roll backed. 2. The data changes to external tables have been committed instead of rollback.
I have questions for 2. Shouldn't the external DB and Activiti use the same transaction,when they use the same transaction manager? If activiti transaction is getting rollbacked, why is the data in the external tables committed, even when an exception is thrown.
Any pointers on this issue will really help me. I am stuck at this point. — Thanks, Subashini