Exception compiling rules
-------------------------
Key: JBRULES-1479
URL:
http://jira.jboss.com/jira/browse/JBRULES-1479
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.4
Reporter: Jan Boboli
Assigned To: Mark Proctor
i updated the 4.0.x branch from svn.
When compiling the rules i get the following exception:
org.drools.rule.AbstractCompositeConstraint.addConstraint(AbstractCompositeConstraint.java:88)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:328)
at
org.drools.rule.builder.PatternBuilder.buildConstraint(PatternBuilder.java:193)
at
org.drools.rule.builder.PatternBuilder.buildConstraint(PatternBuilder.java:218)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:162)
at org.drools.rule.builder.PatternBuilder.build(PatternBuilder.java:87)
at org.drools.rule.builder.GroupElementBuilder.build(GroupElementBuilder.java:69)
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:53)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
at
pl.outbox.tools.BinaryPackageBuilder.processFile(BinaryPackageBuilder.java:191)
at pl.outbox.tools.BinaryPackageBuilder.access$000(BinaryPackageBuilder.java:37)
I think it's related to MultiRestrictionFieldConstraint which extends
MutableTypeConstraint.
in method getType() it returns Constraint.ConstraintType.UNKNOWN, and
AbstractCompositeConstraint.addConstraint expects ALPHA or BETA type.
--
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