Page 1 of 1

Extending Broadleaf Offer Rule Engine for One To Many Reln

Posted: Sun Nov 16, 2014 9:56 am
by retaildev
Hi All,

I want to extend the offer targeting functionality of Offer Admin. Here is what i would like to do..

I would like to build a rule that a particular offer is valid for customers belonging to a one particular city. My complication is how to write the field builder in "CustomerFieldServiceImpl". Currently, all *FieldServiceImpl have fields which are One-To-One, in my condition, address is a list in CustomerImpl.

Can someone point me out how to achieve this, considering the robust rule engine, this would not be very difficult.

Thanks
Dev

Re: Extending Broadleaf Offer Rule Engine for One To Many Reln

Posted: Tue Dec 02, 2014 8:23 pm
by phillipuniverse
As of 3.0.14-GA and 3.1.9-GA (just released) we added back the ability to create rules based on List<String>: https://github.com/BroadleafCommerce/Br ... issues/949.

However, rules based on complex Java objects is still an issue as tracked in https://github.com/BroadleafCommerce/Br ... issues/210.