[rules-users] DSL how to define recursive expression

2012-10-15 Thread prashantmiraj...@gmail.com
A simple statement like id of organization with DSL rule [keyword][]{attr:[A-Za-z0-9]+}\s+property\s+of\s+{obj:[A-Za-z0-9]+}={obj}.get{attr!ucfirst}() works just fine with result organization.getId(). If I want to use statements like id property of organization property of department

Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-15 Thread Ravikiran
It may be not the corrent way of doing it.Let's do like this. If you are using file based JCB for your repository, why can't you try copying the full repository manually to your new location...It may work...but i am not sure. It worked for me when i do it migrate the repository between two

[rules-users] How to access Guvnor Rules based on versions from Java?

2012-10-15 Thread Ravikiran
Hi, I have got a business requirement to access specific version of a rule and process them accordingly. My rules are stored in file based JCB based guvnor repository. For example, i have a rule in a package created, having more than one version varying with rule definition for each version. How

Re: [rules-users] DSL how to define recursive expression

2012-10-15 Thread Wolfgang Laun
Converting a left-to-right DSL phrase into a right-to-left Java-style method call isn't something a regular expression can do, not for the general (i.e., unlimited) case. You'll probably require this for a limited number of steps, though. Untested proposal: Precede the single step phrase in your

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-15 Thread lhorton
Sorry, there was a JIRA link in the message thread that I didn't notice. https://issues.jboss.org/browse/JBRULES-1325 says the leak was fixed in 5.0 -- View this message in context: http://drools.46999.n3.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp54778p4020292.html Sent from the

Re: [rules-users] Decision Table Help

2012-10-15 Thread qwertyqwerty
Hi i have had another go at this,trynig to learn DRL and hthen applying it to my spreadsheet. The below is what i have so far: in java i create: ListCar list = new ArrayListCar(); Car o1 = ... Car o2 = ... list.add(o1); list.add(o2); Test t = new Test(list); Car is: (name, value) DRL

Re: [rules-users] Listening to changes on facts

2012-10-15 Thread jspartan0901
Thanks for a very detailed answer, Davide. To give a brief overview of the usecase, I am trying to build a state of a user over a period of time based on the activity he/she performs on our website. They may click on various pages. I will be writing rules such as when a user clicks on certain

[rules-users] Egg Planning: number of facts is also a planning variable

2012-10-15 Thread Paul Adams
Hi everyone, I'm new to Drools, so apologies if I'm missing something obvious or mixing up my terms here. Hopefully the subject line got someone's attention! My problem is this (somewhat contrived and simplified): Facts: 1. A person would like to eat 3 eggs per day, of each of several

Re: [rules-users] How to access Guvnor Rules based on versions from Java?

2012-10-15 Thread Jervis Liu
On 2012/10/15 19:46, Ravikiran wrote: Hi, I have got a business requirement to access specific version of a rule and process them accordingly. My rules are stored in file based JCB based guvnor repository. For example, i have a rule in a package created, having more than one version varying with