Implementing complex operators in Decision table
by pratibhapandey
I need some help in implementing complex rules in decision table..
Following are the two queries that I need to implement in decision table.
1 ----------- ((UPPER(PRODUCT_TYPE_CODE) IN ('REO', 'TRM')) OR
(UPPER(INVESTMENT_GROUP_TYPE) = 'EQUITY' AND
deal_ltv_nbi_ext_Debt <= .6)) AND
UPPER(PRIMARY_COLLATERAL_TYPE) = 'HOTEL'
2 --------------(UPPER(INVESTMENT_GROUP_TYPE) = 'EQUITY' OR
UPPER(PRODUCT_TYPE_CODE) = 'LES') AND
((UPPER(NNN_LEASE) = 'Y' AND
DECODE(ENHANCED_ITV,
NULL,
DEAL_ITV_NBI_SPP_CURR_MKT_VAL,
ENHANCED_ITV) >= .95 AND Core_Property_Type_YN = 'Y') OR
(UPPER(NNN_LEASE) = 'Y' AND
DECODE(ENHANCED_ITV,
NULL,
DEAL_ITV_NBI_SPP_CURR_MKT_VAL,
ENHANCED_ITV) >= .85 AND Core_Property_Type_YN = 'N'))
I need to use decision tables only. so do I implement them. I have attached
a decsion table in which I have to implement.
http://drools.46999.n3.nabble.com/file/n4017941/LeverageRuleSheet1.xls
LeverageRuleSheet1.xls
--
View this message in context: http://drools.46999.n3.nabble.com/Implementing-complex-operators-in-Decis...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
Declarative model does not replicate
by devan.vanreenen@gmail.com
Hi there,
I am using Guvnor 5.0.0
I have a Guvnor running in a cluster, Guvnor uses Oracle DB for the repo.
When I add rules, functions or upload a POJO model jar, the different guvnor
instances are in synch, however this is not the case for my declarative
model which is not in synch.
My apologies if this should be posted in the JackRabbit forum rather than
this one but if you have any suggestions it would be appreciated. I will
post there as well.
Many thanks
Devan
--
View this message in context: http://drools.46999.n3.nabble.com/Declarative-model-does-not-replicate-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
BigDecimal comparison
by devan.vanreenen@gmail.com
Hi there,
Please assist.
I have an object MaxCap that has a single property capAmount of type
BigDecimal.
The BigDecimal is negative
when the rule is
MaxCap( capAmount.doubleValue < 0.00 ) it doesnt fire, which I expect it
should but when the rule is
MaxCap( capAmount.doubleValue > 0.00 ) then the rules fires, so the rule
recognises my negative number as a positive one.
Any help would be appreciated.
Thanks
Devan
--
View this message in context: http://drools.46999.n3.nabble.com/BigDecimal-comparison-tp4017841.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
Else condition in drl file
by learner
Hi,
I have a scenario like
if(value == 200){
// then do something
}else if(value == 100){
// then do something
}else{
value = 0
}
I created drl with 3 rules
Rule 1 : value equal 200
Rule 2 : value equal 100
Rule 3 : value not equal to 100 or 200(ie by value!=200 & value!=100 ).
Is there a way by which I can simplify the condition in rule 3.
--
View this message in context: http://drools.46999.n3.nabble.com/Else-condition-in-drl-file-tp4017903.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months
Managing Sets of Rules
by tlee
Hi,
Are there any guidelines or recommendations for how best to isolate
different groups of rules? For example, I'm using decision tables to do
some (initially) simple inter-system value mappings/translation. The
generated rules look like this:
Decision Table 1:
rule "mapCountry"
salience 65496
when
String(toString == 'SRI LANKA')
then
result.put('countryCode', 'apac.sri-lanka');
drools.halt();
end
I will have other decision tables that also match against String values.
If I want to isolate these decision tables so that only one set of the rules
fire when calling 'execute' on the knowledge session, should I put them in
different knowledge bases? Or is there another way? Or am I going about
this the wrong way all together?
Many Thanks,
Tim.
--
View this message in context: http://drools.46999.n3.nabble.com/Managing-Sets-of-Rules-tp4017898.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 10 months