Hi Wolfgang,
Thank you for your advice! Indeed, this logic is part of my application
domain.
Best regards,
Bruno.
Wolfgang Laun a écrit :
The initially posted rules "1" and "2" are best
practice. You are using a
Production Rule Engine, and these rules are what they are made for.
Doing it in an event handler is not impossible, but it requires you to
implement logic which is (apparently) part of the application domain
("There must not be a T without at least one I." and "There must not
be an I
without its T.") and, moreover, logic which is readily available by
the Engine's
workings.
Don't reinvent the wheel, just start rolling along.
-W