[
https://jira.jboss.org/jira/browse/JBRULES-2241?page=com.atlassian.jira.p...
]
Kris Verlaenen commented on JBRULES-2241:
-----------------------------------------
Drools 5.0.1 requires the toType attribute to be present. We recently removed this
requirement (falling back to DROOLS_DEFAULT if none is present) to make the XML look
easier as the default is almost always used. The IDE has also been updated to only write
the toType if it is not the default one.
Is it possible you are using a 5.1.0.SNAPSHOT version of the IDE (which does not write the
toType attribute anymore) but are still using a 5.0.1 Drools runtime inside Eclipse?
SAXParseException : <constraint> requires a 'toType'
attribute
--------------------------------------------------------------
Key: JBRULES-2241
URL:
https://jira.jboss.org/jira/browse/JBRULES-2241
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler (flow)
Affects Versions: 5.0.1.FINAL
Environment: Windows XP, Galileo
Reporter: Marc Dzaebel
Assignee: Mark Proctor
- Create a new Drools-Project with a RuleFlow example
- Insert a split node ("Or" type) with an additional action -> end node
- Set the constraints to "always true" and reset the node to "And"
type (the constraints disappear)
After starting the process the error above occurs. However, it works if you manually
insert toType="DROOLS_DEFAULT" into the constraint nodes.
In my view, the constraint information is not completely deleted so the Generator writes
erroneous constraints
--
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