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

org.drools.examples.ExamplePolicyPricing.xls Maven / Gradle / Ivy

The newest version!
??ࡱ?;??	????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????	

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Root Entry????????????????????????????????????????????????????????????????	?
?????\pCalc                                                                                                         B?a=???@?=@ 8Y"??1???Arial1???Arial1???Arial1???Arial1???Tahoma1?	?Tahoma14??Nimbus Roman No9 L14??Nimbus Roman No9 L1??Arial1&???Courier New1???Tahoma?GENERAL?@???? ? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ??? ?? ?? ? ?+?? ?? ?)?? ?? ?,?? ?? ?*?? ?? ?	?? ?? ?	??? ?? ?? ? ??? ?? L? ?? 0? ?? l??? l?? |?? |?	?Q ?? ?? l?? |?
? ? ?? l??? |?? p?? p? ?? l??? l/?? l/??(\? ??(|???)|/??(|/??|?
??|???|+
??<U? ??|? ??"|? ??*|+
??*= $1, age <= $2locationRiskProfilepriorClaimstypepolicy.setBasePrice($param);System.out.println("$param");Base pricing rulesAge BracketLocation risk profileNumber of prior claimsPolicy type applying for
Base $ AUD
Record ReasonYoung safe package18, 24LOW
COMPREHENSIVEMED
FIRE_THEFTPriors not relevant18,24Safe driver discount
Young riskHIGH
Location riskMature drivers25,30Cheapest possible25,35THIRD_PARTY	High riskRuleTable DiscountspolicyapplyDiscount($param)Promotional discount rules
Discount %Rewards for safe driversInsurance TypesPricing Brackets?
0
	?
?d????MbP?_?%???*+???&333333??'J??I????([?[???)?????????"	d,,?`?`???`?`??U}}?}}9}?}}?}?}		p}

?}p}	"
??a?a??!??????):@	?@
?@?@?@
?@?@
?@?@?@L@@?@?????????????????
?
??
?
?
 ?  ?	!!"?
#?$$$$$%%%%&?
'?
(?
(?
(?
(?
(&?
'?
''?
(?
((*?
+	?
,
?
,?
,?
,
?
,?
-?
.?
.?
.?
.?
/?
/?
	0?
	1?
	2~
	2?
	2~
	3
	4
0?

1?

5
5?

5~

6"?

70?
1?
5~
5?
5~
6?70?
1?
55?
5~
6Z7
0?

1?

8~

8?

8~

6Z?

9?
0?
2?
:~
:?
:~
3?
;0?
<?
5 ~
5?
5~
6?
?
7!?====>0?
??
8 @?
8~
A??
9!?
0"?
2#:~
:?
:~
3??
;$0?
<#5~
5?
5~
6?B0?
<#5~
5
?
5~
6:	B0?
?%8~
8?
8&~
A??
9'"?
#(?$$$&?
'?
(?
(?
(&?
''?
(?
()*?
+	?
,?
,?
,*?
-+?
.?
.?
.?
/,?
0-?
2~
2?
2~
C0?
<~
5?
5~
D
0?
<#~
5?
5~
D ??!?? 0?
 <#~
 5
?
 5~
 D!0?
!?#~
!8?
!8~
!ER?J	
	
	
!??????X?'$COMPREHENSIVEFIRE_THEFTTHIRD_PARTY	!?9?
LOWMEDHIGH	???????(	?
???
?
?f????X??P?P????????$????
??#?
??]?
??C<DA keyword of "Ruleset" means that this worksheet is a ruleset, and it has a name in the next cell across. In the following lines, we can have imports, or other ruleset directives if we need to ad them in future.

Perhaps this is not needed - ruleset name can be XLS name, and imports are not really needed most of the time.<?C????
?
?f????X??P?P????????$????
?\?O	?]?
??u<vThis is the name of the ruleset
 as it is a package name, java classes from this package are automatically accessible< u????
?
?f????X??P?P????????$????
??8??]?
??O<PLook at me !! I tell you that I am the start of a rule table, and what parameters I require !
(and their types).
The "RuleTable" keyword must appear on top of the first condition column.

You can have as many "RuleTables" as you like, just separate them by a line.

Note that all the columns to the left of this column will be ignored.<^O????
?
?f????X??P?P????????$????
?R?3t?]?
???<?Look at me !!
I tell you that I am a condition colmn. The next row down has the rule "template" and the row below that is a comment. After that, it is all rule data until an empty line !

Note that if there is no data in a row, then this condition does not apply. 

each row of rule data combines with a template to make a condition. Each row of rule data equates to a whole rule in a DRL file. 

Other column types: ACTION, NAME, PRIORITY, DURATION - refer to http://drools.org/Decision+Tables for details<?>?@
	?
?d????MbP?_?%???*+???&????????'????????(?'}?'}??)?'}?'}???"d,,?`?`???`?`??U}}U}?????
.?
/?
!?
F?
F?
F?
G?
F?
F?
F&?
F ?
F ?P?H ??0?(	?
?>?@
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
?????FMicrosoft Excel 97-TabelleBiff8???????Oh??+'??0 
p	x
??
?????????1@@?jy]T?@????-~?@?,???Michael NealeLorane McINTOSHRoot Entry?????????F@Workbook?????)CompObj????????IOle
????????????SummaryInformation(????????????P????????????????????????????????????????????????




© 2015 - 2025 Weber Informatics LLC | Privacy Policy