[rules-users] Some serious problems while authoring rules
Natraj Gudla
natraj.forums at gmail.com
Thu Jul 19 04:22:35 EDT 2007
Hi Starke,
Please find the same attached.
Thanks
Natraj
On 7/19/07, Dr. Gernot Starke <gs at gernotstarke.de> wrote:
>
> Hi,
>
> please list your EMIAgainsProperty class...
>
> Gernot
>
> > I am facing some serious blocking issues while writing few rules. In the
> > rule below, a1, a2 are Double objects. When i have the first statement
> in
> > the rule " EMIAgainstProperty( obj : a1 )", the rule does not
> fire....when
> > i
> > comment and re phrase the second line as emi : EMIAgainstProperty( a2 >=
> (
> > *
> > new* Double(10* 1.5 )) ), the rule is fired.
> >
> > Why is the first line making the rule not to fire. I have reported a
> > similar
> > problem yesterday, but could not find a resolution. On the other hand, i
> > am
> > unable to refer a1 directly to say a1.doubleValue() in the second line,
> it
> > throws up and error. Any help??? What is the way out?
> > *
> >
> > rule* "Test"
> >
> > *when*
> >
> > EMIAgainstProperty( obj : a1 )
> >
> > emi : EMIAgainstProperty( a2 >= ( *new* Double(obj.doubleValue() * 1.5))
> > )
> >
> > *then
> > *
> >
> > System.out.println(" Passed ");
> > *
> >
> > end
> > *
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
>
> --
> Dr. Gernot Starke
> Willi-Lauf Allee 43, D-50858 Köln
> Tel. +49 (0) 177 - 728 2570
> Mail: gs at gernotstarke.de
> http://www.gernotstarke.de
> http://www.arc42.de
> _______________________________________________
> 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/20070719/f1c0b4ea/attachment.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: EMIAgainstProperty.java
Url: http://lists.jboss.org/pipermail/rules-users/attachments/20070719/f1c0b4ea/attachment.pl
More information about the rules-users
mailing list