[rules-users] Business Logic in Java

Greg Barton greg_barton at yahoo.com
Tue May 24 12:48:09 EDT 2011


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 at gmail.com> wrote:

> From: sdinoo <sdinoo at gmail.com>
> Subject: [rules-users] Business Logic in Java
> To: rules-users at 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-tp2979079p2979079.html
> Sent from the Drools: User forum mailing list archive at
> Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 



More information about the rules-users mailing list