Repository navigation
Basic Example Code doesn't compile #265
Unanswered
Julio Pozo (jpozo-hpg)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The basic example on the Wiki has 3 issues that prevent it from compiling:
Does the example code need to be revised?
This is the code:
List rules = new List();
Rule rule = new Rule();
rule.RuleName = "Test Rule";
rule.SuccessEvent = "Count is within tolerance.";
rule.ErrorMessage = "Over expected.";
rule.Expression = "count < 3";
rule.RuleExpressionType = RuleExpressionType.LambdaExpression;
rules.Add(rule);
Workflow workflow = new Workflow();
workflow.WorkflowName = "Example Workflow";
workflow.Rules = rules;
workflow.Add(workflowRule);
var bre = new RulesEngine.RulesEngine(workflow.ToArray(), null);
All reactions