[rules-users] Drools: Using Declared Types in Decision Tables
Wolfgang Laun
wolfgang.laun at gmail.com
Sat Feb 5 06:50:45 EST 2011
2011/2/4 David Smith <mail at davesmith.me.uk>
> Hi,
>
> I am trying to use a declared type in a decision table
> but get an "Unable to resolve ObjectType" message.
>
> The declared type is in a file types.drl,
> I have a spreadsheet test.xls that has a Ruleset with
> an import line for the declared type.
>
> Is it possible to reference a declared type from a decision table?
>
No, at least not without whacky hacks.
> Is it possible to declare a type in a decision table?
>
Yes, as if it were a function declaration. You can put declares in the cell
to the right of keyword "Functions".
Types declared in Java codes have some advantages. (I use declare for
defining *new* types only for playing around.)
-W
>
> Thanks
> David
> _______________________________________________
> 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/20110205/0e3ab0e7/attachment.html
More information about the rules-users
mailing list