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

2012-09-02 Thread Mark Proctor
On 3 Sep 2012, at 00:56, Phani Saripalli 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 product > line models

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 wrote: > I am using the drools 5.4 Integr

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 interesti

Re: [rules-users] expert mailing list

2012-08-16 Thread Mark Proctor
change it somehow for now agreed, the dev lit 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"

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

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

2012-08-14 Thread Mark Proctor
On 14 Aug 2012, at 19:29, dme1 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. > > > > -- > Vi

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

2012-08-14 Thread Mark Proctor
On 14 Aug 2012, at 09:44, Michal Bali 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 we'll have a long 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 specific

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] 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 "di

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 i

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-*" fil

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 >

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. Identifi

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, Jea

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 appro

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? > > > > >worksheet-name="Tables" /> > > >

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

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

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

2012-06-11 Thread Mark Proctor
sday, June 21, 2012 (Government focus) in Washington DC <http://app.engage.redhat.com/e/er?s=1795&lid=5482&elq=d3d6d783acbc4c7382b30a46edde5906> Speakers: Jim Tyrrell <http://app.engage.redhat.com/e/er?s=1795&lid=5483&elq=d3d6d783acbc4c7382b30a46edde5906>, Principle

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

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

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." > To: "Rules Users List" >

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] Papers about Drools Verifier

2012-06-01 Thread Mark Proctor
On 31 May 2012 23:04, Mark Proctor <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 caracter

Re: [rules-users] Papers about Drools Verifier

2012-05-31 Thread Mark Proctor
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 of it. A good starting point is on the ez-expert page, which covers various papers on the topic.

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 maili

Re: [rules-users] Help

2012-05-29 Thread Mark Proctor
Please do not cross post to user and dev mailing lis, it's bad manners. Please keep user questions to the user list. Please before you post again read the 17 guideline points towards the bottom of the page: http://www.jboss.org/drools/lists Mark On 29/05/2012 15:25, Olfa h wrote: HI, My mast

[rules-users] Want to host IntelliFest (previously RuleFest)?

2012-05-24 Thread Mark Proctor
IntelliFest (previously RuleFest) is currently trying to find premises on the west coast of USA, with near by accomodation, to host 150 people for 4 days. Interested in hosting? If so contact me on mproctor at codehaus d0t org ___ rules-users mailing

Re: [rules-users] 5.4 Final Jitting Error

2012-05-22 Thread Mark Proctor
On 22/05/2012 14:46, stelomax wrote: > Hi, > > In 5.3 we saw a Jitting problem (as a result of the same rule getting 20 > times and Drools attempting to compile a new object for performance). > > We were recommended to move to 5.4 rc 1 to fix the issue (which it did). > > We were about to migrate t

Re: [rules-users] [5.4.0] Combining custom operators with OR results in compile error

2012-05-19 Thread Mark Proctor
Sounds like a bug, please read "getting involved" and submit a uni test and jira: http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-introduction-docs/html/gettingstarted.html Mark On 18/05/2012 16:03, Stathis Rouvas wrote: > Hello List, > > I recently migrated from Drools.5.0.1 to Drool

Re: [rules-users] Problem with Drools Eclipse

2012-05-15 Thread Mark Proctor
The documentation explains how to setup a runtime. You can also see it in this video, after 1m and 18s http://www.youtube.com/watch?v=Omj4PR3v-nI On 15/05/2012 16:07, paco wrote: > Hello Everybody! > I've just installed on eclipse Indigo Version: 3.7.2, the Drools 5.4.0 > fianl. > After I wanted

[rules-users] IRC Server Change - from Codehaus to Freenode

2012-05-15 Thread Mark Proctor
Drools, jBpm and Guvnor are moving from codehaus irc servers to freenode. You can now find us on the following channels on irc://chat.freenode.net #drools #droolsdev #jbpm

[rules-users] Drools 5.4.0.Final released

