[rules-users] operator question

Jon Gil jonsprogrammingemail at gmail.com
Fri Jun 10 08:52:26 EDT 2011


Which when i start the server drools is on produces:
rg.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'kbase5': Invocation of init method failed; nested exception is
java.lang.RuntimeException: [12,30]: [ERR 101] Line 12:30 no viable
alternative at input '-' in rule "_13" in pattern OOPVehicle[23,30]: [ERR
101] Line 23:30 no viable alternative at input '-' in rule "_14" in pattern
OOPVehicle[34,30]: [ERR 101] Line 34:30 no viable alternative at input '-'
in rule "_15" in pattern OOPVehicle"

On Fri, Jun 10, 2011 at 9:48 AM, Jon Gil <jonsprogrammingemail at gmail.com>wrote:

> 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
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110610/416fab5f/attachment.html 


More information about the rules-users mailing list