[rules-users] RuleBase relation with working memory
anandhakrishnan
anandhakrishnank at gmail.com
Mon Apr 28 11:07:52 EDT 2008
HI,
Thanks for explanation.
I understood from ur words, but still i have one doubt.
What is the necessary of creating so many WM object, in what scenario it is
applicable, please one example...
thanks in advance....
Anstis, Michael (M.) wrote:
>
> It will occur whenever you (the developer) make it occur.
>
> I guess Rulebase is the RETE network (without memory nodes) and the WM's
> are
> in essence the RETE network memory nodes.
>
> This is my interpretation of their roles.
>
> Here's an example:-
>
> Rulebase
> --------
> RuleBase ruleBase = RuleBaseFactory.newRuleBase();
> ruleBase.addPackage(pkg);
>
> Working Memory
> --------------
> WorkingMemory wm1 = ruleBase.newStatefulSession();
> WorkingMemory wm2 = ruleBase.newStatefulSession();
> WorkingMemory wm3 = ruleBase.newStatefulSession();
> WorkingMemory wm4 = ruleBase.newStatefulSession();
> ...
>
> Rulebase 1:n.
>
>
>
> -----Original Message-----
> From: rules-users-bounces at lists.jboss.org
> [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of anandhakrishnan
> Sent: 28 April 2008 15:30
> To: rules-users at lists.jboss.org
> Subject: [rules-users] RuleBase relation with working memory
>
>
> Please Explain, RuleBase 1:n relationship with Working memory, when will
> it
> occur.
> Please give an example....
>
> thanks In Advance
> --
> View this message in context:
> http://www.nabble.com/RuleBase-relation-with-working-memory-tp16940200p16940
> 200.html
> Sent from the drools - user mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
View this message in context: http://www.nabble.com/RuleBase-relation-with-working-memory-tp16940200p16940979.html
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list