[jboss-jira] [JBoss JIRA] Created: (JBRULES-1437) DOT notation gives an error

Toni Rikkola (JIRA) jira-events at lists.jboss.org
Fri Jan 25 12:18:22 EST 2008


DOT notation gives an error
---------------------------

                 Key: JBRULES-1437
                 URL: http://jira.jboss.com/jira/browse/JBRULES-1437
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Reteoo
    Affects Versions: 4.0.4
            Reporter: Toni Rikkola


Following rule gave an java.lang.ClassCastException: org.drools.analytics.report.components.RedundancyShadowProxy cannot be cast to org.drools.analytics.components.RulePossibility exeption.

The bug was found when creating subsumption rules for analytics.

rule "Find subsumptant rule possibilities"
	when
		$redundancy :Redundancy(
			left.causeType == CauseType.RULE,
			$leftRuleId :left.id,
			$rightRuleId :right.id
		)
 
		# Find two RulePossibilities.
		$rp1 :RulePossibility(
			ruleId == $leftRuleId
		)
		$rp2 :RulePossibility(
			ruleId == $rightRuleId
		)
 
		# For every pattern possibility in $rp1 there is a redundant pattern possibility in $rp2.
		forall(
			$pp :PatternPossibility(
				ruleId == $rp1.ruleId,
				this memberOf $rp1.items
			)
		)
 
		exists( 
				Subsumption(
				)
			or
				Redundancy(
				)
		)
 
 
	then
		System.out.println("pim");
end


First tought that this was caused by or operator in exists, but tirelli found out that it is caused by a DOT notation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list