Wolfgang...thanks for the replyI think?
I have been doing some more testing and have observed that the test case
will actually sometimes evaluate to true. Out of 10 runs, 2 succeeded and 8
failed. All I was doing was re-running the same test case over and over
again. The data is static and
I certainly do appreciate the help and fully understand no one here will be
able to give me a concrete solution without a test case. I was just hoping
that describing the behavior would jog something in someone's head which
would lead to a pointed question that may help steer me in the right
I just upgraded Drools from 5.0.1 to 5.1.1 and am facing failures in our
Junit tests after the upgrade (test worked in 5.0.1).
I have two rules that are mutually exclusive on the value of a particular
attribute. When debugging, this attribute has the expected value and the
first rule fires.
We are attempting to remote debug our rules in GlassFish v3 and none of our
rule breakpoints are bing hit? Is there any particular in container debug
configuration needed for this to work?
We are using Drools 5.0.1.
Thanks
--
View this message in context:
Thanks Mark, will try that.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Performance-monitoring-and-hotspot-detection-in-rules-tp1850756p1864068.html
Sent from the Drools - User mailing list archive at Nabble.com.
Mark,
Thanks for your reply. I figured 3 and 4 were currently possible but 1 and 2
puzzled me.
it interates from root to tip repeatedly, so you can't easily determine how
long it spends in each node
Sorry, looks like my prior statement (#2) was misleading. Actually, I don't
care so much about
I am trying to implement a performance monitor to find the most problematic
rules in order to optimize performance. The main performance metrics I want
to gather are:
1. How any times a rule's conditions have been evaluated
2. How long each rule's condition evaluation took
3. How many times a
We have a requirement to display data as stored (with the right casing) but
for evaluation purposes strings should be compared case in-sensitive. We
have several hundred rules touching these particular strings and would
really like to avoid doing eval( x != null x.equalsIngoreCase(y) )
Thanks guys, this could be a workable option. Will do some experimentation.
Thanks!
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/case-in-sensitive-string-comparison-tp1842677p1843097.html
Sent from the Drools - User mailing list archive at Nabble.com.
We have the potential for duplicate data and so we have some rules we wrote
to de-dupe things. We are attempting the check if we have two different
objects in memory but they equal each other by equals(). We have overridden
equal() and hashCode() in all our classes.
I came a cross two variations
I have a ruleflow with several rule task and a couple of sub-flows. I also
have many rules in a maintenance agenda group with auto-focus and salience
100 (highest of all my rules) without a ruleflow-group. The purpose of these
maintenance rules is to jump in anywhere across the ruleflow as needed
Pavel,
Thanks for the reply. However, if my change-set file and drl files are not
packed in the war/ear but located on the server's file system outside of the
app server then I do believe the JEE spec forces me to map an external
resource via JNDI? We want this because we need to frequently
This issue seems to be remedied by placing each flow in its own package. I
still don't know if this is a bug or a feature.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Wrong-flow-script-task-executes-when-multiple-flows-are-loaded-tp826751p830193.html
I am observing some strange behavior in drools 5.0.1 which behaved correctly
in 5.1.0-M1.
I have two different ruleflows defined, each with a script task at the
beginning fetching different types of data from DB. It seems that when both
flows are loaded by drools and I choose to execute the
OK...still running into this...
Is this a bug? Anyone from the drools team here?
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/NullPointerException-modify-tp818403p824515.html
Sent from the Drools - User mailing list archive at Nabble.com.
I resorted to rolling back our Drools version to 5.0.1 and the code works
without changes. So...guess this must be a bug with 5.1.0-M1.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/NullPointerException-modify-tp818403p824720.html
Sent from the Drools -
Hi,
I am getting a very puzzling NullPointerException when I call modify() on my
object in working memory. I have the following rule:
rule Assign awardable activity to default context
ruleflow-group select qualified activity
when
$context : ResultContext(
Oh...and I am using drools 5.1.0-M1...Jdk 1.6 rev 20
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/NullPointerException-modify-tp818403p818414.html
Sent from the Drools - User mailing list archive at Nabble.com.
OK...
Did some digging in drools source code and found this:
Line 151 in RightInputAdapterNode:
// retrieve handle from memory
final InternalFactHandle factHandle = (InternalFactHandle) memory.remove(
tuple );
Tuple value:
[fact 0:-1:0:1711615772:41:null]
[fact
OK...the following rules seems to work:
rule Assign awardable activity to default context
ruleflow-group select qualified activity
when
$context : ResultContext( activity != null
activity.qualifiedActivity == null )
Those maintenance rules possibly make other rules in my ruleflows re-evaluate
and I need to share them across my ruleflow because they are applicable
everywhere. In this particular case, I have a rule saying that if an error
status is flagged (different from exception), halt drools and return.
I have some maintenance/event rules in an auto-focus agenda group with a very
high salience. These rules are supposed to kick in ASAP whenever their
conditions become true. I have made sure their salience is the highest of
all rules in our repository and they are not attributed to any
I have about a dozen rules across various ruleflow groups orchestrated
through a ruleflow. I am trying to troubleshoot why a particular rule in a
downstream ruleflow group is not firing.
I see an activation created for this particular rule as facts are added to
working memory (by looking at the
I have a rule that compares a string with an enum value. I have thus written
my rules this way:
when
$var : SomeType( stringField == SomeEnum.ENUM.name )
then
...something
end
But I get the following error:
Unable to create restriction [QualifiedIndentifierRestr: ==
SomeEnum.ENUM.name]
I have
Thanks,
I tried this but I don't see my ruleflow group rules coming back and
re-processing once the high priority auto focus rules in my new
maintenance agenda group have executed. Do my rules in my ruleflow group
now also need an agenda group and auto-focus set to be re-evaluated?
--
View this
OK, this is weird, can someone explain the following behavior to me please:
I have two ruleflow groups (RFG1, RFG2), each rule within a ruleflow group
is assigned an agenda group with the same name as its ruleflow group (just
to keep namings consistent) and each rule has auto focus true.
I also
I have a number of business rules structured into ruleflow groups and a
ruleflow to determine the order of execution of these groups. At the same
time, I have a number of maintenance and utility rules that do side tasks
such as maintain counts or summations, detect error conditions etc. These
Kris,
Thanks but same error. I tried both the 5.1.0.M1 plug-in and the trunk
snapshot you gave me. Same error every time. I have also made sure my drools
runtime is 5.1.0.M1 jars.
--
View this message in context:
Hmm...your are right. I was using a stateless session. I switched to stateful
and things seem to work. Did I miss that in the docs somewhere?
Thanks so much
--
View this message in context:
http://n3.nabble.com/Unable-to-see-Rules-Debugging-info-in-Drools-IDE-tp73243p424221.html
Sent from the
Hey,
I am having the same problem. I have tried dubugging both as a Drools
Application and a Drools Unit Test and in either case, I get no agenda,
working memory or globals in the views even when I select an data item from
Variables view in the Debug perspective. I saw some posts recommending
Hi,
I have a unit test written which tests my rules. In my setup, I am loading
my drl and rf files via a changeset into an agent and getting my knowledge
base. The test then sets globals and facts on my stateful session and
execute my ruleflow. I can execute this unit test in JUnit and debug. My
Hey,
I have a use case where we need to retroactively process data using rules,
but with the rules that were effective at the time the data was created
(maybe a year ago), not at the time the data is run through the engine
(today). We are setting effective and expiration dates on our rules to
From the Guvnor manual:
1.3.1.1. Modules
There are 2 modules: drools-repository (back end) and drools-guvnor (front
end and rules integration). The drools-guvnor module depends on the
drools-repository module...
I think drools-repository is the component you are looking for here.
Is this link
33 matches
Mail list logo