[rules-users] Potential memory leak in package analysis tool in Guvnor 5.3

2013-03-05 Thread Chris Selwyn
, query]'. /quote Using jvisualvm, I can see that the memory usage takes a step jump each time I use the analysis tool and eventually (actually after only 2 usages) I get OutOfMemoryErrors. The package compiles just fine. Is there a known problem with the analysis tool? Chris Selwyn

[rules-users] Change in eval mvel syntax from 5.1 to 5.3

2013-03-05 Thread Chris Selwyn
I have been using 5.1 for some time and am looking to upgrade. I have found that, where in 5.1, I used to be able to write $jd: JobDetails( eval ( $t = [MTSURVEY, MTINSTALL, MTEXCHANGE, MTMAINT]; !($t contains getJobType(businessArea, templateJobId) )) ) However, in 5.3.1 this now

Re: [rules-users] Solution for reasoning over XML?

2013-01-13 Thread Chris Selwyn
Is this paper freely available? I would be interested in seeing a copy of it since I have recently been using with Drools to detect all sorts of data conditions in XML documents. Chris On 11/01/2013 07:03, Wolfgang Laun wrote: There was my talk at IntelliFest 2012: Reasoning with XML Data.

Re: [rules-users] Stateless session with pre-inserted facts

2012-10-01 Thread Chris Selwyn
) context of the saved session is going to cost a little, too. -W On 30 September 2012 12:10, Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk wrote: I have a need to execute a set of rules on a complicated hierarchical data structure where some of the rules use

Re: [rules-users] Hibernate Configuration with Drools 5.4

2012-06-19 Thread Chris Selwyn
If you'll pardon the heresy... It sounds to me like the whole thing can be solved with an appropriately loaded hashtable without any need for a rules engine at all! Chris On 19/06/2012 11:54, Wolfgang Laun wrote: On 19/06/2012, zeeshan zeeshan.spr...@gmail.com wrote: Hi Laune, Thanks

Re: [rules-users] Hibernate Configuration with Drools 5.4

2012-06-19 Thread Chris Selwyn
Please don't let me stop you implementing Wolfgang's solution... I'm sure that it is the best solution for implementation in a rules engine. I was just thinking outside of the box for a moment. However, if you are not comfortable with coding outside of a rules engine then by all means ignore

[rules-users] Testing for global variable

2012-02-14 Thread Chris Selwyn
. So I would like to be able to automatically test whether the rules that I am about to execute have the global variable and if they do not then not to insert the SetGlobal into the batch. I am using DRools 5.1 Chris Selwyn ___ rules-users mailing list

Re: [rules-users] Testing for global variable

2012-02-14 Thread Chris Selwyn
that sls.execute() creates underneath the covers. That way I don't have to declare the global in those rulesets that don't use it. Chris On 14/02/2012 13:31, Wolfgang Laun wrote: But you can try{ ks.setGlobal(...) } catch( Exception e ){ } -W On 14/02/2012, Chris Selwyn ch...@selwyn

[rules-users] Drools 5.3 on Glassfish

2012-01-13 Thread Chris Selwyn
I have just started looking at Drools 5.3 with a view to running the Guvnor on Glassfish. I have been using Drools 5.1 Guvnor on Glassfish 2.1 very happily for some time but I thought that I should look at upgrading. In fact, some time ago, I posted instructions here on how to setup authentication

Re: [rules-users] MUTEX, mutual exclusion in Drools?

2011-06-28 Thread Chris Selwyn
Of course, in the then part of rule1 you will have to set a fact that is checked in the when condition in rule2 to ensure that rule2 is not executed if rule1 has executed. Chris On 28/06/2011 12:30, Manuel Ortiz wrote: Hello itchupe: I think you mean what in Drools is called SALIENCE. Look

Re: [rules-users] Authorisation of Guvnor users on Glassfish

2011-05-02 Thread Chris Selwyn
:-) Chris On 02/05/2011 12:13, maav wrote: Never mind! I got it working, was some kind of classpath issue. Nice and well described solution btw! Best Regards Mattias -- View this message in context:

Re: [rules-users] Salience problems

2011-04-29 Thread Chris Selwyn
. If there are any further issues that you would like to see prioritized for the supported BRMS bits you are using, we will be glad to work with you through the JBoss Customer Support Portal. Thanks. Tihomir On 4/27/11 2:31 PM, Chris Selwyn wrote: I am finding

[rules-users] Salience problems

2011-04-27 Thread Chris Selwyn
is very non-deterministic (presumably due to hashing or something like that) and I am finding it very difficult to actually pin down an actual 100% reproducible case. Is there any known problem with the salience mechanism? I am using JBoss Rules 5.1.0 (with a support licence). Chris Selwyn

Re: [rules-users] Open file leak in Drools Compiler

2011-03-17 Thread Chris Selwyn
. --- On Wed, 3/16/11, Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk wrote: From: Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk Subject: Re: [rules-users] Open file leak in Drools Compiler To: Rules Users List rules-users

[rules-users] Open file leak in Drools Compiler

2011-03-16 Thread Chris Selwyn
, when is is not null (i.e. open), it is forgotten about and not closed. Isn't this a potential file handle leak? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Open file leak in Drools Compiler

2011-03-16 Thread Chris Selwyn
about and not closed. Isn't this a potential file handle leak? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users

[rules-users] Migrating from one environment to another

2011-02-16 Thread Chris Selwyn
to another, so far without luck. Is there such a mechanism? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Migrating from one environment to another

2011-02-16 Thread Chris Selwyn
there is such a mechanism. @Sathya, Hijacking a previous post is unlikely to get you a reply. Thanks, Mike On 16 February 2011 22:04, Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk wrote: I am aware of the Guvnor export/import mechanism to move an entire repository and the method

[rules-users] Facts with from

2010-12-31 Thread Chris Selwyn
I am trying to understand the usage of from. Do I take it that facts that come from a from CE do not actually get asserted into the WM? I would like to be sure because the facts that I would like to fetch with from are actually the same Java class as one of my WM facts but I do not want the

Re: [rules-users] Facts with from

2010-12-31 Thread Chris Selwyn
I assume that you mean that Yes they don't rather than Yes they do :-) (Isn't english so imprecise?) (WMEs? Working Memory Entries?) Chris On 31/12/2010 12:55, Wolfgang Laun wrote: On 31 December 2010 11:33, Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk wrote

Re: [rules-users] Facts with from

2010-12-31 Thread Chris Selwyn
to at face value. Q. May I ask you how olod you are? A. Yes, you may. WME = Working Memory Elements. Cheers Wolfgang 2010/12/31 Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk I assume that you mean that Yes they don't rather than Yes they do :-) (Isn't english so

[rules-users] Compound DSL statements

2010-12-17 Thread Chris Selwyn
this like when there is a QQ with attr equal to abc then ... What this expands to is Question() attr == abc I was hoping that the condition would be put inside the pattern. Is it not possible to make compound DSL statements that use inline - clauses? Chris Selwyn

Re: [rules-users] Guvnor with JBoss AS on Ubuntu

2010-12-17 Thread Chris Selwyn
: Connection refused Considering that, it couldn't be a firewall problem, could it? Thanks for the help! Audrey Chris Selwyn wrote: Maybe a firewall(iptables) issue? Can you do the telnet from your client box? Chris ___ rules-users mailing list

Re: [rules-users] Deploying Guvnor 5.1 on Glassfish v3

2010-12-16 Thread Chris Selwyn
I have it working on Glassfish V2 just fine... It just works. Chris On 16/12/2010 15:37, alim wrote: Thanks a lot for the link, Jervis. Too bad, Guvnor hasn't been tested on Glassfish yet. However, still hoping for someone who's got Guvnor running on Glassfish successfully :)

Re: [rules-users] Guvnor with JBoss AS on Ubuntu

