[jboss-svn-commits] JBL Code SVN: r35722 - labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Oct 25 15:22:58 EDT 2010
Author: tsurdilovic
Date: 2010-10-25 15:22:58 -0400 (Mon, 25 Oct 2010)
New Revision: 35722
Modified:
labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml
Log:
JBRULES-2753 : Add the StrEvaluator to the list of core evaluators
Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml 2010-10-25 19:17:01 UTC (rev 35721)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml 2010-10-25 19:22:58 UTC (rev 35722)
@@ -902,6 +902,24 @@
Cheese( name soundslike 'foobar' )</programlisting>
</example>
</simplesect>
+
+ <simplesect>
+ <title>The Operator <literal>str</literal></title>
+
+ <para>This operator <literal>str</literal> is used to
+ check whether a field that is a <indexterm>
+ <primary>String</primary>
+ </indexterm>String starts with or ends with with a certain value. It can also be used to check
+ the length of the String.
+ <example>
+ <title>Test with str</title>
+
+ <programlisting>$m : Message( routingValue str[startsWith] "R1" )
+ $m : Message( routingValue str[endsWith] "R2" )
+ $m : Message( routingValue str[length] 17 )
+ </programlisting>
+ </example>
+ </simplesect>
</section>
<section>
More information about the jboss-svn-commits
mailing list