From: <jbo...@li...> - 2006-04-19 02:20:03
|
Author: mic...@jb... Date: 2006-04-18 22:19:52 -0400 (Tue, 18 Apr 2006) New Revision: 3779 Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml Log: more documentation goodness Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml 2006-04-19 01:22:48 UTC (rev 3778) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Language/Section-Query.xml 2006-04-19 02:19:52 UTC (rev 3779) @@ -7,16 +7,21 @@ <mediaobject> <imageobject> - <imagedata align="center" fileref="query.svg" format="SVG" role="" - /> + <imagedata align="center" fileref="query.svg" format="SVG" role="" /> </imageobject> <imageobject> - <imagedata align="center" fileref="query.png" format="PNG" role="" - /> + <imagedata align="center" fileref="query.png" format="PNG" role="" /> </imageobject> </mediaobject> </figure> - <para>uuuere</para> + <para>A query contains the structure of the LHS of a rule only (you don't + specify "when" or "then"). It is simply a way to query the working memory + for facts that match the conditions stated. </para> + + <para>You use WorkingMemory.getQueryResults("name") by using the query name. + This will return a list of Tuple instances. Each Tuple instance has one or + more FactHandles. To get to the original Fact object, use + WorkingMemory.getObject(factHandle).</para> </section> \ No newline at end of file |