<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi, Michael...<br>
The code that I wrote has a property "name" and not "nome". Sorry, the
example not is the same that the Exception.<br>
But ocurr the same error.<br>
<br>
<pre wrap="">org.drools.RuntimeDroolsException: Exception executing predicate
org.drools.base.mvel.MVELPredicateExpression@18488ef
Caused by: org.mvel.CompileException: unable to resolve property: name
Caused by: org.mvel.PropertyAccessException: unable to resolve property:name</pre>
<br>
<br>
<br>
<br>
Michael B. escreveu:
<blockquote cite="mid:17092230.post@talk.nabble.com" type="cite">
<pre wrap="">According to your error it appears you had a typo somewhere. The error you
pasted in was looking for the property nome instead of name.
Alessandro Lazarotti wrote:
</pre>
<blockquote type="cite">
<pre wrap="">If I've the simple classes:
public class ObjectBar{ public String name; gets/sets}
public class ObjectFoo{ public ObjectBar bar; gets/sets }
... and ObjectFoo this in WorkingMemory.
It's not possible navigate in objectFoo for make constraint in objectBar?
Example:
rule "Teste"
no-loop true
when
$foo: ObjectFoo(objectBar.name != "foobar")
then
System.out.println($foo);
end
... but:
org.drools.RuntimeDroolsException: Exception executing predicate
org.drools.base.mvel.MVELPredicateExpression@18488ef
Caused by: org.mvel.CompileException: unable to resolve property: nome
Caused by: org.mvel.PropertyAccessException: unable to resolve property:
nome
Thanks
Alessandro Lazarotti
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</body>
</html>