From Java you should use
new Value(RU.ATOM, TRUE)
for true, and
new Value(RU.ATOM, FALSE)
for false. As a shortcut, there are constants Funcall.TRUE and
Funcall.FALSE in the jess.Funcall class.
Note also that String constants in Java (and in Jess) use double
quotes, not
Try:
Boolean ret = new Boolean(true);
return new Value( ret, RU.EXTERNAL_ADDRESS );
Jess does not have a boolean in it's type system like it does for int and
long. It does have the generic EXTERNAL_ADDRESS which can be any Object
including Boolean. See the javadoc for the class RU or RU.java or
See my other message, and manual section 2.6. Jess -does- have a
boolean type.
I think Alan Moore wrote:
Try:
Boolean ret = new Boolean(true);
return new Value( ret, RU.EXTERNAL_ADDRESS );
Jess does not have a boolean in it's type system like it does for int and
long. It does have the
hi ,
thanks a ton.
The code is working fine and my problem is solved.
Regards,
Mahesh G.
[EMAIL PROTECTED] wrote:
From Java you should use new Value(RU.ATOM, "TRUE")for true, and new Value(RU.ATOM, "FALSE")for false. As a shortcut, there are constants Funcall.TRUE andFuncall.FALSE in the