[seam-commits] Seam SVN: r11108 - in branches/community/Seam_2_1/doc/Seam_Reference_Guide: bn-IN and 22 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Jun 10 11:00:03 EDT 2009
Author: nico.ben
Date: 2009-06-10 11:00:02 -0400 (Wed, 10 Jun 2009)
New Revision: 11108
Modified:
branches/community/Seam_2_1/doc/Seam_Reference_Guide/as-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/bn-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/de-DE/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-ES/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-MX/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/fr-FR/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/gu-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/hi-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/ja-JP/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/kn-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/ko-KR/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/ml-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/mr-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/or-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pa-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Annotations.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Author_Group.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Book_Info.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Cache.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Components.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Concepts.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Configuration.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Controls.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Conversations.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Dependencies.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Drools.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Elenhancements.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Events.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Excel.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Feedback.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Framework.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gettingstarted.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Glassfish.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Groovy.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Guice.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gwt.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Hsearch.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/I18n.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Itext.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jbpm.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jms.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Mail.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Performance.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Persistence.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Preface.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Remoting.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Revision_History.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Rss.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Security.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Spring.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Testing.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Text.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tools.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tutorial.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Validation.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Weblogic.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Webservices.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Websphere.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Wicket.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Xml.pot
branches/community/Seam_2_1/doc/Seam_Reference_Guide/pt-BR/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/ru-RU/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/si-LK/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/sl-SL/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/ta-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/te-IN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-CN/Drools.po
branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-TW/Drools.po
Log:
POT and PO regeneration
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/as-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/as-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/as-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/bn-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/bn-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/bn-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/de-DE/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/de-DE/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/de-DE/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-ES/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-ES/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-ES/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-MX/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-MX/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/es-MX/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: Seam_-_Contextual_Components VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-11-06 00:09+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/fr-FR/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/fr-FR/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/fr-FR/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/gu-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/gu-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/gu-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/hi-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/hi-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/hi-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/ja-JP/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/ja-JP/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/ja-JP/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -4,7 +4,7 @@
msgstr ""
"Project-Id-Version: Drools\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-03-22 12:51+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2009-03-04 12:55+1000\n"
"Last-Translator: Noriko Mizumoto <noriko at redhat.com>\n"
"Language-Team: Japanese <fedora-trans-ja at redhat.com>\n"
@@ -69,12 +69,13 @@
#. Tag: para
#: Drools.xml:24
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
"このコンポーネントは、<literal>.drl</literal> ファイル一式からルールをコンパ"
"イルし、 Seam <literal>APPLICATION</literal> コンテキストの <literal>org."
@@ -84,9 +85,9 @@
#. Tag: para
#: Drools.xml:32
-#, no-c-format
+#, fuzzy, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr "Drools DSLを利用するのであれば DSL 定義も指定しなければなりません。"
#. Tag: programlisting
@@ -111,6 +112,66 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, fuzzy, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -125,7 +186,7 @@
"です。"
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -137,7 +198,7 @@
">]]>"
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -147,7 +208,7 @@
"Drools サンプルディストリビューションからの設定ファイルの例を示します。"
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -167,7 +228,7 @@
"name=insuranceconfig"
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -177,7 +238,7 @@
"す。"
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -197,7 +258,7 @@
" configuration-name=\"insuranceconfig\" />]]>"
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -209,7 +270,7 @@
"対話に関連する fact を蓄積します。)"
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -219,7 +280,7 @@
"auto-create=\"true\" rule-base=\"#{policyPricingRules}\"/>]]>"
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -230,14 +291,36 @@
"literal> 設定プロパティにより、 RuleBase への参照を与えていることに留意してく"
"ださい。"
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr "Seam コンポーネントからのルールを使用する"
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -247,7 +330,7 @@
"トし、 fact をアサートし、そしてルールを実行することができます。"
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -275,13 +358,13 @@
"}]]>"
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr "jBPM プロセス定義からのルールを使用する"
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, fuzzy, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -293,7 +376,7 @@
"たはビジネスプロセス定義のどちらでも可。"
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -353,7 +436,7 @@
"</decision>]]>"
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -365,13 +448,13 @@
"合または 1 オブジェクトを返す EL 式を指定します。"
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr "jBPM タスク割り当てのために Drools の使用もサポートしています。"
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -411,7 +494,7 @@
"</task-node>]]>"
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -431,7 +514,7 @@
"です。"
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -463,7 +546,7 @@
"end]]>"
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -493,7 +576,7 @@
"end]]>"
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -503,7 +586,7 @@
"ださい。"
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -515,7 +598,7 @@
"ドしてから必要に応じて追加の依存性を追加してください。"
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/kn-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/kn-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/kn-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/ko-KR/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/ko-KR/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/ko-KR/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/ml-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/ml-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/ml-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/mr-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/mr-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/mr-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/or-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/or-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/or-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pa-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pa-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pa-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Annotations.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Annotations.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Annotations.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Author_Group.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Author_Group.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Author_Group.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Book_Info.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Book_Info.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Book_Info.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Cache.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Cache.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Cache.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/ClusteringAndEJBPassivation.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Components.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Components.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Components.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Concepts.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Concepts.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Concepts.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Configuration.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Configuration.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Configuration.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Controls.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Controls.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Controls.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Conversations.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Conversations.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Conversations.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Dependencies.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Dependencies.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Dependencies.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Drools.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Drools.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Drools.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
@@ -60,17 +60,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -89,6 +90,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -97,7 +152,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -106,7 +161,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -114,7 +169,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -127,7 +182,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -135,7 +190,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -148,7 +203,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -157,7 +212,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -165,7 +220,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -173,14 +228,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -188,7 +265,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -205,13 +282,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -220,7 +297,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -253,7 +330,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -262,13 +339,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -291,7 +368,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -304,7 +381,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -323,7 +400,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -341,7 +418,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -349,7 +426,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -358,7 +435,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Elenhancements.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Elenhancements.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Elenhancements.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Events.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Events.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Events.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:18+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Excel.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Excel.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Excel.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Feedback.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Feedback.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Feedback.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Framework.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Framework.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Framework.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Getting_Started_With_JBoss_Tools.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gettingstarted.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gettingstarted.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gettingstarted.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Glassfish.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Glassfish.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Glassfish.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Groovy.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Groovy.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Groovy.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Guice.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Guice.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Guice.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gwt.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gwt.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Gwt.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Hsearch.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Hsearch.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Hsearch.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/I18n.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/I18n.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/I18n.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Itext.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Itext.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Itext.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jbpm.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jbpm.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jbpm.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jms.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jms.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Jms.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Mail.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Mail.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Mail.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Performance.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Performance.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Performance.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Persistence.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Persistence.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Persistence.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Preface.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Preface.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Preface.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Remoting.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Remoting.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Remoting.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Revision_History.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Revision_History.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Revision_History.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Rss.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Rss.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Rss.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Security.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Security.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Security.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Spring.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Spring.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Spring.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Testing.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Testing.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Testing.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Text.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Text.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Text.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tools.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tools.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tools.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tutorial.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tutorial.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Tutorial.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Validation.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Validation.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Validation.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:19+0000\n"
+"POT-Creation-Date: 2009-06-10 14:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Weblogic.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Weblogic.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Weblogic.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:20+0000\n"
+"POT-Creation-Date: 2009-06-10 14:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Webservices.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Webservices.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Webservices.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:20+0000\n"
+"POT-Creation-Date: 2009-06-10 14:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Websphere.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Websphere.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Websphere.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:20+0000\n"
+"POT-Creation-Date: 2009-06-10 14:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Wicket.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Wicket.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Wicket.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:20+0000\n"
+"POT-Creation-Date: 2009-06-10 14:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Xml.pot
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Xml.pot 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pot/Xml.pot 2009-06-10 15:00:02 UTC (rev 11108)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-06-06 10:20+0000\n"
+"POT-Creation-Date: 2009-06-10 14:43+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc at kde.org>\n"
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/pt-BR/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/pt-BR/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/pt-BR/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/ru-RU/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/ru-RU/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/ru-RU/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/si-LK/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/si-LK/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/si-LK/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/sl-SL/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/sl-SL/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/sl-SL/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-21 00:37+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/ta-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/ta-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/ta-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/te-IN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/te-IN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/te-IN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-CN/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-CN/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-CN/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-TW/Drools.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-TW/Drools.po 2009-06-10 14:59:17 UTC (rev 11107)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/zh-TW/Drools.po 2009-06-10 15:00:02 UTC (rev 11108)
@@ -5,7 +5,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
-"POT-Creation-Date: 2009-01-18 15:00+0000\n"
+"POT-Creation-Date: 2009-06-10 14:42+0000\n"
"PO-Revision-Date: 2008-04-04 01:24+0000\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
@@ -59,17 +59,18 @@
#: Drools.xml:24
#, no-c-format
msgid ""
-"This component compiles rules from a set of <literal>.drl</literal> files "
-"and caches an instance of <literal>org.drools.RuleBase</literal> in the Seam "
-"<literal>APPLICATION</literal> context. Note that it is quite likely that "
-"you will need to install multiple rule bases in a rule-driven application."
+"This component compiles rules from a set of DRL (<literal>.drl</literal>) or "
+"decision table (<literal>.xls</literal>) files and caches an instance of "
+"<literal>org.drools.RuleBase</literal> in the Seam <literal>APPLICATION</"
+"literal> context. Note that it is quite likely that you will need to install "
+"multiple rule bases in a rule-driven application."
msgstr ""
#. Tag: para
#: Drools.xml:32
#, no-c-format
msgid ""
-"If you want to use a Drools DSL, you alse need to specify the DSL definition:"
+"If you want to use a Drools DSL, you also need to specify the DSL definition:"
msgstr ""
#. Tag: programlisting
@@ -88,6 +89,60 @@
#: Drools.xml:39
#, no-c-format
msgid ""
+"If you want to register a custom consequence exception handler through the "
+"RuleBaseConfiguration, you need to write the handler, for example:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:44
+#, no-c-format
+msgid ""
+"<![CDATA[@Scope(ScopeType.APPLICATION)\n"
+"@Startup\n"
+"@Name(\"myConsequenceExceptionHandler\")\n"
+"public class MyConsequenceExceptionHandler implements "
+"ConsequenceExceptionHandler, Externalizable {\n"
+"\n"
+" public void readExternal(ObjectInput in) throws IOException, "
+"ClassNotFoundException {\n"
+" }\n"
+"\n"
+" public void writeExternal(ObjectOutput out) throws IOException {\n"
+" }\n"
+"\n"
+" public void handleException(Activation activation,\n"
+" WorkingMemory workingMemory,\n"
+" Exception exception) {\n"
+" throw new ConsequenceException( exception,\n"
+" activation.getRule() );\n"
+" }\n"
+"\n"
+"}]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:46
+#, no-c-format
+msgid "and register it:"
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:49
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:rule-base name=\"policyPricingRules\" dsl-file="
+"\"policyPricing.dsl\" consequence-exception-handler=\"#"
+"{myConsequenceExceptionHandler}\">\n"
+" <drools:rule-files>\n"
+" <value>policyPricingRules.drl</value>\n"
+" </drools:rule-files>\n"
+"</drools:rule-base>]]>"
+msgstr ""
+
+#. Tag: para
+#: Drools.xml:51
+#, no-c-format
+msgid ""
"In most rules-driven applications, rules need to be dynamically deployable, "
"so a production application will want to use a Drools RuleAgent to manage "
"the RuleBase. The RuleAgent can connect to a Drools rule server (BRMS) or "
@@ -96,7 +151,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:47
+#: Drools.xml:59
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\" \n"
@@ -105,7 +160,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:49
+#: Drools.xml:61
#, no-c-format
msgid ""
"The properties file contains properties specific to the RulesAgent. Here is "
@@ -113,7 +168,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:52
+#: Drools.xml:64
#, no-c-format
msgid ""
"newInstance=true\n"
@@ -126,7 +181,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:55
+#: Drools.xml:67
#, no-c-format
msgid ""
"It is also possible to configure the options on the component directly, "
@@ -134,7 +189,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:57
+#: Drools.xml:69
#, no-c-format
msgid ""
"<![CDATA[<drools:rule-agent name=\"insuranceRules\"\n"
@@ -147,7 +202,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:59
+#: Drools.xml:71
#, no-c-format
msgid ""
"Next, we need to make an instance of <literal>org.drools.WorkingMemory</"
@@ -156,7 +211,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:65
+#: Drools.xml:77
#, no-c-format
msgid ""
"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
@@ -164,7 +219,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:67
+#: Drools.xml:79
#, no-c-format
msgid ""
"Notice that we gave the <literal>policyPricingWorkingMemory</literal> a "
@@ -172,14 +227,36 @@
"configuration property."
msgstr ""
+#. Tag: para
+#: Drools.xml:85
+#, no-c-format
+msgid ""
+"We can also add means to be notified of rule engine events, including rules "
+"firing, objects being asserted, etc. by adding event listeners to "
+"WorkingMemory."
+msgstr ""
+
+#. Tag: programlisting
+#: Drools.xml:90
+#, no-c-format
+msgid ""
+"<![CDATA[<drools:managed-working-memory name=\"policyPricingWorkingMemory\" "
+"auto-create=\"true\" rule-base=\"#{policyPricingRules}\">\n"
+" <drools:event-listeners>\n"
+" <value>org.drools.event.DebugWorkingMemoryEventListener</value>\n"
+" <value>org.drools.event.DebugAgendaEventListener</value>\n"
+" </drools:event-listeners>\n"
+"</drools:managed-working-memory>]]>"
+msgstr ""
+
#. Tag: title
-#: Drools.xml:76
+#: Drools.xml:95
#, no-c-format
msgid "Using rules from a Seam component"
msgstr ""
#. Tag: para
-#: Drools.xml:78
+#: Drools.xml:97
#, no-c-format
msgid ""
"We can now inject our <literal>WorkingMemory</literal> into any Seam "
@@ -187,7 +264,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:83
+#: Drools.xml:102
#, no-c-format
msgid ""
"<![CDATA[@In WorkingMemory policyPricingWorkingMemory;\n"
@@ -204,13 +281,13 @@
msgstr ""
#. Tag: title
-#: Drools.xml:88
+#: Drools.xml:107
#, no-c-format
msgid "Using rules from a jBPM process definition"
msgstr ""
#. Tag: para
-#: Drools.xml:90
+#: Drools.xml:109
#, no-c-format
msgid ""
"You can even allow a rule base to act as a jBPM action handler, decision "
@@ -219,7 +296,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:96
+#: Drools.xml:115
#, no-c-format
msgid ""
"<![CDATA[<decision name=\"approval\">\n"
@@ -252,7 +329,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:98
+#: Drools.xml:117
#, no-c-format
msgid ""
"The <literal><assertObjects></literal> element specifies EL "
@@ -261,13 +338,13 @@
msgstr ""
#. Tag: para
-#: Drools.xml:104
+#: Drools.xml:123
#, no-c-format
msgid "There is also support for using Drools for jBPM task assignments:"
msgstr ""
#. Tag: programlisting
-#: Drools.xml:108
+#: Drools.xml:127
#, no-c-format
msgid ""
"<![CDATA[<task-node name=\"review\">\n"
@@ -290,7 +367,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:110
+#: Drools.xml:129
#, no-c-format
msgid ""
"Certain objects are available to the rules as Drools globals, namely the "
@@ -303,7 +380,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:119
+#: Drools.xml:138
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -322,7 +399,7 @@
msgstr ""
#. Tag: programlisting
-#: Drools.xml:121
+#: Drools.xml:140
#, no-c-format
msgid ""
"<![CDATA[package org.jboss.seam.examples.shop\n"
@@ -340,7 +417,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:124
+#: Drools.xml:143
#, no-c-format
msgid ""
"You can find out more about Drools at <ulink url=\"http://www.drools.org\"></"
@@ -348,7 +425,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:131
+#: Drools.xml:150
#, no-c-format
msgid ""
"Seam comes with enough of Drools' dependencies to implement some simple "
@@ -357,7 +434,7 @@
msgstr ""
#. Tag: para
-#: Drools.xml:140
+#: Drools.xml:159
#, no-c-format
msgid ""
"Drools comes with MVEL compiled for Java 1.4, which is compatible with Java "
More information about the seam-commits
mailing list