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
dynamic input = new ExpandoObject();
input.Name = "Normal product";
var ruleParameters = new[]
{
new RuleParameter( nameof( input ), input )
};
RulesEngine.ExecuteRule("DisplayProductAvailability", ruleParameters );
Result: An exception is thrown: "Target object is not an ExpandoObject" My expection is that the RulesEngine run successfully and the RuleResult should be success for rule name "AlwaysAvailable"
Execute the workflow with two RuleParameters:
dynamic input = new ExpandoObject();
input.Name = "Normal product";
var ruleParameters = new[]
{
new RuleParameter( "empty", "" ), // empty rule parameter and not related to any rules expressions
new RuleParameter( nameof( input ), input )
};
RulesEngine.ExecuteRule("DisplayProductAvailability", ruleParameters );
Result: RulesEngine execute successfully, the first rule name is returned "AlwaysAvailable"
The text was updated successfully, but these errors were encountered:
Step to reproduce:
Result: An exception is thrown: "Target object is not an ExpandoObject"
My expection is that the RulesEngine run successfully and the RuleResult should be success for rule name "AlwaysAvailable"
Result: RulesEngine execute successfully, the first rule name is returned "AlwaysAvailable"
The text was updated successfully, but these errors were encountered: