hyperjumptech / grule-rule-engine

Rule engine implementation in Golang
Other
2.16k stars 338 forks source link

How to convert this drl to grl? #383

Open 5idu opened 1 year ago

5idu commented 1 year ago

The existing drl rules are as follows, how can I convert them into grl rules:

rule "xxx"
    salience 1000
    no-loop true
    when
        o:Order(fromId == "F01")
        p:Item(brandId in ("B01"), itemSkuCode in ("1033623","1033629","201038","201035","1034540")) from o.itemSkus
    then
        p.setSupplyType("S");
        p.setProviderId("P);
end
kakaZhou719 commented 11 months ago

seems like not support traversing array