[rules-users] Support for dynamic / ad-hoc queries in Drools

Davide Sottara dsotty at gmail.com
Wed Jun 27 13:23:45 EDT 2012


This would be a special case of a dynamic knowledge artifact (queries, rules,
processes, etc..) being added to a knowledge base. The "low-level", runtime
addition of an artifact is possible, so it would just need to be exposed in
a more convenient way in the API. 

Another (interesting) option would be to expose this feature at the
KnowledgeAgent level, allowing dynamic, in-memory "(bytearray) resources".
The added valye here is that the KA would ALSO be tracking the "resource"
for modification and removal.

Could you please open a Feature Request JIRA? We'll then discuss it and
implement it. 
I have similar use cases and would be happy to sponsor it :)
Davide

p.s. as for the dynamic invocation a query you can do
drools.getWorkingMemory().getQueryResults( ... ); 
in the RHS of a rule

--
View this message in context: http://drools.46999.n3.nabble.com/Support-for-dynamic-ad-hoc-queries-in-Drools-tp4018281p4018301.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list