<br><font size=2 face="sans-serif">I think I got it working now . I didnt
know that globals need to be inserted before insert hence I made the following
change and it worked-</font>
<br>
<br><font size=2 face="Courier New">&nbsp; session.setGlobal( </font><font size=2 color=#4200ff face="Courier New">&quot;p1&quot;</font><font size=2 face="Courier New">,
p1 );</font>
<br><font size=2 face="Courier New">&nbsp; session.insert(event); </font>
<br>
<br><font size=2 face="Courier New">instead of</font>
<br>
<br><font size=2 face="Courier New">&nbsp; &nbsp;session.insert(event);
</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp;session.setGlobal( </font><font size=2 color=#4200ff face="Courier New">&quot;p1&quot;</font><font size=2 face="Courier New">,
p1 );</font>
<br>
<br><font size=2 face="Courier New">Thanks for all the help.</font>
<br>
<br><font size=2 face="Courier New">Thanks</font>
<br><font size=2 face="Courier New">Shikha</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Shikha X Aggarwal/JPMCHASE</b></font>
<p><font size=1 face="sans-serif">11/12/2008 09:50 AM</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">Rules Users List &lt;rules-users@lists.jboss.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">&quot;Rules Users List&quot; &lt;rules-users@lists.jboss.org&gt;,
rules-users-bounces@lists.jboss.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] DROOLS from clause
giving Error</font><a href=Notes:///8525726B0073F75B/DABA975B9FB113EB852564B5001283EA/5E9A2799C518457A852574FA007EF13B>Link</a></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br><font size=2 face="sans-serif">Thanks for the response. However I get
the following error now . The only change I made was </font>
<br><font size=2 face="sans-serif">&nbsp; session.setGlobal( &quot;p1&quot;,
p1 );</font><font size=3> </font>
<br>
<br><font size=2 color=red face="Courier New">Exception in thread &quot;main&quot;
[Error: unable to access property (null parent): p1]</font>
<br><font size=2 color=red face="Courier New">[Near : {... Unknown ....}]</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;^</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:621</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getBeanProperty(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:455</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:279</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.mvel2.o</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br><font size=2 face="sans-serif">Shikha</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Edson Tirelli&quot;
&lt;tirelli@post.com&gt;</b> </font>
<br><font size=1 face="sans-serif">Sent by: rules-users-bounces@lists.jboss.org</font>
<p><font size=1 face="sans-serif">11/07/2008 05:58 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;rules-users@lists.jboss.org&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">&quot;Rules Users List&quot; &lt;rules-users@lists.jboss.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] DROOLS from clause
giving Error</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=3><br>
 &nbsp; You correctly set the &quot;list&quot; global, but you made a mistake
on the processor global:<br>
</font><font size=2 face="sans-serif"><br>
 &nbsp;session.setGlobal( &quot;processor&quot;, p1 );</font><font size=3>
<br>
<br>
 &nbsp; Should be:<br>
</font><font size=2 face="sans-serif"><br>
 &nbsp;session.setGlobal( &quot;p1&quot;, p1 );</font><font size=3> <br>
<br>
 &nbsp; []s<br>
 &nbsp; Edson<br>
</font>
<br><font size=3>2008/11/7 &lt;</font><a href=mailto:shikha.x.aggarwal@jpmchase.com><font size=3 color=blue><u>shikha.x.aggarwal@jpmchase.com</u></font></a><font size=3>&gt;</font>
<br><font size=2 face="sans-serif"><br>
I am ok in using 4.0.7 , I use want to use the &quot;from&quot; clause
which should be returnign data in form of list, the whole idea being I
dont want to insert objects in memory.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
This is how my rule file looks like -</font><font size=3> </font>
<br><font size=2 color=#a00000 face="Courier New"><b><br>
package</b></font><font size=2 face="Courier New"> org.drools.examples;</font><font size=3>
<br>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
import</b></font><font size=2 face="Courier New"> org.drools.examples.templates.DBSubscription;</font><font size=3>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
import</b></font><font size=2 face="Courier New"> org.drools.examples.templates.Event;</font><font size=3>
<br>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
global</b></font><font size=2 face="Courier New"> java.util.List list</font><font size=3>
</font>
<br><font size=2 color=#a00000 face="Courier New"><b>global</b></font><font size=2 face="Courier New">
org.drools.examples.Processor p1;</font><font size=3> </font>
<br><font size=2 color=#a00000 face="Courier New"><b><br>
rule</b></font><font size=2 face="Courier New"> </font><font size=2 color=#008000 face="Courier New">&quot;Rule1&quot;</font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>when</b></font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$event : Event(eventId == </font><font size=2 color=#008000 face="Courier New">&quot;eventId.IR.001&quot;</font><font size=2 face="Courier New">)
&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; $x : DBSubscription() </font><font size=2 color=#a00000 face="Courier New"><b>from</b></font><font size=2 face="Courier New">
p1.getUsers()</font><font size=3> </font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>then</b></font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.add($x); &nbsp;
&nbsp; &nbsp; &nbsp;</font><font size=3> </font><font size=2 color=#a00000 face="Courier New"><b><br>
end</b></font><font size=3> <br>
</font>
<br><font size=2 face="sans-serif">This is my calling code-</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><br>
 List arrayList = new ArrayList();</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;session.setGlobal( &quot;list&quot;, arrayList
);</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;session.insert(event); <br>
 &nbsp; &nbsp; &nbsp; &nbsp;Processor p1 = new Processor();</font><font size=3>
</font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;session.setGlobal( &quot;processor&quot;, p1
);</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;session.fireAllRules();</font><font size=3>
</font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;session.dispose();</font><font size=3> <br>
<br>
<br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=44%><font size=1 face="sans-serif"><b>&quot;Edson Tirelli&quot;
&lt;</b></font><a href=mailto:tirelli@post.com target=_blank><font size=1 color=blue face="sans-serif"><b><u>tirelli@post.com</u></b></font></a><font size=1 face="sans-serif"><b>&gt;</b>
<br>
Sent by: </font><a href="mailto:rules-users-bounces@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users-bounces@lists.jboss.org</u></font></a><font size=3>
</font>
<p><font size=1 face="sans-serif">11/07/2008 05:10 PM</font>
<p>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font></div></table>
<br>
<td width=55%>
<table width=100%>
<tr valign=top>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86%><font size=1 face="sans-serif">&quot;Rules Users List&quot;
&lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] DROOLS from clause
giving Error</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=49%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
 &nbsp;Drools 4.0.7 is the stable version where things just work! Drools
