you should try this:
Aaa aaa = new Aaa("theAaa");
r.store("YouAaa",aaa);
r.executeCommand("(definstance (fetch YouAaa) ?aaa dynamic)");
I think it works.
On Thu, 16 Aug 2001, John Mela wrote:
> I have an instance of a class (which is a Java Bean) defined from Java code:
>
> Aaa aaa = new Aaa("theAaa");
>
> I want the instance introduced in Jess working memory as a Jess fact. The
> following seems incorrect, since it just is defining another new instance:
>
> Funcall f = new Funcall("definstance", rete);
> f.add(new Value("aaa", RU.ATOM));
> f.add(new Value(aaa));
> f.execute(rete.getGlobalContext());
>
> So how do I introduce aaa into Jess?
>
> Thanks,
>
> John Mela
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------
Re: JESS: Introducing instances of classes created in Java intoJess facts
Alberto de Jesus Gonzalez R. Thu, 16 Aug 2001 14:38:17 -0700
- JESS: Introducing instances of classes create... John Mela
- Alberto de Jesus Gonzalez R.
