Replies: 4 comments 7 replies
-
When you say "a warning means a property should have a value for information", what exactly does that mean? From my outsider perspective, that sounds like how one would describe an information severity. Why do you consider that different from the existing information level? Perhaps some specific examples would help with determining if there might be a way to solve your use case with the existing levels. |
Beta Was this translation helpful? Give feedback.
-
We use information for information icon next to fields to show what the field means or just tips for it. We use errors for fields that are mandatory or have wrong input to prevent saving the business object, for example
We use warnings for fields that:
We worked around this using conditionals based on a boolean, but that is just on a few fields and cumbersome. |
Beta Was this translation helpful? Give feedback.
-
I had a similar use case, I used "rule chaining", if memory serves, with gateway rule (creating business objects book in Using Csla 4 series) |
Beta Was this translation helpful? Give feedback.
-
Would sub-classing CommonBusinessRule (e.g. WeightedBusinessRule) and adding a property for the weight meet your needs in a cleaner way? The code that needs to evaluate the weight can cast the business rule to the WeightedBusinessRule class when needed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently business rules only know "Error, Warning, Informational or Success" as Rule Severity.
We have business rules that result into Warnings, but there must be a weight defined, sometimes a warning means a property should have a value for information. other times a warning means the property should had a value for calculations to even continue.
I don't see a way to provide extra information (other than hacking this into the Description).
Can I override RuleResults into the Context with an extra property for "DetailedSeverity" or introduce a custom RuleSeverity?
Beta Was this translation helpful? Give feedback.
All reactions