<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-11822</id>
	<title>Nabble - Drools - Java Rules Engine</title>
	<updated>2008-09-07T03:35:35Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/Drools---Java-Rules-Engine-f11822.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---Java-Rules-Engine-f11822.html" />
	<subtitle type="html">&lt;div style=&quot;float:left;padding:10px&quot;&gt;&lt;img src=&quot;http://media.xircles.codehaus.org/_projects/drools/_logos/small.png&quot; title=&quot;JBoss Rules Engine&quot; /&gt;&lt;/div&gt;
&lt;a href=&quot;http://drools.codehaus.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Drools&lt;/a&gt; is a Rules Engine implementation based on Charles Forgy's Rete algorithm tailored for the Java language. Adapting Rete to an object-oriented interface allows for more natural expression of business rules with regards to business objects. Drools is written in &lt;b&gt;Java&lt;/b&gt;, but able to run on &lt;b&gt;Java&lt;/b&gt; and &lt;b&gt;.Net&lt;/b&gt;.&lt;br&gt;
&lt;br&gt;
Drools is designed to allow pluggeable language implementations. Currently rules can be written in &lt;b&gt;Java&lt;/b&gt;, &lt;b&gt;Python&lt;/b&gt; and &lt;b&gt;Groovy&lt;/b&gt;. More importantly, Drools provides for Declarative Programming and is flexible enough to match the semantics of your problem domain with Domain Specific Languages (DSL) via XML using a Schema defined for your problem domain. DSLs consist of XML elements and attributes that represent the problem domain.</subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-19356748</id>
	<title>Re: invalid rule package</title>
	<published>2008-09-07T03:35:35Z</published>
	<updated>2008-09-07T03:35:35Z</updated>
	<author>
		<name>Sascha Janz</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16705&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;ok. found the error.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;i added a line&amp;nbsp; which should execute a 
function wtih no entries in &amp;nbsp;conditions . this should set a default value. 
any idea how to do this?&lt;/FONT&gt;&lt;/DIV&gt;
&lt;BLOCKQUOTE style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px&quot;&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;----- Original Message ----- &lt;/DIV&gt;
  &lt;DIV style=&quot;BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black&quot;&gt;&lt;B&gt;From:&lt;/B&gt; 
  &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19356748&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Sascha.Janz@...&lt;/a&gt; 
  &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;To:&lt;/B&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19356748&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt; 
  &lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Sent:&lt;/B&gt; Sunday, September 07, 2008 10:12 
  AM&lt;/DIV&gt;
  &lt;DIV style=&quot;FONT: 10pt arial&quot;&gt;&lt;B&gt;Subject:&lt;/B&gt; [rules-users] invalid rule 
  package&lt;/DIV&gt;
  &lt;DIV&gt;&lt;BR&gt;&lt;/DIV&gt;
  &lt;DIV&gt;I'm a member of the drools mailinglist, so please answer me&lt;/DIV&gt;
  &lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
  &lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;am using jbpm with drools. my rules are 
  defined in an excel sheet. &lt;BR&gt;&lt;BR&gt;where must i install the class referenced 
  in the excel sheet? &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;org.drools.rule.InvalidRulePackage: Rule 
  Compilation error &lt;BR&gt;&lt;BR&gt;formular(my class) cannot be resolved&lt;/FONT&gt;&lt;/DIV&gt;
  &lt;P&gt;
  &lt;HR&gt;

  &lt;P&gt;&lt;/P&gt;_______________________________________________&lt;BR&gt;rules-users mailing 
  list&lt;BR&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19356748&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;&lt;BR&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;BR&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19356748&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/invalid-rule-package-tp19355615p19356748.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19355615</id>
	<title>invalid rule package</title>
	<published>2008-09-07T01:12:34Z</published>
	<updated>2008-09-07T01:12:34Z</updated>
	<author>
		<name>Sascha Janz</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML&gt;&lt;HEAD&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=iso-8859-1&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.6000.16705&quot; name=GENERATOR&gt;

&lt;/HEAD&gt;
&lt;BODY bgColor=#ffffff&gt;
&lt;DIV&gt;I'm a member of the drools mailinglist, so please answer me&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face=Arial size=2&gt;&amp;nbsp;am using jbpm with drools. my rules are 
defined in an excel sheet. &lt;BR&gt;&lt;BR&gt;where must i install the class referenced in 
the excel sheet? &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;org.drools.rule.InvalidRulePackage: Rule 
Compilation error &lt;BR&gt;&lt;BR&gt;formular(my class) cannot be 
resolved&lt;/FONT&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19355615&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/invalid-rule-package-tp19355615p19355615.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19355094</id>
	<title>Drools eval condition element throws ClassNotFoundException</title>
	<published>2008-09-07T01:03:27Z</published>
	<updated>2008-09-07T01:03:27Z</updated>
	<author>
		<name>kushi1230</name>
	</author>
	<content type="html">HI,
&lt;br&gt;&lt;br&gt;Am getting the following exception when I tried calling fireAllRules(), I have also attached the Drool file with this post
&lt;br&gt;&lt;br&gt;Caused by: java.io.IOException: No ClassLoaders found for: BP_RL_144.Rule_Rule_0_0Eval0Invoker
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:332)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.classmetamodel.StreamingClass.readStream(StreamingClass.java:72)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:381)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.persister.ObjectInputStreamProxy.readObjectOverride(ObjectInputStreamProxy.java:68)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.util.ArrayList.readObject(ArrayList.java:587)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 134 more
&lt;br&gt;Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: BP_RL_144.Rule_Rule_0_0Eval0Invoker
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.forName0(Native Method)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.lang.Class.forName(Class.java:242)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.classmetamodel.ClassMetamodelFactory.resolveClassByName(ClassMetamodelFactory.java:274)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:289)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 147 more
&lt;br&gt;&lt;br&gt;Please help me to resolve this issue&lt;a href=&quot;http://www.nabble.com/file/p19355094/BP_RL_FIRST.drl&quot; target=&quot;_top&quot;&gt;BP_RL_FIRST.drl&lt;/a&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools-eval-condition-element-throws-ClassNotFoundException-tp19355094p19355094.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19353112</id>
	<title>Returned mail: Data format error</title>
	<published>2008-09-06T17:20:25Z</published>
	<updated>2008-09-06T17:20:25Z</updated>
	<author>
		<name>JBoss IT-2</name>
	</author>
	<content type="html">Your message was undeliverable due to the following reason(s):
