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

In-Pattern RestrictionConnectiveDescrs (&& and ||) do not support bindings and restrictions at the same time

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

    XMLWordPrintable

Details

    • Workaround Exists
    • Hide

      Unless connectives are nested, "&&" can be replaced by ","
      Otherwise, bindings can be extracted from composite restriction:
      Type( $f1: field1, $f2: field2, field1 op1 expr1 && field2 op2 expr2)

      Show
      Unless connectives are nested, "&&" can be replaced by "," Otherwise, bindings can be extracted from composite restriction: Type( $f1: field1, $f2: field2, field1 op1 expr1 && field2 op2 expr2)
    • Low

    Description

      when trying to use connectives with restrictions and bindings, as in :
      Type( $f1: field1 op1 expr1 && $f2 : field2 op2 expr2)
      the fieldRestrictions are ignored by the parser and only the bindings are retained.
      Thus, reading the values of $f1 or $f2 returns the right value, but the restrictions
      (field op expr) are not generated

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            dsotty Davide Sottara (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified

                PagerDuty