I am facing a problem with the definition of my decision tables.
The following screenshot shows a simple example of what I want to do. Based on the input in a table I want to call a function:
But the problem I am having is, that the expression of EVERY rule that evaluates to true is executed. The Hit Policy is set to “First”, so as a result I get the right output of the table. But despite getting the right return value, every expression is evaluated.
So if I input the value “a” to the example table, it returns the value “a” corretly, but still prints out “a”, “b”, “c”, and “d”. For this example I would expect, that the evaluation only executes the first rule, so that the value “a” is returned and the only value printed out is also “a”.
Does somebody know why the expressions get executed even if the specific rule is not the actual rule that will be the result of the table?
Thanks in advance.