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
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.
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
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
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
, 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
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.
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
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
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
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
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
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
:[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
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
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 =
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
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
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
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
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
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:
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 ==
:[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
'=' 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
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
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() )
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
, 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
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)
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
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
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
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...
) 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
.
[]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
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
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
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
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(
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
] 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
)
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
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
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
)
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
-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
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
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
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
50 matches
Mail list logo