Hello,

I wrote a .drl file with two simple queries, but when I run
the query "q1" (see drl file below), it always return null.

If I delete the query "q2" from file, works fine.
        
in summary: if .drl has 2 or more queries, run any query
return null.

Any ideia?

I´m using 3.0.4.

Maybe this situation is similar to threat "getQueryResults
always returns null in drools3.0.4"? who knows?

thanks in advance


DRL file:
--------------
package teste

import br.com.dynamix.rules.test.O;
import java.util.Hashtable;

        /**
        *****************************************
        **/
        rule "conta A"
        salience 15;
                when
                        $c1: O(id == "a")
                then
                    System.out.println("There is an A");
        end

        /**
        *****************************************
        **/
        rule "conta B"
        salience 10;            
                when    
                        $c1: O(id == "b")       
                then            
                    System.out.println("There is a B");
        end


        /**
        *****************************************
        **/
        query "q1"      
                c1: O(id == "a")        
        end

        /**
        *****************************************
        **/
        query "q2"      
                c2: O(id == "b")        
        end     


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to