Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-3641

Variable change not detected when saving/loading a process instance multiple times in the same day

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • jBPM 5.4.0.Beta1
    • jBPM 5.3
    • Persistence
    • None
    • Low
    • Hide

      In JBPMorm-JPA2.xml change the lastReadDate mapping from DATE to TIMESTAMP

      <basic name="lastReadDate" access="FIELD" >
      <temporal>TIMESTAMP</temporal>
      </basic>

      After doing so, JPA correctly detects the entity change and triggers the update() method which in turn serializes my variables.

      Show
      In JBPMorm-JPA2.xml change the lastReadDate mapping from DATE to TIMESTAMP <basic name="lastReadDate" access="FIELD" > <temporal>TIMESTAMP</temporal> </basic> After doing so, JPA correctly detects the entity change and triggers the update() method which in turn serializes my variables.

      When saving a processinstance multiple times to-from database (JPA) variables are not correctly serialized.

      The problem is with a combination of org.jbpm.persistence.processinstance.ProcessInstanceInfo.update annotation ( @PreUpdate) and the way the ProcessInstanceInfo datate fields are mapped (DATE).

              kverlaen@redhat.com Kris Verlaenen
              radu_cirstoiu Radu Cirstoiu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: