[rules-users] is property type casting into variable supported ?

Davide Sottara dsotty at gmail.com
Mon May 13 05:29:31 EDT 2013


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130513/1879df6e/attachment-0001.html 


More information about the rules-users mailing list