AnsweredAssumed Answered

Strange delays...

Question asked by jcosano on Oct 29, 2010
Latest reply on Nov 2, 2010 by jbarrez
I hava process instance that creates new process intances of another process…
Process A do a select to one table of database and creates a new process instance of process B for each row, moving contenue of table into variables of process B.

Then, is strange that I have 2 operation that sometimes (not always) delays a lot of time, but always are in the same point.
Point1- ProcessInstance pi = runtime.startProcessInstanceByKey("impacts_flow",variables);
Point2- Map<String, Object> variables = runtime.getVariables(key);

In logs only I can see is this (20 sec…):

29-oct-2010 12:03:22 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA: — starting StartProcessInstanceCmd ——————————————————–
29-oct-2010 12:03:42 org.activiti.engine.impl.runtime.ExecutionEntity initialize

29-oct-2010 12:02:41 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA: — starting GetVariablesCmd ——————————————————–
29-oct-2010 12:03:01 org.activiti.engine.impl.db.DbSqlSession flush

Any idea?

Note:
If i do:

for (int i=0; i<200; i++)
{
runtimeService.startProcessInstanceByKey("impacts_flow", variables);
}
this delays doesn't appear…

Outcomes