Re: [rules-users] Drools + Spring without internet

2010-12-01 Thread Jason Davidson
I had the same issue at startup (i.e. not connected to the internet). Anyway, I used the XSD files are bundled in the drools-spring-5.1.1.jar. I simply changed my application context schema location to " http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring.xsd"; and the X

Re: [rules-users] KnowledgeAgent ChangeSet failing to reload resources

2010-11-10 Thread Jason Davidson
Eric, Thanks for your help. I was never able to get the Drools Spring Resource Scanner to work. Instead I changed my Spring beans to use a KnowledgeAgent similar to the code you've outlined below and it's working. Jason On Thu, Nov 4, 2010 at 9:50 AM, etfink123 wrote: > > Jason, > > Your's s

Re: [rules-users] KnowledgeAgent ChangeSet failing to reload resources

2010-11-04 Thread Jason Davidson
Eric, I've been fighting something similar to your problem as posted here. I'm interested in what your KnowledgeAgent setup because I can't get the agent to detect changes to rule PKG files. Are you using Spring? Thanks! J

Re: [rules-users] Starting resource change scanner and notifier in drools-server.

2010-11-04 Thread Jason Davidson
ing config: Could it be because I'm using PKGs instead of DRL files? Thanks!! Jason 2010/11/3 Mark Proctor > It won't detect changes on the classpath. Needs to be file or http. > > Mark > > On 03/11/2010 21:49, Jason Davidson wrote: > > Hello

Re: [rules-users] Starting resource change scanner and notifier in drools-server.

2010-11-03 Thread Jason Davidson
Hello, Any tips on this? I'm seeing this same behavior using Drools 5.1.1: Spring Beans: Changeset: http://10.1.109.54:8080/drools-5.1.1-guvnor/org.drools.guvnor.Guvnor/package/com.cjs.jworks.rules.cases/LATEST " type='PKG' b

[rules-users] Reusing Rules in a Rule Flow?

2010-08-03 Thread Jason Davidson
Is it possible to use a rule in a rule flow without a "ruleflow-group"? Here's our use case:  We have a base set of rules that are not part of a ruleflow-group.  But we want to allow the administrators of the system to build custom rule flows that reuse these existing base rules.  In most instance

Re: [rules-users] Drools and OSGi

2010-04-05 Thread Jason Davidson
I don't know if this helps, but I had to turn the MVEL JIT compiler off in the Equinox OSGi container: OptimizerFactory.setDefaultOptimizer("reflective"); Also, we used pre-compiled packages instead of compiling the DRL files at runtime. For example: RuleBaseConfigur

Re: [rules-users] Rule Reuse Best Practice

2009-12-15 Thread Jason Davidson
eritance: > > when > MyDTOInterface( dln not matches "^.{5,15}$") > then >// do something > > 2. If you want to use composition instead, make dln a top level fact: > > when >DLN( id not matches "^.{5,15}$") > then >// do something >

[rules-users] Rule Reuse Best Practice

2009-12-15 Thread Jason Davidson
Hello, What is the best practice for reusing rules? I've got a license number validation rule that I need to reuse for different fact types. For example, the first rule uses the license number in a CitationDTO fact: rule "Citation DL Number" ruleflow-group "CitationEntryValidationFlow" wh

[rules-users] Test for Empty String?

2009-11-04 Thread Jason Davidson
Hello, Is there an easy way to test if a String value is empty? I've been doing this (Drools 4.0.7): when CitationDTO ( charge != null && charge.drivingIncidentLegalSpeedRate != null && charge.drivingIncidentLegalSpeedRate != "" ) th

[rules-users] classLoader issue...

2009-07-13 Thread Jason Davidson
I'm getting this error message too. I'm running Drools 5.0.1 as a bundle within an OSGi container. Like the parent post indicates it worked with Drools 4.0.7 and it only happens when I put constraints on fact fields. Here's my stack: Root exception: java.lang.NoClassDefFoundError: org/dro