Re: [rules-users] Different rule fires when debugging vs running after upgrading to 5.1.1

2011-01-19 Thread H.C.
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

Re: [rules-users] Different rule fires when debugging vs running after upgrading to 5.1.1

2011-01-19 Thread H.C.
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

[rules-users] Different rule fires when debugging vs running after upgrading to 5.1.1

2011-01-18 Thread H.C.
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.

[rules-users] Remote debug rules on GlassFish?

2010-11-15 Thread H.C.
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:

Re: [rules-users] Performance monitoring and hotspot detection in rules?

2010-11-08 Thread H.C.
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.

Re: [rules-users] Performance monitoring and hotspot detection in rules?

2010-11-07 Thread H.C.
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

[rules-users] Performance monitoring and hotspot detection in rules?

2010-11-05 Thread H.C.
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

[rules-users] case in-sensitive string comparison?

2010-11-04 Thread H.C.
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) )

Re: [rules-users] case in-sensitive string comparison?

2010-11-04 Thread H.C.
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.

[rules-users] Equality vs Equality

2010-11-01 Thread H.C.
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

[rules-users] Why are my auto focus agenda group rules with high salience not executed right away?

2010-10-04 Thread H.C.
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

Re: [rules-users] RuleAgents and containers

2010-07-23 Thread H.C.
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

Re: [rules-users] Wrong flow script task executes when multiple flows are loaded

2010-05-19 Thread H.C.
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

[rules-users] Wrong flow script task executes when multiple flows are loaded

2010-05-18 Thread H.C.
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

Re: [rules-users] NullPointerException @ modify()

2010-05-17 Thread H.C.
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.

Re: [rules-users] NullPointerException @ modify()

2010-05-17 Thread H.C.
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 -

[rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
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(

Re: [rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
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.

Re: [rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
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

Re: [rules-users] NullPointerException @ modify()

2010-05-14 Thread H.C.
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 )

Re: [rules-users] Rule salience vs salience of ruleflow executions?

2010-05-11 Thread H.C.
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.

[rules-users] Rule salience vs salience of ruleflow executions?

2010-05-10 Thread H.C.
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

[rules-users] Activated rule not firing eventhough was never cancelled

2010-03-25 Thread H.C.
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

[rules-users] Unable to create restriction [QualifiedIdentifierRest == Enum]

2010-03-14 Thread H.C.
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

Re: [rules-users] high sailence event/utility rules and ruleflows

2010-03-12 Thread H.C.
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

Re: [rules-users] high sailence event/utility rules and ruleflows

2010-03-12 Thread H.C.
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

[rules-users] high sailence event/utility rules and ruleflows

2010-03-11 Thread H.C.
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

Re: [rules-users] ClassCastException when debugging as a drools unit test with a ruleflow

2010-03-04 Thread H.C.
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:

Re: [rules-users] Unable to see Rules Debugging info in Drools IDE

2010-03-02 Thread H.C.
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

Re: [rules-users] Unable to see Rules Debugging info in Drools IDE

2010-03-01 Thread H.C.
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

[rules-users] ClassCastException when debugging as a drools unit test with a ruleflow

2010-03-01 Thread H.C.
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

[rules-users] How to use Drools 5 TimeMachine for controlling effective dates?

2010-02-19 Thread H.C.
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

Re: [rules-users] Application based rule management

2010-02-19 Thread H.C.
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