[rules-users] getWorkingMemoryEntryPoint returns NULL

Malinda Kaushalye kaushalye at yahoo.com
Tue Feb 16 20:16:39 EST 2010


Dear All,
It appears to be that the getWorkingMemoryEntryPoint() method returns NULL in my code given below. 
Note that EventProcessingOption = STREAM and ClockType = "realtime" if that is of any importance.
Cheers,
Malinda

public class EventKnowledgeBase { private  KnowledgeBase kbase = null; private  StatefulKnowledgeSession ksession = null; private  WorkingMemoryEntryPoint globalStream = null; 
public EventKnowledgeBase() throws Exception {
super();
kbase = readKnowledgeBase();
ksession = kbase.newStatefulKnowledgeSession(); 
KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
config.setOption( EventProcessingOption.STREAM ); 
KnowledgeSessionConfiguration kbSessionConfig = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
kbSessionConfig.setOption( ClockTypeOption.get("realtime") );
globalStream = ksession.getWorkingMemoryEntryPoint( "global" );
if(null == globalStream){
System.out.println("WorkingMemoryEntryPoint is Null"); //YEAH..!  IT RETURNS NULL
}
}

 
}


      





More information about the rules-users mailing list