<br>&nbsp;&nbsp; I think Mark just updated documentation for that and it will be included in 4.0.2. <br>&nbsp;&nbsp; Meanwhile:<br><br>query &quot;find errors for site&quot;( int $param1, String $param2, ...)<br>&nbsp;&nbsp;&nbsp;&nbsp;validationError: ValidationError(
this.siteId == $param1)<br>end<br><br>&nbsp;&nbsp; Parameter type is optional, and you can have as many parameters as you need.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/9/5, Robert Crawford &lt;<a href="mailto:crawford@kloognome.com">
crawford@kloognome.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Does anyone know how to use parameterized queries? I&#39;m trying to retrieve
<br>ONLY the results for a single installation, with a query like this:<br><br>query &quot;find errors for site&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;validationError: ValidationError(this.siteId == $1)<br>end<br><br>QueryResults results = session.getQueryResults
(&quot;find errors for site&quot;, new<br>Object[] {siteId});<br><br>I get the error<br><br>&quot;org.drools.RuntimeDroolsException: Exception executing predicate<br>org.drools.base.mvel.MVELPredicateExpression<br><br>Caused by: 
org.mvel.PropertyAccessException: unable to resolve property: $1&quot;<br><br>I&#39;m pretty sure I&#39;m not writing the rule correctly in the DRL; does anyone<br>know the correct syntax? The manual isn&#39;t clear on this.
<br><br>Thanks!<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646
<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>