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

inconsistency between jbpm-bam\src\main\resources\AuditLog.hbm.xml and jbpm-bam\src\main\java\org\jbpm\process\audit\NodeInstanceLog.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • jBPM 5.2
    • jBPM 5.1
    • Runtime Engine
    • Low
    • Workaround Exists
    • Hide

      modify the AuditLog.hbm.xml, add mapping for "nodename":

      <class name="org.jbpm.process.audit.NodeInstanceLog" >
      <id name="id">
      <generator class="native"/>
      </id>
      <property name="type"/>
      <property name="nodeInstanceId"/>
      <property name="nodeId"/>
      <property name="processInstanceId"/>
      <property name="processId"/>
      <property name="nodeName"/>
      <property name="date" type="timestamp" column="LOG_DATE"/>
      </class>

      Show
      modify the AuditLog.hbm.xml, add mapping for "nodename": <class name="org.jbpm.process.audit.NodeInstanceLog" > <id name="id"> <generator class="native"/> </id> <property name="type"/> <property name="nodeInstanceId"/> <property name="nodeId"/> <property name="processInstanceId"/> <property name="processId"/> <property name="nodeName"/> <property name="date" type="timestamp" column="LOG_DATE"/> </class>

      in NodeInstanceLog.java, it uses JPA that will maps all fields to database, especially, the "nodeName" field;
      but there is not mapping define about "nodeName" in AuditLog.hbm.xml

      the table "nodeisntancelog" schema auto-generated by AuditLog.hbm.xml that without column "nodename"
      but when run the BAM that will failed to mapping to the nodename in JPA

            kverlaen@redhat.com Kris Verlaenen
            missedone_jira Nick Tan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: