Re: [rules-users] Guvnor Rules!!!

2011-06-23 Thread Michael Anstis
Sorry, wrong link. You do have the good fortune of being able to use 5.2.0.Final now though: http://download.jboss.org/drools/release/5.2.0.Final/guvnor-distribution-5.2.0.Final.zip The example is in the ZIP archive's folder /guvnor-distribution-5.2.0.Final/examples/sources/src/main/java/org/droo

Re: [rules-users] Drools' use of hashCode

2011-06-23 Thread Wolfgang Laun
This is the state of things in connection with hashCode, update and object comparison: - There is a fact type A with a field b of class B and - patterns for A use constraints comparing b with "==" to some other object of type B and - B overrides hashCode using a field c of B and -

Re: [rules-users] the condition starts with "-" in DSL mapping

2011-06-23 Thread James Gu
I created an issue. https://issues.jboss.org/browse/GUVNOR-1492 There are too much information in my repository, I am sorry I can not attache a export. Thanks, James -- View this message in context: http://drools.46999.n3.nabble.com/the-condition-starts-with-in-DSL-mapping-tp3098986p3102950.h

Re: [rules-users] Guvnor Rules!!!

2011-06-23 Thread Sumeet Karawal
I downloaded from the link, but I am not able to find the mortgages example there. Thanks & Regards, Sumeet Karawal From: Michael Anstis

Re: [rules-users] Avoid evaluation of expensive LHS terms

2011-06-23 Thread Joe Ammann
On 23.06.2011 21:27, Michael Anstis wrote: > Have you tried salience? > Yeah, sorry forgot to mention. THis was the first thing I tried. -- CU, Joe ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-

[rules-users] Building

2011-06-23 Thread హరీష్ చౌదరి కూకట్ల
Hello EveryOne, I am new to drools and I have couple of questions. 1. How to build group of .drl files as a package and load it into the session. 2. Is there a way to see what rules are loaded into the session programatically Thank you very much, Harish Kukatla. __

Re: [rules-users] usage of @startTimestamp

2011-06-23 Thread Lavoisier Farias
Hi Nathan, thank you very much!! 2011/6/23 Nathan Bell > The Drools Fusion documentation has a good explanation of how to define an > event, including the use of the @timestamp attribute. > > ** ** > > > http://docs.jboss.org/drools/release/5.2.0.Final/drools-fusion-docs/html/ch02.html#d0e1

Re: [rules-users] usage of @startTimestamp

2011-06-23 Thread Nathan Bell
The Drools Fusion documentation has a good explanation of how to define an event, including the use of the @timestamp attribute. http://docs.jboss.org/drools/release/5.2.0.Final/drools-fusion-docs/html/ch02.html#d0e184 From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun.

Re: [rules-users] Avoid evaluation of expensive LHS terms

