Re: [rules-users] Creating a Query in Guvnor

2012-12-11 Thread Wolfgang Laun
You wouldn't be able to execute a query after the return of execute() from a stateless knowledge session. Consider writing a low-salience rule that fires for the conditions you'd use in the query and add the matching facts to a global List, or insert a single fact prepared to collect these facts i

Re: [rules-users] Creating a Query in Guvnor

2012-12-11 Thread David R Robison
I tried this with no success. Any thought on how to resolve this? I have a package defined in Guvnor and referenced in my change set. I can set it up and fire all rules but I need a way to get the results out of my stateless knowledge session. Any thoughts? David David R Robison Open Roads Cons

Re: [rules-users] Creating a Query in Guvnor

2012-12-11 Thread David R Robison
Without being able to define a query, how can I retrieve data from the session? David David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot

Re: [rules-users] Creating a Query in Guvnor

2012-12-11 Thread Michael Anstis
There isn't an explicit editor for this - there's a JIRA for it, but I forget the number. You might be able to work around it by either modifying the drools.package asset or adding a query definition in the advanced view of the package imports or global settings. All are added to the package DRL a

[rules-users] Drools Planner: what if possible values of a PlanningVariable are dependent of another one?

2012-12-11 Thread Willem van Asperen
Hi All, I have a PlanningEntity that has several planning variables, say A and B. Now, if A is O then B can be X or Y and when A is P then B can be Y or Z. I see two routes: * create a solution property that generates X, Y and Z as alternatives for B and rely on the score rules to dismiss

[rules-users] Creating a Query in Guvnor

2012-12-11 Thread David R Robison
Is there a way to create a Query in Guvnor? I am using 5.4.0. Thanks, David -- David R Robison Open Roads Consulting, Inc. 103 Watson Road, Chesapeake, VA 23320 phone: (757) 546-3401 e-mail: drrobi...@openroadsconsulting.com web: http://openroadsconsulting.com blog: http://therobe.blogspot.com b

Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-11 Thread Wolfgang Laun
On 11 December 2012 19:20, ping wrote: > Thank you. You are right the locks are guarding the session creation. > I will try stateful session with fact retracting. > I was using stateless session because the rules I'm going to deploy are all > simple rules without much inference. > So another ques

Re: [rules-users] Is Drools suitable for preprocessing my Resource Allocation Problem

2012-12-11 Thread Raphael Jolivet
Thanks very much for this detailled anbwser. this helps me much. I am currently playing with Drools, and trying to build rules in Java from my own Rule objects, with the help of the lang.api. Here are some comments in the flow of your anwsers > > > The optimizer takes as input (among others) a l

Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-11 Thread ping
Thank you for the advice. That's a good solution if we choose to deploy the rule engines as standalone services. We are also evaluating deploy the rule engine as a embedded component in legacy applications. In this case they have to be in the same JVM. -Ping -- View this message in context: ht

Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-11 Thread ping
Thank you. You are right the locks are guarding the session creation. I will try stateful session with fact retracting. I was using stateless session because the rules I'm going to deploy are all simple rules without much inference. So another question is: to make the multi-threading efficient, I n

[rules-users] [planner] Looking for testimonials for Drools Planner

2012-12-11 Thread Geoffrey De Smet
Hi Planner users, I need your help :) Lately, several people have been asking me for public testimonials for Drools Planner. So if you're a Planner user, would like to say a few words about it by responding to this mail? Say what you want. It's extra nice if you can mention the benefits, proje

Re: [rules-users] Drools hangs on parsing a Query

2012-12-11 Thread spotlight2001
I read this in some oracle forum: "You may want to check if your updating the HashMap concurrently. If you are then the HashMap can get internally corrupt (The items in one bucket can get a circular linked reference) and result in a infinite loop upon calling get(). If this is the case use Con

[rules-users] Drools hangs on parsing a Query

2012-12-11 Thread spotlight2001
*Drools 5.4.0.Final* Im running a *query* against Drools It is running for many hours and doesnt seem to return. This happens in 5% on production. Probably some race problem? ... query "distributeForMove" (long pSpmaId) $spma: SubPlanningMatrixOpt ( ..., spmaId == pSpmaId, ...) ...

Re: [rules-users] Multi-threading inefficiency caused by static class synchronization?

2012-12-11 Thread Wolfgang Laun
On 11/12/2012, Mauricio Salatino wrote: > You can also split your application in multiple processes to use multiple > JVMs. if you have 8 threads it can be divided into starting two apps with 4 > threads each. If you are working with Stateless session that shouldn't be a > problem. Except for sha