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