[jboss-svn-commits] JBL Code SVN: r15243 - labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Sep 19 17:37:21 EDT 2007
Author: mark.proctor at jboss.com
Date: 2007-09-19 17:37:21 -0400 (Wed, 19 Sep 2007)
New Revision: 15243
Added:
labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples/honest_politician_audit.png
Modified:
labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples/Section-Examples.xml
Log:
-Finished documenting the honest politician example
Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples/Section-Examples.xml
===================================================================
--- labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples/Section-Examples.xml 2007-09-19 20:13:16 UTC (rev 15242)
+++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples/Section-Examples.xml 2007-09-19 21:37:21 UTC (rev 15243)
@@ -958,6 +958,15 @@
end</programlisting>
</example>
+ <para>Now that hope exists and we have, at the start, four honest
+ politicians we have 4 activations for this rule all in conflict. This rule
+ iterates over those rules firing each one in turn, corrupting each
+ politician so that they are no longer honest. When all four politicians
+ have been corrupted we have no politicians with the property "honest ==
+ true" thus the rule "We hvae an honest Politician" is no longer true and
+ the object it logical inserts "new Hope()" is automatically
+ retracted.</para>
+
<example>
<title>Honest Politician Example : Rule "Corrupt the Honest"</title>
@@ -971,6 +980,10 @@
end</programlisting>
</example>
+ <para>With Hope being automatically retracted, via the truth maintenance
+ system, then Hope no longer exists in the system and this rule will match
+ and fire.</para>
+
<example>
<title>Honest Politician Example : Rule "Hope is Dead"</title>
@@ -981,6 +994,18 @@
System.out.println( "We are all Doomed!!! Democracy is Dead" );
end</programlisting>
</example>
+
+ <para>lets take a look the audit trail for this application:</para>
+
+ <figure>
+ <title>Honest Politician Example Audit View</title>
+
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="fibonacci_agenda2.png" />
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
<section>
Added: labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples/honest_politician_audit.png
===================================================================
(Binary files differ)
Property changes on: labs/jbossrules/trunk/documentation/manual/en/Chapter-Examples/honest_politician_audit.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the jboss-svn-commits
mailing list