Claumir,
I'm sorry, but I was not able to reproduce the problem. Can you check
if the problem happens in the most recent version of the branch (3.0.x)?
Or maybe, if you can zip a self-contained test that I can run here,
I'm sure that it will be easy to fix in case the problem still exists.
Thank you,
Edson
PS: I added an integration test for it in 3.0.x branch anyway.
Edson Tirelli wrote:
Claumir,
It seems to be the same problem reported here:
http://jira.jboss.com/jira/browse/JBRULES-532
I will take a look at it.
Edson
PS: nice to see more brazilians using JBRules.
Claumir Claudino dos Santos wrote:
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
--
---
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3124-6000
Mobile: +55 11 9218-4151
JBoss, a division of Red Hat @ www.jboss.com
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email