@@ -37,6 +37,8 @@ RulesEngine is a highly extensible library to build rule based system using C# e
3737 - [ Steps to use a custom Action] ( #steps-to-use-a-custom-action )
3838- [ Standalone Expression Evaluator] ( #standalone-expression-evaluator )
3939 - [ Usage] ( #usage-2 )
40+ - [ Settings] ( #settings )
41+ - [ NestedRuleExecutionMode] ( #nestedruleexecutionmode )
4042
4143
4244
@@ -555,3 +557,29 @@ This will output "Hello World"
555557
556558For more advanced usage , refer - https :// dotnetfiddle.net/KSX8i0
557559
560+ ## Settings
561+ RulesEngine allows you to pass optional `ReSettings ` in constructor to specify certain configuration for RulesEngine .
562+
563+ Here are the all the options available :-
564+
565+
566+ | Property | Type | Default Value | Description |
567+ | --- | --- | --- | --- |
568+ | `CustomTypes ` | `Type []` | N /A | Custom types to be used in rule expressions . |
569+ | `CustomActions ` | `Dictionary <string , Func <ActionBase >>` | N /A | Custom actions that can be used in the rules . |
570+ | `EnableExceptionAsErrorMessage ` | `bool ` | `true ` | If `true `, returns any exception occurred while rule execution as an error message . Otherwise , throws an exception . This setting is only applicable if `IgnoreException ` is set to `false `. |
571+ | `IgnoreException ` | `bool ` | `false ` | If `true `, it will ignore any exception thrown with rule compilation /execution . |
572+ | `EnableFormattedErrorMessage ` | `bool ` | `true ` | Enables error message formatting . |
573+ | `EnableScopedParams ` | `bool ` | `true ` | Enables global parameters and local parameters for rules . |
574+ | `IsExpressionCaseSensitive ` | `bool ` | `false ` | Sets whether expressions are case sensitive . |
575+ | `AutoRegisterInputType ` | `bool ` | `true ` | Auto registers input type in custom type to allow calling method on type . |
576+ | `NestedRuleExecutionMode ` | `NestedRuleExecutionMode ` | `All ` | Sets the mode for nested rule execution . |
577+ | `CacheConfig ` | `MemCacheConfig ` | N /A | Configures the memory cache . |
578+ | `UseFastExpressionCompiler ` | `bool ` | `true ` | Whether to use FastExpressionCompiler for rule compilation . |
579+
580+
581+ ### NestedRuleExecutionMode
582+ | Value | Description |
583+ | --- | --- |
584+ | `All ` | Executes all nested rules . |
585+ | `Performance ` | Skips nested rules whose execution does not impact parent rule 's result . |
0 commit comments