[jboss-jira] [JBoss JIRA] Commented: (JBRULES-1886) DroolsComplierAntTask shows asymetry with respect to compound proposition ordering
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Fri Jan 16 02:41:04 EST 2009
[ https://jira.jboss.org/jira/browse/JBRULES-1886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12448237#action_12448237 ]
Mark Proctor commented on JBRULES-1886:
---------------------------------------
Can you try this on trunk, or latest 5.0.0. M release. As there have been a number of related fixes on 'or' nodes. If this is broken, we are only likely to fix it in trunk.
> DroolsComplierAntTask shows asymetry with respect to compound proposition ordering
> ----------------------------------------------------------------------------------
>
> Key: JBRULES-1886
> URL: https://jira.jboss.org/jira/browse/JBRULES-1886
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: drools-ant
> Affects Versions: 4.0.7
> Environment: Fedora 4, java 1.5
> Reporter: Roger Lefebvre
> Assignee: Mark Proctor
>
> The Drools ant task compiler produces an error when reordering a propositions in compound rules.
> the following rules compiles without error.
> >>>>
> rule "XYZ"
> salience 5
> agenda-group "XYZGroup"
> when
> $resp : Response(profile != null)
> (or
> (and
> Results(code in (1011 , 1012 , 1013 , 1014 , 4091)) from $resp.profile.results
> Results(iD==14, code in (1015 , 1016 , 1017 , 1018)) from $resp.profile.results
> )
> Results(iD==14, code==1051) from $resp.profile.results
> )
> then
> <<<<
> while this rule
> >>>>
> rule "XYZ"
> salience 5
> agenda-group "XYZGroup"
> when
> $resp : Response(profile != null)
> (or
> Results(iD==14, code==1051) from $resp.profile.results
> (and
> Results(code in (1011 , 1012 , 1013 , 1014 , 4091)) from $resp.profile.results
> Results(iD==14, code in (1015 , 1016 , 1017 , 1018)) from $resp.profile.results
> )
> )
> then
> <<<<
> generates the following error
> RuleBaseTask failed: Unable to determine the used declarations.
> java.lang.Class : [Rule name=XYZ, agendaGroup=XYZGroup, salience=5, no-loop=false]
> Unable to build expression for 'from' node '$resp.profile.results(and
> Results(code in (1011 , 1012 , 1013 , 1014 , 4091)) from $resp.profile.results
> Results(iD==14, code in (1015 , 1016 , 1017 , 1018)) from $resp.profile.results
> )' : [Rule name=XYZ, agendaGroup=XYZGroup, salience=5, no-loop=false]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list