2 Replies Latest reply on Sep 26, 2013 2:01 AM by thomas.setiabudi

    How to change the Variable Instance Log behavior to update instead of insert?

    thomas.setiabudi

      Hi,

       

      I am using JBPM 5.4 Final, and I use JPAWorkingMemoryDbLogger to log variable values into VariableInstanceLog table.

      The default behavior is whenever a variable value changed, a new record is inserted into VariableInstanceLog table.

      My question is:

      How can we change this behavior and make the logger to update record in VariableInstanceLog table instead of always insert?

      should we create a new Class like JPAWorkingMemoryDbLogger but with custom implementation for this? or is there any config that I could specify?

       

      Any help will be appreciated. Thank you

       

      Best Regards,

      Thomas Setiabudi

       

       

      Note: Why do I need this? Because I think the size of VariableInstanceLog table will grow very big, and we can slow down the growth by changing the behavior of insert into update.