&lt;br&gt;&lt;br&gt;Your message could not be delivered because the destination server was
&lt;br&gt;not reachable within the allowed queue period. The amount of time
&lt;br&gt;a message is queued before it is returned depends on local configura-
&lt;br&gt;tion parameters.
&lt;br&gt;&lt;br&gt;Most likely there is a network problem that prevented delivery, but
&lt;br&gt;it is also possible that the computer is turned off, or does not
&lt;br&gt;have a mail system running right now.
&lt;br&gt;&lt;br&gt;Your message was not delivered within 5 days:
&lt;br&gt;Host 204.45.179.129 is not responding.
&lt;br&gt;&lt;br&gt;The following recipients could not receive this message:
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19353112&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Please reply to &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19353112&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;postmaster@...&lt;/a&gt;
&lt;br&gt;if you feel this message to be in error.
&lt;br&gt;&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19353112&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;readme.scr&lt;/strong&gt; (39K) &lt;a href=&quot;http://www.nabble.com/attachment/19353112/0/readme.scr&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Returned-mail%3A-Data-format-error-tp19353112p19353112.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19343784</id>
	<title>RE: Help with syntax for detecting when an object exists, none of whose children match a pattern</title>
	<published>2008-09-06T00:12:32Z</published>
	<updated>2008-09-06T00:12:32Z</updated>
	<author>
		<name>Vikrant Yagnick</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns:x=&quot;urn:schemas-microsoft-com:office:excel&quot; xmlns:m=&quot;http://schemas.microsoft.com/office/2004/12/omml&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 12 (filtered medium)&quot;&gt;
&lt;title&gt;Help with syntax for detecting when an object exists, none of whose
children match a pattern&lt;/title&gt;

&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapedefaults v:ext=&quot;edit&quot; spidmax=&quot;1026&quot; /&gt;
&lt;/xml&gt;&lt;![endif]--&gt;&lt;!--[if gte mso 9]&gt;&lt;xml&gt;
 &lt;o:shapelayout v:ext=&quot;edit&quot;&gt;
  &lt;o:idmap v:ext=&quot;edit&quot; data=&quot;1&quot; /&gt;
 &lt;/o:shapelayout&gt;&lt;/xml&gt;&lt;![endif]--&gt;
