I have a
user-defined function implemented in Java called (execute-command) that accepts
a resource name (i.e. filename) argument. This function reads the
contents of the specified resource into a String, and calls
rete.executeCommand() on the resource's contents.
Now, if the
contents of the resource passed as a parameter *also* contains a call to
(execute-command), once the second call to (execute-command) returns, the first
call to (execute-command) returns immediately, ignoring any subsequent
expressions in the first resource.
Basically, I am
trying to re-implement (batch). I can't use (batch) because of it's
dependency on filenames. I am deploying to a container environment
where I cannot deal with files (all IO is done via URLs, there may in fact be no
associated file system).
I'd like to be able
to load/process rules defined in remote resources (via URL), and allow those
remote resources to reference/import/include other resources
(files).
I am passing the
supplied context to executeCommand() within my function, and have tried creating
a new sub-context, to no avail.
Any suggestions
would be greatly appreciated.
-Mitch
P.S. Does anybody
have the source for the implement of (batch)?
