<div dir="ltr"><div>I filled bug <a href="https://issues.jboss.org/browse/DROOLS-136">https://issues.jboss.org/browse/DROOLS-136</a> because the way I tried to use # symbol hangs Drools.<br><br>I would like to ask the group if following type casting is supported in Drools in Java or in MVEL:<br>
<br>rule "calculate totalPrice per item"<br>salience -10<br>no-loop<br>dialect "java"<br>when<br> $q:Message(id=="item", answered==true, $v:value#DataItemPrice)<br>then<br> System.out.println("this works: " + ((DataItemPrice)$v).getName());<br>
</div> // will this also work ? at least in MVEL<br><div> System.out.println("will this work ?: " + $v.getName());<br>end<br><br></div><div>thank you,<br></div><div>Martin Minka<br></div></div>