Re: [rules-users] Flow isn't behaving as I'd expect

2011-12-29 Thread Jamie
I don't think it has. The history of the Jira ticket referenced above shows it getting pushed along from one release to the next. I did come up with an alternative that works, although it's a bit clunkier. Check this thread out - hopefully it'll help you -

Re: [rules-users] Exclude certain rules

2011-11-18 Thread Jamie
We did something similar - we implemented a table-based mechanism for turning rules on and off. The business users have a UI that allows them to toggle the rules via a simple boolean value. These values are cached and refreshed on a regular basis. Rather than inserting that cache as a fact, I

Re: [rules-users] Exclude certain rules

2011-11-18 Thread Jamie
I don't think you can reference a fact in the enabled condition. There's also no way to get a reference to the current rule like you can in the RHS, which is why I had to hard code the name. Vincent, thanks for the comment out the inheritance. I think that would work well for icechunk. I had

Re: [rules-users] Preventing re-evaluation on modification of 'output' fact

2011-11-15 Thread Jamie
bump... Anyone have some thoughts on whether my revise approach makes sense? -- View this message in context: http://drools.46999.n3.nabble.com/Preventing-re-evaluation-on-modification-of-output-fact-tp3455022p3509609.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Preventing re-evaluation on modification of 'output' fact

2011-11-15 Thread Jamie
Thanks for the feedback. When we find the time to implement these changes, I'll report back and let you know how they turned out. -- View this message in context: http://drools.46999.n3.nabble.com/Preventing-re-evaluation-on-modification-of-output-fact-tp3455022p3510471.html Sent from the

Re: [rules-users] Preventing re-evaluation on modification of 'output' fact

2011-11-10 Thread Jamie
Thanks for the feedback. Wolfgang, that's a good thought, but we do need to do some re-evaluation along the way - just not as much as we're doing right now - so the 'dirty update' approach doesn't seem applicable here. Robert, your post got me thinking. If I'm interpreting what you're saying

Re: [rules-users] Preventing re-evaluation on modification of 'output' fact

2011-11-01 Thread Jamie
I've continued digging in this issue and I've learned a few more things: - Per a suggestion I received via the mailing list, I tried making the 'output' fact a global. This gave me an incredible performance boost - going from 10 mins to 100 ms! - BUT - making the output fact a global caused

[rules-users] Preventing re-evaluation on modification of 'output' fact

2011-10-26 Thread Jamie
We're building a fraud detection application that uses rules to analyze orders and the buyers and recipients on those orders. As rules fire, they modify an 'output' fact, which is an object whose only intent is to record the results as rules fire. It's not used in the LHS of any rules other than

Re: [rules-users] Regarding BPEL

2011-10-20 Thread Jamie
I'm not sure your answer directly addresses the question. BPMN and BPEL aren't the same thing - BPMN is an unstructured diagramming notation that an be directly executed from within Drools, where as BPEL is a semi-structured language. While most BPMN flows can be translated to BPEL, not

Re: [rules-users] Memory leak in 5.2/5.3

2011-10-05 Thread Jamie
I'm trying to remove the listeners myself as Edson suggests, but I can't figure out how to make it work. I added this to my code just to see how many listeners there were (I expected to see three - one for each of my flows - based on what I see in the heap dump): Collection listeners =

Re: [rules-users] Memory leak in 5.2/5.3

2011-10-05 Thread Jamie
Thanks for the reply, Alejandro. I'm currently using these jars: knowledge-api-5.2.0.Final.jar drools-core-5.2.0.Final.jar drools-compiler-5.2.0.Final.jar jbpm-flow-5.1.0.Final.jar jbpm-flow-builder-5.1.0.Final.jar jbpm-bpmn2-5.1.0.Final.jar I tried changing the three jbpm jars to

Re: [rules-users] Memory leak in 5.2/5.3

2011-10-05 Thread Jamie
Thanks, Mark. That's what I figured. Not sure why it worked for Alejandro, but I won't pursue that avenue anymore. As I mentioned earlier, I did try to upgrade to 5.3.0.CR1, but there's a new bug in that version that makes it unusable for me. (You've been involved in that thread as well). I'm

Re: [rules-users] 5.3.0 CR1 has broken existing rules/flows

2011-10-05 Thread Jamie
I've attached a simple stand-alone example to the ticket. -- View this message in context: http://drools.46999.n3.nabble.com/5-3-0-CR1-has-broken-existing-rules-flows-tp3390922p3398007.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] 5.3.0 CR1 has broken existing rules/flows

2011-10-04 Thread Jamie
Thanks for all of the feedback. I haven't tried W's handler, but I'm planning to. I did take Edson's advice and was able to get some more info. It appears to involve the interaction between 3 rules. For background, this is a fraud detection application. Under certain conditions, we need to

[rules-users] 5.3.0 CR1 has broken existing rules/flows

2011-10-03 Thread Jamie
-alone example. I know a stack trace probably won't tell you much, but I've included it below just in case. If anyone has any ideas, I'd love to hear them. If there's any additional information you think might help diagnose the problem, I'd be happy to provide it. Thanks, Jamie

Re: [rules-users] Memory leak in 5.2/5.3

2011-09-30 Thread Jamie
I recently ran into this issue and I've confirmed through testing that Drools 5.3.0.CR1 in conjunction with JBPM 5.1.1 Final fixes the problem. We're currently rolling our JVMs nightly to prevent out of memory errors, so I need to deploy this upgrade to production ASAP. Can anyone tell me what