4 uses MVEL 1.3. The error bellow means your &quot;p&quot; variable is
not set. Are you setting your global before asserting the facts???<br>
<br>
 &nbsp;Drools 5.0M2 is a milestone release of the development version.
If you want to use Drools 5 development version we recommend you checkout
and build from trunk, because a lot of things were developed/fixed **after**
M2 was released. Drools 5 requires MVEL </font><a href=http://2.0.1/ target=_blank><font size=3 color=blue><u>2.0.1.</u></font></a><font size=3><br>
<br>
 &nbsp;[]s<br>
 &nbsp;Edson<br>
<br>
2008/11/7 &lt;</font><a href=mailto:shikha.x.aggarwal@jpmchase.com target=_blank><font size=3 color=blue><u>shikha.x.aggarwal@jpmchase.com</u></font></a><font size=3>&gt;
</font><font size=2 face="sans-serif"><br>
<br>
Hi, I am so confused with which version of DROOLS I should be using . I
trid with 5.0.0 M2 and the error I saw is below. Then I tried with 4.0.7
but it gave error as below it had references of 1.4 of MVEL version.</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
Exception in thread &quot;main&quot; </font><font size=2 color=#000080 face="Courier New"><u>org.mvel.PropertyAccessException</u></font><font size=2 color=red face="Courier New">:
null pointer exception in property: p.getUsers()</font><font size=3> </font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:143</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:96</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; at org.mvel.ASTNode.getReducedValueAccelerated(</font><font size=2 color=#000080 face="Courier New"><u>ASTNode.java:194</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; at org.mvel.MVELRuntime.execute(</font><font size=2 color=#000080 face="Courier New"><u>MVELRuntime.java:87</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; at org.mvel.CompiledExpression.getValue(</font><font size=2 color=#000080 face="Courier New"><u>CompiledExpression.java:98</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; at org.mvel.MVEL.executeExpression(</font><font size=2 color=#000080 face="Courier New"><u>MVEL.java:219</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
Can you please suggest which version of DROOLS should I be using? can you
direc me to the MAVEN site.</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
shikha</font><font size=3> <br>
</font>
<table width=100%>
<tr valign=top>
<td width=44%><font size=1 face="sans-serif"><b>&quot;Edson Tirelli&quot;
&lt;</b></font><a href=mailto:tirelli@post.com target=_blank><font size=1 color=blue face="sans-serif"><b><u>tirelli@post.com</u></b></font></a><font size=1 face="sans-serif"><b>&gt;</b>
<br>
Sent by: </font><a href="mailto:rules-users-bounces@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users-bounces@lists.jboss.org</u></font></a><font size=3>
</font>
<p><font size=1 face="sans-serif">11/06/2008 03:12 PM</font><font size=3>
</font>
<p>
<p>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font></div></table>
<br>
<td width=55%>
<table width=100%>
<tr valign=top>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86%><font size=1 face="sans-serif">&quot;Rules Users List&quot;
&lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] DROOLS from clause
giving Error</font></table>
<br><font size=3><br>
</font>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=49%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
<br>
 This is an MVEL problem that Mike fixed in one of the latest versions:
