using rulesengine;
using System;
using System.Collections.Generic;
using System.Linq;
rule "Order Discount"
when
var customer = Customer(x => x.IsPreferred);
var order = Order(x => !x.IsDiscounted, x => x.Quantity > 10);
then
order.PercentDiscount = 5.0;
customer.RuleComment= "some comment";
customer.Comments.Add("some changes");
Context.Insert(customer.Comments);
Load("some string");
public static void Load(string str)
{
}
Hi Sergiy,
Above is me rul file, Wanted to know if calling method inside the rul file is allowed/suported (tried non static method as well) and also wanted to know if List namespace is allowed.