Thank you Wolfgang
Yes I have the global set the DRL file
I tried what you have suggested (like this) but I get a "null" when I try to
print myNdc.getNdc11()
try {
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
NdcMaster ndc11 = new NdcMaster();
ksession.setGlobal("ndc11", ndc11);
KnowledgeRuntimeLogger logger =
KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test");
// start a new process instance
ksession.insert(inClaim);
ksession.insert(claimsHistoryHelper);
//ksession.insert(historyClaims);
ksession.startProcess("com.drughistory");
ksession.fireAllRules();
NdcMaster myNdc = (NdcMaster)ksession.getGlobal("ndc11");
System.out.println(">>>>>>" + myNdc.getNdc11());
--
View this message in context:
http://drools.46999.n3.nabble.com/Accessing-globals-after-FireAllRules-tp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.