[jboss-svn-commits] JBL Code SVN: r26272 - in labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook: images/Chapter-Rule_Language and 1 other directory.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Apr 27 05:25:51 EDT 2009
Author: laune
Date: 2009-04-27 05:25:51 -0400 (Mon, 27 Apr 2009)
New Revision: 26272
Modified:
labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml
labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/images/Chapter-Rule_Language/package.png
Log:
remove expander, add rule attrs/package level
Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml 2009-04-26 18:44:37 UTC (rev 26271)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml 2009-04-27 09:25:51 UTC (rev 26272)
@@ -28,8 +28,8 @@
using standard Java conventions for package names; i.e., no spaces, unlike
rule names which allow spaces. In terms of the order of elements, they can
appear in any order in the rule file, with the exception of the <kw>package</kw>
- and <kw>expander</kw> statements being at the top of the file, before any rules
- appear. In all cases, the semicolons are optional.</para>
+ statement, which must be at the top of the file. In all cases, the semicolons are
+ optional.</para>
<figure>
<title>package</title>
@@ -42,6 +42,11 @@
</mediaobject>
</figure>
+ <para>Notice that any rule atttribute (as described the section Rule Attributes)
+ may also be written at package level, superseding the attribute's default value.
+ The modified default may still be replaced by an attribute setting within
+ a rule.</para>
+
<section>
<title>import</title>
@@ -64,30 +69,6 @@
</section>
<section>
- <title>expander</title>
-
- <figure>
- <title>expander</title>
-
- <mediaobject>
-
- <imageobject>
- <imagedata fileref="images/Chapter-Rule_Language/expander.png" format="PNG" />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The optional expander statement is used to specify domain specific
- language (DSL) configurations, which are normally stored in a separate
- file. This provides clues to the parser how to understand such
- specific text in your rules. Since Drools 4.0, the expander declaration
- is mandatory for the tools to provide context sensitive assistance and to
- avoid error reporting. The API, however, allows the program to apply
- DSL templates even if the expanders are not declared in the source
- file.</para>
- </section>
-
- <section>
<title>global</title>
<figure>
Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/images/Chapter-Rule_Language/package.png
===================================================================
(Binary files differ)
More information about the jboss-svn-commits
mailing list