Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 7.0.1.GA, 7.6.0.GA
    • Fix Version/s: 7.7.0.GA
    • Component/s: BRE
    • Labels:
    • Environment:

      Occurring in all environments

    • Target Release:
    • Fix Build:
      CR1
    • Steps to Reproduce:
      Hide

      Drl used:
      package com.rule;
      import com.rule.Person;
      rule "Sample Rule"
      salience 13
      dialect "mvel"
      when
      $person:Person(!(name in ('value1','value2','value3'))) // doesnt work

      //$person:Person((name in ('value1','value2','value3'))) // Works without ! symbol
      then
      $person.status = "active";
      end

      "Note: I know if i use 'not in' operator which gives the expected result. In my use case i want to use ! and i don't want to change the condition to $person:Person((name not in ('value1','value2','value3'))) to achieve same behaviour."

      Show
      Drl used: package com.rule; import com.rule.Person; rule "Sample Rule" salience 13 dialect "mvel" when $person:Person(!(name in ('value1','value2','value3'))) // doesnt work //$person:Person((name in ('value1','value2','value3'))) // Works without ! symbol then $person.status = "active"; end "Note: I know if i use 'not in' operator which gives the expected result. In my use case i want to use ! and i don't want to change the condition to $person:Person((name not in ('value1','value2','value3'))) to achieve same behaviour."
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      The customer can use instead "Not In" operator

      Show
      The customer can use instead "Not In" operator
    • Affects:
      Release Notes
    • Sprint:
      2020 Week 04-06 (from Jan 20)
    • QE Test Coverage:
      +

      Description

      Use case: The drls are built dynamically and want to use ! along with In,not in and other operators.

      Error:
      " Unable to Analyse Expression !(name in ("value1","value2","value3")):
      [Error: unexpected token: ]
      [Near :

      {... !(name in ("value1","value2"," ....}

      ] "

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mfusco Mario Fusco
                  Reporter:
                  rhn-support-luzrodri Luz Rodriguez
                  Tester:
                  Daniel Rosa
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: