You don't need to add an atom to undefinstance, you only
have to pass the external address as below. You also have to
call definstance with the external address:
v = new Tank();
f = new Funcall("definstance", rete);
f.add(new Value("Tank", RU.ATOM));
f.add(v,RU.EXTERNAL_ADDRESS);
f.simpleExecute(f, rete.globalContext());
rete.executeCommand("(run)");
f = new Funcall("undefinstance", rete);
f.add(new Value(v, RU.EXTERNAL_ADDRESS));
f.simpleExecute(f, rete.globalContext());
That will assert the instance, run the rules, then retract the instance.
KathyLee Simunich
Argonne National Lab
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------