2011/2/4 David Smith <span dir="ltr">&lt;<a href="mailto:mail@davesmith.me.uk">mail@davesmith.me.uk</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">Hi,<br><br>I am trying to use a declared type in a decision table<br>but get an &quot;Unable to resolve ObjectType&quot; message.<br>

<br>The declared type is in a file types.drl,<br>I have a spreadsheet test.xls that has a Ruleset with<br>an import line for the declared type.<br><br>Is it possible to reference a declared type from a decision table?<br>
</span></blockquote><div><br>No, at least not without whacky hacks.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;">
<br>Is it possible to declare a type in a decision table?<br></span></blockquote><div><br>Yes, as if it were a function declaration. You can put declares in the cell to the right of keyword &quot;Functions&quot;.<br><br>
Types declared in Java codes have some advantages. (I use declare for defining *new* types only for playing around.)<br><br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<span style="font-family: arial,sans-serif; font-size: 13px; border-collapse: collapse;"><br>Thanks<br><font color="#888888">David</font></span>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>