title: Drools : Firing Rules using a Session vs WorkingMemory
body: <p>What is the difference in between these two in Drools ??
  Means taht we can fire the rules based on the </p>
  
  <p><strong>Creating the WorkingMemory from the loaded Rules RulesBase  and firing rules as shown below :</strong></p>
  
  <pre><code>WorkingMemory  workingmemory = rulebase.newWorkingMemory();
  workingmemory.fireAllRules();
  </code></pre>
  
  <p><strong>vs</strong> </p>
  
  <p><strong>Using a Session (Stateful . Stateless )  to  fire the rules  as shown</strong> </p>
  
  <pre><code>KnowledgeBase knowledgebase = createKnowledgeBase();
  StatefulKnowledgeSession session = knowledgebase.newStatefulKnowledgeSession();
  session.insert(Object);
  session.fireRules();
  </code></pre>