Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-81

A rule does not fire when String type coercion used in its pattern

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0, 7.0.0.GA
    • 6.x.x
    • BRE
    • ER2
    • Hide

      Avoid automatic type conversion and use stringAttrib == "stringValue" notation only.

      Show
      Avoid automatic type conversion and use stringAttrib == "stringValue" notation only.

      Rules are fired inconsistently if we have a mix of pattern checks in the LHS of multiple rules, eg:

        rule "rule12"
        when 
           Line(type="12")
      ...
      
        rule "rule11"
        when 
           Line(type=11)
      ...
      
        rule "rule11a"
        when 
           Line(type="11")
      

      Note that type is a String property. If we insert a Line object with type="11", we expect the two rules to be fired. However, only one rule is fired.

              mfusco@redhat.com Mario Fusco
              rhn-support-mputz Martin Weiler (Inactive)
              Tibor Zimányi Tibor Zimányi
              Tibor Zimányi Tibor Zimányi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: