How can I get the WorkingMemory to know about the facts written in the DRL? Currently, the facts declared in the DRL do not exist in the WorkingMemory
Asked
Active
Viewed 1,646 times
2 Answers
1
Add this to your KnowledgeSession
/WorkingMemory
:
knowledgeSession.addEventListener(new DebugWorkingMemoryEventListener());

Geoffrey De Smet
- 26,223
- 11
- 73
- 120
-
It still does not recognise anything from my DRL – cwrwatson Feb 17 '11 at 18:37
-
Must be because you didn't insert any facts in the the WM :) – Geoffrey De Smet Feb 19 '11 at 17:17
-
@GeoffreyDeSmet PLease see this question. I am unable to fix it out. http://stackoverflow.com/questions/20158726/dialect-error-message-drool Thanks for your time. – Kumar Nov 23 '13 at 06:09
1
DRL only describes facts and rules, you have to inject facts into working memory by yourself. In RHS you can inject new facts in WM but for order rule engine to reach your RHS, it needs some objects already injected and matched against LHS.

andbi
- 4,426
- 5
- 45
- 70
-
It turns out I was having MASSIVE issues with Observer patterns. Sorry for being a muppet – cwrwatson Feb 18 '11 at 19:21