&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=purple&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;I am a bit of a newbie myself, but I assume the following would
work:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;When &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&amp;nbsp;$p: ParentFactObject()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;$c: childFactObject(TestMe==false) from $p.ChildFactObjectList &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Then&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;//do something&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;End&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Another way is to simply assert the ChildFactObjectList as
separate facts into the working memory and then pattern match just them.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Cheers,&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;Vikrant &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;span style='font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;From:&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;'&gt;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19343784&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users-bounces@...&lt;/a&gt;
[mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19343784&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users-bounces@...&lt;/a&gt;] &lt;b&gt;On Behalf Of &lt;/b&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19343784&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Tom.E.Murphy@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Sent:&lt;/b&gt; Saturday, September 06, 2008 2:49 AM&lt;br&gt;
&lt;b&gt;To:&lt;/b&gt; &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19343784&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;&lt;br&gt;
&lt;b&gt;Subject:&lt;/b&gt; [rules-users] Help with syntax for detecting when an object
exists, none of whose children match a pattern&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;As a newbie to Drools
(using v4.0.7), I&amp;#8217;m struggling a bit with the right&lt;/span&gt; &lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;way to express&lt;/span&gt; &lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;the&lt;/span&gt; &lt;span style='font-family:
&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;following concept&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;I have a ParentFactObject
with an array of ChildFactObjects. &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;The ChildFactObjects have a
boolean attribute&lt;/span&gt; &lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;&amp;#8220;TestMe&amp;#8221;&lt;/span&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;I want to pattern match all
ParentFactObjects for whom all ChildFactObjects have false for TestMe&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;Here&amp;#8217;s what I&amp;#8217;ve tried:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;rule&lt;/span&gt;&lt;/b&gt;
&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;&amp;quot;NoTestChildren&amp;quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;when&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;$parentFactObject : ParentFactObject //
parent exists&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;(&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;not&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black'&gt;
ChildFactObject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // no child exists that has TestMe true&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;(&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;TestMe ==&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;true&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;)&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;from&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black'&gt; $parentFactObject.childFactObjects&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;then&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;log(&lt;/span&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green'&gt;&amp;quot;Rule&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green'&gt;NoTestChildren&lt;/span&gt;
&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green'&gt;fired.&amp;quot;&lt;/span&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black'&gt;);&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;end&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;I get the following:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red'&gt;org.drools.rule.InvalidRulePackage:
[66,4]: unknown:66:4 mismatched token:
[@1085,4469:4472='from',&amp;lt;38&amp;gt;,66:4]; expecting type THEN&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;Also tried this:&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;rule&lt;/span&gt;&lt;/b&gt;
&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;&amp;quot;&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;NoTestChildren&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;&amp;quot;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;when&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;$parentFactObject : Borrower&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;// parent exists&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;(&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;)&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;forall&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black'&gt;
($childFactObject :&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;ChildFactObject&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;'&gt;// no child exists that has
TestMe true&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;(&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;TestMe&lt;/span&gt; &lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:black'&gt;==&lt;/span&gt;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;true&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;) )&lt;/span&gt;&lt;b&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;from&lt;/span&gt;&lt;/b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black'&gt;
$parentFactObject.&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;childFactObjects&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style='font-size:
10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;then&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:black'&gt;log(&lt;/span&gt;&lt;span style='font-size:10.0pt;
font-family:&quot;Courier New&quot;;color:green'&gt;&amp;quot;Rule&lt;/span&gt; &lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green'&gt;NoTestChildren
fired.&amp;quot;&lt;/span&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;
color:black'&gt;);&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;span style='font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#960000'&gt;end&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;I&amp;#8217;ve&lt;/span&gt; &lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;tried a series of variations with
similar results.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;Can anyone provide any&lt;/span&gt;
&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;guidance on how to do this?&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt;Thanks in advance.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;&lt;span style='font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:blue'&gt;Tom Murphy&lt;/span&gt;&lt;/b&gt;&lt;br&gt;
&lt;b&gt;&lt;br&gt;
&lt;/b&gt;&lt;i&gt;&lt;span style='font-size:7.5pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:gray'&gt;This message may contain confidential and/or privileged
information.&amp;nbsp; If you are not the addressee or authorized to receive this
for the addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein.&amp;nbsp; If you have received this
message in error, please advise the sender immediately by reply e-mail and
delete this message.&amp;nbsp; Thank you for your cooperation.&lt;/span&gt;&lt;/i&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style='font-size:7.5pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:gray'&gt;&amp;nbsp;&lt;/span&gt;&lt;span style='font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;'&gt; &lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;table class=MsoNormalTable border=0 cellpadding=0 style='background:white'&gt;
 &lt;tr&gt;
  &lt;td style='padding:.75pt .75pt .75pt .75pt'&gt;&lt;/td&gt;
 &lt;/tr&gt;
&lt;/table&gt;

&lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;br&gt;&lt;br&gt;&lt;table bgcolor=white style=&quot;color:black&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;br&gt;MASTEK&amp;nbsp;LTD.&lt;br&gt;
Mastek&amp;nbsp;in&amp;nbsp;NASSCOM&amp;#39;s&amp;nbsp;&amp;#39;India&amp;nbsp;Top&amp;nbsp;20&amp;#39;&amp;nbsp;Software&amp;nbsp;Service&amp;nbsp;Exporters&amp;nbsp;List.&lt;br&gt;
In&amp;nbsp;the&amp;nbsp;US,&amp;nbsp;we&amp;#39;re&amp;nbsp;called&amp;nbsp;MAJESCOMASTEK&lt;br&gt;
&lt;br&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br&gt;
Opinions&amp;nbsp;expressed&amp;nbsp;in&amp;nbsp;this&amp;nbsp;e-mail&amp;nbsp;are&amp;nbsp;those&amp;nbsp;of&amp;nbsp;the&amp;nbsp;individual&amp;nbsp;and&amp;nbsp;not&amp;nbsp;that&amp;nbsp;of&amp;nbsp;Mastek&amp;nbsp;Limited,&amp;nbsp;unless&amp;nbsp;specifically&amp;nbsp;indicated&amp;nbsp;to&amp;nbsp;that&amp;nbsp;effect.&amp;nbsp;Mastek&amp;nbsp;Limited&amp;nbsp;does&amp;nbsp;not&amp;nbsp;accept&amp;nbsp;any&amp;nbsp;responsibility&amp;nbsp;or&amp;nbsp;liability&amp;nbsp;for&amp;nbsp;it.&amp;nbsp;This&amp;nbsp;e-mail&amp;nbsp;and&amp;nbsp;attachments&amp;nbsp;(if&amp;nbsp;any)&amp;nbsp;transmitted&amp;nbsp;with&amp;nbsp;it&amp;nbsp;are&amp;nbsp;confidential&amp;nbsp;and/or&amp;nbsp;privileged&amp;nbsp;and&amp;nbsp;solely&amp;nbsp;for&amp;nbsp;the&amp;nbsp;use&amp;nbsp;of&amp;nbsp;the&amp;nbsp;intended&amp;nbsp;person&amp;nbsp;or&amp;nbsp;entity&amp;nbsp;to&amp;nbsp;which&amp;nbsp;it&amp;nbsp;is&amp;nbsp;addressed.&amp;nbsp;Any&amp;nbsp;review,&amp;nbsp;re-transmission,&amp;nbsp;dissemination&amp;nbsp;or&amp;nbsp;other&amp;nbsp;use&amp;nbsp;of&amp;nbsp;or&amp;nbsp;taking&amp;nbsp;of&amp;nbsp;any&amp;nbsp;action&amp;nbsp;in&amp;nbsp;reliance&amp;nbsp;upon&amp;nbsp;this&amp;nbsp;information&amp;nbsp;by&amp;nbsp;persons&amp;nbsp;or&amp;nbsp;entities&amp;nbsp;other&amp;nbsp;than&amp;nbsp;the&amp;nbsp;intended&amp;nbsp;recipient&amp;nbsp;is&amp;nbsp;prohibited.&amp;nbsp;This&amp;nbsp;e-mail&amp;nbsp;and&amp;nbsp;its&amp;nbsp;attachments&amp;nbsp;have&amp;nbsp;been&amp;nbsp;scanned&amp;nbsp;for&amp;nbsp;the&amp;nbsp;presence&amp;nbsp;of&amp;nbsp;computer&amp;nbsp;viruses.&amp;nbsp;It&amp;nbsp;is&amp;nbsp;the&amp;nbsp;responsibility&amp;nbsp;of&amp;nbsp;the&amp;nbsp;recipient&amp;nbsp;to&amp;nbsp;run&amp;nbsp;the&amp;nbsp;virus&amp;nbsp;check&amp;nbsp;on&amp;nbsp;e-mails&amp;nbsp;and&amp;nbsp;attachments&amp;nbsp;before&amp;nbsp;opening&amp;nbsp;them.&amp;nbsp;If&amp;nbsp;you&amp;nbsp;have&amp;nbsp;received&amp;nbsp;this&amp;nbsp;e-mail&amp;nbsp;in&amp;nbsp;error,&amp;nbsp;kindly&amp;nbsp;delete&amp;nbsp;this&amp;nbsp;e-mail&amp;nbsp;from&amp;nbsp;desktop&amp;nbsp;and&amp;nbsp;server.&lt;br&gt;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19343784&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Help-with-syntax-for-detecting-when-an-object-exists%2C-none-of-whose-children-match-a-pattern-tp19339837p19343784.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19343757</id>
	<title>Facing an issue with Drools Query</title>
	<published>2008-09-06T00:10:10Z</published>
	<updated>2008-09-06T00:10:10Z</updated>
	<author>
		<name>Siddhartha Banik</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Hi,&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;I am facing an issue 
with Drools Query.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Our application 
serializes working memory after its each execution, to save the rule engine 
state. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Our rule base 
contains a Query along with other rules:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote dir=&quot;ltr&quot; style=&quot;MARGIN-RIGHT: 0px&quot;&gt;
&lt;blockquote dir=&quot;ltr&quot; style=&quot;MARGIN-RIGHT: 0px&quot;&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font size=&quot;2&quot;&gt;&lt;font size=&quot;2&quot;&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;query &amp;quot;GetFactsBy&lt;span class=&quot;539572406-06092008&quot;&gt;Value&lt;/span&gt;&amp;quot; ( String $value )&lt;br&gt;&amp;nbsp;&amp;nbsp; Facts : 
DataObject( stringValue == $value 
)&lt;br&gt;end&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;With this query 
present in Rule Base, if I insert more then 900 instances of DataObject &amp;amp; 
then try to serialize the working memory... serialization fails with bellow 
error:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;MARGIN-RIGHT: 0px&quot;&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;font size=&quot;1&quot;&gt;&amp;nbsp;java.lang.StackOverflowError&lt;br&gt;&amp;nbsp;at 
java.io.ObjectStreamClass.processQueue(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectStreamClass.lookup(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.writeObject0(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.writeSerialData(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.writeObject0(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.writeSerialData(Unknown Source)&lt;br&gt;&amp;nbsp;at 
java.io.ObjectOutputStream.writeOrdinaryObject(Unknown 
Source&lt;/font&gt;)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;But if I remove the 
query from rule base, I can&amp;nbsp; insert more then 60,000 objects &amp;amp; then 
serialize WM without any problem. &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Not sure if this is 
a bug in Query feature or problem in the way I have written the Query. I have 
attached test files.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;We are using few 
more queries in our RuleBase like:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote dir=&quot;ltr&quot; style=&quot;MARGIN-RIGHT: 0px&quot;&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;query &amp;quot;GetAllFacts&amp;quot; 
( )&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fact : DataObject( )&lt;br&gt;end&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;1&quot;&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;query 
&amp;quot;GetFactsByDate&amp;quot; ( Calendar $startDate, Calendar $endDate )&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fact : 
DataObject( startDate &amp;gt;= $startDate, endDate &amp;lt;= $endDate )&lt;br&gt;end&amp;nbsp; 
&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font size=&quot;1&quot;&gt;&lt;/font&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;query 
&amp;quot;GetFactsByParamIdTimeRange&amp;quot; ( ArrayList $paramIDs, Calendar $startDate, 
Calendar $endDate )&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facts : DataObject( paramID memberOf $paramIDs, 
startDate &amp;gt;= $startDate, endDate &amp;lt;= $endDate 
)&lt;br&gt;end&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;div dir=&quot;ltr&quot;&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Not sure if 
they also may fail in some special scenarios. Atleast last 3 Queries we are 
planning to use in our production. Is it ok to use those? &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Execution 
Environment:&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;OS: Windows/ 
Solaris&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Drools 
4.0.7&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;jre1.5.0_09&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Thanks&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span class=&quot;539572406-06092008&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Siddhartha&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19343757&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://www.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;TestQuery.zip&lt;/strong&gt; (3K) &lt;a href=&quot;http://www.nabble.com/attachment/19343757/0/TestQuery.zip&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Facing-an-issue-with-Drools-Query-tp19343757p19343757.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19339837</id>
	<title>Help with syntax for detecting when an object exists, none of whose children match a pattern</title>
	<published>2008-09-05T14:19:21Z</published>
	<updated>2008-09-05T14:19:21Z</updated>
	<author>
		<name>Tom.E.Murphy</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 6.0.6620.0&quot;&gt;
&lt;TITLE&gt;Help with syntax for detecting when an object exists, none of whose children match a pattern&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/rtf format --&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;As a newbie to Drools&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt; (using v4.0.7)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;, I&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;&amp;#8217;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;m struggling a bit with the right&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT FACE=&quot;Calibri&quot;&gt;way&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt; to express&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT FACE=&quot;Calibri&quot;&gt;the&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT FACE=&quot;Calibri&quot;&gt;following concept&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;I have a ParentFactObject with an array of ChildFactObjects. &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;The ChildFactObjects have a boolean attribute&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT FACE=&quot;Calibri&quot;&gt;&amp;#8220;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;TestMe&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;&amp;#8221;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;I want to pattern match all ParentFactObjects for whom all ChildFactObjects have false for TestMe&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;Here&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;&amp;#8217;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;s what I&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;&amp;#8217;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;ve tried:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;rule&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;NoTestChildren&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;when&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;$parentFactObject : ParentFactObject // parent exists&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;not&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt; ChildFactObject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // no child exists that has TestMe true&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;TestMe ==&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;true&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;from&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt; $parentFactObject.childFactObjects&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;then&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;log(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#008000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;Rule&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#008000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;NoTestChildren&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#008000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#008000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;fired.&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;end&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;I get the following:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#FF0000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;org.drools.rule.InvalidRulePackage: [66,4]: unknown:66:4 mismatched token: [@1085,4469:4472='from',&amp;lt;38&amp;gt;,66:4]; expecting type THEN&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;Also tried this:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;rule&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;NoTestChildren&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;when&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;$parentFactObject : Borrower&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;// parent exists&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;forall&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt; ($&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;childFactObject&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt; :&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;ChildFactObject&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT SIZE=2 FACE=&quot;Courier New&quot;&gt;// no child exists that has TestMe true&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;TestMe&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;==&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;true&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;) )&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;from&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt; $parentFactObject.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;childFactObjects&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt; &lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;then&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;log(&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#008000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;&amp;quot;Rule&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT COLOR=&quot;#008000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;NoTestChildren&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#008000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt; fired.&amp;quot;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#000000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;);&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;FONT COLOR=&quot;#960000&quot; SIZE=2 FACE=&quot;Courier New&quot;&gt;end&lt;/FONT&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;I&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;&amp;#8217;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;ve&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT FACE=&quot;Calibri&quot;&gt;tried a series of variations with similar results.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;Can anyone provide any&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt; &lt;FONT FACE=&quot;Calibri&quot;&gt;guidance&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt; on how to do this&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt;Thanks in advance.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;B&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#0000FF&quot; FACE=&quot;Arial&quot;&gt;Tom Murphy&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;BR&gt;
&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;B&gt;&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;BR&gt;
&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;I&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#808080&quot; SIZE=1 FACE=&quot;Arial&quot;&gt;This message may contain confidential and/or privileged information.&amp;nbsp; If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action b&lt;/FONT&gt;&lt;FONT COLOR=&quot;#808080&quot; SIZE=1 FACE=&quot;Arial&quot;&gt;ased on this message or any information herein.&amp;nbsp; If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message.&amp;nbsp; Thank you for your cooperation.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT COLOR=&quot;#808080&quot; SIZE=1 FACE=&quot;Calibri&quot;&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;FONT FACE=&quot;Calibri&quot;&gt; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P DIR=LTR&gt;&lt;SPAN LANG=&quot;en-us&quot;&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19339837&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Help-with-syntax-for-detecting-when-an-object-exists%2C-none-of-whose-children-match-a-pattern-tp19339837p19339837.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19338325</id>
	<title>RE: Drools, Performance issues on 4.0.7 Vs 2.5</title>
	<published>2008-09-05T12:46:28Z</published>
	<updated>2008-09-05T12:46:28Z</updated>
	<author>
		<name>Sushanta Rout</name>
	</author>
	<content type="html">&lt;html xmlns:v=&quot;urn:schemas-microsoft-com:vml&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot; xmlns:w=&quot;urn:schemas-microsoft-com:office:word&quot; xmlns=&quot;http://www.w3.org/TR/REC-html40&quot;&gt;

&lt;head&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;meta name=Generator content=&quot;Microsoft Word 11 (filtered medium)&quot;&gt;
&lt;!--[if !mso]&gt;
&lt;style&gt;
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
&lt;/style&gt;
&lt;![endif]--&gt;


&lt;/head&gt;

&lt;body lang=EN-US link=blue vlink=blue&gt;

&lt;div class=Section1&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;Thanks Edson. Is there any example to rewrite
the rule without rule?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=2 color=navy face=Arial&gt;&lt;span style='font-size:
10.0pt;font-family:Arial;color:navy'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;div class=MsoNormal align=center style='text-align:center'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;

&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;

&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'&gt;From:&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font size=2 face=Tahoma&gt;&lt;span style='font-size:10.0pt;font-family:Tahoma'&gt;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19338325&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users-bounces@...&lt;/a&gt;
[mailto:&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19338325&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users-bounces@...&lt;/a&gt;] &lt;b&gt;&lt;span style='font-weight:bold'&gt;On
Behalf Of &lt;/span&gt;&lt;/b&gt;Edson Tirelli&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Sent:&lt;/span&gt;&lt;/b&gt; Friday, September 05, 2008
2:59 PM&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;To:&lt;/span&gt;&lt;/b&gt; Rules Users List&lt;br&gt;
&lt;b&gt;&lt;span style='font-weight:bold'&gt;Subject:&lt;/span&gt;&lt;/b&gt; Re: [rules-users] Drools,
Performance issues on 4.0.7 Vs 2.5&lt;/span&gt;&lt;/font&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal style='margin-bottom:12.0pt'&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:12.0pt'&gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp; Start by eliminating the evals and writing your constraints
properly inside the patterns. Drools 3+ is orders of magnitude faster than
Drools 2.x, but you need to leverage its power in your rules. Please read the
manual as the version 3 was a completely rewrite of version 2. Version 4 is an
improvement over 3.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; As an example, look at this: &lt;a href=&quot;http://blog.athico.com/2006/11/rush-hour-and-content-based-routing.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.athico.com/2006/11/rush-hour-and-content-based-routing.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; []s&lt;br&gt;
&amp;nbsp;&amp;nbsp; Edson&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;2008/9/5 Rout, Sushanta (ThoughtMill) &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19338325&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Sushanta.Rout@...&lt;/a&gt;&amp;gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;We were using Drools 2.5 version earlier. Now we have switched to
drools&lt;br&gt;
&lt;a href=&quot;http://4.0.7.&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;4.0.7.&lt;/a&gt; But we see significant
issues with performance like drools 4.0.7&lt;br&gt;
is three times slower than 2.5 . Has anybody encountered the issue?&lt;br&gt;
&lt;br&gt;
Here is a sample of the rule, we have some more similar to this.&lt;br&gt;
rule &amp;quot;test&amp;quot;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dialect &amp;quot;java&amp;quot;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;activation-group &amp;quot;group1&amp;quot;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$croNumberDetailsRequest
: CRONumberDetailsRequest()&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$resdirectPhoneNumber :
ResdirectPhoneNumber()&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;eval($resdirectPhoneNumber.getType().getId() == 5 &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidForBrand($croNumberDetailsRequest.getBrand(&lt;br&gt;
)) &amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; $croNumberDetailsRequest.getRegion() != null &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidRegion($croNumberDetailsRequest.getRegion()&lt;br&gt;
) &amp;amp;&amp;amp;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp; $croNumberDetailsRequest.getLocale() != null &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidForLocaleId($croNumberDetailsRequest.getLoc&lt;br&gt;
ale()) &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidSlot($croNumberDetailsRequest.getSlot()));&lt;br&gt;
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&amp;nbsp;ResultList.add($resdirectPhoneNumber);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
rules-users mailing list&lt;br&gt;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19338325&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;p class=MsoNormal&gt;&lt;font size=3 face=&quot;Times New Roman&quot;&gt;&lt;span style='font-size:
12.0pt'&gt;&lt;br&gt;
&lt;br clear=all&gt;
&lt;br&gt;
-- &lt;br&gt;
Edson Tirelli&lt;br&gt;
JBoss Drools Core Development&lt;br&gt;
JBoss, a division of Red Hat @ &lt;a href=&quot;http://www.jboss.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.jboss.com&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;

&lt;/div&gt;

&lt;/div&gt;

&lt;/body&gt;

&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19338325&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19338325.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19337631</id>
	<title>Re: Drools, Performance issues on 4.0.7 Vs 2.5</title>
	<published>2008-09-05T11:59:08Z</published>
	<updated>2008-09-05T11:59:08Z</updated>
	<author>
		<name>Edson Tirelli-3</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; Start by eliminating the evals and writing your constraints properly inside the patterns. Drools 3+ is orders of magnitude faster than Drools 2.x, but you need to leverage its power in your rules. Please read the manual as the version 3 was a completely rewrite of version 2. Version 4 is an improvement over 3.&lt;br&gt;
&lt;br&gt;&amp;nbsp;&amp;nbsp; As an example, look at this: &lt;a href=&quot;http://blog.athico.com/2006/11/rush-hour-and-content-based-routing.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.athico.com/2006/11/rush-hour-and-content-based-routing.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp; []s&lt;br&gt;&amp;nbsp;&amp;nbsp; Edson&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2008/9/5 Rout, Sushanta (ThoughtMill) &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19337631&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Sushanta.Rout@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
We were using Drools 2.5 version earlier. Now we have switched to drools&lt;br&gt;
&lt;a href=&quot;http://4.0.7.&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;4.0.7.&lt;/a&gt; But we see significant issues with performance like drools 4.0.7&lt;br&gt;
is three times slower than 2.5 . Has anybody encountered the issue?&lt;br&gt;
&lt;br&gt;
Here is a sample of the rule, we have some more similar to this.&lt;br&gt;
rule &amp;quot;test&amp;quot;&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dialect &amp;quot;java&amp;quot;&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;activation-group &amp;quot;group1&amp;quot;&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;when&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$croNumberDetailsRequest : CRONumberDetailsRequest()&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$resdirectPhoneNumber : ResdirectPhoneNumber()&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eval($resdirectPhoneNumber.getType().getId() == 5 &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidForBrand($croNumberDetailsRequest.getBrand(&lt;br&gt;
)) &amp;amp;&amp;amp;&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $croNumberDetailsRequest.getRegion() != null &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidRegion($croNumberDetailsRequest.getRegion()&lt;br&gt;
) &amp;amp;&amp;amp;&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $croNumberDetailsRequest.getLocale() != null &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidForLocaleId($croNumberDetailsRequest.getLoc&lt;br&gt;
ale()) &amp;amp;&amp;amp;&lt;br&gt;
&lt;br&gt;
$resdirectPhoneNumber.isValidSlot($croNumberDetailsRequest.getSlot()));&lt;br&gt;
&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;then&lt;br&gt;
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ResultList.add($resdirectPhoneNumber);&lt;br&gt;
end&lt;br&gt;
&lt;br&gt;
_______________________________________________&lt;br&gt;
rules-users mailing list&lt;br&gt;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19337631&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt; Edson Tirelli&lt;br&gt; JBoss Drools Core Development&lt;br&gt; JBoss, a division of Red Hat @ &lt;a href=&quot;http://www.jboss.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;www.jboss.com&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19337631&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19337631.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19337588</id>
	<title>RE: Drools, Performance issues on 4.0.7 Vs 2.5</title>
	<published>2008-09-05T11:54:27Z</published>
	<updated>2008-09-05T11:54:27Z</updated>
	<author>
		<name>Michael Rhoden</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 3.2//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; charset=us-ascii&quot;&gt;
&lt;META NAME=&quot;Generator&quot; CONTENT=&quot;MS Exchange Server version 08.00.0681.000&quot;&gt;
&lt;TITLE&gt;RE: [rules-users] Drools, Performance issues on 4.0.7 Vs 2.5&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;!-- Converted from text/plain format --&gt;

&lt;P&gt;&lt;FONT SIZE=2&gt;I'll say it before someone else...&lt;BR&gt;
&lt;BR&gt;
Evals are the devil, avoid them. From memory, the newer drools handles old rules poorly, using extensive use of evals. It's the reason we have not moved up to the newest version yet. It's probably not pretty but you may have to rewrite/reconfigure your rules to avoid the use of evals, if that 3x performance is a significant issue.&lt;BR&gt;
&lt;BR&gt;
-Michael&lt;BR&gt;
&lt;BR&gt;
-----Original Message-----&lt;BR&gt;
From: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19337588&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users-bounces@...&lt;/a&gt; [&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19337588&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users-bounces@...&lt;/a&gt;] On Behalf Of Rout, Sushanta (ThoughtMill)&lt;BR&gt;
Sent: Friday, September 05, 2008 10:32 AM&lt;BR&gt;
To: Rules Users List&lt;BR&gt;
Subject: [rules-users] Drools, Performance issues on 4.0.7 Vs 2.5&lt;BR&gt;
&lt;BR&gt;
We were using Drools 2.5 version earlier. Now we have switched to drools&lt;BR&gt;
4.0.7. But we see significant issues with performance like drools 4.0.7&lt;BR&gt;
is three times slower than 2.5 . Has anybody encountered the issue?&lt;BR&gt;
&lt;BR&gt;
Here is a sample of the rule, we have some more similar to this.&lt;BR&gt;
rule &amp;quot;test&amp;quot;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dialect &amp;quot;java&amp;quot;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; activation-group &amp;quot;group1&amp;quot;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $croNumberDetailsRequest : CRONumberDetailsRequest()&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $resdirectPhoneNumber : ResdirectPhoneNumber()&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eval($resdirectPhoneNumber.getType().getId() == 5 &amp;amp;&amp;amp;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;
$resdirectPhoneNumber.isValidForBrand($croNumberDetailsRequest.getBrand(&lt;BR&gt;
)) &amp;amp;&amp;amp;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $croNumberDetailsRequest.getRegion() != null &amp;amp;&amp;amp;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;
$resdirectPhoneNumber.isValidRegion($croNumberDetailsRequest.getRegion()&lt;BR&gt;
) &amp;amp;&amp;amp;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $croNumberDetailsRequest.getLocale() != null &amp;amp;&amp;amp;&lt;BR&gt;
&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;
$resdirectPhoneNumber.isValidForLocaleId($croNumberDetailsRequest.getLoc&lt;BR&gt;
ale()) &amp;amp;&amp;amp;&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;
$resdirectPhoneNumber.isValidSlot($croNumberDetailsRequest.getSlot()));&lt;BR&gt;
&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;BR&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultList.add($resdirectPhoneNumber);&lt;BR&gt;
end&lt;BR&gt;
&lt;BR&gt;
_______________________________________________&lt;BR&gt;
rules-users mailing list&lt;BR&gt;
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19337588&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;&lt;BR&gt;
&lt;A HREF=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/A&gt;&lt;BR&gt;
&lt;/FONT&gt;
&lt;/P&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19337588&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19337588.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19333992</id>
	<title>Drools, Performance issues on 4.0.7 Vs 2.5</title>
	<published>2008-09-05T08:31:43Z</published>
	<updated>2008-09-05T08:31:43Z</updated>
	<author>
		<name>Sushanta Rout</name>
	</author>
	<content type="html">We were using Drools 2.5 version earlier. Now we have switched to drools
&lt;br&gt;4.0.7. But we see significant issues with performance like drools 4.0.7
&lt;br&gt;is three times slower than 2.5 . Has anybody encountered the issue?
&lt;br&gt;&lt;br&gt;Here is a sample of the rule, we have some more similar to this.
&lt;br&gt;rule &amp;quot;test&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dialect &amp;quot;java&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; activation-group &amp;quot;group1&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $croNumberDetailsRequest : CRONumberDetailsRequest()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $resdirectPhoneNumber : ResdirectPhoneNumber()
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eval($resdirectPhoneNumber.getType().getId() == 5 &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;$resdirectPhoneNumber.isValidForBrand($croNumberDetailsRequest.getBrand(
&lt;br&gt;)) &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$croNumberDetailsRequest.getRegion() != null &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;$resdirectPhoneNumber.isValidRegion($croNumberDetailsRequest.getRegion()
&lt;br&gt;) &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$croNumberDetailsRequest.getLocale() != null &amp;&amp;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;$resdirectPhoneNumber.isValidForLocaleId($croNumberDetailsRequest.getLoc
&lt;br&gt;ale()) &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;$resdirectPhoneNumber.isValidSlot($croNumberDetailsRequest.getSlot()));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ResultList.add($resdirectPhoneNumber);
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333992&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19333992.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19333758</id>
	<title>Re: Drools &amp; &quot;Query by Example&quot;?</title>
	<published>2008-09-05T08:21:04Z</published>
	<updated>2008-09-05T08:21:04Z</updated>
	<author>
		<name>incunabulum</name>
	</author>
	<content type="html">Hi Mark, Greg
&lt;br&gt;&lt;br&gt;Mark Proctor wrote:
&lt;br&gt;&amp;gt; Someone poppe onto irc a few months back, claiming they did this for 
&lt;br&gt;&amp;gt; their company and would provide the code as a patch - never heard 
&lt;br&gt;&amp;gt; anything after that though :( So if that person is read, please
&lt;br&gt;&amp;gt; upload your patch to JIRA :)
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Maybe if it's useful enough an operator could be added to Drools
&lt;br&gt;&amp;gt;&amp;gt; that does the same thing. &amp;nbsp;&amp;quot;~=&amp;quot; maybe?
&lt;br&gt;&lt;br&gt;Using the function to simulate the open world assumption is a neat idea!
&lt;br&gt;The eval() requirements not so much....
&lt;br&gt;&lt;br&gt;Mark, as I am not afraid of digging into the code base... any pointers
&lt;br&gt;where I should start looking to add this behaviour? Some class or
&lt;br&gt;package name would help as drools is not so small :)
&lt;br&gt;&lt;br&gt;cu, Michael
&lt;br&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333758&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19333758.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19333292</id>
	<title>Multiple conditions in 'when' statement in rule using dsl</title>
	<published>2008-09-05T08:07:42Z</published>
	<updated>2008-09-05T08:07:42Z</updated>
	<author>
		<name>Hypnotoad</name>
	</author>
	<content type="html">I'm sure I'm missing something stupid somewhere, but I'm new...
&lt;br&gt;&lt;br&gt;I'm trying to use multiple conditions inside a 'when' using a dsl. &amp;nbsp;There was no explicit description of how to do this in the docs when using a dsl. &amp;nbsp;I tried separating the conditions with ',', and, &amp;&amp; but none didn't work. &amp;nbsp;No matter what, it seems to treat this as an OR.
&lt;br&gt;&lt;br&gt;I have multiple conditions laid out in a mapping file such as:
&lt;br&gt;&lt;br&gt;[condition][]There is a cl with drt of &amp;quot;{drt}&amp;quot;=CLMessage(drt==&amp;quot;{drt}&amp;quot;)
&lt;br&gt;[condition][]There is a cl with a dT of &amp;quot;{dT}&amp;quot;=CLMessage(dT==&amp;quot;{dT}&amp;quot;)
&lt;br&gt;...
&lt;br&gt;&lt;br&gt;Here is the rule:
&lt;br&gt;rule &amp;quot;rule4&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; when
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; There is a cl with drt of &amp;quot;12345&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; There is a cl with a dT of &amp;quot;G&amp;quot;		
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Log &amp;quot;Rule 4&amp;quot;
&lt;br&gt;end
&lt;br&gt;&lt;br&gt;For this example. there are 2 items, one that matches only one condition, and another that matches both conditions. &amp;nbsp;However, the text &amp;quot;Rule 4&amp;quot; is printed twice.
&lt;br&gt;&lt;br&gt;Thanks&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Multiple-conditions-in-%27when%27-statement-in-rule-using-dsl-tp19333292p19333292.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19333519</id>
	<title>Re: logging with WorkingMemoryEventListener</title>
	<published>2008-09-05T08:07:20Z</published>
	<updated>2008-09-05T08:07:20Z</updated>
	<author>
		<name>Shyam, Pallav (MSCIBARRA)</name>
	</author>
	<content type="html">&lt;HTML&gt;
&lt;HEAD&gt;
&lt;META http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=us-ascii&quot;&gt;

&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;DIV&gt;&lt;p&gt;&lt;font size=2 color=navy face=Arial&gt;
You can override the toString method of InputObject to return the type information.&lt;br&gt;&lt;br&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;hr size=2 width=&quot;100%&quot; align=center tabindex=-1&gt;
&lt;font face=Tahoma size=2&gt;
&lt;b&gt;From&lt;/b&gt;: &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333519&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users-bounces@...&lt;/a&gt; &lt;rules-users-bounces@lists.jboss.org&gt;
&lt;br&gt;&lt;b&gt;To&lt;/b&gt;: Rules Users List &lt;rules-users@lists.jboss.org&gt;
&lt;br&gt;&lt;b&gt;Sent&lt;/b&gt;: Fri Sep 05 22:31:04 2008&lt;br&gt;&lt;b&gt;Subject&lt;/b&gt;: [rules-users] logging with WorkingMemoryEventListener
&lt;br&gt;&lt;/font&gt;&lt;/p&gt;
&lt;div dir=&quot;ltr&quot;&gt;Hello,&lt;br&gt;&lt;br&gt;I want to use &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOKUME%7E1%5Ckuko_th%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;WorkingMemoryEventListener and AgendaEventListener for logging. &lt;br&gt;But I have a generic InputObject as fact which has a parameter &amp;quot;type&amp;quot; to disitnguish between different fact types, but all facts are instances of the class InputObject, only the type Paramater has different values.&lt;br&gt;
Therefore in the log using DefaultWorkingMemoryEventListener I see only that an Object of class &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;InputObject&lt;/span&gt; is inserted but not which type teh Object has. Is it possible to configure the &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOKUME%7E1%5Ckuko_th%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;WorkingMemoryEventListener &lt;/span&gt;that also the type is logged?&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;Thomas&lt;br&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;HR&gt;
&lt;/DIV&gt;
&lt;P CLASS=&quot;BulletedList&quot; STYLE=&quot;MARGIN: 0in 0in 0pt; TEXT-INDENT: 0in; mso-list: none; tab-stops: .5in&quot;&gt;&lt;SPAN STYLE=&quot;FONT-SIZE: 8pt; COLOR: gray; mso-bidi-font-family: Arial&quot;&gt;&lt;FONT FACE=&quot;Arial&quot; COLOR=&quot;gray&quot; SIZE=&quot;1&quot;&gt;NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333519&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/logging-with-WorkingMemoryEventListener-tp19332720p19333519.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19333486</id>
	<title>Re: Drools &amp; &quot;Query by Example&quot;?</title>
	<published>2008-09-05T08:02:30Z</published>
	<updated>2008-09-05T08:02:30Z</updated>
	<author>
		<name>Mark Proctor</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
  &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Someone poppe onto irc a few months back, claiming they did this for
their company and would provide the code as a patch - never heard
anything after that though :(&lt;br&gt;
So if that person is read, please upload your patch to JIRA :)&lt;br&gt;
&lt;br&gt;
Mark&lt;br&gt;
Greg Barton wrote:
&lt;blockquote cite=&quot;mid:210359.67494.qm@web81507.mail.mud.yahoo.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;--- On Fri, 9/5/08, Michael Zimmermann &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333486&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list@...&lt;/a&gt; wrote:

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;rule &quot;MyRule&quot;
when
  book(year==myYear, author==myAuthor ...)
then
  ....

This works only if all properties myYear, myAuthor ... are
present. If one is undefined, the rule does not match.
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
You could have a function that returns true if the properties match or the property is null:

boolean matchesOrNull(Object o, Object p) {
  return p == null ? true : ( o == null ? true : o.equals(p) );
}

Call it using eval in the conditions.

Maybe if it's useful enough an operator could be added to Drools that does the same thing.  &quot;~=&quot; maybe?

GreG




      
_______________________________________________
rules-users mailing list
&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333486&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;a class=&quot;moz-txt-link-freetext&quot; href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;

  &lt;/pre&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19333486&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19333486.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19332720</id>
	<title>logging with WorkingMemoryEventListener</title>
	<published>2008-09-05T07:31:04Z</published>
	<updated>2008-09-05T07:31:04Z</updated>
	<author>
		<name>thomas kukofka</name>
	</author>
	<content type="html">&lt;div dir=&quot;ltr&quot;&gt;Hello,&lt;br&gt;&lt;br&gt;I want to use &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOKUME%7E1%5Ckuko_th%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;WorkingMemoryEventListener and AgendaEventListener for logging. &lt;br&gt;But I have a generic InputObject as fact which has a parameter &amp;quot;type&amp;quot; to disitnguish between different fact types, but all facts are instances of the class InputObject, only the type Paramater has different values.&lt;br&gt;
Therefore in the log using DefaultWorkingMemoryEventListener I see only that an Object of class &lt;/span&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;InputObject&lt;/span&gt; is inserted but not which type teh Object has. Is it possible to configure the &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;&lt;meta name=&quot;ProgId&quot; content=&quot;Word.Document&quot;&gt;&lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;meta name=&quot;Originator&quot; content=&quot;Microsoft Word 11&quot;&gt;&lt;link rel=&quot;File-List&quot; href=&quot;file:///C:%5CDOKUME%7E1%5Ckuko_th%5CLOKALE%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml&quot;&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;WorkingMemoryEventListener &lt;/span&gt;that also the type is logged?&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;Thomas&lt;br&gt;&lt;span style=&quot;font-size: 11pt; font-family: Arial;&quot; lang=&quot;EN-US&quot;&gt;&lt;br&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19332720&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/logging-with-WorkingMemoryEventListener-tp19332720p19332720.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19332603</id>
	<title>Re: Drools &amp; &quot;Query by Example&quot;?</title>
	<published>2008-09-05T07:25:33Z</published>
	<updated>2008-09-05T07:25:33Z</updated>
	<author>
		<name>Greg Barton</name>
	</author>
	<content type="html">--- On Fri, 9/5/08, Michael Zimmermann &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19332603&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;list@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; rule &amp;quot;MyRule&amp;quot;
&lt;br&gt;&amp;gt; when
&lt;br&gt;&amp;gt; &amp;nbsp; book(year==myYear, author==myAuthor ...)
&lt;br&gt;&amp;gt; then
&lt;br&gt;&amp;gt; &amp;nbsp; ....
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This works only if all properties myYear, myAuthor ... are
&lt;br&gt;&amp;gt; present. If one is undefined, the rule does not match.
&lt;br&gt;&lt;br&gt;You could have a function that returns true if the properties match or the property is null:
&lt;br&gt;&lt;br&gt;boolean matchesOrNull(Object o, Object p) {
&lt;br&gt;&amp;nbsp; return p == null ? true : ( o == null ? true : o.equals(p) );
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Call it using eval in the conditions.
&lt;br&gt;&lt;br&gt;Maybe if it's useful enough an operator could be added to Drools that does the same thing. &amp;nbsp;&amp;quot;~=&amp;quot; maybe?
&lt;br&gt;&lt;br&gt;GreG
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19332603&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19332603.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19331638</id>
	<title>Drools &amp; &quot;Query by Example&quot;?</title>
	<published>2008-09-05T06:38:20Z</published>
	<updated>2008-09-05T06:38:20Z</updated>
	<author>
		<name>incunabulum</name>
	</author>
	<content type="html">Hi there,
&lt;br&gt;&lt;br&gt;I am not really sure what is the best approach to model this the drools
&lt;br&gt;way... So, what is the best approach using drools to find all objects of
&lt;br&gt;a known type that fulfil certain criterias? Caveat: The number of
&lt;br&gt;criterias is flexible and not known?
&lt;br&gt;&lt;br&gt;I know, that such a selection process can be defined as simple case of
&lt;br&gt;constraint programming. Afaik this could be a problem for any rulebased
&lt;br&gt;system. Yet we do not want to introduce another compontent as this leads
&lt;br&gt;to dependency and communication issues.
&lt;br&gt;&lt;br&gt;Example:
&lt;br&gt;Assume a class book with properties &amp;quot;author&amp;quot;, &amp;quot;year&amp;quot;, &amp;quot;id&amp;quot; and
&lt;br&gt;&amp;quot;publisher&amp;quot;. As our problem is more complex I want to test book
&lt;br&gt;instances for the properties &amp;quot;author&amp;quot;, &amp;quot;year&amp;quot; etc. in individual rules.
&lt;br&gt;Now, given a list of books in the working memory I want to get answer to
&lt;br&gt;the following questions:
&lt;br&gt;&lt;br&gt;- List all books with author=&amp;quot;myName&amp;quot;, id=&amp;quot;123&amp;quot;
&lt;br&gt;- List all book with publisher=&amp;quot;Frank&amp;quot;
&lt;br&gt;&lt;br&gt;Due to the closed world assumption in Java and hence Drools, what is not
&lt;br&gt;possible is:
&lt;br&gt;&lt;br&gt;rule &amp;quot;MyRule&amp;quot;
&lt;br&gt;when
&lt;br&gt;&amp;nbsp; book(year==myYear, author==myAuthor ...)
&lt;br&gt;then
&lt;br&gt;&amp;nbsp; ....
&lt;br&gt;&lt;br&gt;This works only if all properties myYear, myAuthor ... are present. If
&lt;br&gt;one is undefined, the rule does not match.
&lt;br&gt;&lt;br&gt;The System:
&lt;br&gt;The system uses drools quite successfully for many tasks. All data
&lt;br&gt;objects are persisted using db4o.
&lt;br&gt;&lt;br&gt;Currently, I can think of two different approaches:
&lt;br&gt;1)
&lt;br&gt;- Start with all objects in the working memory
&lt;br&gt;- For each condition, if present, flag all objects, that do not
&lt;br&gt;&amp;nbsp; fulfil this condition, as invalid
&lt;br&gt;- Afterwards, list / process all objects that are not marked as invalid
&lt;br&gt;&lt;br&gt;2)
&lt;br&gt;- Start with no object in the working memory
&lt;br&gt;- Construct a blank object of the type analyzed
&lt;br&gt;- If a certain condition is present, add this conidtion to
&lt;br&gt;&amp;nbsp; the object
&lt;br&gt;- Query the object database in db4o and add all valid matching
&lt;br&gt;&amp;nbsp; object to the working memory. (db4o supports QueryByExample)
&lt;br&gt;&lt;br&gt;The double negotiation in the first approach is hard to understand and
&lt;br&gt;difficult to maintain. The second approach works reasonably well yet
&lt;br&gt;moves some of the main application logic to another component.
&lt;br&gt;&lt;br&gt;So, any clues, pointers or ideas how to solve this problem in a better way?
&lt;br&gt;&lt;br&gt;cu, Michael
&lt;br&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19331638&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/Drools---%22Query-by-Example%22--tp19331638p19331638.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19315060</id>
	<title>typed dsl variables</title>
	<published>2008-09-04T09:41:09Z</published>
	<updated>2008-09-04T09:41:09Z</updated>
	<author>
		<name>Matt Geis</name>
	</author>
	<content type="html">Hi Pallav,
&lt;br&gt;I just started a new gig, so I don't have my drools env all set up, but here are my suggestions to help you to really understand dsl's and build some powerful rules using them.
&lt;br&gt;&lt;br&gt;Quick, dirty, but you won't become a guru:
&lt;br&gt;1. &amp;nbsp;Download Drools 5.
&lt;br&gt;2. &amp;nbsp;Use the syntax for typed variables, and use regular expressions in your mapping file. &amp;nbsp;For example, 
&lt;br&gt;[condition][]{varname:[a-zA-z0-9]+}\s+is\sa\s+Volume\s+where\s+....
&lt;br&gt;3. &amp;nbsp;Keep in mind that dsl entries are expanded in a rule in the order they are declared in the DSL mapping file.
&lt;br&gt;&lt;br&gt;How to really learn it...
&lt;br&gt;1. &amp;nbsp;D/L the source and build.
&lt;br&gt;2. &amp;nbsp;Run your app, but run it through a debugger with breakpoint in the DefaultExpander class, so you can see exactly how pattern matching is going on, and step by step how your mappings transform your rule. &amp;nbsp;The rule below should have 3 mappings, the third one matching in two locations.
&lt;br&gt;&lt;br&gt;&lt;br&gt;v1 is a Volume where status is &amp;quot;NV&amp;quot; &amp;nbsp;and sourceId is 2 &amp;nbsp;and volume is
&lt;br&gt;1000
&lt;br&gt;&lt;br&gt;Also, check the blog at &lt;a href=&quot;http://blog.athico.com/2008/06/allowing-variable-masks-in-dsl-grammar.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://blog.athico.com/2008/06/allowing-variable-masks-in-dsl-grammar.html&lt;/a&gt;, and on the mailing list. &amp;nbsp;I've posted several times in the last couple months on how to solve this very problem using typed DSL variables.
&lt;br&gt;&lt;br&gt;--Matt
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;_______________________________________________
&lt;br&gt;rules-users mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19315060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;rules-users@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.jboss.org/mailman/listinfo/rules-users&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.jboss.org/mailman/listinfo/rules-users&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://www.nabble.com/drools---user-f11823.html&quot; embed=&quot;fixTarget[11823]&quot; target=&quot;_top&quot; &gt;drools - user&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/typed-dsl-variables-tp19315060p19315060.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-19313512</id>
	<title>Re: Can drools work in multithreaded environment?</title>
	<published>2008-09-04T08:31:15Z</published>
	<updated>2008-09-04T08:31:15Z</updated>
	<author>
		<name>Mark Proctor</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
We are going to need some test to replicate this, if we are to fix it,
unless someone else can track down the issue.&lt;br&gt;
&lt;br&gt;
Mark&lt;br&gt;
toddp2 wrote:
&lt;blockquote cite=&quot;mid:19310976.post@talk.nabble.com&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;
I ran into the same issue running JMeter recently.  I am getting the same
stack trace.  I checked my version and I am using 4.0.7 of Drools.  Was this
resolved by going to 4.0.7 for you?  Is there anything else to check? 

Todd


   



   You must update to 4.0.7. You are probably facing the issues we had in
4.0.3.

   []s
   Edson

2008/5/7 Barath &lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=19313512&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;barathguna@...&lt;/a&gt;:

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Edson,
I am using  4.0.3 version.

In my code,
 * For each thread new rule base and StatefulSession is created.
 * Then why i am getting the previously mentioned exceptions(which i
posted
in the first message) for few    threads only while other works fine.
 * Your suggestions please,
    &quot; 1 . Am i getting this error bcoz of the global list? or any other
reason?
     2 . How to solve this problem?&quot;

~Barath.


Edson Tirelli-3 wrote:
    &lt;/pre&gt;
    &lt;blockquote type=&quot;cite&quot;&gt;
      &lt;pre wrap=&quot;&quot;&gt;   Barath,

   What version of drools are you using?

   