Prerequisites: A valid RuleSession
Namespaces: InRule.Runtime
Classes: RuleSession, Entity
See Also: Retrieving a Rule Application, Creating a RuleSession, Creating Entities
Execute an Independent Ruleset
int height = 30;
int width = 40;
// Create a runtime instance of the independent ruleset.
RuleSet calcAreaRuleSet = ruleSession.CreateIndependentRuleSet("CalculateArea");
// Execute the ruleset passing in the parameters
Runtime.RuleExecutionLog executionLog = calcAreaRuleSet.Execute(height, width);
Comments
0 comments
Please sign in to leave a comment.