global-soft-ba / decisionTable

Apache License 2.0
38 stars 5 forks source link

Correctness of field datatypes and used input/output expression #3

Open markuspatrick opened 3 years ago

markuspatrick commented 3 years ago

Currently it is possible to define a field with a datatype that is incompatible with the used sfeel expression. For example you can define an arithmetic SFeel expression on a field with datatype boolean - which makes no semantic sense.

In the code the SemanticEvaluator (decisionTable/lang/sfeel/eval/SemanticEvaluator.go) is intended for this. However, this is currently not used or not implemented.