Seam SVN: r11112 - in branches/community/Seam_2_2: doc/Seam_Reference_Guide/en-US and 7 other directories.
by seam-commits@lists.jboss.org
Author: tsurdilovic
Date: 2009-06-10 18:33:06 -0400 (Wed, 10 Jun 2009)
New Revision: 11112
Added:
branches/community/Seam_2_2/examples/drools/resources/numberguess.xls
branches/community/Seam_2_2/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java
Modified:
branches/community/Seam_2_2/build/core.pom.xml
branches/community/Seam_2_2/build/root.pom.xml
branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Drools.xml
branches/community/Seam_2_2/examples/build.xml
branches/community/Seam_2_2/examples/drools/resources/WEB-INF/components.xml
branches/community/Seam_2_2/seam-gen/ivy/ivy.xml
branches/community/Seam_2_2/src/main/org/jboss/seam/drools-2.2.xsd
branches/community/Seam_2_2/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java
branches/community/Seam_2_2/src/main/org/jboss/seam/drools/RuleBase.java
Log:
JBSEAM-4049 - Drools Custom Consequence Exception handlers
JBSEAM-4188 - Add decision table support to org.jboss.seam.drools.RuleBase
JBSEAM-4225 - Allow to add eventListeners to WorkingMemory
Modified: branches/community/Seam_2_2/build/core.pom.xml
===================================================================
--- branches/community/Seam_2_2/build/core.pom.xml 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/build/core.pom.xml 2009-06-10 22:33:06 UTC (rev 11112)
@@ -251,6 +251,25 @@
<artifactId>drools-compiler</artifactId>
<optional>true</optional>
</dependency>
+
+
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-decisiontables</artifactId>
+ <optional>true</optional>
+ <exclusions>
+ <exclusion>
+ <groupId>jexcelapi</groupId>
+ <artifactId>jxl</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>net.sourceforge.jexcelapi</groupId>
+ <artifactId>jxl</artifactId>
+ <optional>true</optional>
+ </dependency>
<!-- Surefire can't cope with such a new version of testng, so we have to specify it
here, otherwise ui build fails -->
Modified: branches/community/Seam_2_2/build/root.pom.xml
===================================================================
--- branches/community/Seam_2_2/build/root.pom.xml 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/build/root.pom.xml 2009-06-10 22:33:06 UTC (rev 11112)
@@ -786,6 +786,18 @@
</exclusions>
</dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-decisiontables</artifactId>
+ <version>${version.drools}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>jexcelapi</groupId>
+ <artifactId>jxl</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Drools.xml
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Drools.xml 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Drools.xml 2009-06-10 22:33:06 UTC (rev 11112)
@@ -26,7 +26,7 @@
</drools:rule-base>]]></programlisting>
<para>
- This component compiles rules from a set of <literal>.drl</literal>
+ 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
@@ -44,6 +44,40 @@
</drools:rule-files>
</drools:rule-base>]]></programlisting>
+ <para>
+ If you want to register a custom consequence exception handler through the RuleBaseConfiguration, you need to
+ write the handler, for example:
+ </para>
+
+ <programlisting role="JAVA"><![CDATA[(a)Scope(ScopeType.APPLICATION)
+@Startup
+@Name("myConsequenceExceptionHandler")
+public class MyConsequenceExceptionHandler implements ConsequenceExceptionHandler, Externalizable {
+
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+ }
+
+ public void writeExternal(ObjectOutput out) throws IOException {
+ }
+
+ public void handleException(Activation activation,
+ WorkingMemory workingMemory,
+ Exception exception) {
+ throw new ConsequenceException( exception,
+ activation.getRule() );
+ }
+
+}]]></programlisting>
+
+ <para>
+ and register it:
+ </para>
+ <programlisting role="XML"><![CDATA[<drools:rule-base name="policyPricingRules" dsl-file="policyPricing.dsl" consequence-exception-handler="#{myConsequenceExceptionHandler}">
+ <drools:rule-files>
+ <value>policyPricingRules.drl</value>
+ </drools:rule-files>
+</drools:rule-base>]]></programlisting>
+
<para>
In most rules-driven applications,
rules need to be dynamically deployable, so a production application will want to use a
@@ -86,7 +120,18 @@
reference back to our rule base via the <literal>ruleBase</literal>
configuration property.
</para>
+
+ <para>
+ 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.
+ </para>
+ <programlisting role="XML"><![CDATA[<drools:managed-working-memory name="policyPricingWorkingMemory" auto-create="true" rule-base="#{policyPricingRules}">
+ <drools:event-listeners>
+ <value>org.drools.event.DebugWorkingMemoryEventListener</value>
+ <value>org.drools.event.DebugAgendaEventListener</value>
+ </drools:event-listeners>
+</drools:managed-working-memory>]]></programlisting>
</section>
<section>
Modified: branches/community/Seam_2_2/examples/build.xml
===================================================================
--- branches/community/Seam_2_2/examples/build.xml 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/examples/build.xml 2009-06-10 22:33:06 UTC (rev 11112)
@@ -325,6 +325,8 @@
<include name="mvel14.jar" if="drools.lib" />
<include name="drools-core.jar" if="drools.lib" />
<include name="drools-compiler.jar" if="drools.lib" />
+ <include name="drools-decisiontables.jar" if="drools.lib"/>
+ <include name="jxl.jar" if="drools.lib"/>
</fileset>
<!-- Dependencies for using Spring with Cglib -->
@@ -470,6 +472,11 @@
<include name="*.jpdl.xml" />
<exclude name=".gpd*" />
</fileset>
+
+ <!-- binary resources to go in the jar -->
+ <fileset id="jar.binary.resources" dir="${resources.dir}">
+ <include name="*.xls" />
+ </fileset>
<!-- resources to go in the jar for tomcat -->
<fileset id="tomcat.jar.resources" dir="${resources.dir}">
@@ -652,6 +659,11 @@
<filter token="distributable" value="${distributable}" />
</filterset>
</copy>
+ <!-- copy decision tables (binary) without the filter definitions
+ so that they won't get corrupted -->
+ <copy todir="${jar.dir}">
+ <fileset refid="jar.binary.resources" />
+ </copy>
</target>
<target name="init.war">
Modified: branches/community/Seam_2_2/examples/drools/resources/WEB-INF/components.xml
===================================================================
--- branches/community/Seam_2_2/examples/drools/resources/WEB-INF/components.xml 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/examples/drools/resources/WEB-INF/components.xml 2009-06-10 22:33:06 UTC (rev 11112)
@@ -10,8 +10,18 @@
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.2.xsd">
<drools:rule-base name="ruleBase" rule-files="numberguess.drl"/>
- <drools:managed-working-memory name="workingMemory" rule-base="#{ruleBase}"/>
-
+ <!-- use this in order to load from decision table instead -->
+ <!-- <drools:rule-base name="ruleBase" rule-files="numberguess.xls"/> -->
+ <!-- use this if you want to register a custom consequence exception handler -->
+ <!-- <drools:rule-base name="ruleBase" rule-files="numberguess.xls" consequence-exception-handler="#{gameConsequenceExceptionHandler}"/> -->
+ <drools:managed-working-memory name="workingMemory" rule-base="#{ruleBase}">
+ <!-- add WM event listeners -->
+ <!-- <drools:event-listeners>
+ <value>org.drools.event.DebugWorkingMemoryEventListener</value>
+ <value>org.drools.event.DebugAgendaEventListener</value>
+ </drools:event-listeners> -->
+ </drools:managed-working-memory>
+
<bpm:jbpm>
<bpm:pageflow-definitions>
<value>pageflow.jpdl.xml</value>
Added: branches/community/Seam_2_2/examples/drools/resources/numberguess.xls
===================================================================
(Binary files differ)
Property changes on: branches/community/Seam_2_2/examples/drools/resources/numberguess.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/community/Seam_2_2/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java
===================================================================
--- branches/community/Seam_2_2/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java (rev 0)
+++ branches/community/Seam_2_2/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java 2009-06-10 22:33:06 UTC (rev 11112)
@@ -0,0 +1,37 @@
+package org.jboss.seam.example.numberguess;
+
+import java.io.Externalizable;
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+
+import org.drools.WorkingMemory;
+import org.drools.spi.Activation;
+import org.drools.spi.ConsequenceException;
+import org.drools.spi.ConsequenceExceptionHandler;
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.annotations.Startup;
+
+(a)Scope(ScopeType.APPLICATION)
+@Startup
+@Name("gameConsequenceExceptionHandler")
+public class GameConsequenceExceptionHandler implements ConsequenceExceptionHandler, Externalizable {
+
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+ }
+
+ public void writeExternal(ObjectOutput out) throws IOException {
+ }
+
+ public void handleException(Activation activation,
+ WorkingMemory workingMemory,
+ Exception exception) {
+ throw new ConsequenceException( exception,
+ activation.getRule() );
+ }
+
+}
+
+
Modified: branches/community/Seam_2_2/seam-gen/ivy/ivy.xml
===================================================================
--- branches/community/Seam_2_2/seam-gen/ivy/ivy.xml 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/seam-gen/ivy/ivy.xml 2009-06-10 22:33:06 UTC (rev 11112)
@@ -56,6 +56,9 @@
<dependency org="org.drools" name="drools-core" rev="4.0.4">
<artifact name="drools-core" type="jar"/>
</dependency>
+ <dependency org="org.drools" name="drools-decisiontables" rev="4.0.4">
+ <artifact name="drools-decisiontables" type="jar"/>
+ </dependency>
<dependency org="org.eclipse.jdt" name="core" rev="3.2.3.v_686_R32x">
<artifact name="core" type="jar"/>
</dependency>
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java 2009-06-10 22:33:06 UTC (rev 11112)
@@ -5,6 +5,9 @@
import org.drools.RuleBase;
import org.drools.StatefulSession;
import org.drools.spi.GlobalResolver;
+import org.drools.event.AgendaEventListener;
+import org.drools.event.RuleFlowEventListener;
+import org.drools.event.WorkingMemoryEventListener;
import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Destroy;
@@ -13,11 +16,14 @@
import org.jboss.seam.annotations.intercept.BypassInterceptors;
import org.jboss.seam.core.Mutable;
import org.jboss.seam.core.Expressions.ValueExpression;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
/**
* A conversation-scoped Drools WorkingMemory for a named RuleBase
*
* @author Gavin King
+ * @author Tihomir Surdilovic
*
*/
@Scope(ScopeType.CONVERSATION)
@@ -26,7 +32,10 @@
{
private static final long serialVersionUID = -1746942080571374743L;
+ private static final LogProvider log = Logging.getLogProvider(ManagedWorkingMemory.class);
+
private String ruleBaseName;
+ private String[] eventListeners;
private StatefulSession statefulSession;
private ValueExpression<RuleBase> ruleBase;
@@ -66,9 +75,47 @@
{
statefulSession = getRuleBaseFromValueBinding().newStatefulSession();
statefulSession.setGlobalResolver( createGlobalResolver( statefulSession.getGlobalResolver() ) );
+ if(eventListeners != null) {
+ setEventListeners(statefulSession);
+ }
}
return statefulSession;
}
+
+ private void setEventListeners(StatefulSession statefulSession)
+ {
+ if(eventListeners != null) {
+ for(String eventListener : eventListeners)
+ {
+ log.debug("adding eventListener: " + eventListener);
+ try
+ {
+ Class eventListenerClass = Class.forName(eventListener);
+ Object eventListenerObject = eventListenerClass.newInstance();
+ if(eventListenerObject instanceof WorkingMemoryEventListener)
+ {
+ statefulSession.addEventListener((WorkingMemoryEventListener) eventListenerObject);
+ }
+ else if(eventListenerObject instanceof AgendaEventListener)
+ {
+ statefulSession.addEventListener((AgendaEventListener) eventListenerObject);
+ }
+ else if(eventListenerObject instanceof RuleFlowEventListener)
+ {
+ statefulSession.addEventListener((RuleFlowEventListener) eventListenerObject);
+ }
+ else
+ {
+ log.debug("event Listener is not of valid type - bypassing.");
+ }
+ }
+ catch (Exception e)
+ {
+ log.error("error adding event listener " + eventListener + " - bypassing.");
+ }
+ }
+ }
+ }
protected RuleBase getRuleBaseFromValueBinding()
{
@@ -115,4 +162,13 @@
this.ruleBase = ruleBase;
}
+ public String[] getEventListeners()
+ {
+ return eventListeners;
+ }
+
+ public void setEventListeners(String[] eventListeners)
+ {
+ this.eventListeners = eventListeners;
+ }
}
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/drools/RuleBase.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/drools/RuleBase.java 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/drools/RuleBase.java 2009-06-10 22:33:06 UTC (rev 11112)
@@ -1,20 +1,26 @@
package org.jboss.seam.drools;
+import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
+import org.drools.RuleBaseConfiguration;
import org.drools.RuleBaseFactory;
import org.drools.compiler.DroolsError;
import org.drools.compiler.PackageBuilder;
import org.drools.compiler.PackageBuilderConfiguration;
import org.drools.compiler.RuleError;
+import org.drools.decisiontable.InputType;
+import org.drools.decisiontable.SpreadsheetCompiler;
+import org.drools.spi.ConsequenceExceptionHandler;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Unwrap;
import org.jboss.seam.annotations.intercept.BypassInterceptors;
import org.jboss.seam.core.ResourceLoader;
+import org.jboss.seam.core.Expressions.ValueExpression;
import org.jboss.seam.log.LogProvider;
import org.jboss.seam.log.Logging;
@@ -22,6 +28,7 @@
* Manager component for a Drools RuleBase
*
* @author Gavin King
+ * @author Tihomir Surdilovic
*
*/
@Scope(ScopeType.APPLICATION)
@@ -32,6 +39,7 @@
private String[] ruleFiles;
private String dslFile;
+ private ValueExpression<ConsequenceExceptionHandler> consequenceExceptionHandler;
private org.drools.RuleBase ruleBase;
@Create
@@ -50,18 +58,32 @@
{
throw new IllegalStateException("could not locate rule file: " + ruleFile);
}
- // read in the source
- Reader drlReader = new InputStreamReader(stream);
-
- if (dslFile==null)
+
+ if(isDecisionTable(ruleFile))
{
- builder.addPackageFromDrl(drlReader);
+ log.debug("compiling decision table");
+ SpreadsheetCompiler compiler = new SpreadsheetCompiler();
+ String drl = compiler.compile(stream, InputType.XLS);
+
+ log.debug("creating source");
+ byte currentXMLBytes[] = drl.getBytes();
+ InputStreamReader source = new InputStreamReader(new ByteArrayInputStream(currentXMLBytes));
+
+ builder.addPackageFromDrl(source);
+ } else {
+ // read in the source
+ Reader drlReader = new InputStreamReader(stream);
+
+ if (dslFile==null)
+ {
+ builder.addPackageFromDrl(drlReader);
+ }
+ else
+ {
+ Reader dslReader = new InputStreamReader( ResourceLoader.instance().getResourceAsStream(dslFile) );
+ builder.addPackageFromDrl(drlReader, dslReader);
+ }
}
- else
- {
- Reader dslReader = new InputStreamReader( ResourceLoader.instance().getResourceAsStream(dslFile) );
- builder.addPackageFromDrl(drlReader, dslReader);
- }
if ( builder.hasErrors() )
{
@@ -82,8 +104,18 @@
}
}
- // add the package to a rulebase
- ruleBase = RuleBaseFactory.newRuleBase();
+ if(consequenceExceptionHandler != null)
+ {
+ log.debug("adding consequence exception handler: " + consequenceExceptionHandler.getExpressionString());
+ RuleBaseConfiguration rbconf = new RuleBaseConfiguration();
+ rbconf.setConsequenceExceptionHandler(consequenceExceptionHandler.getValue());
+ ruleBase = RuleBaseFactory.newRuleBase( rbconf );
+ }
+ else
+ {
+ ruleBase = RuleBaseFactory.newRuleBase();
+ }
+
ruleBase.addPackage( builder.getPackage() );
}
@@ -113,4 +145,19 @@
this.dslFile = dslFile;
}
+ public ValueExpression<ConsequenceExceptionHandler> getConsequenceExceptionHandler()
+ {
+ return consequenceExceptionHandler;
+ }
+
+ public void setConsequenceExceptionHandler(ValueExpression<ConsequenceExceptionHandler> consequenceExceptionHandler)
+ {
+ this.consequenceExceptionHandler = consequenceExceptionHandler;
+ }
+
+ private boolean isDecisionTable(String fileName)
+ {
+ return fileName != null && fileName.length() > 0 && fileName.endsWith(".xls");
+ }
+
}
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/drools-2.2.xsd
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/drools-2.2.xsd 2009-06-10 18:17:22 UTC (rev 11111)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/drools-2.2.xsd 2009-06-10 22:33:06 UTC (rev 11112)
@@ -20,7 +20,8 @@
<xs:element name="rule-files" type="components:multiValuedProperty"/>
<xs:attributeGroup name="attlist.RuleBase">
<xs:attribute name="dsl-file" type="components:string"/>
- <xs:attribute name="rule-files" type="components:string"/>
+ <xs:attribute name="rule-files" type="components:string"/>
+ <xs:attribute name="consequence-exception-handler" type="components:expressionType"/>
</xs:attributeGroup>
<xs:element name="rule-agent">
@@ -47,6 +48,9 @@
<xs:documentation>A working memory for rules calculations</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1" ref="drools:event-listeners"/>
+ </xs:choice>
<xs:attributeGroup ref="components:attlist.component"/>
<xs:attributeGroup ref="drools:attlist.ManagedWorkingMemory"/>
</xs:complexType>
@@ -54,5 +58,6 @@
<xs:attributeGroup name="attlist.ManagedWorkingMemory">
<xs:attribute name="rule-base" type="components:expressionType"/>
</xs:attributeGroup>
+ <xs:element name="event-listeners" type="components:multiValuedProperty"/>
</xs:schema>
15 years, 8 months
Seam SVN: r11111 - branches/community/Seam_2_2/src/main/org/jboss/seam.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-06-10 14:17:22 -0400 (Wed, 10 Jun 2009)
New Revision: 11111
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/security-2.2.xsd
Log:
JBSEAM-4207
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/security-2.2.xsd
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/security-2.2.xsd 2009-06-10 16:35:48 UTC (rev 11110)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/security-2.2.xsd 2009-06-10 18:17:22 UTC (rev 11111)
@@ -44,6 +44,13 @@
</xs:complexType>
</xs:element>
+ <xs:element name="jpa-token-store">
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="components:attlist.component"/>
+ <xs:attributeGroup ref="security:attlist.jpa-token-store"/>
+ </xs:complexType>
+ </xs:element>
+
<xs:element name="ldap-identity-store">
<xs:complexType mixed="true">
<xs:attributeGroup ref="components:attlist.component"/>
@@ -91,6 +98,11 @@
<xs:attribute name="features" type="components:string"/>
</xs:attributeGroup>
+ <xs:attributeGroup name="attlist.jpa-token-store">
+ <xs:attribute name="entity-manager" type="components:string"/>
+ <xs:attribute name="token-class" type="components:string"/>
+ </xs:attributeGroup>
+
<xs:attributeGroup name="attlist.ldap-identity-store">
<xs:attribute name="server-address" type="components:string"/>
<xs:attribute name="server-port" type="components:string"/>
15 years, 8 months
Seam SVN: r11109 - branches/community/Seam_2_1/build.
by seam-commits@lists.jboss.org
Author: tsurdilovic
Date: 2009-06-10 11:21:03 -0400 (Wed, 10 Jun 2009)
New Revision: 11109
Modified:
branches/community/Seam_2_1/build/core.pom.xml
branches/community/Seam_2_1/build/root.pom.xml
Log:
Added exclusion for older jxl version for drools-decisiontables dependency.
Modified: branches/community/Seam_2_1/build/core.pom.xml
===================================================================
--- branches/community/Seam_2_1/build/core.pom.xml 2009-06-10 15:00:02 UTC (rev 11108)
+++ branches/community/Seam_2_1/build/core.pom.xml 2009-06-10 15:21:03 UTC (rev 11109)
@@ -256,6 +256,12 @@
<groupId>org.drools</groupId>
<artifactId>drools-decisiontables</artifactId>
<optional>true</optional>
+ <exclusions>
+ <exclusion>
+ <groupId>jexcelapi</groupId>
+ <artifactId>jxl</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
Modified: branches/community/Seam_2_1/build/root.pom.xml
===================================================================
--- branches/community/Seam_2_1/build/root.pom.xml 2009-06-10 15:00:02 UTC (rev 11108)
+++ branches/community/Seam_2_1/build/root.pom.xml 2009-06-10 15:21:03 UTC (rev 11109)
@@ -790,6 +790,12 @@
<groupId>org.drools</groupId>
<artifactId>drools-decisiontables</artifactId>
<version>${version.drools}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>jexcelapi</groupId>
+ <artifactId>jxl</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
15 years, 8 months
Seam SVN: r11108 - in branches/community/Seam_2_1/doc/Seam_Reference_Guide: bn-IN and 22 other directories.
by seam-commits@lists.jboss.org
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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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(a)redhat.com>\n"
"Language-Team: Japanese <fedora-trans-ja(a)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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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[(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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@ADDRESS>\n"
"Language-Team: LANGUAGE <kde-i18n-doc(a)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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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[(a)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 "
15 years, 8 months
Seam SVN: r11106 - branches/community/Seam_2_1/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-06-10 09:46:28 -0400 (Wed, 10 Jun 2009)
New Revision: 11106
Modified:
branches/community/Seam_2_1/doc/Seam_Reference_Guide/it-IT/Events.po
Log:
Italian translation
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/it-IT/Events.po
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/it-IT/Events.po 2009-06-10 13:21:21 UTC (rev 11105)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/it-IT/Events.po 2009-06-10 13:46:28 UTC (rev 11106)
@@ -6,7 +6,7 @@
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-05-29 06:39+0000\n"
-"PO-Revision-Date: 2009-05-29 08:56+0100\n"
+"PO-Revision-Date: 2009-06-10 15:46+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -1455,11 +1455,11 @@
" \n"
" boolean isLoggedIn = Contexts.getSessionContext().get(\"loggedIn\")!=null;\n"
" if (isLoggedIn) {\n"
-" //the user is already logged in\n"
+" //l'utente è già loggato\n"
" return invocation.proceed();\n"
" }\n"
" else {\n"
-" //the user is not logged in, fwd to login page\n"
+" //l'utente non è loggato, andare alla pagina di login\n"
" return \"login\";\n"
" }\n"
" }\n"
15 years, 8 months
Seam SVN: r11105 - branches/community/Seam_2_2/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-06-10 09:21:21 -0400 (Wed, 10 Jun 2009)
New Revision: 11105
Modified:
branches/community/Seam_2_2/build/gen.pom.xml
Log:
reverted ant dependency for seam-gen - Eclipse IDE requires this for seam-gen custom ant tasks
Modified: branches/community/Seam_2_2/build/gen.pom.xml
===================================================================
--- branches/community/Seam_2_2/build/gen.pom.xml 2009-06-10 08:32:07 UTC (rev 11104)
+++ branches/community/Seam_2_2/build/gen.pom.xml 2009-06-10 13:21:21 UTC (rev 11105)
@@ -16,6 +16,12 @@
<dependencies>
<dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-tools</artifactId>
<scope>runtime</scope>
15 years, 8 months
Seam SVN: r11104 - branches/community/Seam_2_1/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-06-10 04:32:07 -0400 (Wed, 10 Jun 2009)
New Revision: 11104
Modified:
branches/community/Seam_2_1/build/gen.pom.xml
Log:
reverted ant dependency for seam-gen - Eclipse IDE requires this for seam-gen custom ant tasks.
Modified: branches/community/Seam_2_1/build/gen.pom.xml
===================================================================
--- branches/community/Seam_2_1/build/gen.pom.xml 2009-06-10 02:19:48 UTC (rev 11103)
+++ branches/community/Seam_2_1/build/gen.pom.xml 2009-06-10 08:32:07 UTC (rev 11104)
@@ -16,6 +16,12 @@
<dependencies>
<dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <scope>compile</scope>
+ </dependency>
+
+ <dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-tools</artifactId>
<scope>runtime</scope>
15 years, 8 months
Seam SVN: r11103 - in branches/community/Seam_2_1: doc/Seam_Reference_Guide/en-US and 7 other directories.
by seam-commits@lists.jboss.org
Author: tsurdilovic
Date: 2009-06-09 22:19:48 -0400 (Tue, 09 Jun 2009)
New Revision: 11103
Added:
branches/community/Seam_2_1/examples/drools/resources/numberguess.xls
branches/community/Seam_2_1/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java
branches/community/Seam_2_1/seam-gen/ivy/.ivy.xml.swp
Modified:
branches/community/Seam_2_1/build/core.pom.xml
branches/community/Seam_2_1/build/root.pom.xml
branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Drools.xml
branches/community/Seam_2_1/examples/build.xml
branches/community/Seam_2_1/examples/drools/resources/WEB-INF/components.xml
branches/community/Seam_2_1/seam-gen/ivy/ivy.xml
branches/community/Seam_2_1/src/main/org/jboss/seam/drools-2.1.xsd
branches/community/Seam_2_1/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java
branches/community/Seam_2_1/src/main/org/jboss/seam/drools/RuleBase.java
Log:
JBSEAM-4049 - Drools Custom Consequence Exception handlers
JBSEAM-4188 - Add decision table support to org.jboss.seam.drools.RuleBase
JBSEAM-4225 - Allow to add eventListeners to WorkingMemory
Modified: branches/community/Seam_2_1/build/core.pom.xml
===================================================================
--- branches/community/Seam_2_1/build/core.pom.xml 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/build/core.pom.xml 2009-06-10 02:19:48 UTC (rev 11103)
@@ -252,6 +252,18 @@
<optional>true</optional>
</dependency>
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-decisiontables</artifactId>
+ <optional>true</optional>
+ </dependency>
+
+ <dependency>
+ <groupId>net.sourceforge.jexcelapi</groupId>
+ <artifactId>jxl</artifactId>
+ <optional>true</optional>
+ </dependency>
+
<!-- Surefire can't cope with such a new version of testng, so we have to specify it
here, otherwise ui build fails -->
<dependency>
Modified: branches/community/Seam_2_1/build/root.pom.xml
===================================================================
--- branches/community/Seam_2_1/build/root.pom.xml 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/build/root.pom.xml 2009-06-10 02:19:48 UTC (rev 11103)
@@ -785,6 +785,12 @@
</exclusion>
</exclusions>
</dependency>
+
+ <dependency>
+ <groupId>org.drools</groupId>
+ <artifactId>drools-decisiontables</artifactId>
+ <version>${version.drools}</version>
+ </dependency>
<dependency>
<groupId>org.drools</groupId>
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Drools.xml
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Drools.xml 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Drools.xml 2009-06-10 02:19:48 UTC (rev 11103)
@@ -26,7 +26,7 @@
</drools:rule-base>]]></programlisting>
<para>
- This component compiles rules from a set of <literal>.drl</literal>
+ 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
@@ -34,7 +34,7 @@
</para>
<para>
- If you want to use a Drools DSL, you alse need to specify the DSL
+ If you want to use a Drools DSL, you also need to specify the DSL
definition:
</para>
@@ -44,6 +44,40 @@
</drools:rule-files>
</drools:rule-base>]]></programlisting>
+ <para>
+ If you want to register a custom consequence exception handler through the RuleBaseConfiguration, you need to
+ write the handler, for example:
+ </para>
+
+ <programlisting role="JAVA"><![CDATA[(a)Scope(ScopeType.APPLICATION)
+@Startup
+@Name("myConsequenceExceptionHandler")
+public class MyConsequenceExceptionHandler implements ConsequenceExceptionHandler, Externalizable {
+
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+ }
+
+ public void writeExternal(ObjectOutput out) throws IOException {
+ }
+
+ public void handleException(Activation activation,
+ WorkingMemory workingMemory,
+ Exception exception) {
+ throw new ConsequenceException( exception,
+ activation.getRule() );
+ }
+
+}]]></programlisting>
+
+ <para>
+ and register it:
+ </para>
+ <programlisting role="XML"><![CDATA[<drools:rule-base name="policyPricingRules" dsl-file="policyPricing.dsl" consequence-exception-handler="#{myConsequenceExceptionHandler}">
+ <drools:rule-files>
+ <value>policyPricingRules.drl</value>
+ </drools:rule-files>
+</drools:rule-base>]]></programlisting>
+
<para>
In most rules-driven applications,
rules need to be dynamically deployable, so a production application will want to use a
@@ -87,6 +121,18 @@
configuration property.
</para>
+ <para>
+ 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.
+ </para>
+
+ <programlisting role="XML"><![CDATA[<drools:managed-working-memory name="policyPricingWorkingMemory" auto-create="true" rule-base="#{policyPricingRules}">
+ <drools:event-listeners>
+ <value>org.drools.event.DebugWorkingMemoryEventListener</value>
+ <value>org.drools.event.DebugAgendaEventListener</value>
+ </drools:event-listeners>
+</drools:managed-working-memory>]]></programlisting>
+
</section>
<section>
Modified: branches/community/Seam_2_1/examples/build.xml
===================================================================
--- branches/community/Seam_2_1/examples/build.xml 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/examples/build.xml 2009-06-10 02:19:48 UTC (rev 11103)
@@ -325,6 +325,8 @@
<include name="mvel14.jar" if="drools.lib" />
<include name="drools-core.jar" if="drools.lib" />
<include name="drools-compiler.jar" if="drools.lib" />
+ <include name="drools-decisiontables.jar" if="drools.lib"/>
+ <include name="jxl.jar" if="drools.lib"/>
</fileset>
<!-- Dependencies for using Spring with Cglib -->
@@ -470,6 +472,11 @@
<include name="*.jpdl.xml" />
<exclude name=".gpd*" />
</fileset>
+
+ <!-- binary resources to go in the jar -->
+ <fileset id="jar.binary.resources" dir="${resources.dir}">
+ <include name="*.xls" />
+ </fileset>
<!-- resources to go in the jar for tomcat -->
<fileset id="tomcat.jar.resources" dir="${resources.dir}">
@@ -652,6 +659,11 @@
<filter token="distributable" value="${distributable}" />
</filterset>
</copy>
+ <!-- copy decision tables (binary) without the filter definitions
+ so that they won't get corrupted -->
+ <copy todir="${jar.dir}">
+ <fileset refid="jar.binary.resources" />
+ </copy>
</target>
<target name="init.war">
Modified: branches/community/Seam_2_1/examples/drools/resources/WEB-INF/components.xml
===================================================================
--- branches/community/Seam_2_1/examples/drools/resources/WEB-INF/components.xml 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/examples/drools/resources/WEB-INF/components.xml 2009-06-10 02:19:48 UTC (rev 11103)
@@ -10,7 +10,17 @@
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd">
<drools:rule-base name="ruleBase" rule-files="numberguess.drl"/>
- <drools:managed-working-memory name="workingMemory" rule-base="#{ruleBase}"/>
+ <!-- use this in order to load from decision table instead -->
+ <!-- <drools:rule-base name="ruleBase" rule-files="numberguess.xls"/> -->
+ <!-- use this if you want to register a custom consequence exception handler -->
+ <!-- <drools:rule-base name="ruleBase" rule-files="numberguess.drl" consequence-exception-handler="#{gameConsequenceExceptionHandler}"/> -->
+ <drools:managed-working-memory name="workingMemory" rule-base="#{ruleBase}">
+ <!-- add WM event listeners -->
+ <!-- <drools:event-listeners>
+ <value>org.drools.event.DebugWorkingMemoryEventListener</value>
+ <value>org.drools.event.DebugAgendaEventListener</value>
+ </drools:event-listeners> -->
+ </drools:managed-working-memory>
<bpm:jbpm>
<bpm:pageflow-definitions>
Added: branches/community/Seam_2_1/examples/drools/resources/numberguess.xls
===================================================================
(Binary files differ)
Property changes on: branches/community/Seam_2_1/examples/drools/resources/numberguess.xls
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/community/Seam_2_1/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java
===================================================================
--- branches/community/Seam_2_1/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java (rev 0)
+++ branches/community/Seam_2_1/examples/drools/src/org/jboss/seam/example/numberguess/GameConsequenceExceptionHandler.java 2009-06-10 02:19:48 UTC (rev 11103)
@@ -0,0 +1,36 @@
+package org.jboss.seam.example.numberguess;
+
+import java.io.Externalizable;
+import java.io.IOException;
+import java.io.ObjectInput;
+import java.io.ObjectOutput;
+
+import org.drools.WorkingMemory;
+import org.drools.spi.Activation;
+import org.drools.spi.ConsequenceException;
+import org.drools.spi.ConsequenceExceptionHandler;
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.annotations.Startup;
+
+(a)Scope(ScopeType.APPLICATION)
+@Startup
+@Name("gameConsequenceExceptionHandler")
+public class GameConsequenceExceptionHandler implements ConsequenceExceptionHandler, Externalizable {
+
+ public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
+ }
+
+ public void writeExternal(ObjectOutput out) throws IOException {
+ }
+
+ public void handleException(Activation activation,
+ WorkingMemory workingMemory,
+ Exception exception) {
+ throw new ConsequenceException( exception,
+ activation.getRule() );
+ }
+
+}
+
Added: branches/community/Seam_2_1/seam-gen/ivy/.ivy.xml.swp
===================================================================
(Binary files differ)
Property changes on: branches/community/Seam_2_1/seam-gen/ivy/.ivy.xml.swp
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: branches/community/Seam_2_1/seam-gen/ivy/ivy.xml
===================================================================
--- branches/community/Seam_2_1/seam-gen/ivy/ivy.xml 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/seam-gen/ivy/ivy.xml 2009-06-10 02:19:48 UTC (rev 11103)
@@ -56,6 +56,9 @@
<dependency org="org.drools" name="drools-core" rev="4.0.4">
<artifact name="drools-core" type="jar"/>
</dependency>
+ <dependency org="org.drools" name="drools-decisiontables" rev="4.0.4">
+ <artifact name="drools-decisiontables" type="jar"/>
+ </dependency>
<dependency org="org.eclipse.jdt" name="core" rev="3.2.3.v_686_R32x">
<artifact name="core" type="jar"/>
</dependency>
Modified: branches/community/Seam_2_1/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java
===================================================================
--- branches/community/Seam_2_1/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/src/main/org/jboss/seam/drools/ManagedWorkingMemory.java 2009-06-10 02:19:48 UTC (rev 11103)
@@ -4,6 +4,9 @@
import org.drools.RuleBase;
import org.drools.StatefulSession;
+import org.drools.event.AgendaEventListener;
+import org.drools.event.RuleFlowEventListener;
+import org.drools.event.WorkingMemoryEventListener;
import org.drools.spi.GlobalResolver;
import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
@@ -13,6 +16,8 @@
import org.jboss.seam.annotations.intercept.BypassInterceptors;
import org.jboss.seam.core.Mutable;
import org.jboss.seam.core.Expressions.ValueExpression;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
/**
* A conversation-scoped Drools WorkingMemory for a named RuleBase
@@ -26,7 +31,10 @@
{
private static final long serialVersionUID = -1746942080571374743L;
+ private static final LogProvider log = Logging.getLogProvider(ManagedWorkingMemory.class);
+
private String ruleBaseName;
+ private String[] eventListeners;
private StatefulSession statefulSession;
private ValueExpression<RuleBase> ruleBase;
@@ -66,9 +74,44 @@
{
statefulSession = getRuleBaseFromValueBinding().newStatefulSession();
statefulSession.setGlobalResolver( createGlobalResolver( statefulSession.getGlobalResolver() ) );
+ if(eventListeners != null) {
+ setEventListeners(statefulSession);
+ }
}
return statefulSession;
}
+
+ private void setEventListeners(StatefulSession statefulSession) {
+ if(eventListeners != null) {
+ for(String eventListener : eventListeners) {
+ log.debug("adding eventListener: " + eventListener);
+ try
+ {
+ Class eventListenerClass = Class.forName(eventListener);
+ Object eventListenerObject = eventListenerClass.newInstance();
+ if(eventListenerObject instanceof WorkingMemoryEventListener)
+ {
+ statefulSession.addEventListener((WorkingMemoryEventListener) eventListenerObject);
+ }
+ else if(eventListenerObject instanceof AgendaEventListener)
+ {
+ statefulSession.addEventListener((AgendaEventListener) eventListenerObject);
+ }
+ else if(eventListenerObject instanceof RuleFlowEventListener)
+ {
+ statefulSession.addEventListener((RuleFlowEventListener) eventListenerObject);
+ }
+ else {
+ log.debug("event Listener is not of valid type - bypassing.");
+ }
+ }
+ catch (Exception e)
+ {
+ log.error("error adding event listener " + eventListener + " - bypassing.");
+ }
+ }
+ }
+ }
protected RuleBase getRuleBaseFromValueBinding()
{
@@ -114,5 +157,17 @@
{
this.ruleBase = ruleBase;
}
+
+ public String[] getEventListeners()
+ {
+ return eventListeners;
+ }
+
+ public void setEventListeners(String[] eventListeners)
+ {
+ this.eventListeners = eventListeners;
+ }
+
+
}
Modified: branches/community/Seam_2_1/src/main/org/jboss/seam/drools/RuleBase.java
===================================================================
--- branches/community/Seam_2_1/src/main/org/jboss/seam/drools/RuleBase.java 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/src/main/org/jboss/seam/drools/RuleBase.java 2009-06-10 02:19:48 UTC (rev 11103)
@@ -1,20 +1,26 @@
package org.jboss.seam.drools;
+import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
+import org.drools.RuleBaseConfiguration;
import org.drools.RuleBaseFactory;
import org.drools.compiler.DroolsError;
import org.drools.compiler.PackageBuilder;
import org.drools.compiler.PackageBuilderConfiguration;
import org.drools.compiler.RuleError;
+import org.drools.decisiontable.InputType;
+import org.drools.decisiontable.SpreadsheetCompiler;
+import org.drools.spi.ConsequenceExceptionHandler;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Unwrap;
import org.jboss.seam.annotations.intercept.BypassInterceptors;
import org.jboss.seam.core.ResourceLoader;
+import org.jboss.seam.core.Expressions.ValueExpression;
import org.jboss.seam.log.LogProvider;
import org.jboss.seam.log.Logging;
@@ -32,6 +38,7 @@
private String[] ruleFiles;
private String dslFile;
+ private ValueExpression<ConsequenceExceptionHandler> consequenceExceptionHandler;
private org.drools.RuleBase ruleBase;
@Create
@@ -50,18 +57,32 @@
{
throw new IllegalStateException("could not locate rule file: " + ruleFile);
}
- // read in the source
- Reader drlReader = new InputStreamReader(stream);
-
- if (dslFile==null)
+
+ if(isDecisionTable(ruleFile))
{
- builder.addPackageFromDrl(drlReader);
+ log.debug("compiling decision table");
+ SpreadsheetCompiler compiler = new SpreadsheetCompiler();
+ String drl = compiler.compile(stream, InputType.XLS);
+
+ log.debug("creating source");
+ byte currentXMLBytes[] = drl.getBytes();
+ InputStreamReader source = new InputStreamReader(new ByteArrayInputStream(currentXMLBytes));
+
+ builder.addPackageFromDrl(source);
+ } else {
+ // read in the source
+ Reader drlReader = new InputStreamReader(stream);
+
+ if (dslFile==null)
+ {
+ builder.addPackageFromDrl(drlReader);
+ }
+ else
+ {
+ Reader dslReader = new InputStreamReader( ResourceLoader.instance().getResourceAsStream(dslFile) );
+ builder.addPackageFromDrl(drlReader, dslReader);
+ }
}
- else
- {
- Reader dslReader = new InputStreamReader( ResourceLoader.instance().getResourceAsStream(dslFile) );
- builder.addPackageFromDrl(drlReader, dslReader);
- }
if ( builder.hasErrors() )
{
@@ -82,8 +103,19 @@
}
}
- // add the package to a rulebase
- ruleBase = RuleBaseFactory.newRuleBase();
+
+ if(consequenceExceptionHandler != null)
+ {
+ log.info("adding consequence exception handler: " + consequenceExceptionHandler.getExpressionString());
+ RuleBaseConfiguration rbconf = new RuleBaseConfiguration();
+ rbconf.setConsequenceExceptionHandler(consequenceExceptionHandler.getValue());
+ ruleBase = RuleBaseFactory.newRuleBase( rbconf );
+ }
+ else
+ {
+ ruleBase = RuleBaseFactory.newRuleBase();
+ }
+
ruleBase.addPackage( builder.getPackage() );
}
@@ -113,4 +145,18 @@
this.dslFile = dslFile;
}
+ public ValueExpression<ConsequenceExceptionHandler> getConsequenceExceptionHandler()
+ {
+ return consequenceExceptionHandler;
+ }
+
+ public void setConsequenceExceptionHandler(ValueExpression<ConsequenceExceptionHandler> consequenceExceptionHandler)
+ {
+ this.consequenceExceptionHandler = consequenceExceptionHandler;
+ }
+
+ private boolean isDecisionTable(String fileName)
+ {
+ return fileName != null && fileName.length() > 0 && fileName.endsWith(".xls");
+ }
}
Modified: branches/community/Seam_2_1/src/main/org/jboss/seam/drools-2.1.xsd
===================================================================
--- branches/community/Seam_2_1/src/main/org/jboss/seam/drools-2.1.xsd 2009-06-09 19:18:53 UTC (rev 11102)
+++ branches/community/Seam_2_1/src/main/org/jboss/seam/drools-2.1.xsd 2009-06-10 02:19:48 UTC (rev 11103)
@@ -11,8 +11,8 @@
</xs:annotation>
<xs:complexType mixed="true">
<xs:choice minOccurs="0" maxOccurs="unbounded">
- <xs:element minOccurs="0" maxOccurs="1" ref="drools:rule-files"/>
- </xs:choice>
+ <xs:element minOccurs="0" maxOccurs="1" ref="drools:rule-files"/>
+ </xs:choice>
<xs:attributeGroup ref="components:attlist.component"/>
<xs:attributeGroup ref="drools:attlist.RuleBase"/>
</xs:complexType>
@@ -20,8 +20,10 @@
<xs:element name="rule-files" type="components:multiValuedProperty"/>
<xs:attributeGroup name="attlist.RuleBase">
<xs:attribute name="dsl-file" type="components:string"/>
- <xs:attribute name="rule-files" type="components:string"/>
+ <xs:attribute name="rule-files" type="components:string"/>
+ <xs:attribute name="consequence-exception-handler" type="components:expressionType"/>
</xs:attributeGroup>
+
<xs:element name="rule-agent">
<xs:annotation>
@@ -47,6 +49,9 @@
<xs:documentation>A working memory for rules calculations</xs:documentation>
</xs:annotation>
<xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element minOccurs="0" maxOccurs="1" ref="drools:event-listeners"/>
+ </xs:choice>
<xs:attributeGroup ref="components:attlist.component"/>
<xs:attributeGroup ref="drools:attlist.ManagedWorkingMemory"/>
</xs:complexType>
@@ -54,5 +59,6 @@
<xs:attributeGroup name="attlist.ManagedWorkingMemory">
<xs:attribute name="rule-base" type="components:expressionType"/>
</xs:attributeGroup>
+ <xs:element name="event-listeners" type="components:multiValuedProperty"/>
</xs:schema>
15 years, 8 months
Seam SVN: r11102 - branches/community/Seam_2_2/src/main/org/jboss/seam/security/openid.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-06-09 15:18:53 -0400 (Tue, 09 Jun 2009)
New Revision: 11102
Modified:
branches/community/Seam_2_2/src/main/org/jboss/seam/security/openid/OpenId.java
Log:
JBSEAM-3891
Modified: branches/community/Seam_2_2/src/main/org/jboss/seam/security/openid/OpenId.java
===================================================================
--- branches/community/Seam_2_2/src/main/org/jboss/seam/security/openid/OpenId.java 2009-06-08 20:46:20 UTC (rev 11101)
+++ branches/community/Seam_2_2/src/main/org/jboss/seam/security/openid/OpenId.java 2009-06-09 19:18:53 UTC (rev 11102)
@@ -27,11 +27,8 @@
import org.openid4java.discovery.DiscoveryInformation;
import org.openid4java.discovery.Identifier;
import org.openid4java.message.AuthRequest;
-import org.openid4java.message.AuthSuccess;
import org.openid4java.message.ParameterList;
-import org.openid4java.message.ax.AxMessage;
import org.openid4java.message.ax.FetchRequest;
-import org.openid4java.message.ax.FetchResponse;
@Name("org.jboss.seam.security.openid.openid")
@Install(precedence=Install.BUILT_IN, classDependencies="org.openid4java.consumer.ConsumerManager")
@@ -71,12 +68,19 @@
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
- try {
- URL returnToUrl = new URL("http",
- request.getServerName(),
- request.getServerPort(),
- context.getApplication().getViewHandler().getActionURL(context, "/openid.xhtml"));
-
+ try {
+ URL returnToUrl;
+ if (request.getServerPort()==80) {
+ returnToUrl = new URL("http",
+ request.getServerName(),
+ context.getApplication().getViewHandler().getActionURL(context, "/openid.xhtml"));
+ } else {
+ returnToUrl = new URL("http",
+ request.getServerName(),
+ request.getServerPort(),
+ context.getApplication().getViewHandler().getActionURL(context, "/openid.xhtml"));
+
+ }
return returnToUrl.toExternalForm();
} catch (MalformedURLException e) {
throw new RuntimeException(e);
@@ -174,10 +178,10 @@
if (queryString != null && queryString.length() > 0)
receivingURL.append("?").append(httpReq.getQueryString());
+
// verify the response; ConsumerManager needs to be the same
// (static) instance used to place the authentication request
- VerificationResult verification = manager.verify(
- receivingURL.toString(),
+ VerificationResult verification = manager.verify(receivingURL.toString(),
response, discovered);
// examine the verification result and extract the verified identifier
15 years, 8 months
Seam SVN: r11101 - branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-06-08 16:46:20 -0400 (Mon, 08 Jun 2009)
New Revision: 11101
Modified:
branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java
Log:
JBSEAM-4205
Modified: branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java
===================================================================
--- branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java 2009-06-07 19:46:14 UTC (rev 11100)
+++ branches/community/Seam_2_2/src/pdf/org/jboss/seam/pdf/ui/UICell.java 2009-06-08 20:46:20 UTC (rev 11101)
@@ -312,10 +312,14 @@
hasContent = true;
} else if (o instanceof Element) {
if (cell.getImage() != null) {
- cell.addElement(cell.getImage());
+ Image image = cell.getImage();
+ cell.setImage(null);
+ cell.addElement(image);
}
if (cell.getPhrase() != null) {
- cell.addElement(cell.getPhrase());
+ Phrase p = cell.getPhrase();
+ cell.setPhrase(null);
+ cell.addElement(p);
}
cell.addElement((Element) o);
} else {
15 years, 8 months