[jboss-jira] [JBoss JIRA] Created: (JBRULES-1886) DroolsComplierAntTask shows asymetry with respect to compound proposition ordering

Roger Lefebvre (JIRA) jira-events at lists.jboss.org
Fri Dec 5 15:06:50 EST 2008


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