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

DSL: Adding constraints ("-") to facts with parens doesn't work correctly

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 5.1.1.FINAL
    • drools-compiler-DSL
    • None
    • Hide

      With the following DSL:
      [when][]Test=Test((t==a || t==b) && c==d)
      [when][]-test2 = e==f

      the 'when':
      Test
      -test2

      becomes:
      Test( (t==a || t==b, e==f ) && c==d)
      instead of
      Test ((t==a || t==b) && c==d, e==f)

      Workaround: add a dummy constraint to the DSL, eg.:
      [when][]Test=Test((t==a || t==b) && c==d, a==a)

      Show
      With the following DSL: [when] []Test=Test((t==a || t==b) && c==d) [when] []-test2 = e==f the 'when': Test -test2 becomes: Test( (t==a || t==b, e==f ) && c==d) instead of Test ((t==a || t==b) && c==d, e==f) Workaround: add a dummy constraint to the DSL, eg.: [when] []Test=Test((t==a || t==b) && c==d, a==a)

    Description

      With the following DSL:
      [when][]Test=Test((t==a || t==b) && c==d)
      [when][]-test2 = e==f

      the 'when':
      Test
      -test2

      becomes:
      Test( (t==a || t==b, e==f ) && c==d)
      instead of
      Test ((t==a || t==b) && c==d, e==f)

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            mwhidden_jira Michael Whidden (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty