<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Seen<br>
      The use case where the inline cast is used without an expression
      is not covered.<br>
      This is a bug and will be fixed asap.<br>
      Thanks<br>
      Davide<br>
      <br>
      On 05/13/2013 01:52 AM, Martin Minka wrote:<br>
    </div>
    <blockquote
cite="mid:CAESpMSLGTXb1SxDZxuskBh31d7omtjtqQxg76ohSOY8bxDYN+Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I filled bug <a moz-do-not-send="true"
            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 "calculate totalPrice per item"<br>
          salience -10<br>
          no-loop<br>
          dialect "java"<br>
          when<br>
          &nbsp;&nbsp;&nbsp; $q:Message(id=="item", answered==true,
          $v:value#DataItemPrice)<br>
          then<br>
          &nbsp;&nbsp;&nbsp; System.out.println("this works: " +
          ((DataItemPrice)$v).getName());<br>
        </div>
        &nbsp;&nbsp;&nbsp; // will this also work ? at least in MVEL<br>
        <div>&nbsp;&nbsp;&nbsp; System.out.println("will this work ?: " +
          $v.getName());<br>
          end<br>
          <br>
        </div>
        <div>thank you,<br>
        </div>
        <div>Martin Minka<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>