Is 'modified' a boolean field? If so as it seems, i think you should write: A( modified == false )
(no quotes) Regards. 2010/6/15 Fnu Mahalakshmi <[email protected]> > Hi guys, > > > > I have few .drl rules and 1 .brl rule (which I converted into a .drl rule > as guided by the documentation online) > > All my rules get created and fired. But the converted .brl rule does not > get executed only. > > I am unable to understand why. > > Anyway I can check how it is working?? > > I put in the most basic rule which should work: > > The coverted .drl file looks like this: > > *rule* "Rule3" > > *dialect* "mvel" > > *when* > > a : A( modified == "false" ) > > *then* > > a.setModified( *true* ); > > *update*( a ); > > *end* > > * * > > *// A being my fact with attribute modified set to false in the beginning. > * > > * * > > *The import statements are in a rule.package in the same folder.* > > * * > > *Please help me. I do not understand why this rule doesn’t get executed. > All others do!* > > * * > > *Thanks* > > *M* > > ------------------------------ > > *Please consider the environment before printing this email.* > > *Visit our website at http://www.nyse.com > ***************************************************************************** > > Note: The information contained in this message and any attachment to it is > privileged, confidential and protected from disclosure. If the reader of > this message is not the intended recipient, or an employee or agent > responsible for delivering this message to the intended recipient, you are > hereby notified that any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this > communication in error, please notify the sender immediately by replying to > the message, and please delete it from your system. Thank you. NYSE > Euronext. * > > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > >
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
