[jboss-svn-commits] JBL Code SVN: r14977 - labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sun Sep 9 18:40:13 EDT 2007


Author: mark.proctor at jboss.com
Date: 2007-09-09 18:40:13 -0400 (Sun, 09 Sep 2007)
New Revision: 14977

Modified:
   labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml
Log:
JBRULES-1165 StatelessSessionResult should have getGlobal
-updated docs.

Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml
===================================================================
--- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml	2007-09-09 21:55:28 UTC (rev 14976)
+++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml	2007-09-09 22:40:13 UTC (rev 14977)
@@ -665,7 +665,8 @@
     <example>
       <title>Createing a StatelessSession</title>
 
-      <programlisting>StatelessSession session = ruleBase.newStatelessSession();</programlisting>
+      <programlisting>StatelessSession session = ruleBase.newStatelessSession();
+session.execute( new Cheese( "cheddar" ) );</programlisting>
     </example>
 
     <para>The api is reduced for the problem domain and is thus much simpler;
@@ -729,6 +730,14 @@
     Global Resolver; the later should be used with care as identifier
     instances can be changed at any time by the StatelessSession and the
     GlobalResolver may not be serialisable freindly.</para>
+
+    <example>
+      <title>GlobalExporter with StatelessSessions</title>
+
+      <programlisting>StatelessSession session = ruleBase.newStatelessSession();
+session.setGlobalExporter( new CopyIdentifiersGlobalExporter( new String[]{"list"} ) );
+StatelessSessionResult result = session.executeWithResults( new Cheese( "stilton" ) );</programlisting>
+    </example>
   </section>
 
   <section>




More information about the jboss-svn-commits mailing list