1) Section 4.6 in the Jess 6.x manual shows how to use a Funcall object
to call definstance directly from Java.
2) Starting with Jess 6.0a5, the Rete class has a definstance()
function you can simply call as
Rete r = ...
r.definstance(tag, object, true|false);
3) You can call definstance from Jess code, and instead of pushing the
Java objects in from Java code, you can pull them in from Jess; for
instance, provide a Java method for Jess to call which lists all the
objects to be definstanced in a multifield.
There are surely other ways to do it, too.
I think chinnaswamy gounder wrote:
> Hi All,
> I have some 'objects' in java code and I want
> to put them into the knowledge base using definstance
> Jess script function.
>
> ( definstaance <tag> < Java Object> <static|dynamic ).
>
> One way is tranferring the objects from java to jess
> by using store and fetch functions and then use the
> definstance function.
>
> Is there anyother means to chieve this java object
> transfer to jess.
>
> Advance thanks for your advice
>
> Chinnaswamy
>
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------