Re: [rules-users] How to specify relative URL in chagenset.xml file

2010-01-13 Thread Pardeep Ruhil
Hi Mark, Thanks for answering my query. It is picking the relative path now, provided there is no space(' ') in a folder name. Is there a way, that it wil pick the folder having space in name ? Thanks & Regards Pradeep Ruhil > > Hi, > > I am getting File Not Found Exception when I try to

Re: [rules-users] How to specify relative URL in chagenset.xml file

2010-01-13 Thread Mark Proctor
On 14/01/2010 05:08, Pardeep Ruhil wrote: Hi, I am getting File Not Found Exception when I try to give relative path of the file. If I told you that the above would do nothing more than: new File ("../HelloWorld.drl"); Would that help? Mark But when I give the complete path, It picks

[rules-users] How to specify relative URL in chagenset.xml file

2010-01-13 Thread Pardeep Ruhil
Hi, I am getting File Not Found Exception when I try to give relative path of the file. But when I give the complete path, It picks the changeset.xml file. Please tell me the syntax for using the relative path for my workflow or rule files. Thanks & Regards Pradeep Ruhil _

[rules-users] drools 5.0.1 enum serialization/deserialization problem

2010-01-13 Thread Garner, Shawn
We are pre-compiling the rules and then reading them in and running them later. I'm getting this error when reading in the compiled (serialized rules) rules: "Error deserializing enum value"... This line (pretty similar to this) is causing the issue when it's deserializing the Java 5 Enum.

Re: [rules-users] Understanding "no viable alternative ..." errors

2010-01-13 Thread Pritam
Ah, that was an oversight. After fixing that, I now get ... mismatched input '"type"' expecting ']' in rule "filter content if advertisement" in pattern properties Is something wrong with this mvel syntax? properties["type"]=="ad" from content Pritam wrote: > > While executing the following r

[rules-users] Backing up Guvnor repository

2010-01-13 Thread RichardA
Today we are using Drools 4 and the gui for the rules. The backend of the gui repository is in Oracle, and we backup the oracle db each day. But we also perform an export from the gui using the import/export function to gather a known good repository. In drools 4 we can use: wget -O repository_e

Re: [rules-users] Understanding "no viable alternative ..." errors

2010-01-13 Thread Edson Tirelli
The error simply means that your syntax is incorrect and the parser could not understand the character at line 16, character 46. In this case, you are using "=" instead of the correct "==": pointId: Point(page == "home", region == "center-content") Also, remember that constrain

Re: [rules-users] Understanding "no viable alternative ..." errors

2010-01-13 Thread David Sinclair
You are missing another = sign for your region check, i.e. pointId: Point(page == "home", region == "center-content") Also, is there a join between the Point and the Content? Otherwise you'll have the cartesian product of points and content On Wed, Jan 13, 2010 at 12:09 PM, Pritam wrote: > > Wh

Re: [rules-users] Understanding "no viable alternative ..." errors

2010-01-13 Thread Esteban Aliverti
Did you miss an = sign in region?? rule "home dummy" when pointId: Point(page == "home", region =*=*"center-content") content: Content(id=="adslot") properties["type"]=="ad" from content then filter.put(content.id, true); end Best, On Wed

Re: [rules-users] Drools 5.0 concat string in matches of regular expression

2010-01-13 Thread Edson Tirelli
What version of MVEL are you using? Edson 2010/1/13 Lukas Svoboda > > I'm getting some generic not-anything-saying error message: > [java] Unable to determine the used declarations. > [java] unexpected symbol ' ' : [Rule name='BL: Block mail domain'] > > When I remove that concate

[rules-users] Understanding "no viable alternative ..." errors

2010-01-13 Thread Pritam
While executing the following rule, rule "home dummy" when pointId: Point(page == "home", region ="center-content") content: Content(id=="adslot") properties["type"]=="ad" from content then filter.put(content.id, true); end I

Re: [rules-users] Drools 5.0 concat string in matches of regular expression

2010-01-13 Thread Lukas Svoboda
I'm getting some generic not-anything-saying error message: [java] Unable to determine the used declarations. [java] unexpected symbol ' ' : [Rule name='BL: Block mail domain'] When I remove that concatenated matches expression (".*@" + blacklistItemValue + ".*") it compiles. Complete

Re: [rules-users] Drools 5.0 concat string in matches of regular expression

2010-01-13 Thread Edson Tirelli
It should work... what error do you see? Edson 2010/1/13 Lukas Svoboda > > How can I get drools 5.0.1 compiled if I have regular expression matches > part > concat from static text + dynamic string? > > See example: >onBlackList : ArrayList( size > 0 ) > from

[rules-users] Drools 5.0 concat string in matches of regular expression

2010-01-13 Thread Lukas Svoboda
How can I get drools 5.0.1 compiled if I have regular expression matches part concat from static text + dynamic string? See example: onBlackList : ArrayList( size > 0 ) from collect( BlacklistItemDRL( blacklistItemType matches "MAIL_DOMAIN" && customer.currentConta

Re: [rules-users] Fwd: Author Drools Book-Packt Publishing

2010-01-13 Thread Mark Proctor
Sayamaw, I've forward your email to the Drools user mailing list, could you provide more details? Mark On 13/01/2010 13:03, Nicolas Héron wrote: Hello to all, for when is this book intended ? 2010/1/13 Mark Proctor > Seems there might be a 3rd packt book

Re: [rules-users] Fwd: Author Drools Book-Packt Publishing

2010-01-13 Thread Nicolas Héron
Hello to all, for when is this book intended ? 2010/1/13 Mark Proctor > Seems there might be a 3rd packet book. any takers? :) > > Mark > > Original Message Subject: Author Drools Book-Packt > Publishing Date: Wed, 13 Jan 2010 15:41:51 +0530 From: Sayama Waghu >To: mpr

[rules-users] Fwd: Author Drools Book-Packt Publishing

2010-01-13 Thread Mark Proctor
Seems there might be a 3rd packet book. any takers? :) Mark Original Message Subject:Author Drools Book-Packt Publishing Date: Wed, 13 Jan 2010 15:41:51 +0530 From: Sayama Waghu To: mproc...@codehaus.org Hi , I’m writing to you for Packt Publishing, the pub

[rules-users] (no subject)

2010-01-13 Thread Nilima R
Hi All I am new to drools and have started with Drools Guvnor . I am trying to create DSL based on the sample examples in guvnor. I have Customer as "declarative fact model" and 2 fields within it totalItenmsPrice (integer) and discount(boolean) I have created a DSL which contains the below co

Re: [rules-users] Drools DSL

2010-01-13 Thread Nilima R
Nilima Rajendra Raichandani Sub Focus Area Lead - BPM/BAM/BRE TEG - Open Source Platform Tata Consultancy Services Ph:- +91 22 6778 2027 Cell:- 9322108518 Mailto: nilim...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services