Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-1248

<literal-restriction> requires an 'value' attribute, but it can't be null

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.0.0.MR2, 4.0.0.MR3, 4.0.0.GA, 4.0.1
    • Fix Version/s: 4.0.2
    • Component/s: None
    • Labels:
      None

      Description

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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fmeyer Fernando Meyer
                Reporter:
                fmeyer Fernando Meyer
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: