AnsweredAssumed Answered

Update done by one task into DB is not getting reflected by second task when multiple tasks are triggered at once

Question asked by tkarthik26 on May 18, 2016
Latest reply on May 31, 2016 by jbarrez
Hi,

I am claiming two different tasks in UI and when submitting it, it is entering a service task. Below are the sequence of actions taking place.

Task1:
1. Enters the service task
2. Fetches count of records matching some condition from DB
3. Performs some logic
4. Updates the count to DB at the end of current execution.

Task2 also follows the same steps immediately after the execution of Task1. However I am getting problem at #2 where Task2 has to now get the updated count done by Task1. Here it still fetches the original count which was there before the execution of Task1.

Do I have a way to stop the successive executions for a period of time so that the execution before gets flushed to DB.


Regards,
Karthik

Outcomes