---
# System prepended metadata

title: Untitled

---

package com.myspace.ccd_project;

//from row number: 1
//Standard costumer low risk
rule "Row 1 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Standard" )
		data : FraudData( totalFraudAmount >= 0.0 , totalFraudAmount < 100.0 )
	then
		data.setDisputeRiskRating( 0 );
end

//from row number: 2
//Standard customer medium risk
rule "Row 2 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Standard" )
		data : FraudData( totalFraudAmount >= 100.0 , totalFraudAmount < 500.0 )
	then
		data.setDisputeRiskRating( 1 );
end

//from row number: 3
//Standard customer high risk 
rule "Row 3 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Standard" )
		data : FraudData( totalFraudAmount >= 500.0 )
	then
		data.setDisputeRiskRating( 2 );
end

//from row number: 4
//Silver customer low risk 
rule "Row 4 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Silver" )
		data : FraudData( totalFraudAmount >= 0.0 , totalFraudAmount < 250.0 )
	then
		data.setDisputeRiskRating( 0 );
end

//from row number: 5
//Silver customer medium risk 
rule "Row 5 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Silver" )
		data : FraudData( totalFraudAmount >= 250.0 , totalFraudAmount < 500.0 )
	then
		data.setDisputeRiskRating( 1 );
end

//from row number: 6
//Silver customer high risk
rule "Row 6 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Silver" )
		data : FraudData( totalFraudAmount >= 500.0 )
	then
		data.setDisputeRiskRating( 2 );
end

//from row number: 7
//Gold customer low risk
rule "Row 7 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Gold" )
		data : FraudData( totalFraudAmount >= 0.0 , totalFraudAmount < 500.0 )
	then
		data.setDisputeRiskRating( 0 );
end

//from row number: 8
//Gold customer medium risk 
rule "Row 8 risk-evaluation"
	ruleflow-group "risk-evaluation"
	dialect "mvel"
	when
		holder : CreditCardHolder( status == "Gold" )
		data : FraudData( totalFraudAmount >= 500.0 )
	then
		data.setDisputeRiskRating( 1 );
end

