AnsweredAssumed Answered

Troubles with remove unnecessary operations while flush

Question asked by dooman on Feb 7, 2012
Latest reply on May 1, 2012 by ptrepag

In my case I have business process that has callActivity. In some way subrocess ends in transaction where it was created. And when activiti flush transaction I see errors in database (incorrect foreign keys). That occurs because DbSqlSession.flushTransaction() calls removeUnnecessaryOperations(). This method removes INSERTs and DELETEs, but it doesn't delete variables assotiated with the execution. Foreign keys check in java code is very heavy task and I think hack sql operations is not good approach. Сan I create an option that will be turn off this optimization and create patch for trunk?