What is the purpose of OPTLOCK in jBPM 6.2? -


what purpose of optlock in jbpm 6.2? i've looked @ https://github.com/droolsjbpm/jbpm/blob/master/jbpm-persistence-jpa/src/main/java/org/jbpm/persistence/processinstance/processinstanceinfo.java#l54, seems store version variable, not documentation found on this.

it column used jpa in cases optimistic locking used. contains numeric number incremented every time jbpm persists process instance. if same process instance read concurrently 2 different threads , modified , persisted, last attempt fail because version number have been incremented first attempt. more info see: https://blogs.oracle.com/carolmcdonald/entry/jpa_2_0_concurrency_and


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -