[rules-users] fact updates with query-only usage of Drools

2013-06-14 Thread Andras Nagy
Dear All, In a multithreaded application I plan to use Drools the following way: -use only queries but not rules -keep an outside reference to all facts inserted into the working memory, and keep modifying the facts after they were inserted -use locks synchronizing outside fact changes and Drools

Re: [rules-users] fact updates with query-only usage of Drools

2013-06-14 Thread Wolfgang Laun
On 14/06/2013, Andras Nagy andras.istvan.n...@gmail.com wrote: Dear All, In a multithreaded application I plan to use Drools the following way: -use only queries but not rules -keep an outside reference to all facts inserted into the working memory, and keep modifying the facts after they

Re: [rules-users] fact updates with query-only usage of Drools

2013-06-14 Thread Andras Nagy
Hi Wolfgang, How else would the engine know when to reevaluate LHSs? Well, the user manual is clear about the LHS of _rules_ being evaluated at assertion time, indeed. However I did not find information about this matter regarding _queries_. Sorry if I missed something, but the manual is mostly

[rules-users] Exception jitting

2013-06-14 Thread Bojan Janisch
Hello everyone, recently I'm using Drools in a multi-threaded environment. Since then I get sometimes RuntimeExceptions like this: Exception in thread Thread-10 java.lang.RuntimeException: Exception jitting: getConcept().identifierSource.toLowerCase.contains(anatomy) at

Re: [rules-users] fact updates with query-only usage of Drools

2013-06-14 Thread Wolfgang Laun
Can you provide a (complete) example where changing a fact object without calling update produces a result of getQueryResults being invoked after this change that contradicts the constraints of the query's LHS? -W On 14/06/2013, Andras Nagy andras.istvan.n...@gmail.com wrote: Hi Wolfgang, How

[rules-users] Update: Need to copy packages from server A to server B, but they use Global Models

2013-06-14 Thread Fair, Joe
Ok. I figured out how to download models from the global area (I think) but if I upload them again, I assume they will be different from the ones in the global area on the new server. Is there a way to tell Guvnor that a package is using a model in the global area in the rest interface? Joe

Re: [rules-users] Exception jitting

2013-06-14 Thread Bojan Janisch
Hi again, I've solved the problem with updating Drools from 5.4 to 5.5. I thought I'd updated it ones but seems that I worked on an older version. Nice Weekend to everyone. Bojan - Ursprüngliche Mail - Von: Bojan Janisch bojan.jani...@scai.fraunhofer.de An: Rules Users List

[rules-users] Rule Templates and Array Handling

2013-06-14 Thread Jason Allen
Hi All, I'm trying to determine if it's possible to process arrays of data using Rule Templates. An example of what I'm trying to accomplish. Spreadsheet of rules, with one of the columns being valid colors. Valid colors contains comma separated data and is variable length. For example It

Re: [rules-users] Guvnor 6.0.0.Beta2 on Tomcat 7 - should problems be reported?

2013-06-14 Thread kappert
OK, I have just tried this out at home on a Windows 7 computer, without a (boring) corporate firewall. Result: *drools-wb-6.0.0.Beta3-tomcat7.0.war install fine on Tomcat 7 and works.* I can't think of anything else than a firewall problem. If this GitHub connection is required, probably a

Re: [rules-users] Rule Templates and Array Handling

2013-06-14 Thread Wolfgang Laun
In the spreadsheet (with class Country) you would have a column such as: CONDITION Country name in ( $param ) Test whether name is one from a given set Austria, Germany, Switzerland France, Canada, Belgium This is the generated rule: rule InTest_18 when $country:

Re: [rules-users] Rule Templates and Array Handling

2013-06-14 Thread Jason Allen
Thanks for the reply Wolfgang. I chose to use the template because I liked the idea of separating the rule definition from the rule data. Just seemed intuitive to me. Overall, I'm new to Drools, so not sure if that is the best choice or not. I think your approach works if my spreadsheet has

Re: [rules-users] Rule Templates and Array Handling

2013-06-14 Thread Wolfgang Laun
If you are expanding the template with data taken from anywhere you have the option of processing that data before you pass it to the expander. Section 2.5.2., Expanding a Template, explains how to do this. This is the option you have for implementing specific processing. The problem with data in

Re: [rules-users] Rule Templates and Array Handling

2013-06-14 Thread Jason Allen
Thanks Wolfgang. I think I see what you're saying. If I need to do any complex prep, simply process it first, then build a collection of POJO objects for expansion by the drools template. I also understand what you're saying about spreadsheets. Most of this is just proof of concept I'm