I wish to use Rule# to author rules in my application using the NRules engine. Since I would like users to author their rules at runtime, I wish to know if it is possible to do something like this
When()
.Match<Customer>(() => customer)
.Exists<Order>(o => o.Customer == customer, o => o.PercentDiscount > 0.0);
Then()
.Do(_ => customer.NotifyAboutDiscount());
using Rule# ?
The example here https://github.com/NRules/NRules.Language shows me how to author a rule or rules with a single object. However, I would like to use different class objects in one rule as in the example above.
I can't find a more detailed documentation on Rule# ...