2012-05-14 Thread Mark Proctor
http://blog.athico.com/2012/05/drools-540final-released.html link contents pasted below--- We are happy to announce the release of Drools (Expert, Fusion, Planner, Guvnor) *5.4.0.Final*. jBPM 5.3.0 announcement will follow shortly and the link will be added when it does. Documentation, Re

[rules-users] Build Pong in 13 minutes using JBoss Drools

2012-05-11 Thread Mark Proctor
Just finished "Build Pong in 13 minutes with JBoss Drools" enjoy :) and please vote up on dzone http://www.dzone.com/links/build_pong_in_13_minutes_using_jboss_drools.html For those with more time, here is a longer and more complex video that I made before Pong. "Build a Graphical Adventure Game

[rules-users] api's, factories and services

2012-05-09 Thread Mark Proctor
Just a reminder when doing api's Stage interfaces in internal-api and make sure you do factories for them, almost never expose "new" constructors to users. We provide both static factories and a service registry, and we ideally should continue to support both. i.e. we have KnowledgeBuilderFacto

Re: [rules-users] Drools 5.3 Salience

2012-05-02 Thread Mark Proctor
On 02/05/2012 18:09, gboro54 wrote: > I know using salience is not the best way to order rules but some of our > rules do have a higher priority then others. Since we are writing the rules > using a DSL I have created set set of Priority levels which set the > salience. One of these levels set sali

Re: [rules-users] Logical assertions & the KnowledgeBaseConfiguration insertion modes.

2012-04-29 Thread Mark Proctor
logical insertions are always equality based, that cannot be changed. Mark On 28/04/2012 10:39, bardelman wrote: > Hi , > i ve read that when the same fact is logically inserted into a session by > more rules, only one equal instance will be physically present in the > session. > > On the other h

Re: [rules-users] Problem with RuleFlow sample project

2012-04-29 Thread Mark Proctor
On 28/04/2012 10:59, Ahmed Feki wrote: hi, RuleFlow is replaced by the jbpm5. > You'll need to have jBPM on your classpath to execute ruleflows. Mark 2012/4/27 Richard Moore > Hi, I am starting to learn Drools a

[rules-users] Drools&jBPM Drop in Centre at JBoss World

2012-04-26 Thread Mark Proctor
http://blog.athico.com/2012/04/drools-drop-in-centre-at-jboss-world.html -- Now you have another reason to come to JBoss World , as if you didn't already have too many on your list :) On Friday the 29th of June we'll have an all day drop in centre for Drool

Re: [rules-users] Redundancy check option not working in Drools Verifier 5.4

2012-04-26 Thread Mark Proctor
On 26/04/2012 12:56, worldofprasanna wrote: > Hi, > > Still am stuck up with this problem. I couldn t verify the redundancy in my > rules using Drools Verifier. Can somebody out there help me ? Only toni knows that code. If it's not working, it's likely a bug. Please submit a unit test: https://h

Re: [rules-users] Best practice for 0..1 relations

2012-04-24 Thread Mark Proctor
On 23/04/2012 21:31, Christopher Dolan wrote: > Sorry, I wasn't clear... In the example, it's the spouse that's the optional > fact. I want the rule to fire whether or not a spouse exists, but the RHS > computes the income differently if a spouse exists or not. If a spouse is > added/removed, I

Re: [rules-users] Problem with logging using Drools 5.3.0

2012-04-24 Thread Mark Proctor
On 24/04/2012 13:26, FlyingEagle wrote: > Thx Ingo for your reply, but logging with KnowledgeRuntimeLogger is not my > problem. Suspect the SystemEventListener default implementation got changed. Make have a dig around there, and provide your own impl. Mark > This works fine. > > Drools itself us

Re: [rules-users] Drools variables

2012-04-24 Thread Mark Proctor
On 24/04/2012 18:43, skatta1986 wrote: > what about the paramaters of timer( int: ? ) > ? > > timer(int : 10s) --> is working properly > but timer(int : s ) --> not working Expressions are not supported in 5.3 release. The matching code may not be correct identifying your invalid expression. Y

