[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 thi

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

2013-03-05 Thread Chris Selwyn
on, rule, query]'. 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

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
Rete structure. Anyway, this time is the maximum gain, but deserilaizing > the inserted fact in the (Rete) context of the > saved session is going to cost a little, too. > > -W > > On 30 September 2012 12:10, Chris Selwyn <mailto:ch...@selwyn-family.me.uk>> wrote: >

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

2012-09-30 Thread Chris Selwyn
I have a need to execute a set of rules on a complicated hierarchical data structure where some of the rules use a bunch of reference facts. At the moment I load the reference facts and the hierarchical structure into the WM of a stateless session on every execution. There are a lot of reference

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 m

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 wrote: >> Hi Laune, >> >> >> >> Thanks very much for you

Re: [rules-users] Testing for global variable

2012-02-14 Thread Chris Selwyn
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

[rules-users] Testing for global variable

2012-02-14 Thread Chris Selwyn
x27;t. 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

[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. L

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: > http://drools.46999.n3.nabble.com/Authorisation-of-Guvnor-users-on-Glassfis

Re: [rules-users] Salience problems

2011-04-29 Thread Chris Selwyn
BRMS bits to them. 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:

[rules-users] Salience problems

2011-04-27 Thread Chris Selwyn
genda group is a queue organised as heap. However, the order in which things happen 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 mec

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

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

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

2011-03-16 Thread Chris Selwyn
Isn't it regarded as bad practice to rely on the finalize() method called by the garbage collector to release such resources? Chris On 16/03/2011 17:04, Greg Barton wrote: > Only if garbage collection never runs. Then you'd already be in trouble. :) > > --- On Wed, 3/16/11,

[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] Migrating from one environment to another

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

[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] Facts with "from"

2010-12-31 Thread Chris Selwyn
ing if replied 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 <mailto:ch...@selwyn-family.me.uk>> I assume that you mean that Yes they don't rathe

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 <mailto:ch...@selwyn-family.me.uk>> wrote:

[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

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

2010-12-17 Thread Chris Selwyn
.0.0.1... Connected to localhost." > Telnet remote: "telnet: Unable to connect to remote host: Connection > refused" > > Considering that, it couldn't be a firewall problem, could it? > > Thanks for the help! > Audrey >

[rules-users] Compound DSL statements

2010-12-17 Thread Chris Selwyn
t. When I use 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 inli

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 exception

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 :)

[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

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

2010-12-09 Thread Chris Selwyn
define all 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..

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

2010-12-09 Thread Chris Selwyn
d > also show 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

[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 S

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 unders

[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] 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
port xml from your repo that I can use to reproduce the issue with? BRMS 5.1 (supported bits) is right around the corner and I would 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

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
oes not happen. 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 ha

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

2010-12-01 Thread Chris Selwyn
ng.QuestionValidation" 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 <mailto:ch...@selwyn-

[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 a

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

2010-11-28 Thread Chris Selwyn
uot;equal" as objects but appear in full XML text; this is usually simple to handle with a temporary Set, but you'll have to add hashCode and equals to the JAXB generated classes using the code injection plugin. Inserting just the root element is not advisable, as you are well aware of. -

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

2010-11-28 Thread Chris Selwyn
very much simplifies 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

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-10 Thread Chris Selwyn
; import java.util.logging.Level; import java.util.logging.Logger; import org.jboss.seam.annotations.Name; import org.jboss.seam.security.Identity; /** * * @author Chris Selwyn */ @Name("gfauthenticator") public class GlassfishRealmAuthenticator { private Logger logger = Logger

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

2010-11-02 Thread Chris Selwyn
mport org.jboss.seam.annotations.Name; import org.jboss.seam.security.Identity; /** * * @author Chris Selwyn */ @Name("gfauthenticator") public class GlassfishRealmAuthenticator { private Logger logger = Logger.getLogger(this.getClass().getName()); public boolean authenticate() { try {

[rules-users] Authorisation of Guvnor users on Glassfish

2010-11-01 Thread Chris Selwyn
to configure Guvnor to authenticate 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, Map parameters) Chris On 27/10/2010 21:27, John Peterson wrote: Hi all, I'm doing some experimentation for a business problem and I've h

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

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

2010-10-20 Thread Chris Selwyn
$" in it cannot 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://li

Re: [rules-users] List of valid values

2010-10-19 Thread Chris Selwyn
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

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 val

[rules-users] List of valid values

2010-10-17 Thread Chris Selwyn
igurable through the Guvnor. 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 mail