java.lang.Double result = new java.lang.Double(0);
ksession.setGlobal("result", result);
?
penny wrote
test.java file:
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.setGlobal("result", new java.lang.Double(0));
I have used the global variable “result” in the rule file,how to use it in
the test.java file?
I need a judgement like “if(result>0)”.
--
View this message in context:
http://drools.46999.n3.nabble.com/How-to-use-Drools-s-global-object-in-a-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.