Re: [rules-users] [Drools.5.0.1] insertLogical abnormalities

2012-04-24 Thread Mark Proctor
On 24/04/2012 23:27, rou...@mm.di.uoa.gr wrote: > Thanks for the prompt reply, please see comments inline. > > Mark Proctor wrote: >> this rule is invalid, can't have bindings on 'not' as you can't bind >> something that doesn't exist. >> >>

Re: [rules-users] [Drools.5.0.1] insertLogical abnormalities

2012-04-24 Thread Mark Proctor
this rule is invalid, can't have bindings on 'not' as you can't bind something that doesn't exist. not ( logg : InternalResultCode( ruleId=="5", goodNo==gnId.goodNo) ) Make sure you implement equals/hashcode properly for logical facts. Aslo make sure you understand that only one equal instan

Re: [rules-users] Sir, Seekin your's Help on Drool

2012-04-20 Thread Mark Proctor
On 18/04/2012 11:49, Michael Anstis wrote: Emailed me directly too... some people do nothing to help themselves. me too.. Mark sent on the move On 18 Apr 2012 11:20, "Wolfgang Laun" > wrote: San, (1) Do NOT post the same thing four times.

Re: [rules-users] Explanation of a decision

2012-04-20 Thread Mark Proctor
On 20/04/2012 12:33, Maxim Kolchin wrote: Hi, I'm working on expert system, automating one of the stages of optical design. Now, we're testing the system and we need a function, e?plaining a decision of the system: which rules has been fired, why they has been fired and so on. And I'm looking

Re: [rules-users] cdi support

2012-04-19 Thread Mark Proctor
On 17/04/2012 11:29, Kelly Goedert wrote: > Hi, > > I asked this same question on seam forum and they told me to ask > here... does drools support cdi? not yet. mark > > Thanks > > Kelly > ___ > rules-users mailing list > rules-users@lists.jboss.org > ht

Re: [rules-users] Drools crash on simple drl

2012-04-17 Thread Mark Proctor
If you think it's a bug, follow the instructions here on how to submit a unit test demonstrating your bug: https://hudson.jboss.org/hudson/job/droolsjbpm-knowledge/lastSuccessfulBuild/artifact/droolsjbpm-introduction-docs/target/docbook/publish/en-US/html_single/index.html#gettingstarted Mark On

Re: [rules-users] is there any 'followed by' in Drools as we have in esper

2012-04-11 Thread Mark Proctor
On 11/04/2012 08:05, skatta1986 wrote: > Hi, > > Please any one let me know if there is any followed by operator in Drools. I > want to correlate an event with another event which follows the first event. > > Esper supports this by using followed by (->) operator. > Example in esper: > "select r1.

[rules-users] GSOC Just 2 days left

2012-04-04 Thread Mark Proctor
If you want to suggest a project, or claim a project, you have just 2 days left to do so - HURRY UP!!! https://community.jboss.org/wiki/GSoC12Ideas Mark ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/r

Re: [rules-users] mvel strict-mode not applied in drools 5.3.1.Final

2012-04-04 Thread Mark Proctor
On 04/04/2012 14:23, Wolfgang Laun wrote: > @Jörg: > >>> On 04/04/2012 11:04, korgen wrote: >>> we updated Drools from 5.1.1 to 5.3.1 (as in 5.1.1 >>> language level >>> > 1.7 is not supported). > Why would Drools 5.1.1. not be usable with Java 1.7? Byte code is > supposed to be

Re: [rules-users] mvel strict-mode not applied in drools 5.3.1.Final

2012-04-04 Thread Mark Proctor
t unit tests: https://hudson.jboss.org/hudson/job/droolsjbpm-knowledge/lastSuccessfulBuild/artifact/droolsjbpm-introduction-docs/target/docbook/publish/en-US/html_single/index.html#gettingstarted Mark Best Jörg sent from a mobile device On Apr 4, 2012 12:55 PM, "Mark Proctor" <mai