2010-12-16 Thread Chris Selwyn
Maybe a firewall(iptables) issue? Can you do the telnet from your client box? Chris On 16/12/2010 15:33, alim wrote: Hello, I downloaded the Standalone Guvnor with JBoss AS Version 5.1 and tried running it on Ubuntu 8.04.4 LTS with Java 1.6.0_22. It seems to start up well, no

[rules-users] Automatic unsubscribing from a Guvnor resource

2010-12-15 Thread Chris Selwyn
My Guvnor is setup to save its repository in an Oracle database. However, the DBAs have a schedule that takes the database down at night for backup. I am finding that, if I set up the ResourceChangeNotifier/Scanner system then the resource gets unloaded from the KnowledgeBase when the database

[rules-users] Understanding indexing

2010-12-09 Thread Chris Selwyn
I would like to understand more about how my rules are being executed. Is there a way that I can find out what indexes are being are being created. I can see the drools.indexLeftBetaMemory (and friends) properties but I would like to be able to observe the effects that they are having. Chris

Re: [rules-users] Understanding indexing

2010-12-09 Thread Chris Selwyn
Thanks Mark, I'll try to have a look at both of those. (I'm one of those types that likes to see something happen... It helps me understand what is going on). Chris On 09/12/2010 14:42, Mark Proctor wrote: On 09/12/2010 14:15, Chris Selwyn wrote: I would like to understand more about how my

[rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Chris Selwyn
I don't seem to be able to find how to call one function from another function in Drools 5.0. It works just fine in 5.1 but I am having to use 5.0 because my customer requires me to use a supported version. Is this a known problem or is there really no way to do it? Chris Selwyn

Re: [rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Chris Selwyn
a simple test? I am not able to reproduce with supported bits 5.0.1, 5.0.2, and the very soon to be released brms 5.1 ( http://planet.jboss.org/post/jboss_enterprise_brms_5_1_saves_the_holiday_shopping_season ). Thanks. On 12/9/10 10:20 AM, Chris Selwyn wrote: I don't seem to be able to find

Re: [rules-users] Calling a function from another function in 5.0

2010-12-09 Thread Chris Selwyn
functions in a single function file in Guvnor (uploaded screenshot for you). With this my simple tests run fine. Hope this helps. Thanks. On 12/9/10 11:26 AM, Chris Selwyn wrote: I am using Drools 5.0.2. What I didn't mention was that I am constructing my package in Guvnor.. so maybe it's

[rules-users] Rules not firing when facts asserted in a rule RHS in 5.0

2010-12-01 Thread Chris Selwyn
I have been using the open source Drools 5.1 where I have been inserting facts in the RHS of a rule and that has been causing subsequent rules to fire just fine. However, I am working at a customer that requires my to use a supported product, so I have moved my rules over to JBoss Rules 5.0.2

Re: [rules-users] Rules not firing when facts asserted in a rule RHS in 5.0

2010-12-01 Thread Chris Selwyn
in the ObjectTypeConfigurationRepository. So my current question is How is this possible? Is it maybe a classloader issue? Chris On 01/12/2010 12:05, Wolfgang Laun wrote: A closer look: On 1 December 2010 11:13, Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk wrote

Re: [rules-users] Rules not firing when facts asserted in a rule RHS in 5.0 - diagnosed with workaround (but not fixed)

2010-12-01 Thread Chris Selwyn
. This is a workaround in the short term but I would much prefer not to have to do this. Chris Selwyn On 01/12/2010 15:14, Chris Selwyn wrote: Yes the package is SWWB2BOutgoing but it looks as though the package name simple doesn't get reported in the log file. I have been debugging through this thing and where

Re: [rules-users] Rules not firing when facts asserted in a rule RHS in 5.0 - diagnosed with workaround (but not fixed)

2010-12-01 Thread Chris Selwyn
be able to tell you if the issue still persists with the currently tested bits for 5.1. Thanks. Tihomir On 12/1/10 4:29 PM, Chris Selwyn wrote: Having spent all day on this one, I have finally got to the bottom of it. The problem is reproducible if I have /both/ a declarative fact model

[rules-users] What should I insert into the working memory?

2010-11-28 Thread Chris Selwyn
the WM loading process. All of the examples that I have seen have a very simple flat (non-hierarchical) structure that don't really give a hint as to what a best practice might be. Any suggestions/insights welcome :-) Chris Selwyn ___ rules-users mailing

Re: [rules-users] What should I insert into the working memory?

2010-11-28 Thread Chris Selwyn
to the JAXB generated classes using the code injection plugin. Inserting just the root element is not advisable, as you are well aware of. -W On 28 November 2010 12:38, Chris Selwyn ch...@selwyn-family.me.uk mailto:ch...@selwyn-family.me.uk wrote: I am working on a project that is using Drools

Re: [rules-users] Authorisation of Guvnor users on Glassfish

2010-11-10 Thread Chris Selwyn
still learning about Seam!) Chris On 02/11/2010 10:37, Chris Selwyn wrote: To answer my own question (and record a method that works for posterity)... What I did was:- * Configure my Glassfish domain's login.conf with a seam LoginModule as follows seam

Re: [rules-users] Support for Drools Guvnor / Expert in Latin America

2010-11-10 Thread Chris Selwyn
Does RedHat provide support in the UK as well? My customer was directed by RedHat to a 3rd party company for Drools support. Chris Selwyn On 09/11/2010 16:11, Tihomir Surdilovic wrote: On 11/9/10 10:31 AM, Miguel Fernando Cabrera wrote: Hello to all, In my company (an insurance company

Re: [rules-users] Authorisation of Guvnor users on Glassfish

2010-11-02 Thread Chris Selwyn
(); return plogin.login(userNm, pass, fileRealm, true); } catch (Exception ex) { logger.log(Level.SEVERE, null, ex); return false; } } } /QUOTE Chris Selwyn On 01/11/2010 17:50, Chris Selwyn wrote: I am using Guvnor 2.1.1 on Glassfish 2.1 and mostly

