Re: [rules-users] Persistence and drools-process-enterprise.jar

2009-03-20 Thread Mark Proctor
Umesh Wankhede wrote: *From:* rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] *On Behalf Of *Mark Proctor *Sent:* Thursday, March 19, 2009 2:41 AM *To:* Rules Users List *Subject:* Re: [rules-users] Persistence and drools-process-enterprise.jar Umesh

RE: [rules-users] Re: Mixing dsl language and regular rule syntax in arule file

2009-03-20 Thread Quinn, Dan
Thanks for the response. As I am sure you expected it worked! Daniel Quinn Fedex - Custom Critical Software Specialist I 234.310.4090(x2586) -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Matt Geis Sent: Friday, Mar

Re: [rules-users] forall over a collection

2009-03-20 Thread howard goldberg
Thanks to both of you for the quick response! Howard 2009/3/20 Edson Tirelli > >Wolfgang is right in its suggestion. > >Just to explain what the problem is, in previous versions of drools, > forall() could not be used with an embedded from. It is fixed in trunk. > >[]s >Edson >

Re: [rules-users] Mixing dsl language and regular rule syntax in a rule file

2009-03-20 Thread David Sinclair
Here is the link to the docs http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d0e4780 2009/3/20 Quinn, Dan > Hi, > > Is it possible to mix dsl language and regular rule syntax in a rule > file? I am trying to do thi

[rules-users] Re: Mixing dsl language and regular rule syntax in a rule file

