Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-24 Thread Mohan
Forgot to mention, I use 4.0.1 -- View this message in context: http://www.nabble.com/Difference-between-constraint-within-a-pattern-and-eval-tf4688141.html#a13399931 Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mail

[rules-users] Difference between constraint within a pattern and eval

2007-10-24 Thread Mohan
Hi There, I am facing a weird issue, following rule doesn't run rule "test" dialect "mvel" when Experience( primary == "SY") ) then log.debug("SY"); end but following works. :confused: rule "test1" dialect "mvel" when

Re: [rules-users] Jboss rules: or with binding issue?

2007-10-24 Thread Rahul Phadnis
Hello Edson, I was not aware that $binding : ( A(...) or A(...) ) // this is valid works. But now I know and I like this much better than the workaround I was using. I think this is more intuitive. The way I stumbled into this is I had the following $binding : A(...) or A(...) (note the mis

Re: [rules-users] again eval

2007-10-24 Thread Edson Tirelli
You can't bind a variable to an eval. []s Edson 2007/10/24, Markus Helbig <[EMAIL PROTECTED]>: > > Hi > > rule > when > item : eval(Factory.getList().contains(id)) > then > end > > resolves into > > [10/24/07 17:50:55:636 CEST] 0030 SystemErr R > org.drools.rule.Invali

[rules-users] Initialize Global

2007-10-24 Thread drools_user
How do I initialize a global fact in the drl file? I want use the JSR94 API and avoid using the Drools API inside the Java code. I would like to access the same variable every execution of a stateful session without having to reinstantiate the variable after each execution? Basically I want to

[rules-users] again eval

2007-10-24 Thread Markus Helbig
Hi rule when item : eval(Factory.getList().contains(id)) then end resolves into [10/24/07 17:50:55:636 CEST] 0030 SystemErr R org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule name=Rule1, agendaGroup=MAIN, salience=30, no-loop=false] package/Rule_Rule1_0.java (13

[rules-users] About use of function in rulebase having two packages

2007-10-24 Thread prateek.katiyar
Hello all I have two packages in my rulebase .I want to use one function from one package in another package. How can I do this? Please brief me. Thanks. With Regards Prateek The information contained in this electronic message and any attachments to this message are intended for the ex

RE: [rules-users] Abour removing the rules from the rulebase

2007-10-24 Thread Anstis, Michael (M.)
Based upon the documentation I'd say "no" and "no". You can use myPackage.getRules() to return Rule[] which you can iterate and call myPackage.removeRule(aRule) but I did not see anything "out of the box". Also, calls to myPackage.removeRuleFlow(ruleFlowId) removes RuleFlows (I believe the API

Re: [rules-users] DSL regex support

2007-10-24 Thread Adam Lewandowski
Edson Tirelli wrote: The first 2 pairs of [] have special semantics for the engine. After them, you can place your regexps. This worked, thanks! ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-

[rules-users] Abour removing the rules from the rulebase

2007-10-24 Thread prateek.katiyar
Hello all Many congratulations on the release of Drools 4.0.3 I want to remove all the rules belonging to a specific AgendaGroup from the rulebase containing only one package. I want to use only the name of the AgendaGroup ,not the names of the rules. Is there any method in the API that can sol

Re: [rules-users] Re: Drools 4.0.3 Released

2007-10-24 Thread Mark Proctor
MAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ___ rules-dev mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/rules-dev -- next part ---

[rules-users] Re: Drools 4.0.3 Released

2007-10-24 Thread J Michael Dean
rt for Eclipse 3.3 * [JBRULES-1294 <http://jira.jboss.com/jira/browse/JBRULES-1294>] - Upgrade to MVEL 1.2.10 -- Fernando Meyer http://fmeyer.org JBoss Rules Core Developer [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> - --- ___ rules-dev mailing list [EMAIL P

[rules-users] Re: [rules-dev] Drools 4.0.3 Released - build error

2007-10-24 Thread B Berteh
Hello, Thanks to all for the 4.0.3 release, but I just couldn't get the corresponding tagged svn version (4.0.3.15993.GA) to build: The "standard" maven compilation command 'mvn -Declipse -Ddocumentation clean install -DlocalEclipseDrop=~/Devel/jboss/local-eclipse-drop-mirror' failed with for

[rules-users] Problem with rule file

2007-10-24 Thread prateek.katiyar
Hello all, I am using Drools 4.0.3 in my application in which I am generating the rule file from the front end. I made my application in such a way that I can change my rule file during the runtime (i.e. server is running). Each time when I submit my test form (on which validation is happening

RE: [rules-users] Rules firing with an update of another object

2007-10-24 Thread Anstis, Michael (M.)
Could you not change your rule? rule "An item is in the office" salience 0 when $item : Item( ) $container : Container(location.name = "office", items contains $item) then System.out.println("item in office"); end [I think] this wo