X10 wrote:
Hi,
I take it the "modify()" that's in the manual got replaced by
"update()"?
The meanings have changed, but both exist to some degree. modify() is a specail keyword used in the java/mvel consequence. Inside a consequence it is the preferred way modify facts, so that the engine is notified. Outside of consequence, in normal Java, one an object has been changed you need to notify the engine, this is done via the update() method, which tells the engine the fact has been updated.

The main difference is that update( handle ) only takes a single parameter where as modify( object ) { field1 = value1, field2 = value2 } takes key/value pair comma separated list of setters. the language used to apply those setters is dependant on whether you are using the mvel or java dialect.

Mark
Christine

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to