All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.examples.PromotionalPricing.drt Maven / Gradle / Ivy

The newest version!
template header
age[]
priorClaims
policyType
discount

package org.drools.examples.decisiontable;

template "discounts"
age
priorClaims
policyType
discount

rule "Discounts_@{row.rowNumber}"
	
	when
		Driver(age >= @{age0}, age <= @{age1}, priorClaims == "@{priorClaims}")
		policy: Policy(type == "@{policyType}")
	then
		policy.applyDiscount(@{discount});
end
end template




© 2015 - 2025 Weber Informatics LLC | Privacy Policy