2011-06-23 Thread Michael Anstis
Have you tried salience? On 23 June 2011 20:20, Joe Ammann wrote: > Stumbled over this today in a specific case, but my question is about a > general practice (I'm quite new to Drools, 5.2.0.M2 btw). I have a > knowledge session with a fair amount of facts (0.5 Mio) and mostly > simple rules. On

[rules-users] Avoid evaluation of expensive LHS terms

2011-06-23 Thread Joe Ammann
Stumbled over this today in a specific case, but my question is about a general practice (I'm quite new to Drools, 5.2.0.M2 btw). I have a knowledge session with a fair amount of facts (0.5 Mio) and mostly simple rules. One rule has a LHS expression that I know will be expensive to execute, in the

[rules-users] Drools 5.2.0.Final released

2011-06-23 Thread Geoffrey De Smet
The Drools community is happy to announce the release of *Drools 5.2.0.Final*. This includes: * Drools Expert (rule engine) * Drools Fusion (CEP: complex event processing) * Drools Planner (planning optimization) * Guvnor (BRMS web application) * Drools IDE (Eclipse plugin) Read

[rules-users] usage of @startTimestamp

2011-06-23 Thread Lavoisier Farias
Hi everybody, I am delepoing an application using Drools to correlate events from a network management system. Can anyone recommend me a good tutorial which teaches how to use real time clock ? I am using the book of Michal Bali, which is very good indeed. The book examples uses the following cod

Re: [rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-23 Thread Tihomir Surdilovic
On 6/23/11 1:05 PM, roger wrote: > Surely there is a config file that says what is Guvnor's url for Oryx. $designer_war/profiles/jbpm.xml bottom on this file contains what you are looking for: Hope this helps. Thanks. ___ rules-users mailing list rules

Re: [rules-users] problems with process executions, constraints, and multiple sessions

2011-06-23 Thread Jordi Alvarez
Hello, regarding this point, As a temporal patch, we have tried to directly modify drools-jpa module behaviour by: - Adding a new attribute to org.drools.persistence.processinstance.ProcessInstanceInfo POJO identifying the stateful session to which the process instance corresponds (and the corres

Re: [rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-23 Thread roger
Guys, I reconfigured my logging system, and found these lines: http://localhost:8080/drools-guvnor/rest/packages/ Successfully deleted file :C:\Program Files\java\apache-tomcat-6.0.32\webapps\designer\stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json Created file:C:\Program Files\java\apache-tomcat-6.0.32

[rules-users] Drools rules spring integration without using any persistence

2011-06-23 Thread sv
Newbie here. Appreciate your help. I am trying to integrate only drools expert (rules) with spring without any persistence. In spring beans config, i have specified like this. When i start my local server, I received the following error. [PersistenceUnitDeployment] Starting persistence unit persi

[rules-users] Question on Drools migration from 3.0 to 5.1

2011-06-23 Thread Liqun Du
Hi All, We have an issue in rule when migrating drools from 3.0 to 5.1 with "eval". To demo this error, I use the following code: public class Info { public String getItem(int i) { return "item is " + i; } } In Drools 3.0, the following rule is fine: rule "test eval"

Re: [rules-users] the condition starts with "-" in DSL mapping

2011-06-23 Thread Wolfgang Laun
> On 23 June 2011 09:16, James Gu wrote: > >> Hi, >> >> I am using guvnor-5.2.0.CR1-jboss-as-5.1. I found a bug in DSL mapping. >> >> This is the DSL items. >> >> [when]There is an TestObject=TestObject() >> [when]-startDate is before {date}=startDate>DateUtils.parseDate("{date}") >> [when]-endDat

Re: [rules-users] the condition starts with "-" in DSL mapping

2011-06-23 Thread Michael Anstis
OK, here's the link https://issues.jboss.org/browse/GUVNOR It's difficult for us to know what to fix when problems aren't recorded anywhere except emails (and even more so IRC). If you can attach a test repository export it makes tracking the bug down easier. If you want to attach a patch for rev

Re: [rules-users] the condition starts with "-" in DSL mapping

2011-06-23 Thread James Gu
I didn't create a JIRA for this and I don't know where to create it. I know this bug exists in drools-5.1.1-guvnor because I am using both 5.1.1 and guvnor-5.2.0.CR1-jboss-as-5.1. Thanks, James -- View this message in context: http://drools.46999.n3.nabble.com/the-condition-starts-with-in-DSL-m

Re: [rules-users] Guvnor guided editor problem - "add more options"

2011-06-23 Thread Michael Anstis
You can try this http://community.jboss.org/wiki/InstallingDroolsGuvnor50InTomcat6xAndJBossAS5, the same will probably apply to 5.1.1 too. Guvnor 5.2 has customised versions for various AS's (that basically remove unnecessary JARs). It should be available *today*. Have a look on http://www.jboss.o

Re: [rules-users] Guvnor guided editor problem - "add more options"

2011-06-23 Thread marros
HI Mike, Sorry I did not reply yesterd (I was out of work on holiday) I decided to start again from scratch: 1. I downloaded (from www.jboss.org/jboss/downloads) jboss-as-distribution-6.0.0.Final.zip. Unzipped it and am able to run this version of the AS without a problem. 2. I then downloaded

Re: [rules-users] Search function of Guvnor limited to filename search?

2011-06-23 Thread Michael Anstis
You are correct, we only search asset names, although you can also perform the "Attribute search". If you have an idea for an enhancement (to search rules themselves) why not create a JIRA for consideration? In order to search rules themselves we'd need to store their equivalent plain-text DRL in

Re: [rules-users] Guvnor Rules!!!

2011-06-23 Thread Michael Anstis
Have you looked at the "mortgages" example under the "examples" folder in the guvnor-distribution; http://download.jboss.org/drools/release/5.2.0.CR1/drools-distribution-5.2.0.CR1.zip ? There is a similar example for 5.1, but TBH I'm not sure of the location in either the download or internet. 20

Re: [rules-users] the condition starts with "-" in DSL mapping

2011-06-23 Thread Michael Anstis
I assume you have created a JIRA for this; since you noticed it in 5.1.1? Can you please advise the number and we can endeavour to take a look for 5.3. With kind regards, Mike On 23 June 2011 09:16, James Gu wrote: > Hi, > > I am using guvnor-5.2.0.CR1-jboss-as-5.1. I found a bug in DSL mappi

[rules-users] Search function of Guvnor limited to filename search?

2011-06-23 Thread style.x7
Hi all, I've tried both 5.1 and 5.2 CR version of Guvnor, seems like the search function is limited to matching filenames, understand that the search function is powered by Lucene which should be more powerful :) Any way to get Guvnor perform full-text or relevance search on the rules? Thanks in

[rules-users] Drools 5.1 guided rule editor can only create one rule per .brl file?

2011-06-23 Thread style.x7
Hi all, I'm finding the guided rule editor for eclipse useful in building rules with better readability but it seems to be restricted to one rule per .brl file. Am I missing something? Thanks in advance. -- View this message in context: http://drools.46999.n3.nabble.com/Drools-5-1-guided-rule-e

Re: [rules-users] Intersecting two collections in LHS

2011-06-23 Thread Wolfgang Laun
Try this http://members.inode.at/w.laun/drools/CustomOperatorHowTo.html in combination with http://members.inode.at/w.laun/drools/SubsetOfEvaluatorsDefinition.java Feedback (to me personally) would be appreciated. -W 2011/6/23 Hezi Stern > I have in the working memory all possible sentences th

[rules-users] Intersecting two collections in LHS

2011-06-23 Thread Hezi Stern
I have in the working memory all possible sentences that can be presented to the user ( class Sentence() ). Each sentence holds a collection (String collection) called descriptor that describe the sentence. Based on various rules I populate a collection called messageFilter which will be used

[rules-users] the condition starts with "-" in DSL mapping

2011-06-23 Thread James Gu
Hi, I am using guvnor-5.2.0.CR1-jboss-as-5.1. I found a bug in DSL mapping. This is the DSL items. [when]There is an TestObject=TestObject() [when]-startDate is before {date}=startDate>DateUtils.parseDate("{date}") [when]-endDate is after {date}=endDate>DateUtils.parseDate("{date}") I created a