Executing an Independent Rule Set or Rule Flow

  • Updated

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);

Was this article helpful?

0 out of 0 found this helpful



Please sign in to leave a comment.