RE: [rules-users] firing specific rule

2007-10-19 Thread Manukyan, Sergey
Manukyan, Sergey wrote: By the way, I see value of the AgendaFilter to be eliminated and use instead Predicate interface from apache commons collections: http://commons.apache.org/collections/apidocs/org/apache/commons/collect ions/Predicate.html as the API that supports Predicate logic

RE: [rules-users] firing specific rule

2007-10-18 Thread Manukyan, Sergey
Manukyan, Sergey's message received 10/17/2007 5:13 PM: Folks, I have to restate the question as didn't find the answer anywhere and have not get response to it in my previous email. Using 4.0.2. So I have a set of rules, _each_ with a specific *ruleflow-group *defined.

RE: [rules-users] firing specific rule

2007-10-18 Thread Manukyan, Sergey
Manukyan, Sergey wrote: Folks, I have to restate the question as didn't find the answer anywhere and have not get response to it in my previous email. Using 4.0.2. So I have a set of rules, each with a specific ruleflow-group defined. And I have a rule flow file defined. Altogether

RE: [rules-users] firing specific rule

2007-10-18 Thread Manukyan, Sergey
Manukyan, Sergey wrote: Manukyan, Sergey's message received 10/17/2007 5:13 PM: Folks, I have to restate the question as didn't find the answer anywhere and have not get response to it in my previous email. Using 4.0.2. So I have a set of rules, _each_ with a specific

RE: [rules-users] firing specific rule

2007-10-18 Thread Manukyan, Sergey
implementation of an AgendaFilter, for example a RuleNameInRuleFlowGroupEqualsAgendaFilter, which only blocks rules in the same ruleflow group from firing if they do not have the right name. Kris - Original Message - From: Manukyan, Sergey mailto:[EMAIL PROTECTED

RE: [rules-users] firing specific rule

2007-10-18 Thread Manukyan, Sergey
, 2007 12:57 PM To: Rules Users List Subject: Re: [rules-users] firing specific rule Mark Proctor's message received 10/18/2007 12:07 PM: Manukyan, Sergey wrote: Kris, It looks like whatever name I choose for *RuleNameEqualsAgendaFilter - *it doesn't fire any rules. It may be the name

[rules-users] firing specific rule

2007-10-17 Thread Manukyan, Sergey
Folks, I have to restate the question as didn't find the answer anywhere and have not get response to it in my previous email. Using 4.0.2. So I have a set of rules, each with a specific ruleflow-group defined. And I have a rule flow file defined. Altogether everything works fine.

[rules-users] RuleNameEqualsAgendaFilter

2007-10-12 Thread Manukyan, Sergey
Folks, The RuleNameEqualsAgendaFilter doesn't fire rules when used with Rule Flow. Without is all rules fire fine, but I need to limit it to only one. Is that a know issue? Or maybe I cannot use it together with Rule Flows? -Sergey ** ** LEGAL

RE: [rules-users] RE: RE: rules precompilation

2007-10-10 Thread Manukyan, Sergey
PROTECTED] On Behalf Of Mark Proctor Sent: Tuesday, October 09, 2007 6:25 PM To: Rules Users List Subject: Re: [rules-users] RE: RE: rules precompilation Manukyan, Sergey wrote: Ekke, Thanks a lot! It worked just fine... The other missing point is that after deserializing

RE: [rules-users] RE: rules precompilation

2007-10-09 Thread Manukyan, Sergey
into this empty Package (using the readExternal() from Package) then added some facts, execute the rules, tested if all rules are there, tested if the Facts are in workingMemory - all ok (using snapshot 4.0.2, eclipse 3.3, osx 10.4.10) ekke Manukyan, Sergey wrote: Ming, Ekke, After

RE: [rules-users] RE: rules precompilation

