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

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

The newest version!
template header
age[]
profile
priorClaims
policyType
base
reason

package org.drools.examples.decisiontable;

template "Pricing bracket"
age
policyType
base

rule "Pricing bracket_@{row.rowNumber}"
	
	when
		Driver(age >= @{age0}, age <= @{age1}
			, priorClaims == "@{priorClaims}"
			, locationRiskProfile == "@{profile}"
		)
		policy: Policy(type == "@{policyType}")
	then
		policy.setBasePrice(@{base});
		System.out.println("@{reason}");
end
end template




© 2015 - 2025 Weber Informatics LLC | Privacy Policy