[jboss-jira] [JBoss JIRA] Created: (JBRULES-3083) DecisionTable incorrectly parsed with 5.2.0.CR1

Kara Melba (JIRA) jira-events at lists.jboss.org
Wed Jun 15 04:58:29 EDT 2011


DecisionTable incorrectly parsed with 5.2.0.CR1
-----------------------------------------------

                 Key: JBRULES-3083
                 URL: https://issues.jboss.org/browse/JBRULES-3083
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 5.2.0.CR1
            Reporter: Kara Melba
            Assignee: Mark Proctor




5.2.0.CR1 creates incorrect drl from decition table. With 5.1.0.M1 the drl for the same decision tables is correct.

Wrong DRL from 5.2.0.CR1:
rule "ProcessState"
	salience 65522
	ruleflow-group "CompleteSubOrder"
	activation-group "ProcessState"
	when
		$m:ModifiedMarker(processState==null, state ==null)
$s:SubOrder
	then
		$m.setIsModified(true);
$s.setProcessState(ProcessState.CREATED);
		
end

Correct DRL with 5.1.0.M1:
rule "ProcessState"
	salience 65522
	ruleflow-group "CompleteSubOrder"
	activation-group "ProcessState"
	when
		$m:ModifiedMarker()
$s:SubOrder(processState==null, state ==null)
	then
		$m.setIsModified(true);
$s.setProcessState(ProcessState.CREATED);
		
end

--
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