[rules-users] operator question

Wolfgang Laun wolfgang.laun at gmail.com
Fri Jun 10 08:52:24 EDT 2011


Given that the left hand sign of the comparison must be a simple field
reference and the right hand side a bracketed expression, employ simple
equation transformattion techniques to arrive at
   redbookYear  > (vehicleYear) + $param)

-W



2011/6/10 Jon Gil <jonsprogrammingemail at gmail.com>

> more specifically
>
>     RuleTable    Condition Action  $a:OOPVehicle   (redbookYear  -
> vehicleYear) > $param System.out.println($param);       50 "reducing
> Redbook Value by 50 years"  20 "reducing Redbook Value by 20 years"  5 "reducing
> Redbook Value by 5 years"
>
> On Fri, Jun 10, 2011 at 9:39 AM, Jon Gil <jonsprogrammingemail at gmail.com>wrote:
>
>> I want my condition to be  (Year1 - Year2) > $param
>>
>>
>>
>>
>> 2011/6/10 Wolfgang Laun <wolfgang.laun at gmail.com>
>>
>>> Please describe the problem, accuretely.
>>> -W
>>>
>>>  2011/6/10 Jon Gil <jonsprogrammingemail at gmail.com>
>>>
>>>> Hi all,  This might seem overly simple but can I use the + and -
>>>> operators in a Condition in a spreadsheet?  I feel i'll need to import
>>>> something, and I've tried creating an "add" method in my factmodel java
>>>> class, but i can't seem to use it.
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>
>
> _______________________________________________
> 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/20110610/87081fa8/attachment.html 


More information about the rules-users mailing list