Re: [rules-users] Rule IDE

2013-02-24 Thread Mark Proctor
Latet IntelliJ added syntax support for DRL. Mark On 24 Feb 2013, at 19:48, starfish15 pooja.gh...@accenture.com wrote: Hello all, Just want a confirmation of something quite miniscule. Though my teacher at a very young age had tole me that No Q can ever be a DUMB Q ;) The last time i

Re: [rules-users] GC Overhead Limit Exceeded and 1B JoinLeftNode Objects

2013-02-24 Thread Mark Proctor
both generated sub-rules from firing? The docs differentiate between 'or' CE and || compound expression. MArk On Sun, Feb 24, 2013 at 3:50 PM, Mark Proctor mproc...@codehaus.org wrote: On 24 Feb 2013, at 18:07, Julian Klein juliankl...@gmail.com wrote: Thanks for all the advice once

Re: [rules-users] Editing DefaultAgenda.java file from org.drools.common

2013-02-24 Thread Mark Proctor
Do you still want the rules to execute according to the agenda salience, or as soon as they are matched? Take a look at the Rule, and the attribute fireDirect. It's set by an annotation (see release notes): @activationListener('direct' ) This allows a rule to fire without needing to be added

Re: [rules-users] GC Overhead Limit Exceeded and 1B JoinLeftNode Objects

