AnsweredAssumed Answered

problem with activiti transaction

Question asked by pavan.bukka.ait on Aug 1, 2013
Latest reply on Aug 2, 2013 by pavan.bukka.ait
hi all,
        This is how my code is,

      @Transactional(readOnly = false, propagation = Propagation.REQUIRED,rollbackFor = {Exception.class} )
        public void saveFile()
       {
           saveFile(uploadItem);
           raiseAndcompeleteUploadTask(uploadItem);  
           saveDocumentHistory();
       }

@Transactional(readOnly = false, propagation = Propagation.REQUIRED,rollbackFor = {Exception.class} )
   void raiseAndcompeleteUploadTask(Document uploadItem) throws Exception
   {
            taskService.complete(taskId);
         }


    As you can see in the above code in the function raiseAndcompeleteUploadTask i am closing the activiti task, if something goes wrong after the call raiseAndcompeleteUploadTask() and in call  saveDocumentHistory() whatever the database change happened in activiti tables not getting rolled back.

other functions such as saveFile() and saveDocumentHIstory() both are running in transaction mode readOnly= false and Propagation.REQUIRED

all the transactions should get rolled back, please help me to fix this issue.

with regards,
pavan bukka.

Outcomes