[jboss-jira] [JBoss JIRA] Created: (JBRULES-2988) Could not parse excludes operator

Tomáš Schlosser (JIRA) jira-events at lists.jboss.org
Tue Apr 26 03:40:18 EDT 2011


Could not parse excludes operator
---------------------------------

                 Key: JBRULES-2988
                 URL: https://issues.jboss.org/browse/JBRULES-2988
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
            Reporter: Tomáš Schlosser
            Assignee: Mark Proctor
             Fix For: 5.2.0.M1


When I try to parse this rule:
rule "Contains4"
	agenda-group "Contains"
	when
		$p : PetPerson ( pets.keySet excludes "dog" )
	then
		#consequence
end

I get exception:
Unable to Analyse Expression !( pets.keySet contains "dog": [Error: unbalanced braces ( ... )] [Near : {... !( pets.keySet contains "dog" ....}] ^ [Line: 1, Column: 2] : [Rule name='Contains4']

If I rewrite the rule using 'not contains' it works just fine.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list