Hallo,
I was wondering if it's possible to create a rule that can only be
activated once. So if at a certain point the LHS is matching, it will be
fired and deactivated immediately, so the rule never ever gets fired for
the object it has updated, no matter if the LHS will matches after a few
this is the fastest way. So can anyone please help me with this?
Thanks,
Waruzjan Shahbazian
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Hi,
I need to check in the LHS of my rule if a given String contains an
given substring. What is the best way to do that? I can use regular
expression with matches, but is that the best (fastest) solution?
(STRING matches (?i).*SUBSTRING.*). And can I use regulare expressions
capturing
.
Edson
2007/12/14, Waruzjan Shahbazian [EMAIL PROTECTED]:
Hi,
I need to check in the LHS of my rule if a given String contains an
given substring. What is the best way to do that? I can use regular
expression with matches, but is that the best (fastest) solution?
(STRING matches (?i).*SUBSTRING
change
to support them what may eventually break backward compatibility. Even with
that, I think it is an affordable cost to pay (fixing eventual breaks on
version updates) compared to your runtime application robustness.
[]s
Edson
2007/12/14, Waruzjan Shahbazian [EMAIL PROTECTED]:
Hi
( after you
successfully imported repository_export.xml ) . Than you can deploy the
package in brms and the test units should work fine.
Waruzjan Shahbazian schreef:
I am having the same problem. Has anyone got this working?
I have tried using mvel version 1.2.8 and 1.2.10 in the classpath
I am having the same problem. Has anyone got this working?
I have tried using mvel version 1.2.8 and 1.2.10 in the classpath of
drools-insurance ( where the jUnit tests are ) and by both the
serialVersionUID is different. So can anyone tell me which version of
mvel is needed to get this
I have the same problem, but eval(objectList == null) doesn't work. If
I don't execute drools.getWorkingMemory().setGlobal() it works fine,
as if the rule activates and the object is null.
global List objectList;
rule Start
salience 101
when
#conditions
then
objectList
that with globals. So you need to use the WM
facts.
Waruzjan Shahbazian-2 wrote:
I have the same problem, but eval(objectList == null) doesn't work. If
I don't execute drools.getWorkingMemory().setGlobal() it works fine,
as if the rule activates and the object is null.
global List objectList
ekke schreef:
manukyan,
I noticed a problem if the function has the same name as the package,
please rename your function and try again.
ekke
btw: please always open a new thread for a new topic
Manukyan, Sergey wrote:
Getting error reports by drools builder in 4.0.1 telling The method
Hi,
I have a question regarding the way of saving the values of some static
data, wich will be used by the drools engine to calculate the price for some
product. I will explain it with the following example:
I have an website where the user can fill a form where he can choose between
different
11 matches
Mail list logo