Use eval() to call the java logic, but realize that by doing what you describe you're
subverting the need to use a rule engine in the first place.
--- On Tue, 5/24/11, sdinoo <sdinoo(a)gmail.com> wrote:
From: sdinoo <sdinoo(a)gmail.com>
Subject: [rules-users] Business Logic in Java
To: rules-users(a)lists.jboss.org
Date: Tuesday, May 24, 2011, 5:33 AM
I have a claim object that I want to
subject to a Rule
there is a Java class that contains the complex business
logic
Rule Class DurBusinessRules has the following method
public DurRuleResponse executeHardCodedTDAlertRule(DurClaim
incomingClaim)
DurRuleResponse is an response object that contains the
contributing claims
I want to be able to send just the incoming claim to the
Rule
and in the rule I want to print just the values from the
DurRuleResponse
object
something like
when
executeHardCodedRule(incoming claim)
then
print each contributing claim from the DurRuleResponse
end
Can someone help?
--
View this message in context:
http://drools.46999.n3.nabble.com/Business-Logic-in-Java-tp2979079p297907...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users