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

MatchesConstraint and NotMatchesConstraint create inverse verifier rules.

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

    XMLWordPrintable

Details

    • Low

    Description

      When creating a MatchesConstraint for a Field, verifier should fails when the Fails doesn't match the pattern. Right now it is working in the opposite way.
      Same happens with NotMatchesConstraint.
      i.e. Here is a part of the verifier rule Generated by NotMatchesConstraint when I defined a Constraint dictating: 'Person's name should not matches "^[A-Z].*$"'
      $restriction :LiteralRestriction(
      fieldPath == $field.path,
      valueAsString not matches "^[A-Z].*$"

      )
      Because I want verifier to fail when the name doesn't matches "[A-Z].$", the generated verifier rule should be: valueAsString matches "[A-Z].$"

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            esteban.aliverti@gmail.com Esteban Aliverti (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty