[jboss-jira] [JBoss JIRA] (JBRULES-3306) Drools 5.3.0.Final: Fusion broker example contains the 5.2 code (and crashes because of that)
Geoffrey De Smet (Issue Comment Edited) (JIRA)
jira-events at lists.jboss.org
Tue Dec 6 07:49:41 EST 2011
[ https://issues.jboss.org/browse/JBRULES-3306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12648364#comment-12648364 ]
Geoffrey De Smet edited comment on JBRULES-3306 at 12/6/11 7:48 AM:
--------------------------------------------------------------------
Problem found:
drools-distribution.zip should not contain
/drools-distribution-5.3.0.Final/examples/sources/drools-expert-examples/
/drools-distribution-5.3.0.Final/examples/sources/drools-fusion-examples/
That's garbage from Toni's local workspace.
So normal example sources are in:
/drools-distribution-5.3.0.Final/examples/sources/src/
But not for the Fusion broker example because it uses ruleflow. So it's in the droolsjbpm-integration.zip:
/droolsjbpm-integration-distribution-5.3.0.Final/examples/sources/src/
And you can run it from that zip too, without having to build it:
/droolsjbpm-integration-distribution-5.3.0.Final/examples/runExamples.sh
was (Author: ge0ffrey):
Problem found:
drools-distribution.zip should not contain
/drools-distribution-5.3.0.Final/examples/sources/drools-expert-examples/
/drools-distribution-5.3.0.Final/examples/sources/drools-fusion-examples/
That's garbage from Toni's local workspace.
So normally example sources are in:
/drools-distribution-5.3.0.Final/examples/sources/src/
But not for the Fusion broker example because it uses ruleflow. So it's in the droolsjbpm-integration.zip:
/droolsjbpm-integration-distribution-5.3.0.Final/examples/sources/src/
And you can run it from that zip too, without having to build it:
/droolsjbpm-integration-distribution-5.3.0.Final/examples/runExamples.sh
> Drools 5.3.0.Final: Fusion broker example contains the 5.2 code (and crashes because of that)
> ---------------------------------------------------------------------------------------------
>
> Key: JBRULES-3306
> URL: https://issues.jboss.org/browse/JBRULES-3306
> Project: Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Geoffrey De Smet
> Assignee: Geoffrey De Smet
> Fix For: 5.4.0.Beta1
>
>
> The crash is actually caused by JBRULES-3093, but that's fixed in 5.3.0.Final.
> But somehow some 5.2 code is used (according to lazarotti).
> {code}
> [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']
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list