Re: [rules-users] Binding a variable with an OR pattern

2013-08-13 Thread Joe Ammann
On 08/13/2013 04:31 PM, Wolfgang Laun wrote: > Sorry, I missed that. > > rule "R7012: UpdateInstrumentsIssuerFrom700[01]" > agenda-group "TRANSFER_TO_LIVE" > salience 100 > when > sirole : SourcingInstitutionRole(sourcing_Status == > SourcingStatus.IMPORTED, >

Re: [rules-users] Binding a variable with an OR pattern

2013-08-13 Thread Joe Ammann
On 08/13/2013 03:18 PM, Wolfgang Laun wrote: > rule "R7012: UpdateInstrumentsIssuerFrom700[01]" > agenda-group "TRANSFER_TO_LIVE" > salience 100 > when > sirole : SourcingInstitutionRole(sourcing_Status == > SourcingStatus.IMPORTED, > roleCd == "7000" || ==

Re: [rules-users] Binding a variable with an OR pattern

2013-08-13 Thread Joe Ammann
On 08/13/2013 03:02 PM, Joe Ammann wrote: > Hi all > > Trying to do the following: as one pattern of a rule, I want to bind a > variable to a fact with code "7001", or (if such a fact does not exist) > to one with the value "7000". > > Until now, I haven&#x

[rules-users] Binding a variable with an OR pattern

2013-08-13 Thread Joe Ammann
Hi all Trying to do the following: as one pattern of a rule, I want to bind a variable to a fact with code "7001", or (if such a fact does not exist) to one with the value "7000". Until now, I haven't been able to formulate this in one single rule, as simple as it sounds - probably I'm just overl

Re: [rules-users] Rule set execution performance and memory consumption issues

2013-08-05 Thread Joe Ammann
On 08/05/2013 09:04 AM, Wolfgang Laun wrote: > Fine. Although occasionally useful, "from " is often used > as a cover-up for inadequate design of fact types. (from > collect/accumulate is a different matter.) That was exactly the case before we found out how to make fact types "more rule friendly"

Re: [rules-users] Rule set execution performance and memory consumption issues

2013-08-04 Thread Joe Ammann
On 08/05/2013 06:29 AM, Wolfgang Laun wrote: > Guete Morge Joe, :-) Guete Morge Wolfgang > > from that other thread I can recall that you are using "from > ", which (not knowing the rest) would be high up on my > suspect list. That's one thing I already learnt :-) I'm not using any "from" clauses i

Re: [rules-users] Rule set execution performance and memory consumption issues

2013-08-04 Thread Joe Ammann
Hi Wolfgang On 08/04/2013 03:10 PM, Wolfgang Laun wrote: > A simple test shows that, with the rules as shown, you can insert 100k > Assignments and an equal number of SourceAssignments (with ~300 > InstrumentList facts) in a matter of seconds, irrespective of the > number of hits and misses, eith

[rules-users] Rule set execution performance and memory consumption issues

2013-08-04 Thread Joe Ammann
Hi all (sorry for the lenghty post, I'm trying to describe a basic pattern) I have a set of similar rules which work ok, but due to increasing number of facts are starting to create performance headaches. They all share a basic pattern, and I wanted to ask if you think that my approach is feasible

Re: [rules-users] Testing for non-existance of an object in list

2013-08-04 Thread Joe Ammann
On 08/04/2013 10:05 AM, Wolfgang Laun wrote: > The rule is correct, and it works with similar scenarios.There may be > a bug, due to circumstances. Can you post a simple but complete set of > files to reproduce this? > You're perfectly right :-) The rule was correct, but as I wrote in an earlier po

Re: [rules-users] Testing for non-existance of an object in list

2013-08-04 Thread Joe Ammann
modify() after filling the checkViolations collection. So the rule "saw" an empty collection and that last condition did not trigger. Once I corrected that, things started working :-) On 08/03/2013 10:59 PM, Joe Ammann wrote: > Here's what I currently have (Drools 5.5.0 btw): &

[rules-users] Testing for non-existance of an object in list

2013-08-03 Thread Joe Ammann
Hi all I'm still struggling with the handling of lists and membership in the LHS of rule. I'm trying to formulate a rule that only fires if a certain object is not yet a member of a list. Here's what I currently have (Drools 5.5.0 btw): rule "R2030: UpdateDQAttribute" dialect "mvel"

Re: [rules-users] Drools with Gemfire

2012-08-06 Thread Joe Ammann
Hi Rich On 08/06/2012 03:26 PM, rtella wrote: > I'm looking into integrating Drools with a system that has large (40GB+) > Gemfire Maps. The rules would need to access the Gemfire Maps, which can be > updated at any time.I understand I can't access the Gemfire Maps as > global data since t

Re: [rules-users] Plugging custom verification rules into Guvnor

2012-05-18 Thread Joe Ammann
Hi Wolfgang On 05/17/2012 06:31 PM, Wolfgang Laun wrote: > you might also consider adding your own rule to one of the existing > verifyer DRL files. I think they are part of some .jar file, so all > you'd need to do is de-jar, edit, re-jar, or just fiddle with class > path if that's the way the ve

[rules-users] Plugging custom verification rules into Guvnor

2012-05-16 Thread Joe Ammann
Hi all coming from another thread [1], Wolfgang pointed me to the Guvnor/Drools verifier. I am looking now for ways to implement my own verification rules into Guvnor. Ideally, I would like to be able to hook into 2 places in Guvnor with custom rules (maybe these are going actually through the sa

Re: [rules-users] Somewhat strange question: Rules without a RHS

2012-05-16 Thread Joe Ammann
On 05/16/2012 09:06 AM, Wolfgang Laun wrote: > On 16/05/2012, Joe Ammann wrote: >> On 05/15/2012 07:24 PM, Wolfgang Laun wrote: >>> Assuming you can get hold of the resulting DRL text, a simple script >>> might detect rules where there is nothing between "then

Re: [rules-users] Somewhat strange question: Rules without a RHS

2012-05-15 Thread Joe Ammann
On 05/15/2012 07:24 PM, Wolfgang Laun wrote: > Assuming you can get hold of the resulting DRL text, a simple script > might detect rules where there is nothing between "then" and "end". I have currently implemented something similar. A REST client that periodically scans the BRLs in certain Guvnor

[rules-users] Somewhat strange question: Rules without a RHS

2012-05-15 Thread Joe Ammann
Hi all I have an ongoing discussion with my users: They have been using several home-grown rule oriented applications for years. Almost all of these "rule engines" were built for one very specific reason, and the users have come accustomed to just specify a LHS of a rule. They never needed to spec

Re: [rules-users] PermGen space error

2012-02-09 Thread Joe Ammann
On 02/09/2012 09:34 AM, Geoffrey De Smet wrote: > The perm gen space is a subset of the heap space. > So it doesn't make sense to put them on the same value. > > Try this instead: > -Xmx1024m -XX:MaxPermSize=512m > Or, if that fails: > -Xmx2048m -XX:MaxPermSize=1024m > Sorry to disagree Geo

Re: [rules-users] New Change-Set editor in Guvnor 5.4

2011-12-27 Thread Joe Ammann
On 12/27/2011 03:11 PM, Esteban Aliverti wrote: > Guvnor 5.4 comes with a new change-set editor that allows users to > define their custom change-sets instead of using the default layout: 1 > package -> 1 change-set. Me likes that! A lot! Exactly what I needed to allow re-use of rules/packages.

Re: [rules-users] Data structures in Guvnor REST API

2011-12-02 Thread Joe Ammann
On 12/02/2011 06:02 AM, Jervis Liu wrote: > On 2011/12/1 19:03, Joe Ammann wrote: >> Hi >> >> On 12/01/2011 06:40 AM, Jervis Liu wrote: >>> the Asset.type is a standard property from Dublin core >>> (http://en.wikipedia.org/wiki/Dublin_Core), though this pro

Re: [rules-users] Guvnor "inheritance"

2011-12-01 Thread Joe Ammann
Hi Michael On 12/01/2011 05:48 PM, Michael Anstis wrote: > Firstly, "no" you are not missing anything :) Hm, I kind of had hoped > What you describe does not sound like inheritance: more of a fall > through of assets from a top level package to lower sub-packages. Yes, that's what I mean, and

[rules-users] Guvnor "inheritance"

2011-12-01 Thread Joe Ammann
Hi my users asked me to provide something like "package inheritance" in Guvnor. They would like to be able to define some artefact types (most notably DLSs, Working Sets, function definitions and extensible rules) in a "parent package", and then create "sub packages" where only the pure rule defin

Re: [rules-users] Data structures in Guvnor REST API

2011-12-01 Thread Joe Ammann
Hi On 12/01/2011 06:40 AM, Jervis Liu wrote: > the Asset.type is a standard property from Dublin core > (http://en.wikipedia.org/wiki/Dublin_Core), though this property is > never used by Guvnor Asset or Package, its always empty. I will remove > this property from the REST API. Thanks for poi

[rules-users] Data structures in Guvnor REST API

2011-11-30 Thread Joe Ammann
Hi all I'm trying to integrate Guvnor into my application via the REST API. Little question to the Asset data structures. The doc (http://docs.jboss.org/drools/release/5.3.0.Final/drools-guvnor-docs/html/ch09.html#d0e2282) says, that every Asset has a "type", and via AssetMetadata also a "format"

Re: [rules-users] drools-JBPM integration

2011-07-14 Thread Joe Ammann
On 14.07.2011 19:43, Michael Anstis wrote: > IIRC, WAS's classloaders work in a different order to other containers. > > I might be talking a load of baloneybut I have a feeling this is the case. > > I have another feeling you can configure this to be top-down or > bottom-up or something along thos

Re: [rules-users] Avoid evaluation of expensive LHS terms

2011-06-23 Thread Joe Ammann
On 23.06.2011 21:27, Michael Anstis wrote: > Have you tried salience? > Yeah, sorry forgot to mention. THis was the first thing I tried. -- CU, Joe ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-

[rules-users] Avoid evaluation of expensive LHS terms

2011-06-23 Thread Joe Ammann
Stumbled over this today in a specific case, but my question is about a general practice (I'm quite new to Drools, 5.2.0.M2 btw). I have a knowledge session with a fair amount of facts (0.5 Mio) and mostly simple rules. One rule has a LHS expression that I know will be expensive to execute, in the