[rules-users] rules-users Digest, Vol 43, Issue 72

Fnu Mahalakshmi FMahalakshmi at nyx.com
Tue Jun 15 10:17:29 EDT 2010


Hi, 

Thanks for the quick response.
I sent you the converted .drl file.
It gets set like that automatically after conversion.
I just include false in the literal field not "false".
How else could I specify that?

Thanks 
M

-----Original Message-----
From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of rules-users-request at lists.jboss.org
Sent: Tuesday, June 15, 2010 10:11 AM
To: rules-users at lists.jboss.org
Subject: rules-users Digest, Vol 43, Issue 72

Send rules-users mailing list submissions to
	rules-users at lists.jboss.org

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
	rules-users-request at lists.jboss.org

You can reach the person managing the list at
	rules-users-owner at lists.jboss.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."


Today's Topics:

   1. Re: Error with executing rules (PAYET, Manuel)
   2. Re: Error with executing rules (Giovanni Motta)


----------------------------------------------------------------------

Message: 1
Date: Tue, 15 Jun 2010 16:08:40 +0200
From: "PAYET, Manuel" <manuel.payet at capgemini.com>
Subject: Re: [rules-users] Error with executing rules
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
	<5104F06B63E3164FAEB2F42B920311654CCCA2DC at CORPMAIL05.corp.capgemini.com>
	
Content-Type: text/plain; charset="iso-8859-1"

a : A( modified == "false" ) ==> here "false" is a String
and a.setModified( true ); ==> here true is a boolean

from your use of modified, I presume that modified is of boolean type. If it is, you'd probably want to do something like

rule "Rule3"
      dialect "mvel"
      when
            a : A( modified == false )
      then
            a.setModified( true );
            update( a );
end

because, modified will never be equal to "false" in your file cause it"s a String

________________________________
De : rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] De la part de Fnu Mahalakshmi
Envoy? : mardi 15 juin 2010 16:03
? : 'rules-users at lists.jboss.org'
Objet : [rules-users] Error with executing rules

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.
</PRE><p style="font-family:arial;color:grey" style="font-size:13px">This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.</p><PRE>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100615/c5d875f5/attachment.html 

------------------------------

Message: 2
Date: Tue, 15 Jun 2010 16:10:27 +0200
From: Giovanni Motta <mottagio at gmail.com>
Subject: Re: [rules-users] Error with executing rules
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
	<AANLkTin9-PvVFDBbra_smdbG4gsaINf1VpykHXXHiUZO at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

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 <FMahalakshmi at nyx.com>

>  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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100615/cbe9334d/attachment.html 

------------------------------

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


End of rules-users Digest, Vol 43, Issue 72
*******************************************
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.





More information about the rules-users mailing list