2013-02-23 Thread Mark Proctor
Typical issues are: 1) Not retracting facts, or setting expiration. 2) Not disposing sessions. 3) Poor discrimination networks that produce too many cross products - put the strongest descriptors first. 4) Making sure you use constraints that exploit indexing (this makes a huge difference for

Re: [rules-users] GC Overhead Limit Exceeded and 1B JoinLeftNode Objects

2013-02-23 Thread Mark Proctor
On 24 Feb 2013, at 04:11, Julian Klein juliankl...@gmail.com wrote: Ok, thanks. Here's what I have so far: 1) I am not retracting facts or setting expiration. This is by design since I am doing the next item. Do I need to retract globals? 2) I have disposed the session when I ran with

Re: [rules-users] GC Overhead Limit Exceeded and 1B JoinLeftNode Objects

2013-02-23 Thread Mark Proctor
You also need to give us some indication of what your rules look like. Are you using just patterns, what conditional elements are you using, are you using any temporal operators, scheduling, tms? Mark On 24 Feb 2013, at 06:12, Wolfgang Laun wolfgang.l...@gmail.com wrote: On 24/02/2013, Julian

Re: [rules-users] Drools Grid GridNode

2013-02-20 Thread Mark Proctor
On 20 Feb 2013, at 06:29, Charles Moulliard ch0...@gmail.com wrote: Hi, The drools project contains Grid, GridNode interfaces + implementation into 2 different maven modules - drools-grid-impl - drools-spring but interface definitions are different ignore drools-grid-impl, it was

Re: [rules-users] GC Overhead Limit Exceeded and 1B JoinLeftNode Objects

2013-02-19 Thread Mark Proctor
input propagation, does that mean the JoinLeftNode is not used? I am running 5.4 .0 on Linux. If I see the same issues with a stateless approach, I will try the 5.5 approach. Thanks again, Julian On Feb 17, 2013, at 6:19 PM, Mark Proctor mproc...@codehaus.org wrote: You'll need

Re: [rules-users] ClassCastException after migrating from Drools 4.x to v5.5

2013-02-18 Thread Mark Proctor
On 18 Feb 2013, at 09:07, Wolfgang Laun wolfgang.l...@gmail.com wrote: Mark, On 18/02/2013, Mark Proctor mproc...@codehaus.org wrote: stateless is just a wrapped stateful session - insert, update and delete work as normal. So let's get this straight, this quote from the Expert manual

Re: [rules-users] ClassCastException after migrating from Drools 4.x to v5.5

2013-02-18 Thread Mark Proctor
On 18/02/2013, Wolfgang Laun wolfgang.l...@gmail.com wrote: Mark, On 18/02/2013, Mark Proctor mproc...@codehaus.org wrote: stateless is just a wrapped stateful session - insert, update and delete work as normal. So let's get this straight, this quote from the Expert manual which does

Re: [rules-users] Memory Leak in 5.4.0 and 5.5.0 [was: Garbage collection and sliding windows (Drools 5.5.0 Final)]

2013-02-17 Thread Mark Proctor
If we can get a unit test for this, we are just about to put out 5.6 (which has a lot of important fixes in it already), we'll try and have it fixed for then. Mark On 17 Feb 2013, at 08:55, Wolfgang Laun wolfgang.l...@gmail.com wrote: With Drools 5.4.0.Final and 5.5.0.Final, automatic event

Re: [rules-users] GC Overhead Limit Exceeded and 1B JoinLeftNode Objects

2013-02-17 Thread Mark Proctor
You'll need to help us a bit here, by creating a test of some sort. I have 100 rules with 1B JoinLeftNode doesn't give us much to go on. The problem mentioned earlier was related to windows, which I don't think you are using - or you'd have said so. Also can you tell us what version you are

Re: [rules-users] ClassCastException after migrating from Drools 4.x to v5.5

2013-02-17 Thread Mark Proctor
There is no context here for an answer. We don't know your rules, your data, the stack trace etc. Mark On 18 Feb 2013, at 01:00, ismaximum mnr...@gmail.com wrote: Any idea??? -- View this message in context:

Re: [rules-users] ClassCastException after migrating from Drools 4.x to v5.5

2013-02-17 Thread Mark Proctor
Looks like an 'or' bug. Which is surprising, as we had 'or' bugs in 4.x, and fixed a lot of them for 5.x. Could you build and try 5.5.x here now, this is the branch for the 5.6 release: https://github.com/droolsjbpm/drools/tree/5.5.x If it's still not fixed, could you write an isolated test?

Re: [rules-users] [Bug] 5.5.0 Correctly compiled DRL runs into run time error: incompatible types

2013-02-17 Thread Mark Proctor
Thanks, we'll get this one fixed quickly. Mark On 17 Feb 2013, at 16:32, Wolfgang Laun wolfgang.l...@gmail.com wrote: Below is a fully self-contained DRL that compiles correctly but runs into a runtime error when the LHS of rule match is evaluated. The culprit is the test this != $c, but one

Re: [rules-users] ClassCastException after migrating from Drools 4.x to v5.5

2013-02-17 Thread Mark Proctor
this out ever since 5.1.x. A meagre ...do not support iterative insertions... is all there is to be read, but what does this imply? Simply doesn't work in an unspecified way? May crash on workdays...?? A tut, tut from the Drools Team ??? ;-) -W On 18/02/2013, Mark Proctor mproc...@codehaus.org

Re: [rules-users] Anyone using JSR94?

2013-02-14 Thread Mark Proctor
it ... if for no other reason than to pre-emptively disarm any potential DROOLs is not standards compliant! FUD rantings. On 2/13/2013 5:59 PM, Mark Proctor wrote: I've asked this on the developer list, thought I'd ask it here too. Is anyone using JSR94, anyone think we should not nuke it? Mark

Re: [rules-users] Anyone using JSR94?

2013-02-14 Thread Mark Proctor
bridges to the DROOLs specific interfaces and implementation capabilities, it might also be worth it to :just do it ... if for no other reason than to pre-emptively disarm any potential DROOLs is not standards compliant! FUD rantings. On 2/13/2013 5:59 PM, Mark Proctor wrote: I've asked

[rules-users] Anyone using JSR94?

2013-02-13 Thread Mark Proctor
I've asked this on the developer list, thought I'd ask it here too. Is anyone using JSR94, anyone think we should not nuke it? Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Design Patterns in Production Systems (Wolfgang Laun)

2013-02-06 Thread Mark Proctor
Thanks again Woflgang. http://blog.athico.com/2013/02/design-patterns-in-production-systems.html Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools Clips

2013-02-02 Thread Mark Proctor
On 2 Feb 2013, at 09:27, Wolfgang Laun wolfgang.l...@gmail.com wrote: On 01/02/2013, Mark Proctor mproc...@codehaus.org wrote: On 1 Feb 2013, at 13:59, Grant Rettke gret...@acm.org wrote: On Thu, Jan 31, 2013 at 6:52 PM, Mark Proctor mproc...@codehaus.org wrote: It was only a POC

Re: [rules-users] Drools Clips

2013-02-01 Thread Mark Proctor
On 1 Feb 2013, at 13:59, Grant Rettke gret...@acm.org wrote: On Thu, Jan 31, 2013 at 6:52 PM, Mark Proctor mproc...@codehaus.org wrote: It was only a POC that partially worked, and then stopped working, so I removed it. No one was using it, or came forward to help develop it, so figured

Re: [rules-users] Drools Clips

2013-01-31 Thread Mark Proctor
It was only a POC that partially worked, and then stopped working, so I removed it. No one was using it, or came forward to help develop it, so figured it was kinder to put it out of its misery. Mark On 31 Jan 2013, at 15:34, Grant Rettke gret...@acm.org wrote: Hi, Anyone using or have

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Mark Proctor
Not sure what you mean by haven't been accepted. There is no moderation for this list, but you must email with the email address you use to subscribe, otherwise it gets declined. You also have plenty of other emails posted in the user mailing list, so I'm not sure what problems you are having.

Re: [rules-users] Duration rule attribute

2013-01-28 Thread Mark Proctor
Rules support an date-effective attribute. It uses the date fort set by the system property drools.dateformat Mark On 28 Jan 2013, at 08:46, starfish15 pooja.gh...@accenture.com wrote: Hello, A project is trying to weigh between BLAZE DROOLS. N am a Drools FAN personally, since w/o doubt

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Mark Proctor
On the contrary, i think he was more than civil, as you violated several anti-patterns for this list. You are on a public mailing list, representing your company, Accenture. I suggest you think twice before emailing, and always show curtesy. Please read the anti-patterns before further

Re: [rules-users] My posts have not been accepted yet

2013-01-28 Thread Mark Proctor
are mystified. (All of which doesn't excuse unnecessary urgent and ASAP and other pushy noises...) -W On 28 January 2013 18:16, Mark Proctor mproc...@codehaus.org wrote: Not sure what you mean by haven't been accepted. There is no moderation for this list, but you must email

Re: [rules-users] Why all rule condition fired when insert object in drools session?

2013-01-26 Thread Mark Proctor
On 26 Jan 2013, at 12:37, Zhao Yi zhaoyi0...@gmail.com wrote: Hi Frank, Your proposal will definitely solve my issue. But from drools point of view, only the rule who got focus is allowed to be fired. Why does drools runtime check non-focus rule condition? I think this is useless check

Re: [rules-users] Drools 5.5 API doc doesn't show all classes.

2013-01-23 Thread Mark Proctor
anything wrong here. Thanks, Jeetendra. On Fri, Jan 18, 2013 at 7:31 PM, Mark Proctor mproc...@codehaus.org wrote: 5.x supports free form expressions. This means it is not a trivial thing to analyse. In a pattern there will be 1..n strings for each expression. You'll need to build

Re: [rules-users] Implementing Refraction with Drools

2013-01-22 Thread Mark Proctor
Unfortunately, I'm afraid your proposal doesn't scale as well as impacting performance and expected behaviour negatively W3C RIF have tried to document refraction and repeatability. http://www.w3.org/2005/rules/wiki/PRD_Refraction_Repeatability Under that definition drools already has

Re: [rules-users] Implementing Refraction with Drools

2013-01-22 Thread Mark Proctor
You can improve your example by using an agenda listener to remove Activations once they are cancelled, this way you avoid a memory leak. Further you can use annotations, to control this per rule. rule xxx @repeatable(true) when then end then in your filter you can check rule.getMetaData(

Re: [rules-users] ETA on drools 6?

2013-01-21 Thread Mark Proctor
On 21 Jan 2013, at 15:49, kurrent93 kurren...@gmail.com wrote: Hi I'm curious, when will drools 6 be released? some time in march. Also, about Guvnor-NG. I understand this will be written in Errai. Will it be possible to host/embed elements as can be done now with Guvnor? I also

Re: [rules-users] hot deployment behavior

2013-01-21 Thread Mark Proctor
You have it right. If any rule is modified, it's effective removed and added. Removal of a rule, remove's all it's matches, activations and logical inserts. There is no way to preserve this information for a rule that modified. It would be very hard to determine what information is or is not

Re: [rules-users] [BAD Bug] incorrect evaluation of LHS using Integer/Number intValue

2013-01-20 Thread Mark Proctor
We tracked it down to the range indexing iterator, in not and exist nodes. Should be fixed next week. Mark On 20 Jan 2013, at 08:23, Wolfgang Laun wolfgang.l...@gmail.com wrote: Below is another couple of test cases, showing that the problem is not due a getter that isn't called get* -

Re: [rules-users] [BAD Bug] incorrect evaluation of LHS using Integer/Number intValue

2013-01-20 Thread Mark Proctor
We will be releasing 5.6 soon. Mark On 20 Jan 2013, at 17:26, Wolfgang Laun wolfgang.l...@gmail.com wrote: Isn't this bug hefty enough to render 5.5.0 unusable? -W On 20/01/2013, Mark Proctor mproc...@codehaus.org wrote: We tracked it down to the range indexing iterator, in not and exist

Re: [rules-users] Drools 5.5 API doc doesn't show all classes.

2013-01-18 Thread Mark Proctor
5.x supports free form expressions. This means it is not a trivial thing to analyse. In a pattern there will be 1..n strings for each expression. You'll need to build that string with MVEL and then analyse the MVEL AST tree. Take a look at drools-compiler PatternBuilder and MVELExprAnalyzer.

Re: [rules-users] Difference between adding $ at the beginning of a variable

2013-01-17 Thread Mark Proctor
It mostly helps to differentiate bindings from fields Person( name : name ) Person( name == name ) This is generally more readable. Person( $name : name ) Person( name == $name ) That said I prefer to only bind patterns, and if the class name does not conflict with any field names, then I

Re: [rules-users] Stateless session dis-associating listeners after first execute call. Bug or a feature?

2013-01-04 Thread Mark Proctor
each execute creates a new stateful session. All the listers are added to that after it's created, see newWorkingMemory: https://github.com/droolsjbpm/drools/blob/master/drools-core/src/main/java/org/drools/impl/StatelessKnowledgeSessionImpl.java Mark On 4 Jan 2013, at 16:20, Wolfgang Laun

Re: [rules-users] How to determine Drools runtime version?

2012-12-30 Thread Mark Proctor
our jars are produced with maven. So you can try the pom.properties, which is in all our jars. Mark On 29 Dec 2012, at 22:46, Ansgar Konermann ansgar.konerm...@googlemail.com wrote: Hi, I'd like to determine at runtime which version of Drools is in use/on the classpath. I cannot use

Re: [rules-users] Injecting methods dynamically with groovy in types used by the rules.

2012-12-15 Thread Mark Proctor
On 14 Dec 2012, at 21:53, lumi lumini...@gmail.com wrote: Is it possible to add methods in groovy dynamically (with metaclass) and then call them from the drls? I tried a simple test but I got a unable to resolve method error at runtime. sorry no. Drools, like java, wouldn't know about

Re: [rules-users] same criteria across multiple rules cancels activation with Property Reactive Facts

2012-12-14 Thread Mark Proctor
On 14 Dec 2012, at 14:10, m11 mchan...@hotmail.com wrote: Hi , I re ran the test using drools 5.4.0 too, same problem. In the majority of our cases Property Reactive Facts work really well. Not using this feature is not really an option that we would like to take as we would have to

Re: [rules-users] IntelliFest - Learning the Reason for Failure to Match

2012-12-07 Thread Mark Proctor
It will be published soon. Big thanks to wolfgang for his excellent work. Mark On 7 Dec 2012, at 12:52, ben.cot...@ms.com ben.cot...@morganstanley.com wrote: Did this white paper ever get published at jboss.org? On 11/5/2012 1:10 PM, Wolfgang Laun wrote: A White Paper containing a

Re: [rules-users] JPA vs Marshaller for session persistence

2012-11-26 Thread Mark Proctor
JPA for working memory is indeed an entire snapshot of the working memory per transaction. So you want to avoid a transaction per WM insert/update/delete. Mark On 26 Nov 2012, at 09:57, magnusv magnus.vojba...@digitalroute.com wrote: Does this mean that the JPA persistence has to write out the

Re: [rules-users] JPA vs Marshaller for session persistence

2012-11-23 Thread Mark Proctor
JPA is just a wrapper to the marshaller adding transactions and persistence. Mark On 23 Nov 2012, at 14:18, magnusv magnus.vojba...@digitalroute.com wrote: Are there any disadvantages to using the Marshaller instead of JPA for persistence? We are running Drools as an embedded service, and

Re: [rules-users] drools grid or other high availability solution?

2012-11-13 Thread Mark Proctor
you can do this yourself. -setup 1..n JVMs. -Each JVM creates a drools instance with the same rules -Create an facade interface where external application insert/update/retract are actually operations on an infinispan replication group. -Each JVM attaches an insert/update/delete listener to the

Re: [rules-users] DRL.g

2012-11-11 Thread Mark Proctor
We have a custom parser, built around an antlr lexer. see DrlParser Mark On 11 Nov 2012, at 16:12, co...@gmx.ch wrote: Hi I'm looking for the ANTLR grammar of Drools. The grammar files I find are in drools-compiler

Re: [rules-users] Best practice to use heap memory effectively

2012-11-11 Thread Mark Proctor
It sounds like you are putting in facts without allowing them to be expired or retracted. If you keep inserting events over 24 hours, if there is enough of them, it will OOM. Try setting an expiration value for the event type, to force it to expire earlier. Mark On 12 Nov 2012, at 05:20, mohan

Re: [rules-users] drools grid or other high availability solution?

2012-11-10 Thread Mark Proctor
There is nothing we provide for this. What you can do is setup 1..n nodes in a group - each with the same rules. Make sure all inserts are replicated to each node in the group, let each group run with redundancy. Mark On 10 Nov 2012, at 12:34, Miguel Paraz mpa...@gmail.com wrote: Hi, On

Re: [rules-users] Is Flow / jBPM dying on the vine?

2012-11-09 Thread Mark Proctor
he's talking about the flexible processes, where rules can control the execution of processes. It's a feature we have, that not many people are aware of - it's not ready for prime time use, still incubator. Krisv will respond in a bit, with some pointers. Mark On 9 Nov 2012, at 14:26, Esteban

Re: [rules-users] Working with Drools PipelineFactory

2012-11-08 Thread Mark Proctor
Use the drools-camel extension: http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-integration-docs/html/ch.server.html Mark On 8 Nov 2012, at 11:43, amit amit.aggar...@pb.com wrote: HI, Does Drools 5.4.0 supports PipelineFactory. Any sample application regarding the same. Anu

Re: [rules-users] Is Flow / jBPM dying on the vine?

2012-11-08 Thread Mark Proctor
What you are talking about is an experimental feature that allows the rules to control the process execution. http://docs.jboss.org/jbpm/v5.1/userguide/ch17.html How to do this is still not documented that well there are some aspects we have to work on to make it simpler - hence why it's really

Re: [rules-users] Is Flow / jBPM dying on the vine?

2012-11-07 Thread Mark Proctor
If you are ever worried about a project, best place to look is the source. Plenty of commits going on there: https://github.com/droolsjbpm/jbpm/commits/master https://github.com/droolsjbpm/jbpm-console-ng/commits/master https://github.com/droolsjbpm/jbpm-designer/commits/master Plus there is a

Re: [rules-users] Unexpected java.lang.NullPointerException at org.drools.core.util.RightTupleIndexHashTable.removeAdd(RightTupleIndexHashTable.java:353)

2012-10-23 Thread Mark Proctor
You were not subscribed to the mailing list at the time, so this post did not make it through to the main list. If you could make a self contained unit test, we'll fix it asap. Follow details here:

Re: [rules-users] semantically equivalent DROOLS L-value expressions?

2012-10-23 Thread Mark Proctor
He didn't say it was semantically incorrect, just that that they are different. 'or' between patterns results sub rule generation, in your case two rules. Where as '||' in a pattern is a standard expression evaluation. Have you tried running the rules, and ignoring the IDE? Some times the IDE

Re: [rules-users] semantically equivalent DROOLS L-value expressions?

2012-10-22 Thread Mark Proctor
single equal sign, must be double: attrA = foo On 22 Oct 2012, at 20:44, Cotton.Ben ben.d.cotton@gmail.com wrote: Hi, I am a DROOLS newbie. I apologize if this has been asked before. This rule (R1) is not syntactically correct in the Eclipse .DRL view. rule R1 when

Re: [rules-users] Rete Tree node colors

2012-10-17 Thread Mark Proctor
Click the Node and look at the Property viewer. Looking at this: -Green is the entry point -Red is the ObjectTypeNode -Blue is the AlphaNode -Yellow is the LeftInputAdapter -Green is the BetaNode -Black the TerminalNode

Re: [rules-users] fun projects :)

2012-10-17 Thread Mark Proctor
also chase us up with emails, so we can do follow ups if we miss you. Mark On 17 Oct 2012, at 15:40, Mark Proctor mproc...@codehaus.org wrote: If anyone wants to get involved in a fun task, we would like to get two existing components ported from SWT to SVG/GWT. So that those components can

Re: [rules-users] fun projects :)

2012-10-17 Thread Mark Proctor
, instead of our XStream dump, for seamless client and server marshalling. Rete Viewer The ReteViewer should be ported to svg/gwt, again using ErraiJSon to provide the tree format. Grid/Tile layout manager for panels. Mark On 17 Oct 2012, at 20:28, Mark Proctor mproc...@codehaus.org wrote: [17

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-14 Thread Mark Proctor
Do you have a JIRA to reference for this? Without that it's hard to check. Mark On 12 Oct 2012, at 23:24, lhorton lhor...@abclegal.com wrote: Has this issue been fixed, or is it still necessary to remove any event listeners so that the session is freed? -- View this message in context:

Re: [rules-users] rule infinitely loops, appears to be depending on naming on variable

2012-10-08 Thread Mark Proctor
Btw JVM JIT won't unroll the loop. It can only do this when the same instance is used repeatedly in the same method. If the instance used in the method changes on each invocation, as ours does, it's not possible for JIT to unroll the loop. Mark On 8 Oct 2012, at 15:21, Mario Fusco

Re: [rules-users] rule infinitely loops, appears to be depending on naming on variable

2012-10-05 Thread Mark Proctor
There is a class called BitSet, which grows the number of bits.http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/BitSet.javaThis uses an array of longs instead. But i'm really reluctant to use this, because it adds overhead to our currently very lightweight

Re: [rules-users] Drools-Compiler depends on Weld in current SNAPSHOT

2012-10-04 Thread Mark Proctor
Applied the change. Will take a while for snapshots to build, let me know if it fixes the issue. Mark On 3 Oct 2012, at 23:20, Cristiano Gavião cvgav...@gmail.com wrote: yep, I identify this too in a osgi env. I've opened this today: https://issues.jboss.org/browse/JBRULES-3647 regards,

Re: [rules-users] Drools and Weld dependency ?

2012-10-03 Thread Mark Proctor
*/DynamicImport-Package should I open a ticket on jira ? Please do. You can try fixing this by updating the bundle generation configuration here: https://github.com/mdproctor/drools/blob/unlinking/drools-compiler/pom.xml Mark thanks, Cristiano On 02/10/12 23:58, Mark Proctor wrote

Re: [rules-users] Deploy Drools in AS7 as OSGi bundles

2012-10-02 Thread Mark Proctor
On 2 Oct 2012, at 07:29, Ioannis Canellos ioca...@gmail.com wrote: Our OSGi stuff is best effort - working on OSGi was like sticking needles directly into the back of my eyeball, not fun. tbh I find OSGi a real PITA. Too many of our dependencies do not have real OSGi bundles available, so

Re: [rules-users] Drools and Weld dependency ?

2012-10-02 Thread Mark Proctor
On 3 Oct 2012, at 03:49, Cristiano Gavião cvgav...@gmail.com wrote: Hi, I'm trying to use JBPM 5.4-SNAPSHOT and Drools 5.5-SNAPSHOT in a OSGi env. drools-compiler's generated manifest has a import package to org.jboss.weld.environment.se.discovery.url. Could someone explain me what

Re: [rules-users] Deploy Drools in AS7 as OSGi bundles

2012-10-01 Thread Mark Proctor
Our OSGi stuff is best effort - working on OSGi was like sticking needles directly into the back of my eyeball, not fun. tbh I find OSGi a real PITA. Too many of our dependencies do not have real OSGi bundles available, so we have to resort to the spring repository - where the versions almost

Re: [rules-users] Deploy Drools in AS7 as OSGi bundles

2012-09-29 Thread Mark Proctor
http://docs.jboss.org/drools/release/5.5.0.Beta1/droolsjbpm-integration-docs/html/ch.OSGI.html https://github.com/droolsjbpm/droolsjbpm-build-distribution/tree/master/drools-osgi-bundles Mark On 29 Sep 2012, at 20:54, Dan Seaver dan.sea...@ge.com wrote: I'd like to use Drools as OSGi services

Re: [rules-users] Does JIT give me a hard time?

2012-09-27 Thread Mark Proctor
Mario will answer more in full. The MVEL JIT is new to 5.4, and has had some teething problems. Mario did add the ability to turn JIT off, but Im not sure if that's in 5.4 or not. The best thing to do is provide test cases, and we'll make sure all JIT issues are fixed for 5.5 Mark On 28 Sep

Re: [rules-users] adding de-serialized packages to the rulebase takes 7 minutes time.

2012-09-26 Thread Mark Proctor
There is no magic want to wave here. Someone needs to run a profiler while your packages are being added, to try and figure out where the bottlenecks are. Mark On 26 Sep 2012, at 21:14, subba mysavingde...@gmail.com wrote: Hi, Did anyone get a chance to look at this query ? please let me

Re: [rules-users] What is uberfire?

2012-09-09 Thread Mark Proctor
We'll be announcing it officially in a few weeks time, once enough features are there, and we have something we can demo. UberFire the new workbench framework we are building, for our 6.x series. It provides an Eclipse like workbench experience for the web, built on CDI, Errai and GWT. The

Re: [rules-users] What is uberfire?

2012-09-09 Thread Mark Proctor
are interested in building your own web apps on top of this workbench, and want to start getting involved now, then email us. A larger variety of apps built on top of UberFire, at an early stage, will help ensure we don't have any designs that are too stunted. Mark On 9 Sep 2012, at 16:48, Mark

Re: [rules-users] What is uberfire?

2012-09-09 Thread Mark Proctor
On 9 Sep 2012, at 20:18, kurrent93 kurren...@gmail.com wrote: Thanks Mark So Uberfire will be the framework that GuvnorNG will be built on? yes, and I also hope it's the framework others will build their apps on too. At some point in the future I want to add self service application

Re: [rules-users] Reg. Iterating over a list

2012-09-02 Thread Mark Proctor
On 3 Sep 2012, at 00:56, Phani Saripalli saripalli.ph...@gmail.com wrote: Hi. I tried to identify relevant ways for some container specific operations like exists, forall (or foreach). Basically I have started using for software product line research, and specifically model checking over

Re: [rules-users] Insert global into working memory via Spring?

2012-08-31 Thread Mark Proctor
Look t the script element and the set-global command: https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring.xsd Mark On 31 Aug 2012, at 20:09, dunnlow dunn...@yahoo.com wrote: I am using the

Re: [rules-users] Weird drools exception happens from times to times

2012-08-23 Thread Mark Proctor
Check the MANIFEST.MF the version is there. Specification-Title: Knowledge API Specification-Version: 5.4.0.Final Specification-Vendor: JBoss by Red Hat Implementation-Title: Knowledge API Implementation-Version: 5.4.0.Final Implementation-Vendor-Id: org.drools Implementation-Vendor: JBoss by Red

Re: [rules-users] Maps as Object in Drools

2012-08-19 Thread Mark Proctor
We don't publicise the internal javadocs, just the public ones. But just checkout the code and look over it, I don't think the internal javadocs will help much. You lose type discrimination and type safety, but you can already do: Map( this['key'] == xxx ) What I think would be more

Re: [rules-users] expert mailing list

2012-08-16 Thread Mark Proctor
stays as it is. It's purpose is well known, and we don't' have high volume yet. Mark Op 14-08-12 23:48, Mark Proctor schreef: As the user list is now high volume, i'm contemplating an invite only expert list. I'm not sure who this would work, or if it's practical. But the idea is to have

Re: [rules-users] Drools 6 - approximate release date?

2012-08-14 Thread Mark Proctor
On 14 Aug 2012, at 09:44, Michal Bali michalb...@gmail.com wrote: Hi guys, anybody knows when is Drools version 6 going to be released? In a year? Year and a half? More? At this stage it's hard to tell. I would hope within a year from now. There will be a a lot of dramatic changes, so

Re: [rules-users] Guided Rule option not visible in Eclipse

2012-08-14 Thread Mark Proctor
On 14 Aug 2012, at 19:29, dme1 meh...@hotmail.com wrote: Thanks for the detailed response. With the 5.4 plugin I do not see the Guided Rule option, just the Rule Resource, so the screeshot seems to be from an earlier version. ok, thanks. we'll fix docs for next release. Mark dme.

[rules-users] expert mailing list

2012-08-14 Thread Mark Proctor
As the user list is now high volume, i'm contemplating an invite only expert list. I'm not sure who this would work, or if it's practical. But the idea is to have a lower volume list, with a higher quality of technical questions and discussions. This might make it easier for people to be

Re: [rules-users] Diff between Drools opensource and Redhat BRMS

2012-07-25 Thread Mark Proctor
It's a little out of date now (2011), as jBPM5 is now supported in BRMS5.3. But the essence of the article is the same. http://blog.athico.com/2011/04/drools-jbpm-community-versus-product.html Mark On 25/07/2012 22:35, wbohrer wrote: I couldn't find a FAQ, so please don't hate on me if this is

Re: [rules-users] NESTED LOOPS Possible

2012-07-23 Thread Mark Proctor
eval is only slower because it does not allow for indexing of data. I don't believe your use case, which looks at nested data structures, would allow indexing of data either. So you'll probably gain in performance from a hard coded java method. Mark On 22/07/2012 03:40, lhorton wrote: do not

Re: [rules-users] How to retract events that don't match any rules (without @expires())

2012-07-19 Thread Mark Proctor
You could also look at the declarative agenda stuff, which is experimental at the moment. With this you can track if there are any activations that need to fire for a rule. When there are no activations still to fire, you can iterate and retract facts. You could probably even correlate

Re: [rules-users] Compiled rules differ KnowledgeAgent vs ResourceChangeScanner

2012-07-15 Thread Mark Proctor
The bean builder factory is here: https://github.com/droolsjbpm/droolsjbpm-integration/blob/master/drools-container/drools-spring/src/main/java/org/drools/container/spring/beans/KnowledgeBaseBeanFactory.java Mark On 15/07/2012 03:43, lhorton wrote: I think this one is going to be hard to repro

Re: [rules-users] Compiled rules differ KnowledgeAgent vs ResourceChangeScanner

2012-07-14 Thread Mark Proctor
If you think it's a bug, you'll have to submit a jira with self contained minimal unit test: http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html Mark On 14/07/2012 19:43, lhorton wrote: The spring configuration we use does include all the rules

Re: [rules-users] Why does it seem like salience is being ignored?

2012-07-13 Thread Mark Proctor
in fireUntilHalt for salience to take effect the rules must be in conflict; i.e. on the agenda at the same time, normally due to activation being created from the same working memory action. If you insert message and later insert person, the message will react straight away and fire; as there

Re: [rules-users] Compiled rules differ KnowledgeAgent vs ResourceChangeScanner

2012-07-13 Thread Mark Proctor
There is a difference. If you use incremental mode if effectively diffs the current kbase with the new kbase, and applies the diff. In this situation you need the changeset to always include all drls of what you want the kbase to look like; as it'll build the changeset as a kbase and then diff

Re: [rules-users] Deploy ModeShape to Tomcat issue (Guvnor 5.4.0 Final)

2012-07-11 Thread Mark Proctor
From one of the modeshape authors, who I forwarded this email to: The correct way to use ModeShape within Tomcat is to just copy the JARs and include it in your deployment, just as you've been doing. In this way, you're embedding ModeShape into your web application. The three modeshape-* files

Re: [rules-users] compare with today

2012-07-06 Thread Mark Proctor
On 05/07/2012 14:41, Tom Eugelink wrote: This question probably is asked before, but google does not seem to want to help me find it. In a decision table excel I want to compare a condition with today (in fact today + 30 days), but new Date() is not accepted. How would I go about that?

Re: [rules-users] Migrating from 4.0.7 to 5.4.0.Final

2012-07-03 Thread Mark Proctor
We generate a lot more bytecode now, for improved performance execution. constraints start of being evaluated dynamically, as they were in 4.0.x, after they are executed a certain number of times we emit bytecode to allow JIT to provide improved execution times. Mark On 29/06/2012 08:19,

Re: [rules-users] Globals - delegate

2012-07-03 Thread Mark Proctor
On 02/07/2012 14:11, Wolfgang Laun wrote: This is from Expert (5.4.0): Using a delegate is another way of global resolution. Assigning a value to a global (with setGlobal(String, Object)) results in the value being stored in an internal collection mapping identifiers to values. Identifiers

Re: [rules-users] ruleflow-group

2012-07-01 Thread Mark Proctor
On 30/06/2012 00:08, al so wrote: looks like one can't activate a ruleflow-group inside a drl file? Only available via UI? I was thinking there'll be some kind of setFocus way to control rule execution using this ruleflow-group. For the 6.0 development cycle we are looking into alternative

Re: [rules-users] Spring bean with Drools rule template

2012-06-29 Thread Mark Proctor
It was never exposed. Mark On 29/06/2012 19:07, gd007 wrote: I can make spring bean with drools:decisiontable-conf as shown below. How do I put the rule template in the bean defn? drools:kbase id=kbase1 drools:resources drools:resource source=classpath:SkuType.xls

[rules-users] Drools jBPM Workshops(Next Week) : June : WDC NYC

2012-06-15 Thread Mark Proctor
=d3d6d783acbc4c7382b30a46edde5906 Speakers: Jim Tyrrell http://app.engage.redhat.com/e/er?s=1795lid=5483elq=d3d6d783acbc4c7382b30a46edde5906, Principle JBoss Solution Architect, Red Hat Mark Proctor http://app.engage.redhat.com/e/er?s=1795lid=5483elq=d3d6d783acbc4c7382b30a46edde5906, Drools

[rules-users] Drools jBPM Workshops : June : WDC NYC

2012-06-11 Thread Mark Proctor
(Government focus) in Washington DC http://app.engage.redhat.com/e/er?s=1795lid=5482elq=d3d6d783acbc4c7382b30a46edde5906 Speakers: Jim Tyrrell http://app.engage.redhat.com/e/er?s=1795lid=5483elq=d3d6d783acbc4c7382b30a46edde5906, Principle JBoss Solution Architect, Red Hat Mark Proctor http

[rules-users] Drools jBPM Workshops : June : WDC NYC

2012-06-07 Thread Mark Proctor
=d3d6d783acbc4c7382b30a46edde5906 Speakers: Jim Tyrrell http://app.engage.redhat.com/e/er?s=1795lid=5483elq=d3d6d783acbc4c7382b30a46edde5906, Principle JBoss Solution Architect, Red Hat Mark Proctor http://app.engage.redhat.com/e/er?s=1795lid=5483elq=d3d6d783acbc4c7382b30a46edde5906, Drools

Re: [rules-users] Initial rule delay

2012-06-06 Thread Mark Proctor
On 06/06/2012 18:39, Vincent LEGENDRE wrote: try with a negative number ? I would ommit the number all together. I suspect what 0 does is schedule with intervals of 0s, thus it fires straight away. timer(int: 5s) Mark - Original Message - From: Paul R.reverselo...@gmail.com To:

Re: [rules-users] Papers about Drools Verifier

2012-06-01 Thread Mark Proctor
, Mark Proctor mproc...@codehaus.org mailto:mproc...@codehaus.org wrote: On 28/05/2012 22:21, Jackson Cunha wrote: Anyone knows about academic papers involving drools verifier? I'm working in a project where will be produced a paper and I need to cite some caracteristics

Re: [rules-users] drools.packagebuilder.conf

2012-06-01 Thread Mark Proctor
On 01/06/2012 19:16, Matteo Cusmai wrote: Can i send you an zipped eclipse project? Please don't do that. follow the instructions in getting involved on how to submit unit tests: http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html Mark On

Re: [rules-users] Drools 5.4.0.FINAL and OSGI. Unable to instantiate service for Class 'org.drools.concurrent.ExecutorProvider'

2012-05-31 Thread Mark Proctor
Looks like you have some classpath issues and using the incorrect jar versions. On 29/05/2012 14:30, Per Sterner wrote: [ERROR] [System] - Caused by: java.lang.ClassNotFoundException: org.drools.concurrent.ExecutorProviderImpl ___ rules-users

<    1   2   3   4   5   6   7   8   9   10   >