[rules-users] Drools fusion example in 5.3.0

Geoffrey De Smet ge0ffrey.spam at gmail.com
Tue Dec 6 07:47:44 EST 2011


Problem found, read
https://issues.jboss.org/browse/JBRULES-3306?focusedCommentId=12648364&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12648364 
<https://issues.jboss.org/browse/JBRULES-3306?focusedCommentId=12648364&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12648364>

Op 06-12-11 13:30, Salina Fung/UFL - ICIL schreef:
> Noted.  Thanks will wait
>
>
> Thanks
> Salina
>
>
> ----- Original Message -----
> From: Geoffrey De Smet
> [mailto:ge0ffrey.spam at gmail.com]
> To: rules-users at lists.jboss.org
> Sent: Tue,
> 06 Dec 2011 20:24:12 +0800
> Subject: Re: [rules-users] Drools fusion example
> in 5.3.0
>
>
>> Please see
>>     https://issues.jboss.org/browse/JBRULES-3306
>> I 'll try to figure out what's going wrong.
>>
>> Op 06-12-11 13:12, Salina Fung/UFL - ICIL schreef:
>>> ^
>>> [Line: 56, Column: 28] : [Rule name='If the drop is between 6% and 8%, buy
>> more shares']
>>> Unable to Analyse Expression percent<   -0.06:
>>> [Error: Comparison operation requires compatible types. Found class
>> org.mvel2.util.MethodStub and class java.lang.Double]
>>> [Near : {... percent<   -0.06 ....}]
>>> I download Drools 5.3.0 Final and try to
>>> run the Broker example that comes with the package.  But I got the
>>> following error, what is wrong?
>>>
>>>                  ^
>>> [Line: 56, Column: 28] : [Rule name='If the drop is between 6% and 8%, buy
>> more shares']
>>> Unable to Analyse Expression percent<   -0.08:
>>> [Error: Comparison operation requires compatible types. Found class
>> org.mvel2.util.MethodStub and class java.lang.Double]
>>> [Near : {... percent<   -0.08 ....}]
>>>                          ^
>>> [Line: 69, Column: 28] : [Rule name='If the drop is on more than 8%, sell
>> shares']
>>> Unable to Analyse Expression percent>= -0.06:
>>> [Error: Comparison operation requires compatible types. Found class
>> org.mvel2.util.MethodStub and class java.lang.Double]
>>> [Near : {... percent>= -0.06 ....}]
>>>                           ^
>>> [Line: 83, Column: 28] : [Rule name='If the drop is between 5% and 6%, do
>> nothing']
>>>
>>>
>>>
>>>
>>> Thanks
>>> Salina
>>>
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>> -- 
>> With kind regards,
>> Geoffrey De Smet
>>
>>
>> _______________________________________________
>> 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
>

-- 
With kind regards,
Geoffrey De Smet





More information about the rules-users mailing list