it was raising that error message when unable to resolve a variable reference
(processor in this case).<br>
<br>
 Can you please confirm what versions of drools and mvel are you using?<br>
<br>
 Also, try to use mvel syntax, just in case:</font><font size=2 face="Courier New"><br>
<br>
$x : DBSubscription(report == $event.report) </font><font size=2 color=#a00000 face="Courier New"><b>from</b></font><font size=2 face="Courier New">
processor.users</font><font size=3><br>
<br>
 []s<br>
 Edson<br>
<br>
2008/11/6 &lt;</font><a href=mailto:shikha.x.aggarwal@jpmchase.com target=_blank><font size=3 color=blue><u>shikha.x.aggarwal@jpmchase.com</u></font></a><font size=3>&gt;
</font><font size=2 face="sans-serif"><br>
<br>
Thanks for the quick respose..I modified the rule now to -</font><font size=3>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
<br>
package</b></font><font size=2 face="Courier New"> org.drools.examples;</font><font size=3>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
<br>
import</b></font><font size=2 face="Courier New"> org.drools.examples.templates.DBSubscription;</font><font size=3>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
import</b></font><font size=2 face="Courier New"> org.drools.examples.templates.Event;</font><font size=3>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
<br>
global</b></font><font size=2 face="Courier New"> java.util.List list</font><font size=3>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
global</b></font><font size=2 face="Courier New"> org.drools.examples.Processor
processor;</font><font size=3> </font><font size=2 color=#a00000 face="Courier New"><b><br>
<br>
rule</b></font><font size=2 face="Courier New"> </font><font size=2 color=#008000 face="Courier New">&quot;Rule1&quot;</font><font size=3>
</font><font size=2 face="Courier New"><br>
 </font><font size=2 color=#a00000 face="Courier New"><b>when</b></font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$event : Event(eventId == </font><font size=2 color=#008000 face="Courier New">&quot;eventId.IR.001&quot;</font><font size=2 face="Courier New">)
&nbsp; &nbsp; &nbsp; &nbsp; <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $x : DBSubscription(report == $event.report)
</font><font size=2 color=#a00000 face="Courier New"><b>from</b></font><font size=2 face="Courier New">
processor.getUsers() &nbsp; <br>
 &nbsp; &nbsp; &nbsp;</font><font size=2 color=#a00000 face="Courier New"><b>then</b></font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.add($x); &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=3> </font><font size=2 color=#a00000 face="Courier New"><b><br>
