Hello,
trying as hard as I can, I am not able to do method calls within MVEL
modify block, as I can
do with Java block.
For example:
modify($p) { addDescription("aaa") }
This works in Java, but not in MVEL. I was not able to find out how to
call methods (not
set properties, which works quite w
Thank you very much for your response.
On Fri, Apr 11, 2008 at 3:06 PM, Edson Tirelli <[EMAIL PROTECTED]> wrote:
>
>
> http://downloads.jboss.com/drools/docs/4.0.4.17825.GA/html/index.html
>
> Section 1.2.
>
>
> 2008/4/11 Guptha S <[EMAIL PROTECTED]>:
>
>
> > I am currently using JBoss Rules 3.
http://downloads.jboss.com/drools/docs/4.0.4.17825.GA/html/index.html
Section 1.2.
2008/4/11 Guptha S <[EMAIL PROTECTED]>:
>
> I am currently using JBoss Rules 3.0.6. Do I need to go to Drools 4.0.4
> for
> full fledged features.
>
> I started my project 1 month back. If I need to use 4.0.4 ver
I am currently using JBoss Rules 3.0.6. Do I need to go to Drools 4.0.4 for
full fledged features.
I started my project 1 month back. If I need to use 4.0.4 version to the
existing project with 3.0.0 version, what are the things need to be done??
Thanks in Advance,
Guptha.
--
View this messag
Thank you very much for your earliest response. Its really grt help.
Swathi.
On Fri, Apr 11, 2008 at 1:18 PM, Sikkandar Nawabjan <
[EMAIL PROTECTED]> wrote:
> Yes it is quite possible provided that in the action part you need to set
> appropriate date that the other rule expect to trigger.
>
> ex
Yes it is quite possible provided that in the action part you need to set
appropriate date that the other rule expect to trigger.
ex:
rule 1
when
Object1(data1 == "s")
then
Object2.setBoolValue(true)
update()
rule 2
when
Can you please tell me whether the result of one rule can trigger the
evaluation of one or more other rules.
Is there any approach for doing so in Drools??
Thanks in Advance,
Swathi.
--
View this message in context:
http://www.nabble.com/Does-the-result-of-one-rule-can-trigger-the-evaluation-
Hi!
I'm using pattern matching on Java objects in the when part of my rules. One
example might be:
CommonDataObject($name : name matches ".*STATUS_D.._B..\.fsm.*", type ==
Type.STRING, $stringValue : stringValue != "OK" && stringValue != "UNKNOWN")
So you can see, that my Java object "CommonDat
Anstis, Michael (M.) wrote:
I *seem* to be able to still use "update" in the RHS with 4.0.5.
yes update has not been removed, it's still part of the main api. If we
removed it you would have no way to notify the engine of changes from
outside the engine, and I expect some people might be ups
I *seem* to be able to still use "update" in the RHS with 4.0.5.
Perhaps I've got my binaries mixed up. If I get the chance I'll do a clean
install.
Thanks for the clarification - I don't want to end up confusing matters with
my "help" ;-)
-Original Message-
From: [EMAIL PROTECTED]
[mail
There is an implicit KnowledgeHelper object called "drools" available in the
RHS.
drools.getRule().getName() will provide what you need.
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 11 April 2008 16:04
To: rules-users@lists.jboss.org
Subject
I am confident Drools supports what you are looking for; did you try
update() - or modify() - in the "then" part of the rule (and not in Java as
you code snippet)?
Can you explain more the need for the "computed" flag on the fact? Is the
value of a property set sometimes whilst calculated at othe
Is there an easy way to access information about the currently executing
rule (e.g. Name, salience, group) within a rule consequence? E.g.
rule "Sample Rule"
salience = 100
when
$v : Fact(name == "Test")
then
System.out.println("The currently executing rule is " +
.getName());
en
First, thank you for yours answers which are very clear. Your solution will
probably work. I'm just desapointed that there is no way to synchronized the
shadow with the object. That would be great for my work.
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date: Fri, 11 Apr 2
Swathi B wrote:
Hi All,
This is Swathi..this is my first post to the group.
Can any one tell me whether nested rules is possible in drools rules engine?
Example : Based on successful execution of one rule is there any way/means
to
execute another rule at a time.
The engine is fully recursiv
Hi All,
This is Swathi..this is my first post to the group.
Can any one tell me whether nested rules is possible in drools rules engine?
Example : Based on successful execution of one rule is there any way/means
to
execute another rule at a time.
Thanks in Advance,
Swathi.
--
View this messa
Do you need ruleflow? Perhaps this is too simple and I misunderstood.
package com.sample;
public class Test {
private Integer a;
private Integer b;
private Integer c;
public Integer getA() {
return a;
}
public Integer getB() {
return b;
}
Sylvain Gaudan wrote:
Hi,
I thought that inserted objects should be finalized by the GC once
a statefulsession is dropped by session.dispose(). However, this is
done only if I retract handles one by one (session.retract(it.next()))
using the method session.iterateFactHandles() and then
session.
Sylvain Gaudan wrote:
Hi all,
Is there a way to get, for each Bean Class, the list of fields
that are used in a rulebase in order to optimize the amount of data
loaded in a bean?
There is currently no official api for this. But if you look over
drools-verifier in trunk you can see how it
Indeed, it works but I will have to use such booleans for a lot of rules.
Cause my rule flow is schematically :
compute A
compute B(A)
compute C(B)
...
Perhaps I may create several ruleflows, one per independant computing?
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date:
Hi all,
Is there a way to get, for each Bean Class, the list of fields
that are used in a rulebase in order to optimize the amount of data
loaded in a bean?
Thank you for your help,
Sylvain
___
rules-users mailing list
rules-users@lists.jboss.org
h
X10 wrote:
Hi,
I take it the "modify()" that's in the manual got replaced by
"update()"?
The meanings have changed, but both exist to some degree. modify() is a
specail keyword used in the java/mvel consequence. Inside a consequence
it is the preferred way modify facts, so that the engine is
I've got 4.0.5 and it mentions insert, update and retract throughout the
manual.
There was an API change some versions ago, but I forget when exactly.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of X10
Sent: 11 April 2008 12:34
To: Rules Users List
Subje
Hi,
I take it the "modify()" that's in the manual got replaced by
"update()"?
Christine
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
I was thinking something more like this:-
package com.sample
import com.sample.Test
rule "rule 1 - 1"
salience 90
when
a : Test(
computed == "false",
c < 15,
d >= 75)
then
System.out.println("setting e to 0");
a.setE(0);
Ok, I think I understood well. I modified my business code, now I call if
(wm != null)
wm.update(wm.getFactHandle(this), this);
each time a properties is modified.
But it is worse. Rules that sould be activated only once actually loop, even if
I add the no-loop clause.
I understan
In essence, yes. Have a look at "update" in the manual (and a read on Shadow
Facts will probably be useful too).
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan
Guéhenneux
Sent: 11 April 2008 10:24
To: Rules Users List
Subject: RE: [rules-users] Synch Business O
Hi,
I thought that inserted objects should be finalized by the GC once
a statefulsession is dropped by session.dispose(). However, this is
done only if I retract handles one by one (session.retract(it.next()))
using the method session.iterateFactHandles() and then
session.dispose().
Is it wron
yes, i made a mistake. its a.setE(...) and not c.setE(...).
I don't call update. If I dont call update, properties of an object are just
read one time for all rules?
Subject: RE: [rules-users] Synch Business Object / Working Memory
Date: Fri, 11 Apr 2008 09:47:43 +0100
From: [EMAIL PROTECTED]
I guess the example is a simplification as "c" (in RHS) has not been bound
to a fact.
Anyway, that aside, do you call "update" to ensure WM knows of changes to
facts otherwise properties need to be "time-constant" which in your example
they are not.
_
From: [EMAIL PROTECTED]
[mailto:[E
Hi,
I have two rules :
rule "rule 1 - 1"
salience 90
ruleflow-group "rfg1"
when
a : A(
eComputed == "false",
c < 15,
d >= 75)
then
c.setE(0);
end
rule "rule 1 - 2"
salience 10
ruleflow-group "rfg1"
Sorry Guys,
It was my fault!
The "*not in*" sugar operator DOES WORK!!!
I had a problem with the decision table values...
So...never mind. No JIRAs for it.
Thank You anyway.
Massi
On Wed, Apr 9, 2008 at 2:49 PM, Edson Tirelli <[EMAIL PROTECTED]> wrote:
>
>No, I did not had this problem
32 matches
Mail list logo