2007-10-09 Thread Manukyan, Sergey
Proctor Sent: Tuesday, October 09, 2007 11:55 AM To: Rules Users List Subject: Re: [rules-users] RE: rules precompilation Manukyan, Sergey wrote: Ekke, Started using 4.0.2, but getting same error. This is how I am loading the Package : this.pkg = new Package(); this.pkg.readExternal(ois

RE: [rules-users] RE: RE: rules precompilation

2007-10-09 Thread Manukyan, Sergey
Manukyan, Sergey wrote: Ekke, Started using 4.0.2, but getting same error. This is how I am loading the Package : this.pkg = new Package(); this.pkg.readExternal(ois); Does that look right to you? -Sergey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[rules-users] serialize RuleBase... precompiling rules

2007-10-03 Thread Manukyan, Sergey
Folks, Using 4.0.1. Can I serialize RuleBase object in order to load later precompiled rules? So far I was able to do that but when inserting facts into stateful session based on that rulebase exception is thrown: java.lang.NoClassDefFoundError: XXXShadowProxy What is the correct way of

RE: [rules-users] rules precompilation

2007-10-03 Thread Manukyan, Sergey
:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: Wednesday, October 03, 2007 12:29 PM To: Rules Users List Subject: [rules-users] rules precompilation Folks, Where can I find information on how to pre-compile rules in 4.0.1? Thanks, -Sergey ** ** LEGAL DISCLAIMER

RE: [rules-users] rules precompilation

2007-10-03 Thread Manukyan, Sergey
precompilation Did you save the Package right after the creation from PackageBuilder, or after some other processes? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: Wednesday, October 03, 2007 2:21 PM To: Rules Users List Subject: RE

[rules-users] agenda filter with rule flow

2007-10-01 Thread Manukyan, Sergey
Folks, I need to use agenda filter to execute a particular rule: rule My Rule ruleflow-group Validation when Object() then ... end The rule flow Validation is defined. I am doing the following: StatefulSession session =

RE: [rules-users] eclipse drools builder doesn't recognize functions...?

2007-09-25 Thread Manukyan, Sergey
compiler to allow static imports, thus it shows this error, however it executes fine. Mark Manukyan, Sergey wrote: Getting error reports by drools builder in 4.0.1 telling The method test() is undefined ... is this a known bug? ** ** LEGAL DISCLAIMER

[rules-users] org.eclipse.jface.text.Assert$AssertionFailedException: Assertion failed:

2007-09-24 Thread Manukyan, Sergey
Folks, Using 4.0.1. Getting errors sometimes while working with DRL file with Outline view open. Errors manifest themselves as a popup box : Here is the content of Error Log: -- eclipse.buildId=unknown java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32

[rules-users] globals in rule flow's Split

2007-09-19 Thread Manukyan, Sergey
Folks, When using globals in rule flow's Split I ran into problem that changes to the global cannot be recognized by the split and it continues to route the same destination. F.e. I have a Split with constrains. And a global TestValid object that has one boolean attribute - hasErrors

RE: [rules-users] rule flow -- possible bug?

2007-09-17 Thread Manukyan, Sergey
Thank you for explanations, it did clear up the picture for me, but I still didn't resolve the problem that I am having. Looks like problem happens when attributes are involved in a Split. Possible bug? So here is an example: I am inserting initially a simple TestValid class that

[rules-users] rule flow

2007-09-14 Thread Manukyan, Sergey
Folks, Using 4.0.1. Trying to do use rule flow to manage the execution of rules. As I understood in Split node with type XOR I can set conditions for each destination that are executed against facts in working memory. Let's consider I have a rule that executes every time it finds Integer

[rules-users] org.drools.RuntimeDroolsException

2007-09-04 Thread Manukyan, Sergey
Folks, Using 4.0.1 with stateful session. Getting this org.drools.RuntimeDroolsException when inserting an object. Any idea why? Thanks, -Sergey --- org.drools.RuntimeDroolsException Exception executing predicate [EMAIL PROTECTED] Stack Trace:

[rules-users] in 4.0.1 this required in nested accessors?

2007-09-04 Thread Manukyan, Sergey
Edson, Didn't receive reply on my previous post. Please take a look, below is the copy of the post: --- I started using 4.0.1, Regarding nested accessors, looks like they work, but they require to put this at the beginning. So rule when TestSupplier(testBusiness.statusActive ==

RE: [rules-users] in 4.0.1 this required in nested accessors?

2007-09-04 Thread Manukyan, Sergey
:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: Tuesday, September 04, 2007 2:44 PM To: Rules Users List Subject: [rules-users] in 4.0.1 this required in nested accessors? Edson, Didn't receive reply on my previous post. Please take a look, below is the copy of the post

RE: [rules-users] in 4.0.1 this required in nested accessors?

2007-09-04 Thread Manukyan, Sergey
'=' a typo? 2007/9/4, Manukyan, Sergey [EMAIL PROTECTED]: Also, Just found, In nested acessors the order has meaning? f.e. TestSupplier(this.testBusiness.statusActive == oldStatus) -- OK! TestSupplier(oldStatus = this.testBusiness.statusActive ) -- FAILED TO COMPILE! Bug ??? -Sergey

[rules-users] in 4.0.1 this required in nested accessors?

2007-08-31 Thread Manukyan, Sergey
Folks, I Started using 4.0.1, Regarding nested accessors, looks like they work, but they require to put this at the beginning. So rule when TestSupplier(testBusiness.statusActive == true) -- FAILS When TestSupplier(this.testBusiness.statusActive == true) -- OK! It fails with the following

[rules-users] logical chain

2007-08-30 Thread Manukyan, Sergey
Folks, Using 4.0.GA I need to have the following logical chain: Having facts F1(), F2(), F3(), F4() I need a rule to be fired when (F1() and F2()) or (F3() and F4()) condition is true, so made a rule: when (or (and F1() F2() )

RE: [rules-users] logical chain

2007-08-30 Thread Manukyan, Sergey
let us know... :) BTW, the 4.0.1 anounce shall come soon, but the artifacts are already there. []s Edson 2007/8/30, Manukyan, Sergey [EMAIL PROTECTED] : Folks, Using 4.0.GA I need to have the following logical chain: Having facts F1(), F2(), F3(), F4() I need a rule

RE: [rules-users] exists...

2007-08-27 Thread Manukyan, Sergey
, the difference between the rules is that expression in the first rule is being converted into an MVEL expression, because of the nested accessors, while the second is a pure drools expression. []s Edson 2007/8/25, Manukyan, Sergey [EMAIL PROTECTED]: Folks, Using 4.0 GA. Need

[rules-users] collect return random order

2007-08-27 Thread Manukyan, Sergey
Folks, When using collect on List of items with some filter (criteria), I need to have result in the same order as it was received: F.e. I have a list of suppliers : List() : Supplier(FIRST, Status.ACTIVE), Supplier(SECOND, Status.INACTIVE), Supplier(THIRD, Status.INACTIVE)

RE: [rules-users] collect return random order

2007-08-27 Thread Manukyan, Sergey
would become more and more like SQL SELECT statement. :) I think it is the right way. Some Stream Database also extends the SQL to do event aggregation and correlation. The same can be applied to Rule Engine too. Yang On 8/27/07, Manukyan, Sergey [EMAIL PROTECTED] wrote: Folks

