Seen
The use case where the inline cast is used without an expression is not
covered.
This is a bug and will be fixed asap.
Thanks
Davide
On 05/13/2013 01:52 AM, Martin Minka wrote:
I filled bug
https://issues.jboss.org/browse/DROOLS-136 because the
way I tried to use # symbol hangs Drools.
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());
// will this also work ? at least in MVEL
System.out.println("will this work ?: " + $v.getName());
end
thank you,
Martin Minka
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users