Hi,
I am wondering what is the best way of creating ad hoc queries for
jbrules? My application is as follows: I have server that can receive
queries and that will return answers. I would like to be able to ask
queries in drools syntax. So at the moment it is done like this:
A client can send a query "parameter1=x1, parameter2=x2, parameter3<=x3"
to the server that transforms it into
query "drools query"
item : Item(parameter1=x1, parameter2=x2, parameter3<=x3)
end
The query is then transformed into a input stream used to create a rule
base, that in turn instantiates a working memory. Thereafter the item
facts are added and the resulting items from the query "drools query"
are returned to the client.
The next thing I want to do is to have other predefined rule that reason
over the item facts and that can impact what is returned from the query.
Is it possible to do ad hoc queries for stateful working memories? Or do
I always have to use stateless memories? I use version 3.0.4 (because it
is the only one I have found in a maven repository).
/Tomas