Hi,

I'm adding support for "otherwise" to (for the time being) the guided decision table in Guvnor.

The idea being if you set a cell to represent "otherwise" the generated rule is the opposite of the accumulation of the other cells; perhaps best explained with an example:-

Person( name == )
Mark
Kris
Geoffrey
<otherwise>

This would generate:-

Person(name not in ("Mark", "Kris", "Geoffrey")

Equals is the simple example, this is my thoughts for the other operators we might like to support:-

For example:-

Person ( age < )
10
20
30
<otherwise>

Person ( age >= 30 )

For example:-

Person ( name in )
Jim, Jack
Lisa, Jane, Paul
<otherwise>

Person ( name not in ("Jim", "Jack", "Lisa", "Jane", "Paul" ) )

Person ( name soundslike )
Fred
Phil

not Person ( name soundslike "Fred" || soundslike "Phil" )


Would this be considered the most suitable approach?

Inputs and thoughts welcome.

Thanks,

Mike