[rules-users] Drools Pattern Matching

2008-04-01 Thread hanumesh.m
Hi, I am writing a rule which checks for the presence of substring in a string. Hard coding rule works fine but if I am using variables which may have dynamic values giving problems. How to write code equivalent of hardcoding version. HardCode verson : --- rule "Process 834"

[rules-users] Problem deploying BRMS 4.0.6

2008-04-01 Thread Robert Morse
Hello, I'm running JBoss AS 4.2.2.GA and have downloaded and built the drools- jbrms.war from the 4.0.6 source distribution under Mac OS X 10.5.2. When I deploy drools-jbrms.war, I get the following error: 11:52:10,028 WARN [config] Unable to process deployment descriptor for context 'JBoss

Re: [rules-users] Upgrading to 4.0.4

2008-04-01 Thread Edson Tirelli
Do you really need to assert an Iterator into memory? this does not "sound" good to me... If you really need, IMO you have 2 options: either create your own wrapper for the "array iterator", that is not a "final" nor "private" class, or disable shadow facts for this class only. If you need t

[rules-users] Upgrading to 4.0.4

2008-04-01 Thread Narendra Valada
Hi, I am upgrading to Drools 4.0.4 and I am getting this exception when executing this rule: rule "insert iterator" when somecondition then insert(Arrays.asList(some array).iterator()); end Here is the exception. Is this a bug? Disabling shadow copy is not really an option for this application

Re: [rules-users] are "sentence fragments" possible w/DSL?

2008-04-01 Thread Edson Tirelli
Matt, There are good and bad news for you. The good news is that you can define and use fragments in your sentences, since the DSL engine is a lot more flexible than it used to be in version 3. It will process the same sentence multiple times (for each matching fragment). The bad n