[rules-users] Authorisation of Guvnor users on Glassfish

2010-11-01 Thread Chris Selwyn
against a Glassfish realm or JAAS context and would be willing to help me through? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Starting a process in Guvnor with ruleflow-group

2010-10-28 Thread Chris Selwyn
I'm guessing here because I haven't played with rulegroups yet but... Maybe what you are looking for is CommandFactory.newStartProcess(String processId, MapString,Object parameters) Chris On 27/10/2010 21:27, John Peterson wrote: Hi all, I'm doing some experimentation for a business

Re: [rules-users] Nested classes in the fact model in Guvnor

2010-10-21 Thread Chris Selwyn
Thanks Toni, Hopefully a fix will be forthcoming :-) Chris On 21/10/2010 07:56, Toni Rikkola wrote: Hi, This is a bug. I reported it: https://jira.jboss.org/browse/GUVNOR-679 Toni Rikkola On Oct 20, 2010, at 4:40 PM, Chris Selwyn wrote: If I have nested classes in my Java model, I find

[rules-users] Nested classes in the fact model in Guvnor

2010-10-20 Thread Chris Selwyn
be resolved. If I change these into . then the problem goes away. Is this a known problem or am I missing something? I am using Drools 5.1.1 Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules

Re: [rules-users] List of valid values

2010-10-19 Thread Chris Selwyn
Any takers on my question below... Or have I answered my own question? Chris On 17/10/2010 16:51, Chris Selwyn wrote: I am developing a set of rules around validating messages in a B2B messaging environment and I would like to have my rules builders have control of the valid set of values

Re: [rules-users] List of valid values

2010-10-19 Thread Chris Selwyn
If the enums are more 'static', why enumeration (which is a guvnor ressource like others, ie a resource you can upload) are not OK ? Le 19/10/2010 10:24, Chris Selwyn a crit: Any takers on my question below... Or have I answered my own question? Chris On 17/10

[rules-users] List of valid values

2010-10-17 Thread Chris Selwyn
. Is there somewhere I can store the set as an artefact in Guvnor and be accessible at runtime for me to do the check with? Or should I just code the values into a set in a function? Chris Selwyn ___ rules-users mailing list rules-users@lists.jboss.org