How to apply conditions on two different models in .rul file

Skip to first unread message

Suresh Kumar

Aug 9, 2019, 4:01:18 AM8/9/19
to NRules Users
Hi Sergiy,

I am new to NRules world, but started to working .rul file. I have some doubts on writing conditions in .rul file.

Step1 : Have two models 1.Customer, 2.Order
Step2: Need to create conditions like below
         ( Customer(c=>c.IsPreferred) && Order (o=>o.Amount>100) ) || (Customer(x=>x.Name!="Bank")))
Step3: When i parse the above condition in NRules its throwing exception.

Please help me how to write this one, Thanks

Reply all
Reply to author
0 new messages