end</b></font><font size=3> </font><font size=2 face="Courier New"><b><br>
<br>
Still facing some issue, Looking into it</b></font><font size=3> </font><font size=2 color=red face="Courier New"><br>
<br>
Exception in thread &quot;main&quot; [Error: unbalanced braces ( ... )]</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
[Near : {... processor.getUsers( ....}]</font><font size=3> </font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp;at org.mvel.util.ParseTools.balancedCapture(</font><font size=2 color=#000080 face="Courier New"><u>ParseTools.java:1134</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp;at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:550</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp;at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getBeanProperty(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:438</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp;at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:265</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp;at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(</font><font size=2 color=#000080 face="Courier New"><u>ReflectiveAccessorOptimizer.java:126</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp;at org.mvel.ast.ASTNode.getReducedValueAccelerated(</font><font size=2 color=#000080 face="Courier New"><u>ASTNode.java:141</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; &nbsp;at org.mvel.MVELRuntime.execute(</font><font size=2 color=#000080 face="Courier New"><u>MVELRuntime.java:77</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=50%><font size=1 face="sans-serif"><b>&quot;David Sinclair&quot;
&lt;</b></font><a href=mailto:dsinclair@chariotsolutions.com target=_blank><font size=1 color=blue face="sans-serif"><b><u>dsinclair@chariotsolutions.com</u></b></font></a><font size=1 face="sans-serif"><b>&gt;</b>
<br>
Sent by: </font><a href="mailto:rules-users-bounces@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users-bounces@lists.jboss.org</u></font></a><font size=3>
</font>
<p><font size=1 face="sans-serif">11/06/2008 02:19 PM</font><font size=3>
</font>
<p>
<p>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
Rules Users List &lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font></div></table>
<br>
<td width=49%>
<table width=100%>
<tr valign=top>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86%><font size=1 face="sans-serif">&quot;Rules Users List&quot;
&lt;</font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=1 color=blue face="sans-serif"><u>rules-users@lists.jboss.org</u></font></a><font size=1 face="sans-serif">&gt;</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [rules-users] DROOLS from clause
giving Error</font></table>
<br><font size=3><br>
<br>
</font>
<br>
<table width=100%>
<tr valign=top>
<td width=50%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
<br>
<br>
<br>
What is Processor? Doesn't look like it is a bound variable. Is it from
DBSubscription? <br>
<br>
On Thu, Nov 6, 2008 at 2:11 PM, &lt;</font><a href=mailto:shikha.x.aggarwal@jpmchase.com target=_blank><font size=3 color=blue><u>shikha.x.aggarwal@jpmchase.com</u></font></a><font size=3>&gt;
wrote: </font><font size=2 face="sans-serif"><br>
<br>
Hi, <br>
<br>
I am using the from clause of drools and have written the following expression
- </font><font size=2 color=#a00000 face="Courier New"><b><br>
rule</b></font><font size=2 face="Courier New"> </font><font size=2 color=#008000 face="Courier New">&quot;Rule1&quot;</font><font size=3>
</font><font size=2 color=#a00000 face="Courier New"><b><br>
when</b></font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $event : Event(eventId == </font><font size=2 color=#008000 face="Courier New">&quot;eventId.IR.001&quot;</font><font size=2 face="Courier New">),</font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $dbS : DBSubscription( report
== $event.report ) </font><font size=2 color=#a00000 face="Courier New"><b>from</b></font><font size=2 face="Courier New">
Processor.getUsers()</font><font size=3> </font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; </font><font size=2 color=#a00000 face="Courier New"><b>then</b></font><font size=3>
</font><font size=2 face="Courier New"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; list.add($dbS); &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
Here processor.getUsers writtens me a list of DBSubscription, When I load
this package using </font><font size=2 face="Courier New"><br>
builder.addPackageFromDrl( source );</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
I get an error saying - </font><font size=2 color=red face="Courier New"><br>
Exception in thread &quot;main&quot; </font><font size=2 color=#000080 face="Courier New"><u>org.drools.compiler.DroolsParserException</u></font><font size=2 color=red face="Courier New">:
<b>Unknown error while parsing. This is a bug. Please contact the Development
team.</b></font><font size=3> </font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; at org.drools.compiler.DrlParser.compile(</font><font size=2 color=#000080 face="Courier New"><u>DrlParser.java:219</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; at org.drools.compiler.DrlParser.parse(</font><font size=2 color=#000080 face="Courier New"><u>DrlParser.java:73</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 color=red face="Courier New"><br>
 &nbsp; &nbsp; at org.drools.compiler.DrlParser.parse(</font><font size=2 color=#000080 face="Courier New"><u>DrlParser.java:77</u></font><font size=2 color=red face="Courier New">)</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
Would Appreciate any help on the same.</font><font size=3> </font><font size=2 face="sans-serif"><br>
<br>
thanks</font><font size=3> </font><font size=2 face="sans-serif"><br>
Shikha</font><font size=3> </font>
<p>
<hr>
<p><font size=3>This communication is for informational purposes only.
It is not intended as an offer or solicitation for the purchase or sale
of any financial instrument or as an official confirmation of any transaction.
All market prices, data and other information are not warranted as to completeness
or accuracy and are subject to change without notice. Any comments or statements
made herein do not necessarily reflect those of JPMorgan Chase &amp; Co.,
its subsidiaries and affiliates. This transmission may contain information
that is privileged, confidential, legally privileged, and/or exempt from
disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance thereon)
is STRICTLY PROHIBITED. Although this transmission and any attachments
are believed to be free of any virus or other defect that might affect
any computer system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility
is accepted by JPMorgan Chase &amp; Co., its subsidiaries and affiliates,
as applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately contact
the sender and destroy the material in its entirety, whether in electronic
or hard copy format. Thank you. Please refer to </font><a href=http://www.jpmorgan.com/pages/disclosures target=_blank><font size=3 color=blue><u>http://www.jpmorgan.com/pages/disclosures</u></font></a><font size=3>
for disclosures relating to UK legal entities. </font>
<p><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=2><tt><br>
<br>
_______________________________________________<br>
rules-users mailing list</tt></font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=2 color=blue><tt><u>rules-users@lists.jboss.org</u></tt></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=2 color=blue><tt><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></tt></font></a><font size=3>
</font>
<p>
<hr>
<p><font size=3>This communication is for informational purposes only.
It is not intended as an offer or solicitation for the purchase or sale
of any financial instrument or as an official confirmation of any transaction.
All market prices, data and other information are not warranted as to completeness
or accuracy and are subject to change without notice. Any comments or statements
made herein do not necessarily reflect those of JPMorgan Chase &amp; Co.,
its subsidiaries and affiliates. This transmission may contain information
that is privileged, confidential, legally privileged, and/or exempt from
disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance thereon)
is STRICTLY PROHIBITED. Although this transmission and any attachments
are believed to be free of any virus or other defect that might affect
any computer system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility
is accepted by JPMorgan Chase &amp; Co., its subsidiaries and affiliates,
as applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately contact
the sender and destroy the material in its entirety, whether in electronic
or hard copy format. Thank you. Please refer to </font><a href=http://www.jpmorgan.com/pages/disclosures target=_blank><font size=3 color=blue><u>http://www.jpmorgan.com/pages/disclosures</u></font></a><font size=3>
for disclosures relating to UK legal entities. </font>
<p><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3><br>
<br>
<br>
<br>
<br>
-- <br>
Edson Tirelli<br>
JBoss Drools Core Development <br>
JBoss, a division of Red Hat @ </font><a href=http://www.jboss.com/ target=_blank><font size=3 color=blue><u>www.jboss.com</u></font></a><font size=2><tt>_______________________________________________</tt></font><font size=3>
</font><font size=2><tt><br>
<br>
rules-users mailing list</tt></font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=2 color=blue><tt><u>rules-users@lists.jboss.org</u></tt></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=2 color=blue><tt><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></tt></font></a><font size=3>
</font>
<p>
<hr>
<p><font size=3>This communication is for informational purposes only.
It is not intended as an offer or solicitation for the purchase or sale
of any financial instrument or as an official confirmation of any transaction.
All market prices, data and other information are not warranted as to completeness
or accuracy and are subject to change without notice. Any comments or statements
made herein do not necessarily reflect those of JPMorgan Chase &amp; Co.,
its subsidiaries and affiliates. This transmission may contain information
that is privileged, confidential, legally privileged, and/or exempt from
disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance thereon)
is STRICTLY PROHIBITED. Although this transmission and any attachments
are believed to be free of any virus or other defect that might affect
any computer system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility
is accepted by JPMorgan Chase &amp; Co., its subsidiaries and affiliates,
as applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately contact
the sender and destroy the material in its entirety, whether in electronic
or hard copy format. Thank you. Please refer to </font><a href=http://www.jpmorgan.com/pages/disclosures target=_blank><font size=3 color=blue><u>http://www.jpmorgan.com/pages/disclosures</u></font></a><font size=3>
for disclosures relating to UK legal entities. </font>
<p><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3><br>
</font>
<br><font size=3><br>
<br>
<br>
-- <br>
Edson Tirelli<br>
JBoss Drools Core Development</font>
<br><font size=3>JBoss, a division of Red Hat @ </font><a href=http://www.jboss.com/ target=_blank><font size=3 color=blue><u>www.jboss.com</u></font></a><font size=2><tt>_______________________________________________</tt></font>
<br><font size=2><tt><br>
rules-users mailing list</tt></font><font size=2 color=blue><tt><u><br>
</u></tt></font><a href="mailto:rules-users@lists.jboss.org" target=_blank><font size=2 color=blue><tt><u>rules-users@lists.jboss.org</u></tt></font></a><font size=2 color=blue><tt><u><br>
</u></tt></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=2 color=blue><tt><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></tt></font></a>
<br>
<p>
<hr>
<p><font size=3>This communication is for informational purposes only.
It is not intended as an offer or solicitation for the purchase or sale
of any financial instrument or as an official confirmation of any transaction.
All market prices, data and other information are not warranted as to completeness
or accuracy and are subject to change without notice. Any comments or statements
made herein do not necessarily reflect those of JPMorgan Chase &amp; Co.,
its subsidiaries and affiliates. This transmission may contain information
that is privileged, confidential, legally privileged, and/or exempt from
disclosure under applicable law. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance thereon)
is STRICTLY PROHIBITED. Although this transmission and any attachments
are believed to be free of any virus or other defect that might affect
any computer system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility
is accepted by JPMorgan Chase &amp; Co., its subsidiaries and affiliates,
as applicable, for any loss or damage arising in any way from its use.
If you received this transmission in error, please immediately contact
the sender and destroy the material in its entirety, whether in electronic
or hard copy format. Thank you. Please refer to </font><a href=http://www.jpmorgan.com/pages/disclosures target=_blank><font size=3 color=blue><u>http://www.jpmorgan.com/pages/disclosures</u></font></a><font size=3>
for disclosures relating to UK legal entities. </font>
<p><font size=3><br>
_______________________________________________<br>
rules-users mailing list</font><font size=3 color=blue><u><br>
</u></font><a href="mailto:rules-users@lists.jboss.org"><font size=3 color=blue><u>rules-users@lists.jboss.org</u></font></a><font size=3 color=blue><u><br>
</u></font><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target=_blank><font size=3 color=blue><u>https://lists.jboss.org/mailman/listinfo/rules-users</u></font></a><font size=3><br>
</font>
<br><font size=3><br>
<br>
<br>
-- <br>
 Edson Tirelli<br>
 JBoss Drools Core Development<br>
 JBoss, a division of Red Hat @ </font><a href=http://www.jboss.com/><font size=3 color=blue><u>www.jboss.com</u></font></a><font size=2><tt>_______________________________________________<br>
rules-users mailing list<br>
rules-users@lists.jboss.org<br>
https://lists.jboss.org/mailman/listinfo/rules-users<br>
</tt></font>
<br>
<br>
<P><hr size=1></P>
<P>
This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
</P>