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,
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:
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
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
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
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():
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,
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?
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
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
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
. 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
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
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%
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
15 matches
Mail list logo