<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 &quot;calculate totalPrice per item&quot;<br>salience -10<br>no-loop<br>dialect &quot;java&quot;<br>when<br>    $q:Message(id==&quot;item&quot;, answered==true, $v:value#DataItemPrice)<br>then<br>    System.out.println(&quot;this works: &quot; + ((DataItemPrice)$v).getName());<br>
</div>    // will this also work ? at least in MVEL<br><div>    System.out.println(&quot;will this work ?: &quot; + $v.getName());<br>end<br><br></div><div>thank you,<br></div><div>Martin Minka<br></div></div>