[rules-users] operator question

Wolfgang Laun wolfgang.laun at gmail.com
Fri Jun 10 08:53:12 EDT 2011


Correction:
redbookYear  > (vehicleYear + $param)

On 10 June 2011 14:52, Wolfgang Laun <wolfgang.laun at gmail.com> wrote:

> 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/1b1ed162/attachment.html 


More information about the rules-users mailing list