Execute a specific business rule #4350
-
Can we execute a specific business rule? We are asked to show a broken rule message when a user leaves some textboxes. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The rules engine has methods for all rules and rules per property, but not specific rules. What is the concern with running all rules for the property? Why is it important to only have the one rule execute? |
Beta Was this translation helpful? Give feedback.
-
@Chicagoan2016 Could you set the rule you want as the lowest priorty and then StopProcessing if it fails? |
Beta Was this translation helpful? Give feedback.
I really think this is a UI concern.
Your UI code can look at the broken rules collection and filter on the rule uri to show the rule(s) you need.