[rules-users] exists...

2007-08-25 Thread Manukyan, Sergey
Folks, Using 4.0 GA. Need to have a rule that executes when there exists a Supplier with business status == active. I am inserting Supplier in working memory. I did that : rule #1 when exists( Supplier( businessStatus.status.isActive == true ) ) then

RE: [rules-users] Trouble upgrading to Drool 4.0

2007-08-24 Thread Manukyan, Sergey
Edson, Wrong link to documentation pointing to MR3 instead of GA is on this page : http://www.jboss.com/docs/index Stumbled on the same issue before as well.. -Sergey From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Edson

RE: [rules-users] Trouble upgrading to Drool 4.0

2007-08-24 Thread Manukyan, Sergey
Edson, Also one more wrong link is here : http://labs.jboss.com/jbossrules/docs/index.html Try the documentation link - gives 404 - Not found. error on the top and shows Drools Downloads links below. It is trying to access http://labs.jboss.com/drools/docs/index.html page...

RE: [rules-users] bug or feature not yet implemented

2007-08-10 Thread Manukyan, Sergey
) to simply write: S : Supplier( $sts : supplierBusinessStatus.businessStatus, $csts : corporateSupplier.supplierBusinessStatus.businessStatus != $sts ) []s Edson 2007/8/10, Manukyan, Sergey [EMAIL PROTECTED]: Folks, I found that drools

RE: [rules-users] bug or feature not yet implemented