Re: [rules-users] BPMN editor not working

2011-09-23 Thread Jamie
For me, the key was at the very end of my last post - the flow needs to have an ID. If it doesn't, the editor chokes when you re-open the file. -- View this message in context: http://drools.46999.n3.nabble.com/BPMN-editor-not-working-tp3182776p3361784.html Sent from the Drools: User forum

Re: [rules-users] Flow isn't behaving as I'd expect

2011-07-28 Thread Jamie
Bump... I really need some help with this issue - can anyone answer even some of my questions? If my problem or my questions aren't clear, let me know and I'll try to clarify. Thanks! -- View this message in context:

Re: [rules-users] Flow isn't behaving as I'd expect

2011-07-28 Thread Jamie
Fair enough - I'll try to work out a simplified test case that demonstrates the behavior. In the meantime, can someone answer a very basic rules/flow question for me? In my simple, linear test flow, if I cancel any activation, why don't any of the remaining nodes in the flow get triggered? --

Re: [rules-users] Rule not compiling in IDE after migration to 5.2

2011-07-28 Thread Jamie
Bump... Anyone have any thoughts on this? What's the mechanism for reporting a suspected bug? -- View this message in context: http://drools.46999.n3.nabble.com/Rule-not-compiling-in-IDE-after-migration-to-5-2-tp3183689p3207521.html Sent from the Drools: User forum mailing list archive at

[rules-users] Flow isn't behaving as I'd expect

2011-07-26 Thread Jamie
I'm having some issues with the interaction between Flow, ruleflow-groups and AgendaFilters. I've tried it with 5.1.1, 5.2.0 using .rf files and 5.2.0 using .bpmn files, all with the same results, so I'm sure I'm just misunderstanding something. I have a flow that looks like this:

Re: [rules-users] Rule not compiling in IDE after migration to 5.2

2011-07-20 Thread Jamie
Thanks for pointing that out, Wolfgang. I had stripped out some parentheses during some testing. We had them there in the 5.1.1 version. They don't seem to make a difference in 5.2.0 for the cases I've been working with. In an attempt to create something stand-alone that I could share in

[rules-users] BPMN editor not working

2011-07-19 Thread Jamie
I'm trying to move from Drools 5.1.1 to 5.2 and I'm reworking my .rf files into .bpmn files, but I've run into an issue - I use the wizard to create a new file like MainFlow.bpmn. After I create it, I open it using the BPMN2 process editor and all is well. However, if I add anything to the

Re: [rules-users] BPMN editor not working

2011-07-19 Thread Jamie
I found the log and the problem. Here's a snippet of the log: !ENTRY org.drools.eclipse 4 120 2011-07-19 11:04:57.102 !MESSAGE Internal error in Drools Plugin: !STACK 0 java.lang.NullPointerException at org.jbpm.bpmn2.xml.di.BPMNPlaneHandler.end(BPMNPlaneHandler.java:75) at

[rules-users] Rule not compiling in IDE after migration to 5.2

2011-07-19 Thread Jamie
This rule used to compile in the IDE under Drools 5.1.1: when $order: OrderFact(numberOfCreditCardDeclines FraudCCDeclines.find().getCreditCardDeclinesThreshold()) then //do something but it's breaking since I moved to 5.2, although it runs fine when I deploy it

Re: [rules-users] Rule not compiling in IDE after migration to 5.2

2011-07-19 Thread Jamie
I do mean Eclipse. What do you mean by 'vanilla DRL'? It does seem to compile and run correctly when I deploy it. -- View this message in context: http://drools.46999.n3.nabble.com/Rule-not-compiling-in-IDE-after-migration-to-5-2-tp3183689p3183863.html Sent from the Drools: User forum mailing

Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

2011-05-19 Thread Jamie
Thanks, Esteban. I'm going to need to do some testing. I'll post back my findings... -- Jamie From: Esteban [via Drools] [mailto:ml-node+2961373-771292982-397...@n3.nabble.com] Sent: Thursday, May 19, 2011 9:41 AM To: Jamie Shaw Subject: Re: [rules-users

Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

2011-05-17 Thread Jamie
Thanks Greg - that's what I was hoping. Just to confirm - I should be able to cache a KnowledgeBase created by a KnowledgeAgent with the 'drools.agent.newInstance' property set to 'false' without seeing any unexpected results if the KnowledgeBase gets refreshed by the agent. Given that, why

Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

2011-05-17 Thread Jamie
Thanks for pointing me to that thread, Wolfgang - very interesting discussion. It confirms my fear, at least for stateful sessions. Do you know if it's true for stateless sessions as well? -- View this message in context:

Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

2011-05-17 Thread Jamie
That's good news - thanks again! -- Jamie From: Wolfgang Laun-2 [via Drools] [mailto:ml-node+2952942-1245008499-397...@n3.nabble.com] Sent: Tuesday, May 17, 2011 11:41 AM To: Jamie Shaw Subject: Re: [rules-users] Effect of KnowledgeAgent reload on currently

[rules-users] Effect of KnowledgeAgent reload on currently running rules

2011-05-16 Thread Jamie Shaw
using the Drools 4.07 RulesAgent for caching RuleBases that needed to be automatically reloaded. It seems to be working as expected. I'm trying to update those classes to use Drools 5.1 classes instead. Thanks, Jamie ___ rules-users mailing list