When a fact is declared with propertyChangeSupport in Guvnor, such as following:

declare Hemodynamics
        @propertyChangeSupport
        systolicBP: Integer
        diastolicBP: Integer
        centralVenousP: Integer
        wedgeP: Integer
        status: Boolean
        alive: Boolean
end

then the following warning shows up in JBoss console:

Warning: Method addPropertyChangeListener not found on the class class makeModelTest.Hemodynamics so Drools will be unable to process JavaBean PropertyChangeEvents on the asserted Object

I implement property changes in a model object so would like to be able to say something like:

declare Hemodynamics extends ModelObject
        @propertyChangeSupport
        systolicBP: Integer
        diastolicBP: Integer
        centralVenousP: Integer
        wedgeP: Integer
        status: Boolean
        alive: Boolean
end

The documentation refers to using Guvnor and declarative facts to extend an object that already exists, but not clear that this can actually be done.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to