I think that portalguy wrote:
> I'm trying to define a slot with a type of another template, for example
> below i have 3 templates and i want "Person" template to have a slot called
> "inj" and type "Injury".

Sure, try these:

*  Use an ID slot in your Injury facts to uniquely identify them
(perhaps an integer).  Then use that ID as the value for the inj slot
in your Person facts.

or,

*  Assert your Injury facts and store the references to them.  Use
these fact refs as the values for the inj slots when you assert your
Person facts.

BTW -- You also may want to consider making the inj slot a multislot
to allow multiple injuries for a person.

Notes:
[] See p. 242 of Jess In Action for the list of value types that Jess
supports.
[] There have been similar questions like this on the listserv -- I'd
search the archives, too.  For example:
http://www.mail-archive.com/[email protected]/msg07288.html

Cheers,
Jason
------------------------------------------
Jason Morris
Assistant Moderator - Jess Listserver
www.morristechnicalsolutions.com
[EMAIL PROTECTED]
phone/fax:  503.692.1088


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to