AnsweredAssumed Answered

Flushing activiti DB updates on Demand

Question asked by jorell on Feb 20, 2014
Latest reply on Feb 25, 2014 by jbarrez
I am facing a case where it seems that when I start process and immediately complete the first task (from outside the delegate) the execution for that process hasn;t yet been persisted to the DB. I am unable to fetch the execution by id. My first service task is a delegate which does some work and then send its execution id to an external system which is responsible for finishing that task. But there seems to be a race condition in that it can try to complete the task before activiti has flushed its cache.
Is there a way for force activiti to flush its cache after a operation like starting a new process?