Re: [rules-users] Rules not picked when packaged inside the JAR

2014-05-12 Thread alanvarghese
Hi, I have tried this without using spring. It does not work if the drl files are packaged inside a jar. I have to copy the drl files into my web application and also copy the kmodule.xml into my web application. I am using websphere and the drools 6.0.0.Final Thanks, Alan -- View this

[rules-users] Unit testing a Single rule from a large set of DRL and DSL files.

2014-04-21 Thread alanvarghese
Hi There, I want to unit test a single rule from a set of multiple rules within multiple DRL files. Is there a way to do that? I am using Drools 6.0.0.Final and StatelessKieSession Thanks Alan -- View this message in context:

Re: [rules-users] Unit testing a Single rule from a large set of DRL and DSL files.

2014-04-21 Thread alanvarghese
Thank you that was a big help. But I see that I cannot use a StatelessKieSession to do that. I have to use a Stateful Session. Is there anyway I can use a StatelessKieSession to unit test a single rule? -- View this message in context:

Re: [rules-users] Unit testing a Single rule from a large set of DRL and DSL files.

2014-04-21 Thread alanvarghese
OK Agreed. I can definitely work with that. Thanks Again. But my main problem is that the LHS for all the rules in my dslr files fires as soon as I execute. kieSession.insert(output); I want only the LHS for the rule that I am unit testing to fire. Is there any way to do that? -- View this

Re: [rules-users] Spring 4.0 Drools 6.0.1 Integration issue

2014-03-24 Thread alanvarghese
I debugged the issue. Hi The problem is that it fails when you have the sessions and modules defined in a jar. The path to the pom.properties in the jar file is: META-INF\maven\com.verisk.sws.csp\cepCSP Also I have the issue with webpshere. This treats jars as wsjar There is no condition in the

Re: [rules-users] NullPointerException with kie-spring 6.0.1 and Spring 4.0

2014-03-21 Thread alanvarghese
I am getting this error. Using kie-spring-6.0.1.Final.jar spring-webmvc-4.0.0.RELEASE.jar drools-core-6.0.1.Final.jar Can you please help? [3/21/14 10:16:11:264 EDT] 009f DispatcherSer I org.springframework.web.servlet.FrameworkServlet initServletBean FrameworkServlet 'spring':

Re: [rules-users] Spring 4.0 Drools 6.0.1 Integration issue

2014-03-21 Thread alanvarghese
The above code works perfectly if it is a batch program. It doesn't work in a Spring MVC web project. Is that a known issue? ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed