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
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to