[jboss-jira] [JBoss JIRA] (DROOLS-4305) getOldObject() of ObjectUpdatedEvent is returning same value as getObject()

Benoit Proulx (Jira) issues at jboss.org
Wed Jul 10 11:39:01 EDT 2019


Benoit Proulx created DROOLS-4305:
-------------------------------------

             Summary: getOldObject() of ObjectUpdatedEvent is returning same value as getObject()
                 Key: DROOLS-4305
                 URL: https://issues.jboss.org/browse/DROOLS-4305
             Project: Drools
          Issue Type: Bug
          Components: core engine
    Affects Versions: 7.16.0.Final
         Environment: Windows 10 Version 1803 (OS Build 17134.829)
Eclipse 2018-12 (4.10.0)
jdk1.8.0_171
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
spring-boot-starter-parent 2.1.2.RELEASE
            Reporter: Benoit Proulx
            Assignee: Mario Fusco


We have built a logger file for our rules that implements org.kie.api.event.rule.RuleRuntimeEventListener.

Whenever the objectUpdated(ObjectUpdatedEvent) method is called, the ObjectUpdatedEvent contains the values of both the old Object and new object (or getOldObject() and getObject() )

However, it seems that getOldObject() is always returning the same value as getObject().

Having both values would be very helpful in debugging rules.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list