Re: [rules-users] Possible "memory leak" in 5.3 with update?

2012-04-04 Thread Mark Proctor
On 04/04/2012 11:53, thenim wrote: > I have to hang my head in shame, it seems that the issue is not related to > the engine, but a linked blocking queue that I was using to use to > communicate with another thread. My hypothesis is that with the "update" > approach, the first thread is going too f

Re: [rules-users] Possible "memory leak" in 5.3 with update?

2012-04-04 Thread Mark Proctor
On 04/04/2012 02:24, thenim wrote: > @Mark, > > Your code example is exactly what I was doing - however there does appear to > be some reference held somewhere, which is causing frequent full GCs - which > eventually causes the thing to grind to a halt. The moment I change this to > the following:

Re: [rules-users] mvel strict-mode not applied in drools 5.3.1.Final

2012-04-04 Thread Mark Proctor
On 04/04/2012 11:04, korgen wrote: > Hi folks, > In the process of upgrading from Java 1.6 to Java 1.7 (1.7.0_03 to be > precise) we updated Drools from 5.1.1 to 5.3.1 (as in 5.1.1 language level > 1.7 is not supported). > > However with Drools 5.3.1 the system property "drools.dialect.mvel.strict"

Re: [rules-users] Possible "memory leak" in 5.3 with update?

