[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-1248) <literal-restriction> requires an 'value' attribute, but it can't be null
Fernando Meyer (JIRA)
jira-events at lists.jboss.org
Thu Oct 4 07:59:03 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-1248?page=all ]
Fernando Meyer resolved JBRULES-1248.
-------------------------------------
Resolution: Done
> <literal-restriction> requires an 'value' attribute, but it can't be null
> --------------------------------------------------------------------------
>
> Key: JBRULES-1248
> URL: http://jira.jboss.com/jira/browse/JBRULES-1248
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.0.MR2, 4.0.0.MR3, 4.0.0.GA, 4.0.1
> Reporter: Fernando Meyer
> Assigned To: Fernando Meyer
> Fix For: 4.0.2
>
>
> <literal-restriction> requires an 'value' attribute, but the parser fails when we use a null value.
> The parser should be able to parse this xml rule.
> <?xml version="1.0"?>
> <rule name="Check_NotNullof_rfqId">
> <rule-attribute name="agenda-group" value="Check"/>
> <lhs>
> <pattern object-type="RFQBean">
> <or-constraint-connective>
> <field-constraint field-name="m_rfqId">
> <literal-restriction evaluator="==" value="null"/>
> </field-constraint>
> <field-constraint field-name="m_rfqId">
> <literal-restriction evaluator="==" value=""/>
> </field-constraint>
> </or-constraint-connective>
> </pattern>
> </lhs>
> <rhs> response.setStatus("For RFQ Bean: The value of m_rfqId is null.");
> System.out.println(response.getStatus());
> </rhs>
> </rule>
--
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