Guided Decision Table - configuring rules on list of objects

17 views
Skip to first unread message

Cloud Techie

unread,
Apr 18, 2022, 1:22:55 PM4/18/22
to Drools Usage
Hello Team,

Please consider the following scenario

Person - has many Cars

Person.java
String name
Integer age
List<Cars> listOfCars

Cars.java
String manufacturer
String type
Integer year

If I want to setup a rule, say for insurance company
Where if the type of car is Electric then discount is 50%
How do I configure this rule within a guided decision table?
In a DRL file, I can write the java code to traverse thru the list of Cars and calculate it, but not sure if and how it can be done in a guided decision table. Any inputs or suggestions would be greatly appreciated.

Thanks & Regards,
Imran

Reply all
Reply to author
Forward
0 new messages