gorules/zen

And/Or operator not working in array filter inside input cell

Closed this issue · 5 comments

Hey guys,

Can it be that and/or operators are not working when used in an array filter inside an input cell?

If tried the folllowing expression:

image

The left side in the input cell doesn't evaluate to true, while the right side in the output cell the same expression does evaluate to true (remove one of the conditions on the left to see).

Here's the simple json to test:

  "items": [
    {
      "id": 1,
      "name": "test_1"
    },
    {
      "id": 2,
      "name": "test_2"
    },
  ],
}```



[graph.json](https://github.com/gorules/zen/files/15429285/graph.json)

Hi, above does not work as you are in unary mode as soon as you declare a selector for a column.

See below:
image

In the expression it's quite easy to see that everything is okay. See below table without selector:

image

Which resolves the issue.

Hi Stefan.

Thanks for the quick reply!

Not exactly sure I understand how this is supposed to work.

Should I pass the expressions through a expressions node before hitting the decisionTable like so:

image

And the evaluate the output of the expression in the individual table cells?

Nevermind I think I get it :)

Hi, can we close this? It works in expression mode, not in unary mode

Yes sure, thanks.