Re: [rules-users] Inserting a fact via a specific entry point inside a rule

2009-08-16 Thread Edson Tirelli
Yap! Indeed! ;) 2009/8/16 Greg Barton > It's nice that there's a unit test for this, but something so basic should > be in the docs. > > --- On Sun, 8/16/09, Edson Tirelli wrote: > > > From: Edson Tirelli > > Subject: Re: [rules-users] Inserting a fact

Re: [rules-users] Inserting a fact via a specific entry point inside a rule

2009-08-16 Thread Greg Barton
It's nice that there's a unit test for this, but something so basic should be in the docs. --- On Sun, 8/16/09, Edson Tirelli wrote: > From: Edson Tirelli > Subject: Re: [rules-users] Inserting a fact via a specific entry point inside > a rule > To: "Rules Users Li

Re: [rules-users] Inserting a fact via a specific entry point inside a rule

2009-08-16 Thread Edson Tirelli
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/resources/org/drools/integrationtests/test_EntryPointReference.drl 2009/8/16 Mauricio Salatino > no problem.. > I don't remember the syntax.. so also try with > entryPoint["ob1 stream"].insert(mre); > without the

Re: [rules-users] Inserting a fact via a specific entry point inside a rule

2009-08-16 Thread Mauricio Salatino
no problem.. I don't remember the syntax.. so also try with entryPoint["ob1 stream"].insert(mre); without the s in entryPoint 2009/8/16 Justin King > Brilliant! thank you. > > 2009/8/17 Mauricio Salatino > >> entryPoints["ob1 stream"].insert(mre); >> > > > __

Re: [rules-users] Inserting a fact via a specific entry point inside a rule

2009-08-16 Thread Justin King
Brilliant! thank you. 2009/8/17 Mauricio Salatino > entryPoints["ob1 stream"].insert(mre); > ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Inserting a fact via a specific entry point inside a rule

2009-08-16 Thread Mauricio Salatino
You are pretty close: entryPoints["ob1 stream"].insert(mre); Try with that. 2009/8/16 Justin King > Hi Everyone, > > I'm aware that in Drools you can use 'insert()' in the 'then' part of a > rule to insert a new fact into the memory, meaning more rules may be fired > based on the addition of th

[rules-users] Inserting a fact via a specific entry point inside a rule

2009-08-16 Thread Justin King
Hi Everyone, I'm aware that in Drools you can use 'insert()' in the 'then' part of a rule to insert a new fact into the memory, meaning more rules may be fired based on the addition of this new fact. I wish to do a similar thing, but I wish to insert the fact into a specific entry point. My curren