AnsweredAssumed Answered

What is the best way to control TaskListener on UserTask?

Question asked by swamy2156 on Nov 12, 2015
Latest reply on Mar 8, 2016 by maudrid

I am facing a problem with Task Listeners. I have simple workflow with 1 UserTask(with Create TaskListener). I am using TaskListener to publish event to JMS Queue. During Task Creation, flow happening like
Task creation(Delegate task)->trigger task listener->persist task data in Database.
Thing is I am getting some DB related exception while persisting data into database and hence task not persisted in database. But task listener already triggered and which is sending a false data to JMS Queue subscribers(in this case because, task is not available).

Is there a way to trigger task listener until a successful transaction is done for UserTask? Please provide me a prototype if available.