2007-08-10 Thread Manukyan, Sergey
. []s Edson 2007/8/10, Manukyan, Sergey [EMAIL PROTECTED]: Thanks Edson for workaround, IMHO that looks like a limitation to me, is there a particular reason why left side should always be a field? -Sergey From: [EMAIL PROTECTED] [mailto

[rules-users] join array and object

2007-08-08 Thread Manukyan, Sergey
Folks, I have a Parent and Children, but need to do aggregate function on collection of Parent WITH Children, to find the minimum expiration date on them, how can I create in LHS expression a collection of Parent WITH Children? Like: rule ... when

[rules-users] on update

2007-08-02 Thread Manukyan, Sergey
Folks, I need a rule that will track changes to cost amount and do something with his old value. Like that : rule on updated cost write to archive old value when cost : Cost() old_cost : Cost(amount != cost.amount) // how can I specify the OLD cost

[rules-users] contains...

2007-07-25 Thread Manukyan, Sergey
Folks, I am using MR3, have a situation when Parent has multiple Children, and there is a rule that needs to be fired when parent has a child with certain attribute (active == true) Will need to do something like that : rule when $p : Parent( active == false, children

[rules-users] disable shadowing facts in MR3

2007-07-18 Thread Manukyan, Sergey
Folks, I need to disable shadowing for the facts, trying to use drools.shadowProxyExcludes property like this: --- final PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( DroolsTest2.class.getResourceAsStream(

RE: [rules-users] Unable to load dialect

2007-07-17 Thread Manukyan, Sergey
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor Sent: Monday, July 16, 2007 4:58 PM To: Rules Users List Subject: Re: [rules-users] Unable to load dialect no idea, please make a self contained test showing your error and upload to jira. Mark Manukyan, Sergey wrote: Ok, got

RE: [rules-users] class nameShadowProxy

2007-07-17 Thread Manukyan, Sergey
] class nameShadowProxy Sergey, ShadowProxy classes are not supposed to be visible outside the engine. What problem are you facing? []s Edson 2007/7/17, Manukyan, Sergey [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Folks, I am using MR3, my classes are being shadowed and I

RE: [rules-users] Unable to load dialect

2007-07-16 Thread Manukyan, Sergey
) at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java :147) Help! ;-) -Sergey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: Monday, July 16, 2007 2:03 PM To: Rules Users List Subject: [rules-users] Unable

[rules-users] negation for matches

2007-07-13 Thread Manukyan, Sergey
Folks, How can I negate the matches?, like for those that don't match certain criteria do that I tried something like this but it doesn't work: rule SupplierView: Supplier code's first two characters should be numeric. when $s : SupplierView(!(suppCode matches

[rules-users] how to create local variable

2007-07-12 Thread Manukyan, Sergey
Folks, I have a rule where I am repeating part of it twice : ($cs.getSuppCode().substring(4, 6)), and I would like to replace it with variable... how can I do that? The solution with in doesn't worl because it is a java code needed to perform calculations for variable. Please see the

RE: [rules-users] how to create local variable

2007-07-12 Thread Manukyan, Sergey
) then ValidationErrorFacade.getInstance().registerError($cs, new ValidationError(Headquarter Supplier Code should end on 25 or 30.)); end Hope it helps. []s Edson 2007/7/12, Manukyan, Sergey [EMAIL PROTECTED]: Folks, I have a rule where I am repeating part

RE: [rules-users] rule not valid...

2007-06-07 Thread Manukyan, Sergey
-users] rule not valid... You probably need a package definition at the top of the file. Please also import the SupplierView class in the rules drl file. You can also first test using the drools sample files. -Rahul --- Manukyan, Sergey [EMAIL PROTECTED] wrote: Folks, I am using

[rules-users] installing eclipse plugin for rules v. 4

2007-05-31 Thread Manukyan, Sergey
Folks, I have Rational Application Developer 7.0.0.2 , it uses Eclipse 3.2.2 Need to install JBoss rules Eclipse plugin v. 4 What is the best way to do it, and is it possible at all? I tried this URL: http://anonsvn.labs.jboss.com/labs/jbossrules/updates/drools-ide-update/ but it leads to

RE: [rules-users] installing eclipse plugin for rules v. 4

2007-05-31 Thread Manukyan, Sergey
that into your eclipse directory, you will also need to make sure that GEF is installed, see the wiki for more details. Mark Manukyan, Sergey wrote: Folks, I have Rational Application Developer 7.0.0.2 , it uses Eclipse 3.2.2 Need to install JBoss rules Eclipse plugin v. 4 What is the best way to do

RE: [rules-users] installing eclipse plugin for rules v. 4

2007-05-31 Thread Manukyan, Sergey
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Manukyan, Sergey Sent: 31 May 2007 16:31 To: Rules Users List Subject: RE: [rules-users] installing eclipse plugin for rules v. 4 Thanks Mike Mark, It helped! Here is what I did: 1. Downloaded http://download.jboss.org