[rules-users] Drools in a web application

forsakendoll forsakendoll at hotmail.com
Sat Nov 9 04:24:06 EST 2013


I'm very new to drools. I know this question is really a noob question but
please bear with me. I'm using Spring MVC and I want to integrate drools
expert to my project. What I've done so far is to integrate the hello world
sample of drools expert. But now what I want to do is:

1. Send a bean to the rules for it to evaluate.
2. Modify the bean depending on the rules
3. Send it back to the controller to make a response to the user.

I was able to do the number 1. But for number 2 and 3. I don't know how to
do it. I want to have a nested rule. But now I'm only capable of doing this
rule:

global String $test;

rule "Excellent"

    when
        $m: FLTBean ( listeningScore > 85 )
        $p: FLTBean ( listeningScore < 101 )
    then
        $test = "Excellent";
        System.out.println( $test );

end

I don't know yet how can I make a nested rule. Please give me a simple
example that a newbie like me can understand.




--
View this message in context: http://drools.46999.n3.nabble.com/Drools-in-a-web-application-tp4026704.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list