Just using addSlot("Id", Funcall.NIL, "ANY") should work in your case (this
is the way jess do when it parses a deftemplate slot without default value)

Emmanuel Lecharny, IKTEK
06 08 33 32 61, www.iktek.com <http://www.iktek.com>


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De
la part de Mathieu Bonnet
Envoye : mercredi 25 juillet 2001 11:31
A : [EMAIL PROTECTED]
Objet : JESS: Creating templates with nil default value using the JAVA
API


Hi,

I'm using the JAVA API to create templates but I can't manage to get nil
as a default value.
There isn't any example with nil as a default value in section 4 of the
user manual.

I tried to use
addSlot("Id",new Value(null, RU.INTEGER), "INTEGER") or
addSlot("Id", null, "INTEGER")
but both don't work.

I'm using Jess60a2.

Could you give me some hints ?
(how to get a nil atom in Java or how to create a slot with no default
value)

Thanks in advance,

Regards,

              Mathieu BONNET

--
Mathieu BONNET
NAL Intern
Tel: 2549

---------------------------------------------------------------------
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]
---------------------------------------------------------------------


---------------------------------------------------------------------
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