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