2009-03-20 Thread Matt Geis
>> Is it possible to mix dsl language and regular rule syntax in a rule file? Absolutely. Last I checked, it was not documented, but you can see it in the samples that ship with Drools. Your dslr file below has been rewritten to support what you want to do. (The '>' character tells the p

[rules-users] Mixing dsl language and regular rule syntax in a rule file

2009-03-20 Thread Quinn, Dan
Hi, Is it possible to mix dsl language and regular rule syntax in a rule file? I am trying to do this, but my rules won't compile. The "unable to expand" error is returned during compilation. I tried adding [*][]"{anything}" = "{anything}" to the dsl file to fix this, but that didnt work. I use

Re: [rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-20 Thread Premkumar Stephen
Thanks Mike for your comments. I did look at JBoss Rails and it was very interesting. Out here, we have a core Ruby application that cannot be ported (easily enough) to JRuby. We are planning to introduce a rule engine into the mix. The idea possibly is to inject the ruby object from the master app

[rules-users] Error running DroolsCompilerAntTask in CR1

2009-03-20 Thread Jeff Davis
Hi, I upgraded everything from M5 to CR1 last night, but noticed that my ant task no longer worked and was returning an error (it had worked previously under M5, and I confirmed by switching everything back to test). The error I now receive is: [compiler] java.util.zip.ZipException: error in openi

Re: [rules-users] running a small set of rules from a drl file.

2009-03-20 Thread Lucas de Oliveira
Thanks Mike! I'll give it a try. cheers! -- Lucas de Oliveira Arantes ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

RE: [rules-users] Persistence and drools-process-enterprise.jar

2009-03-20 Thread Umesh Wankhede
From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Mark Proctor Sent: Thursday, March 19, 2009 2:41 AM To: Rules Users List Subject: Re: [rules-users] Persistence and drools-process-enterprise.jar Umesh Wankhede wrote: The persistence cha

Re: [rules-users] How to compile the guvnor source

2009-03-20 Thread Nestor Tarin Burriel
Hi Toni, Thanks 4 the response ... now I'm trying to build guvnor but neither the pom.xml nor the build.xml are well formed :( In the pom.xml are missed the version number of the dependencies: com.google.gwt:gwt-servlet com.gwtext:gwtext com.thoughtworks.xstream:xstream commons-fileupload:commons-

RE: [rules-users] Logic in the when clause

2009-03-20 Thread Zevenbergen, Alex
Thanks very much From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: 20 March 2009 10:45 To: Rules Users List Subject: Re: [rules-users] Logic in the when clause Well, accesses to embedded objec

Re: [rules-users] How to compile the guvnor source

2009-03-20 Thread Toni Rikkola
Hi, Here is a wiki page that might be helpful http://www.jboss.org/community/docs/DOC-11917 When making changes to the Guvnor client side you need to run ant gwt-compile before creating the war. Toni nestabur wrote: Hi All, I'm trying to tune up the guvnor project modifying some componen

Re: [rules-users] Logic in the when clause

2009-03-20 Thread Wolfgang Laun
Well, accesses to embedded objects are a little more complicated, but if you want it: rule HomeWinEt when $f : Fact( $d : details ) eval( $d.CLOCK_STAGE > 10 && ($d.HOME_MATCH_SCORE - $d.HOME_FULL_TIME_SCORE > $d.AWAY_MATCH_SCORE - $d

[rules-users] How to compile the guvnor source

2009-03-20 Thread nestabur
Hi All, I'm trying to tune up the guvnor project modifying some components for our enterprise and when I compile the source the changes in gwt infrastructure doesn't take any effect... so ¿how can I compile correctly the project? ?¿via maven? ¿ant task? Cheers, NEStor -- View this message in c

RE: [rules-users] Inserting a JRuby object via Spring JRubyScriptFactory in Drools

2009-03-20 Thread Anstis, Michael (M.)
I read that JBoss AS supports JRuby classes running in the JVM... http://oddthesis.org/posts/2009-03-jboss-rails-1-0-0-beta4-in-time-for-t he-weekend Whilst I haven't used it nor read about it in detail perhaps this is something that might be of interest. With kind regards, Mike _

RE: [rules-users] running a small set of rules from a drl file.

2009-03-20 Thread Anstis, Michael (M.)
You could consider Agenda Groups. You could either bunch groups of rules into discrete sets or have each rule in its own Agenda Group. You would then use workingMemory.setFocus(...) before calling fireAllRules(). This is based upon 4.x and so could be different in 5 (which I haven't had time

Re: [rules-users] forall over a collection

2009-03-20 Thread Edson Tirelli
Wolfgang is right in its suggestion. Just to explain what the problem is, in previous versions of drools, forall() could not be used with an embedded from. It is fixed in trunk. []s Edson 2009/3/20 Wolfgang Laun > You don't need forall to solve your problem. The following rule prin

RE: [rules-users] Logic in the when clause

2009-03-20 Thread Zevenbergen, Alex
Thanks, this is the rule: rule "Home win et" when $f : Fact(details.CLOCK_STAGE > 10,(details.HOME_MATCH_SCORE - details.HOME_FULL_TIME_SCORE) > (details.AWAY_MATCH_SCORE - details.AWAY_FULL_TIME_SCORE)) then end From: rules-users-boun...@lists.jboss.org

Re: [rules-users] Logic in the when clause

2009-03-20 Thread Wolfgang Laun
You could use eval( ) for this, but I guess it could also be added as a return value field constraint to the last of these four fields. Would you mind providing the full pattern? -W 2009/3/20 Zevenbergen, Alex > Hi, > > quick newbie question about the when clause in a rule. eg can i get the >

[rules-users] Logic in the when clause

2009-03-20 Thread Zevenbergen, Alex
Hi, quick newbie question about the when clause in a rule. eg can i get the fact to be tested from the result of two other inputted facts? details.HOME_MATCH_SCORE - details.HOME_FULL_TIME_SCORE > details.AWAY_MATCH_SCORE - details.AWAY_FULL_TIME_SCORE I assumed this would work fine but it doe

Re: [rules-users] mapping between the eclipse drools project and Guvnor

2009-03-20 Thread Kris Verlaenen
There is no predefined mapping, you can use the Guvnor eclipse plugin to integrate your files with Guvnor, and select an appropriate package to upload your files to (usually you create a model jar for all your model classes and upload that with all your rules / processes / DSLs / etc. into a specif

Re: [rules-users] forall over a collection

2009-03-20 Thread Wolfgang Laun
You don't need forall to solve your problem. The following rule prints all patient names which don't have problem 4711; omitting the 'not' prints those suffering from Colognitis. rule lookJoe when $patient: Patient() not ( Problem( code == "4711" ) from $patient.problemList )

[rules-users] mapping between the eclipse drools project and Guvnor

2009-03-20 Thread Wishing Carebear
Hello: I'm a newbie to drools and have installed the eclipse plugin IDE and the guvnor. Wondering what is the mapping between the IDE projects and the guvnor assets and packages view. Thanks, Ravi ___ rules-users mailing list rules-users@lists.jboss.org

[rules-users] forall over a collection

2009-03-20 Thread howard goldberg
Trying to check whether a patient has a particular problem on their problem list: when $patient : Patient() forall ( Problem( code != "195967001") from $patient.problemList) but I get the following parsing error-- [29,41]: [ERR 101] Line 29:41 mismatched input 'FROM' expecti