I do something like you.... but I do not use assertString method (I don't know that
it exist)
I use assert...
I use in my java program:
rete.store("A", new Value(test_value, RU.ATOM)); // use RU.STRING if you use
:
String in your CLP program
rete.executeCommand("(batch program/riq/step.clp)");
:
rete.reset();
:
rete.executeCommand("(assert (test (fetch A)))");
:
rete.run();
:
rete.fetch("RESULT");
The problem is sometimes it works properly... sometimes my program hang...
Anybody know why?
---
Riq
[EMAIL PROTECTED] wrote:
> Hello Jess Users;
>
> I have written rules in *.clp file. In this file some rules are fired,
> after an assertion is done from Java.
> I have used assertString method defined in Rete.java in myprogram.java.
> But this assert statement is not asserting the fact, and hence subsequent
> rules are not fired.
>
> Any body can help me how to solve this problem.
>
> If I assert initially in *.clp file, then my rules are working fine.
>
> Thank you
> RagJag
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------