Hello again,
what are disadvantages and advantages of the following possibillities to to
get access to working memory facts from outside:
- -uses a query:
in drl:
query "queryname"
...
end
in java code
queryResults results = workingMemory.getQueryResults( "queryname" );
- -use globals that store facts:
global java.util.HashMap service
rule "XY"
when
f: FactX ()
then
ResultFact resultFact = new ResultFact();
service.put(f.getName(), resultFact);
insert(resultFact);
end
kind regards
tom