Re: [rules-users] JPA process working in container?

2009-08-17 Thread Kris Verlaenen
Hi garrett, If there are issues with persistence in a specific setting, we will try to help you as much as possible. Any improvements are more than welcome. Comments inline below. Quoting Garrett Conaty garr...@conaty.net: Specifically: In SingleSessionCommandService a) the constructor

Re: [rules-users] questions on guvnor and drools 5.0

2009-08-17 Thread Libor Nenadál
After digging through the source code I realized that in the Test Scenario you can assign previously created instance to complex type using = prefix. So if you created object instance engineInstance, you can assign this instance to a car object instance using engine: =engineInstance (without the

[rules-users] Multiple approvals in a Drools Workflow

2009-08-17 Thread Pardeep . Ruhil
Hi, I have a scenario where I want three approval levels for a particular request. Like for eg. For the first time , a user login in and create a request, then we will invoke a workflow process in which we have 3 approvals to approve the request. At first time mail will be send to 1st approver

[rules-users] Unique events / facts in working memory

2009-08-17 Thread Justin King
I'm building an application that will over time record changes in a certain component (not at any set interval, could occur any time). The component can possibly be uniquely identified via some kind of id. Is there a way that when I insert an event / fact recording a change of state in this

[rules-users] when condition on multiple facts of the same type

2009-08-17 Thread Justin King
I'm trying to have a rule execute based on the following condition: ObligationComplianceEvent(term == term 1, obligation == obligation 1, level == 1) ObligationComplianceEvent(term == term 2, obligation == obligation 1, level == 1) I pass in two facts of type

Re: [rules-users] Drrols 5 Expert -- Sequential vs Inference

2009-08-17 Thread Vijay K Pandey
Can anyone comment on my questions? If you need any more information please let me know. Thanks Vijay From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Vijay K Pandey Sent: Saturday, August 15, 2009 2:52 PM To:

Re: [rules-users] Drrols 5 Expert -- Sequential vs Inference

2009-08-17 Thread Mark Proctor
Just stick with standard inference mode, until you reach a problem (which is unlikely), you only gain any real performance benefit from sequantiel mode for large numbers of facts and rules. Unless you rule authors have a problem deal with inference mode, then obviously you need to just use

Re: [rules-users] when condition on multiple facts of the same type

2009-08-17 Thread Greg Barton
Doesn't seem to be a problem. See attached project. --- On Mon, 8/17/09, Justin King justin.matthew.k...@gmail.com wrote: From: Justin King justin.matthew.k...@gmail.com Subject: [rules-users] when condition on multiple facts of the same type To: Rules Users List rules-users@lists.jboss.org

Re: [rules-users] Unique events / facts in working memory

2009-08-17 Thread Greg Barton
You need some comparable property in the singleton object that's monotonically increasing. Then you can have a rule like the following that must be of higher salience than the rules you want to protect from duplicate singletons. i.e.: rule EnforceOneSingleton when