|
I believe I have it... "declare" is meant to be used for easy
generation of java classes, so that rules can instantiate objects and
use them as such. For dynamic data models, "template" is a better fit,
as getField etc are geared towards map-like data structures. I believe that I could have : template "Address" String line1 String line2 end template "Person" String name int age Object address end rule "Test" when add: Address(line1 == "address") person: Person(address == add) then ... Is this correct? Cheers Stephen Kestle wrote: I'm creating a type hierarchy using TypeDeclarations based on an ontological model (analagous to an xml schema for the purposes of this post). --
This e-mail and
any attachments are intended only for the person to whom it is
addressed and may contain privileged, proprietary, or other data
protected from disclosure under applicable law. If you are not the
addressee or the person responsible for delivering this to the
addressee you are hereby notified that reading, copying or distributing
this transmission is prohibited. If you have received this e-mail in
error, please telephone us immediately and remove all copies of it from
your system. Thank you for your co-operation.
|
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users

