<br> I think Mark just updated documentation for that and it will be included in 4.0.2. <br> Meanwhile:<br><br>query "find errors for site"( int $param1, String $param2, ...)<br> validationError: ValidationError(
this.siteId == $param1)<br>end<br><br> Parameter type is optional, and you can have as many parameters as you need.<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/9/5, Robert Crawford <<a href="mailto:crawford@kloognome.com">
crawford@kloognome.com</a>>:</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'm trying to retrieve
<br>ONLY the results for a single installation, with a query like this:<br><br>query "find errors for site"<br> validationError: ValidationError(this.siteId == $1)<br>end<br><br>QueryResults results = session.getQueryResults
("find errors for site", new<br>Object[] {siteId});<br><br>I get the error<br><br>"org.drools.RuntimeDroolsException: Exception executing predicate<br>org.drools.base.mvel.MVELPredicateExpression<br><br>Caused by:
org.mvel.PropertyAccessException: unable to resolve property: $1"<br><br>I'm pretty sure I'm not writing the rule correctly in the DRL; does anyone<br>know the correct syntax? The manual isn'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> Edson Tirelli<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646
<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>