|
hi,
I have a java
code like this.
Stringwriter sw = new StringWriter();
rete.addOutputRouter("temp",sw);
rete.executeCommand("(batch t.clp)");
rete.assertString("(compute-sal 1)");
rete.run();
System.out.println(sw.toString());
t.clp has a rule
(compute-sal ?sal)
=>
(printout t (*20 ?sal))
baically, i am trying to get the o/p to the
Stringwriter from the Standard op. this does not seem to work. sw.toString()
does not give me anything.. I am unable to figure this out..
Also, i know "open" command allows one to specify a
file name as the o/p . Is there a way to specify a String buffer as the o/p
router?
Basically,I am trying to redirect the o/p to a
string buffer from the standard op.
I dont want to use "store result .." in the 'then'
portion of my rules.
Thanks,
Archana
|
- Re: JESS: I/o routers .. Archana Raghavendra
- Re: JESS: I/o routers .. Thomas_Barnekow
