Rule Formula validation

Formula parsing

Formula validation

Formula translation

The original formula defining the Rule is stored as a text field, but is changed into a canonical format (reduced to consistent operators), in order to optimise system performance and any future validation and parsing requirements.

For example, “ABS= ‘Yes’ & EngineSize EQ 1300”
is stored as “(ABS= ‘Yes’) AND (ENGINESIZE = 1300)”.

Valid characters are replaced as follows.

Characters

Replaced by

EQ, =

=

LE, <=, =<

<=

LT, <

GT, >

> 

GE, =>, >=

>=

NE, ><, <>, !=

<> 

IN

IN

AND, &

AND

OR, |

OR

SPECIFIED

SPECIFIED

NOT

NOT

The “compiled” formula is stored in a special format for easy and quick referencing to the Options and, if defined, Allowed Values contained within the formula. This reduces the need to interpret the formula every time it is used.

Conventions