Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-30 Thread esteban.alive...@gmail.com
Remember that errors while processing the rules occur when you insert/update facts (when the LHS of the rules is evaluated). Using a ConsequenceExceptionHandler you will be able to catch only exception occurred in the RHS of the rules (when the activations are fired). Best,

Re: [rules-users] How to check for errors when creating a kBase using kAgent, kAgentConfiguration and kBaseConfiguration

2010-10-29 Thread esteban.alive...@gmail.com
Hi, If you are using 5.1 or greater, you can use a KnowledgeAgentEventListener to be notified when resource's compilation fails. You can create your own implementation of KnowledgeAgentEventListener, or you can use DefaultKnowledgeAgentEventListener and override just the methods you need:

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-10-29 Thread esteban.alive...@gmail.com
Honestly, I didn't have time to take a look at it :( Could you please provide me a simple test project where I can see this issue? Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/24 Tina

Re: [rules-users] no visitor implementation for : class org.drools.rule.TypeDeclaration

2010-10-29 Thread esteban.alive...@gmail.com
No problem :). The length of my TODO list is almost infinite. Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/29 Tina Vießmann tviessm...@stud.hs-bremen.de Sorry, I didn't want to sound

Re: [rules-users] Use Knowledge Agent

2010-10-28 Thread esteban.alive...@gmail.com
You need to create a change-set containing basic authentication parameters. This change-set could then point to the change-set hosted in guvnor (or any of its resources). Here is an example of a change-set using basic authentication pointing to a package resource: change-set add

Re: [rules-users] re-fire all rules

2010-10-14 Thread esteban.alive...@gmail.com
Also remember to reset or re-bind all your globals. Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/14 Wolfgang Laun wolfgang.l...@gmail.com Iterate over all Facts in WM and call update():

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread esteban.alive...@gmail.com
Could you please create an isolated test case for this? I'm at the rule fest right now, but i would like to take a look at this later. Best, El oct 13, 2010 6:57 a.m., Swindells, Thomas tswinde...@nds.com escribió: I'd refer you to one of the other emails: Rules Fest is in full swing,

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread esteban.alive...@gmail.com
I'm asking you for a test because there is already a test in drools that uses kagent+kbase spring configuration. The test is org.drools.container.spring.SpringDroolsTest and uses org/drools/container/spring/kagents-beans.xml configuration file. Could you check the tests present in that class?

Re: [rules-users] Exception Handling in the rule consequence

2010-10-13 Thread esteban.alive...@gmail.com
case 1 could be: *package something* * * *dialect java * * * *rule Some rule* * when* * Something()* * then* * try{* * callSomeDangerousLogicHere();* * catch (Exception ex){* * //manage your exception here* * }* *end* * * The second approach is to write

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-13 Thread esteban.alive...@gmail.com
I'm running 5.2.0.SNAPSHOT here. What I did is to add a new test in JPASingleSessionCommandServiceFactoryTest: @Test public void testAgents() throws Exception { KnowledgeAgentImpl kagent1 = ( KnowledgeAgentImpl ) ctx.getBean( kagent1 ); } I also have added the agent's

Re: [rules-users] Script Task BUG????

2010-10-10 Thread esteban.alive...@gmail.com
It sounds like a bug to me. Which version of drools are you using? And which are the ids of the action nodes? Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/10 Yaniv Itzhaki iya...@gmail.com

Re: [rules-users] Script Task BUG????

2010-10-10 Thread esteban.alive...@gmail.com
. are you sure that you add all your process definition into the kbase? Sounds like all your processes have the same process ID. and you are executing the last one only. Greetings. 2010/10/10 esteban.alive...@gmail.com esteban.alive...@gmail.com It sounds like a bug to me. Which version of drools

Re: [rules-users] Loading packages from KnowledgeAgent and Guvnor 5.1

2010-10-07 Thread esteban.alive...@gmail.com
Make sure that the drools' version you are using matches with Guvnor's version. Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/7 Pierre de Leusse p...@agh.edu.pl Hello everyone, I’ve

Re: [rules-users] Rule id / Rule name

2010-10-07 Thread esteban.alive...@gmail.com
That's right Leandro, using an AgendaEventListener is much more elegant! Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/10/7 Leandro Romero leandro.s.rom...@gmail.com I am not 100%

Re: [rules-users] Drools-Spring Config for Knowledge Agent

2010-10-05 Thread esteban.alive...@gmail.com
Did you try this with 5.1.1? Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Tue, Oct 5, 2010 at 2:59 AM, KiranP phadatareki...@gmail.com wrote: Hello Everybody, I've used Drools5.1.0 and I have