InputProperties from BusinessRule question

InputProperties from BusinessRule question

Old forum URL:

maxal posted on Thursday, July 08, 2010


Why InputProperties is not initialized with PrimaryProperty in BusinessRule constructor. If there is specific reason for this, then it probably should be initialized with PrimaryProperty in CommonRules.Lambda.

And, on side note. Am I right that if I want to do some actions when the value of the property modified (like initialize some variables not covered by FieldManager) Lambda Rule is the easiest way to go?

RockfordLhotka replied on Thursday, July 08, 2010

The Lambda rule is really an experiment for implementing the most trivial of custom rules - I'm not entirely sure it is terribly useful to be honest.

For anything beyond the most trivial of rules, I create actual rule types.

The thing about Lambda is that it doesn't achieve any testability, so it doesn't really seem all that great to me for anything beyond super-trivial one-liner rules.

Copyright (c) Marimer LLC