<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>How to add more knowledge to Stateful session, post start-up</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT FACE="Arial">At present I set up a ksession like this:</FONT>
</P>

<P><FONT FACE="Courier New">KnowledgeBase kbase = &lt; call method that loads several rule files and process flow files via kbase.addKnowledgePackages(kbuilder.getKnowledgePackages()) &gt;</FONT></P>

<P><FONT FACE="Courier New">StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();</FONT>
</P>

<P><FONT FACE="Arial">Then I set globals, start one of the processes, assert facts, fire rules etc etc</FONT>
</P>

<P><FONT FACE="Arial">Later on rules fire that start some or all of the remaining pre-loaded processes, as required</FONT>
</P>

<P><FONT FACE="Arial">Is the best way to do it? Instead should I be loading additional rule and/or process files in to the ksession on the fly, rather than at the beginning, for performance/scalability reasons? (I couldn't work out how to do this without overwriting ksession).</FONT></P>

<P><FONT FACE="Arial">Thanks in anticipation,</FONT>
</P>

<P><FONT FACE="Arial">John Shepherdson</FONT>
</P>

</BODY>
</HTML>