You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 20, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 20, 2026. It is now read-only.
Extended Rule Interface and Class for Generic Business Scenario:
Interface:
publicinterfaceIRule{stringRuleName{get;set;}stringSuccessEvent{get;set;}stringErrorMessage{get;set;}stringExpression{get;set;}RuleExpressionTypeRuleExpressionType{get;set;}Dictionary<string,object>Properties{get;set;}stringCategory{get;set;}// New property example}
Custom Rule Implementation:
publicclassCustomRule:IRule{publicstringRuleName{get;set;}publicstringSuccessEvent{get;set;}publicstringErrorMessage{get;set;}publicstringExpression{get;set;}publicRuleExpressionTypeRuleExpressionType{get;set;}publicDictionary<string,object>Properties{get;set;}=newDictionary<string,object>();// New propertypublicstringCategory{get;set;}}
Usage in Business:
In a business scenario, a rule might need a Category property to classify rules into different segments like "Financial", "Operational", or "Compliance". This helps in organizing and managing rules more effectively.
This change allows users to define custom rules with additional properties, such as categorization, enhancing the flexibility and applicability of the rules engine to real-world business scenarios.
Activity
asulwer commentedon Jul 8, 2024
sounds great!