Search code examples
droolsredhatbusiness-rulesdrools-guvnor

Drools Decision Table using in and not in for same column


I'm working on POC using Drools decision table - Drools 6.5.4. I have a scenario where for one column i want to use both in and not in at same time.

Example :-

listOfApples in ("Apple","Banana")

listOfApples not in ("Apple","Orange")

enter image description here


Solution

  • Thanks for the answer . Tried this and it is working fine

    ContainsString $param

    not in ('A')|

    in ('A','B')|

    in ('C','D')|