SDSD

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Sheet1

RuleSet com.baeldung.drools

com.baeldung.drools.model.Customer,
Import com.baeldung.drools.model.Customer.CustomerType

RuleTable Discount rates


NAME CONDITION CONDITION CONDITION
$customer:Customer
$customer.getY
$customer.getType() in ears() >= $customer.getYe
($param) ($param) ars() < ($param)
NAME Customer type Years Years
Individual > 3y CustomerType.INDIVIDUAL 3
Individual < 3y CustomerType.INDIVIDUAL 0 3
Business Any CustomerType.BUSINESS

Page 1
Sheet1

ACTION

$customer.setDi
scount($param);
Discount
15
5
20

Page 2

You might also like