2012-04-03 Thread Mark Proctor
fh = wm.insert( new MyObject( 1 ) ); if you do wm.update( fh, new MyObject( 2 ); The engine should not keep any references to instance MyObject( 1 ) Mark On 02/04/2012 17:01, thenim wrote: > @laune, not sure how the map relates to the problem I stated. In a map, the > put operation will replace t

Re: [rules-users] when is rete tree build?

2012-04-03 Thread Mark Proctor
On 03/04/2012 10:26, Lubos wrote: > Hi, > > Is RETE tree build in memory when I construct a KnowledgeBase with packages > or only when I start inserting facts to KnowledgeSession created from that > KnowledgeBase? It is built when you add the knowlege packages to the knowledge base. Mark > > thank

Re: [rules-users] MVEL interpretation

2012-03-28 Thread Mark Proctor
MVEL compiles the string to it's own evaluation tree, it then "evaluates" that tree at runtime so simulate runtime code. We do a further optimisation for performance where after MVEL executes a statement so many times, we'll JIT it to bytecode to get improved execution performance. Mark On 26

Re: [rules-users] [rules user] different behavior on double type

2012-03-26 Thread Mark Proctor
On 27/03/2012 03:01, Zeke wrote: Whether the comparison is precarious or not should depend on how you handle the literal. If you handle 99.9 as BigDecimal("99.9") which precision can be controlled, you can trust the comparison. Anyway, since it has different behavior for these two cases, it sh

Re: [rules-users] Adding Rules dynamically in knowledgebase

2012-03-23 Thread Mark Proctor
Lots of examples here: https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/integrationtests/DynamicRulesTest.java The tests include examples for both the old PackageBuilder api and new KnowledgeBuilder api - I advise you to only use the knowledge api. Mark O

Re: [rules-users] Trouble with the MVEL Map syntax

2012-03-21 Thread Mark Proctor
does. All we do is slurp in the text and pass it to the JDT compiler. So I doubt the the code below works. i'm looking at the JavaFunctionBuilder, I don't see any pre-processors that would enable those inline maps to work. Mark -W On 21 March 2012 21:32, Mark Proctor <mailto:m

Re: [rules-users] Performance gain by upgrading Drools Expert from 5.1 to 5.3

2012-03-21 Thread Mark Proctor
On 21/03/2012 20:32, womuji wrote: We recently upgrade our Drools Expert from 5.1 to 5.3, expecting big performance gain. But from the tests we done so far, the result is mixed at best. Is this common or there is sth we can fine-tune the system? All time is in milliseconds. Thanks In Drools 5.

Re: [rules-users] Trouble with the MVEL Map syntax

2012-03-21 Thread Mark Proctor
functions can only be written in Java. There is no support for MVEL dialect in functions. Mark On 21/03/2012 03:37, barnesjd wrote: > Correction I didn't paste the whole function the second time. I do have > a return for the else... > > /function int englishToInt(String englishNumber) > { >

Re: [rules-users] Setting strictTyping/strongTyping modes

2012-03-21 Thread Mark Proctor
- as long you don't define any properties. Mark 2012/3/21 Mark Proctor <mailto:mproc...@codehaus.org>> On 21/03/2012 18:45, barnesjd wrote: I'm trying to disable strictTyping for my MVEL rules, but I cannot figure out how.http://mvel.codehaus.org/MVEL+2

Re: [rules-users] Setting strictTyping/strongTyping modes

2012-03-21 Thread Mark Proctor
On 21/03/2012 18:45, barnesjd wrote: I'm trying to disable strictTyping for my MVEL rules, but I cannot figure out how. http://mvel.codehaus.org/MVEL+2.0+Typing The only example I've found shows the use of the class ParserContext. I'm using KnowledgeBuilder, KnowledgeBase, StatefulKnowledgeSes

Re: [rules-users] Persistence in fireUntilHalt() loop

2012-03-12 Thread Mark Proctor
it should work, if it doesn't then it seems like a bug. We are gearing up for release 5.4 now, so might be a while before we can address this. Unless there is a pull request with a suggested fix :) Mark On 08/03/2012 10:32, Alberto R. Galdo wrote: Hi, We're running an application that uses

Re: [rules-users] Drools & jBPM Event : London 8th March 2012

2012-03-06 Thread Mark Proctor
Only 2 more days to the Drools & jBPM London event: http://blog.athico.com/2012/02/drools-jbpm-event-london-8th-march-2012.html Mark On 21/02/2012 04:53, Mark Proctor wrote: http://blog.athico.com/2012/02/drools-jbpm-event-london-8th-march-2012.

Re: [rules-users] Streaming mode

2012-03-04 Thread Mark Proctor
If you have found an area where it is not thread safe, then please let us know so we can fix it. The example you have is redundant (possibly out of date), those areas are covered: fireAllRules and fireUntilHalt both have an atomic boolean, to ensure they can never be called more than once at t

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-03 Thread Mark Proctor
On 02/03/2012 17:52, gboro54 wrote: > Would you partition the KnowledgeBase or the Sessions? Additional would each > Order being evaluated create a new session? It depends on your problem and your data. Mark > > > > gboro54 wrote >> Could you elaborate on that a little

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-03 Thread Mark Proctor
ental and currently has problems, it's not recommended you use it. Mark > > > Mark Proctor wrote >> Drools doesn't partition. You will need to build an external framework >> that partitions your data, and then assign a ksession per parition. >> Whether it's a kse

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mark Proctor
Drools doesn't partition. You will need to build an external framework that partitions your data, and then assign a ksession per parition. Whether it's a ksession or kbase per partition depends on whether you can use the same rules per partition or not. Mark On 02/03/2012 17:33, gboro54 wrote:

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mark Proctor
Parition yourself ahead of time. Choose a key that is a true partition of your data, chose the number of partitions, create a kbase per partition and then hash on your inserted data to get the target kbase. Mark On 02/03/2012 16:23, gboro54 wrote: > We are writing a billing system using Drools t

Re: [rules-users] Using an OWL Ontology in drools - advice

2012-03-02 Thread Mark Proctor
On 02/03/2012 14:20, banduk wrote: > Hi, > > I am a Computer Engeneering student and I did an internship last year on > DERI (Digital Enterprise Research Institute), where I researched about > Semantic Web and Complex Event Processing > (http://iswc2011.semanticweb.org/fileadmin/iswc/Papers/Wo

Re: [rules-users] Build a Graphical Adventure Game in 20 minutes using JBoss Drools : All Hale the Wumpus

2012-03-01 Thread Mark Proctor
this automatically from the client side. Mark On 01/03/2012 04:47, Mark Proctor wrote: http://www.dzone.com/links/build_a_graphical_adventure_game_in_20_minutes_us.html Today we take you on a 20 minute adventure. Building, almost from scratch, a complete graphical adventure game with Drools. The

[rules-users] Build a Graphical Adventure Game in 20 minutes using JBoss Drools : All Hale the Wumpus

2012-02-29 Thread Mark Proctor
http://www.dzone.com/links/build_a_graphical_adventure_game_in_20_minutes_us.html Today we take you on a 20 minute adventure. Building, almost from scratch, a complete graphical adventure game with Drools. The code will be part of the up coming Drools 5.4 release. The game is based on Wumpus W

Re: [rules-users] 5.4.0.Beta2 parse error in consequence /* in string

2012-02-27 Thread Mark Proctor
On 27/02/2012 15:44, Benjamin Bennett wrote: I had created issue JBRULES-3399 for the issue. I tracked it a bit , it is any comment. // or /* , think the lexar expression for comment isn't correct . I am working towards a fix but not a antlr expert. I have used yacc. just a reminder to read

Re: [rules-users] JRules to Drools migration

2012-02-23 Thread Mark Proctor
On 23/02/2012 09:25, massios wrote: > Dear all, > > I am interested to find out how easy/hard it would be to migrate rules from > IBM WebSphere JRules to Drools. I understand this would involve a > considerate amount of effort for the migration, testing and deployment of > the rules. > > Is there a

Re: [rules-users] Filtering inside the LHS

2012-02-22 Thread Mark Proctor
On 23/02/2012 03:38, Hezi Stern wrote: Hi All, I am seeking some kind of filtering (if statement) inside the LHS. I have the following example rule (note: $attributeFilteredSentences and $cmdescriptor are defined in the extends rule which is not presented): *rule*" choose message sentence e

Re: [rules-users] Loading rules performance problem in 5.4.0.Beta2 compare to 5.0.1

2012-02-22 Thread Mark Proctor
On 23/02/2012 03:29, erolagnab wrote: > Hi all, > > I'm planning to upgrade to Drools 5.4.0.Beta2 from 5.0.1. > However when testing the performance w.r.t rules loading, 5.4.0.Beta2 is not > only much slower (50% slower) but also eats more memory compare to 5.0.1. > > Is it something expected from

[rules-users] Getting Involved - Some help docs

2012-02-22 Thread Mark Proctor
I just updated the docs with a "Getting Involved" section, which covers questions we are asked often. The chapter provides high level info on how you sign up, submit issues, submit pull requests, best practice for tests etc. Please provide feedback, or pull requests, for improvements and this w

[rules-users] Drools & jBPM Event : London 8th March 2012

2012-02-20 Thread Mark Proctor
come 09:45 Rules, Events & Processes: the Open Source way Mark Proctor - Worldwide Technical Lead for BRMS & B

Re: [rules-users] Session persistence

2012-02-20 Thread Mark Proctor
The persistence mechanism for user provided objects is pluggable, based on a given strategy. The reason for this is some people are happy to have their objects serialised with the session state, others have their objects in a DB somewhere and just want a placeholder serialised. This works for

Re: [rules-users] Drools Basic Example

2012-02-19 Thread Mark Proctor
Looks like you have a a Groovy plugin installed and that is causing problems. Mark On 20/02/2012 03:58, pprabhu59 wrote: > Hello All, > > I just followed JBPM installation steps from JBoss Org, just created a new > drools project. > When i try to run it has a java application i am getting the fol

Re: [rules-users] Rule definition introspection

2012-02-17 Thread Mark Proctor
eed to be free to change that. However users who code against those internal models will cry havoc if we change them, if the think they are public apis. Mark > > -W > > > On 17/02/2012, Mark Proctor wrote: >> On 17/02/2012 05:37, gpa...@tsys.com wrote: >>> I nee

Re: [rules-users] Rule definition introspection

2012-02-16 Thread Mark Proctor
On 17/02/2012 05:37, gpa...@tsys.com wrote: I need it at rule definition time, or when the rule is saved. Could you point me to a starting place in the internal api ? take a look in drools-compiler and org.drools.lang.RuleParserTest. Mark Thanks G. Patel From: Mark Proctor To: rules

Re: [rules-users] Rule definition introspection

2012-02-16 Thread Mark Proctor
On 17/02/2012 01:11, gpa...@tsys.com wrote: Is it possible to self-introspect the rule definition? For example: when $redCar : Car(color == 'red') then System.out.println("a red car exists"); Is it possible to know that the above rule uses the Car fact and the Car.color attrib

Re: [rules-users] rule with array

2012-02-16 Thread Mark Proctor
On 15/02/2012 18:36, shawn wrote: > yeah, I have thought about it. But if I use function, I have to write three > for loops. like: > > /*function Boolean findSubject(Request request) { > > Pointer sPointer = request.getSubjectPath(); > Pointer aPointer = request.getAuthorTable(); >

Re: [rules-users] 5.3.0 NoClassDefFound due to nested property access

2012-02-13 Thread Mark Proctor
On 10/02/2012 11:40, Wolfgang Laun wrote: Yes? No? Don't know? None of the previous? What is "bar" is it a String or something else? Where did Monitor come from? Mark On 8 February 2012 11:43, Wolfgang Laun > wrote: Is this already known and fixed in 5.4.

Re: [rules-users] Multiple threading

2012-02-13 Thread Mark Proctor
On 10/02/2012 22:46, apache wrote: Mark the first link in my previous post says something contradictory to what you mentioned. I understand that one thread at a time can use the session just not 2 or more threads at the same time . Is that what you meant too ? I think you are referring to the j

Re: [rules-users] Multiple threading

2012-02-13 Thread Mark Proctor
we'll fix. Mark -Richard 2012/2/10 Mark Proctor <mailto:mproc...@codehaus.org>> On 10/02/2012 03:36, Apache wrote: Hey, I am trying to get multiple threads to insert events and run rules against the union of events inserted ( an as soon as they are inserted, a timer d

Re: [rules-users] MVEL strict-mode vs. performance

2012-02-13 Thread Mark Proctor
Have a read of the release notes around type safety. There are some situations where Drools was not correctly enforcing type safety, which have since been corrected. So probably a badly written rule is now getting picked up. As a work around you can force some patterns to evaluate dynamically u

Re: [rules-users] Multiple threading

2012-02-10 Thread Mark Proctor
On 10/02/2012 03:36, Apache wrote: Hey, I am trying to get multiple threads to insert events and run rules against the union of events inserted ( an as soon as they are inserted, a timer drools thread kicking of fireallrules() is not an option because that would introduce a delay ) and wanted

[rules-users] http://blog.athico.com/2012/02/welcome-alexandre-porcelli.html

2012-02-07 Thread Mark Proctor
http://blog.athico.com/2012/02/welcome-alexandre-porcelli.html ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Blog: Wumpus World Lives!!!

2012-02-06 Thread Mark Proctor
http://blog.athico.com/2012/02/wumpus-world-lives.html ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Problem splitting drl file into two files

2012-02-06 Thread Mark Proctor
On 07/02/2012 02:17, Shur, Bob wrote: > How do I declare a function in one drl file and call it from another drl > file, without having the Eclipse plug-in flag the call as an error? > > Eclipse complains that the function is undefined and puts a red X on the call. > > Other than the red X, everyt

Re: [rules-users] drools working memory backed by cache

2012-02-05 Thread Mark Proctor
On 04/02/2012 22:02, Apache Zoom wrote: Is there a project out there which can use drools working memory using hibernate 2nd level cache ( i.e. if the objects in working memory get too old they get put in a cache ) A second related question is it would be nice if it could be done through hibern

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