Should rules have access to parent object?

Topics: Developer Forum, Project Management Forum, User Forum
Sep 8, 2008 at 9:36 PM
While working on MVC support the above question popped into my head. Just curious, how often do people access the parent object in their rules?

Giving rules access to their parent's context makes validating rules in thin client scenarios difficult. The client almost never has access to a full model object and is instead usually limited to testing a single value at a time.

How would everyone feel about making a distinction between a 'value test' rule and a 'object context dependent rule'? This way in web/mvc support I can generate client-side scripts for all the 'value test' rules while ignoring the more complex 'object context dependent rules'.
Sep 9, 2008 at 8:29 PM
Sounds reasonable. Almost all of our complex business rules are going to require object context.