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

Matches constraint fails to match regex

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • 6.0.0.Alpha1
    • 5.0.1.FINAL
    • None
    • None

      This rule fails to evaluate correctly:

      rule "Test Regex"
      when
      $q : Query()
      $g : QueryGroup() from $q.groups
      $f : QueryFilter(name == "address", regex == true) from $g.filters
      $p : Person(address.value matches $f.value)
      then
      System.out.println("Found regex match");
      end

      I've attached an example project that reproduces the problem.

            rhn-support-tsurdilo Tihomir Surdilovic (Inactive)
            nheudecker Nick Heudecker (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

              Created:
              Updated:
              Resolved:
              Archived: