[rules-users] Variable Notation in rule Condition

sumatheja sumatheja at gmail.com
Thu Oct 14 01:39:00 EDT 2010


Should not be using according to convention but yes i used it that way. In
the below case CPUSockets is not giving any error.

2010/10/14 Salaboy <salaboy at gmail.com>

> In your beans Do you use caps for attributes ?
>
>
> - CTO @ <http://www.plugtree.com>http://www.plugtree.com
> - MyJourney @ <http://salaboy.wordpress.com>http://salaboy.wordpress.com
> - Co-Founder @ <http://www.jbug.com.ar>http://www.jbug.com.ar
> - Mauricio "Salaboy" Salatino -
>
> On 13/10/2010, at 22:20, sumatheja <sumatheja at gmail.com> wrote:
>
> Hi All,
>         I have this doubt regarding the notation used inside the rule's
> condition. I have a fact HOST having the variables* HostName* and *
> CPUSockets*. I have the following rule
>
> rule "Test"
> when
> HOST(HostName!=null, CPUSockets>3)
> then
> # do something
>
> Is throws an error saying cannot extract field *HostName*. It works fine
> when i use *hostName*. Can anyone explain me the concept behind this.
> Thanks in advance :)
>
> --
> cheers
> Sumatheja Dasararaju
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 
cheers
Sumatheja Dasararaju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101014/4f519169/attachment.html 


More information about the rules-users mailing list