Business Rules that are inside an object #3569
-
We have a few objects with business rules defined inside these objects and no other objects can call these 'inside' rules (they are private). Kind Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
iirc, the RuleUri is only really used when building a list of broken rules, and exists so that the consumer of that list of broken rules has some unique way of identifying each broken rule. In other words, the list could contain a number of broken "required" rules, and the only way to know which broken rule applies to which property(ies) is via the RuleUri. If you aren't using any of the features where you get a list of broken rules for an object or object graph, then the RuleUri (I think) isn't used at all. |
Beta Was this translation helpful? Give feedback.
iirc, the RuleUri is only really used when building a list of broken rules, and exists so that the consumer of that list of broken rules has some unique way of identifying each broken rule.
In other words, the list could contain a number of broken "required" rules, and the only way to know which broken rule applies to which property(ies) is via the RuleUri.
If you aren't using any of the features where you get a list of broken rules for an object or object graph, then the RuleUri (I think) isn't used at all.