Re: [rules-users] A relational SQL Database as RuleBase
It's just a question still now :) ... -- View this message in context: http://www.nabble.com/A-relational-SQL-Database-as-RuleBase-tp2383p23865137.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] A relational SQL Database as RuleBase
Perhaps, as Otter suggested, you provide a little more information about what you are trying to achieve? quote Rene, mhhm, what are your trying to do (besides storing rules in a rdbms)? What's the use-case? /quote -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of r.r.neum...@freenet.de Sent: 04 June 2009 08:32 To: rules-users@lists.jboss.org Subject: Re: [rules-users] A relational SQL Database as RuleBase It's just a question still now :) ... -- View this message in context: http://www.nabble.com/A-relational-SQL-Database-as-RuleBase-tp2383p2 3865137.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Using StatelessSession session
Hi, I have a number of services(threads) sharing the same RuleBase instance. Each service is calling execute method and waiting for the results. should each service call StatelessSession session = ruleBase.newStatelessSession() Or I can create one StatelessSession and share it between the services (probably will improve performance)? Meny ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] RE: questions on guvnor and drools 5.0
Sorry it's been a few days and I haven't gotten any response on any questions/statements below. I've used drools in the past but am pretty new to some features of drools still and new to Guvnor. I wrote a proof of concept drools/Guvnor app and these are the things I don't like or have questions around. I was wondering if other people have the same problems or am I going about things wrong? Are there work arounds or is there plans to expand/change functionality? Maybe I should ask the dev list? SG -Original Message- From: G, S Sent: Monday, June 01, 2009 3:28 PM To: 'rules-users@lists.jboss.org' Subject: questions on guvnor and drools 5.0 I was wondering if somebody can help me with some questions: 1) Is there any more detail on how to setup Guvnor with a database? 2) How do you use the test scenarios with complex object structures? -eg Create a fact in working memory that has another Object in it which in turn has a list of Objects in it. -Seems like any Fact in working memory is assumed to only have only primitive values like Strings or numbers. -We would like a more depth of objects where objects have a deep relationship to other objects at least 2-4 levels deep. 3) Why add ruleflow-group to the rule definition instead of adding the rule to a ruleflow-group? If the ruleflow-group is part of the rule then you can't use the same rule in multiple ruleflow-groups and leads to copy and maintaining the rule in two different spots. 4) DSL seems to be very inconvenient to edit in a text box especially when it wraps. Why not a table where you can add rows and each row is a translation. Also there are no examples how to do translation into Drools syntax that is multiple lines long and not just a single line. 5) Is Java 5 Type Enumerations supported? I was assuming I'd get a list of values if a field was an Enumeration. 6) There seems to be a vast functionality difference between the Guvnor decision tables and examples that use spreadsheets. 7) Guvnor lost the ability to select variables for use in other statements. Functionality was in BRMS of drools 4.0.7 8) I was not able to insert a fact using a constructor that needed parameter values. Seems like it assumes everything is a bean but I couldn't find this requirement stated in the documentation anywhere. Examples in documentation show inserting facts with constructor parameters. 9) It would be nice when you upload a domain model jar that you could explore the objects and fields somehow. 10) When you write a rule using one particular editor it would be nice if you could switch to another editor. Switch between Guided, DSL, Technical, etc. 11) It seems hard to reorder the statements in a when or then block. If I put them in the wrong order I have to delete them all. Would be nice if a statement could be moved up or down. 12) When calling a method on an object the choices only showed me public methods that take in one parameter. I had a method with two parameters and it wouldn't show me the method. I had to do a DSL or custom drools statement to get around it. 13) Guvnor seems to limit the drools syntax. I couldn't do a from $collection statement without a custom drools statement line. 14) It would be nice if I could declare a global dialect java for all the rules. 15) It would be nice to define an existing agenda-group as part of a ruleflow-group without adding the ruleflow-group on the rules in that agenda-group. Thanks, SG -Message Disclaimer- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to conn...@principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act (E-Sign) unless a specific statement to the contrary is included in this message. While this communication may be used to promote or market a transaction or an idea that is discussed in the publication, it is intended to provide general information about the subject matter covered and is provided with the understanding that The Principal is not rendering legal, accounting, or tax advice. It is not a marketed opinion and may not be used to avoid penalties under the Internal Revenue Code. You should consult with appropriate counsel or other advisors on all matters
Re: [rules-users] A relational SQL Database as RuleBase
To me it appears to be a very generic question that's hard to answer without serious mind-reading skills. Am 04.06.2009 um 09:31 schrieb r.r.neum...@freenet.de: It's just a question still now :) ... -- View this message in context: http://www.nabble.com/A-relational-SQL-Database-as-RuleBase-tp2383p23865137.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Is there a doc on Guvnor's JCR layout ?
Hie everyone. I'm trying to use Drools 5 with Guvnor. But I'm trying to create a simplified Guvnor-like application tied down to what my particular domain problem is. That is, I'm not going to author my rules myself. I'd rather let that to my end-user whose knowledge upon rules processing is even far from poor... Nevertheless, I'm willing to keep the JCR idea, and I'm striving to produce a repository 100% compatible with Guvnor so I can pick up here and then some functionalities out of Guvnor into my application in a straightforward way. I looked deeply into the Guvnor JCR as well as Guvnor src and I think I have a quite good understanding of what it does. But I don't want to miss anything that could break the compatibility. So is there a detailed documentation on the Guvnor JCR and if so where to grab it ? Thanks in advance for any hint ! -- View this message in context: http://www.nabble.com/Is-there-a-doc-on-Guvnor%27s-JCR-layout---tp23869937p23869937.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Using StatelessSession session
The Rulebase is thread safe, but individual sessions are not, regardless if it is a stateless or stateful. So your first suggestion, creating a new session for each call is correct. 2009/6/4 Meny Kobel meny.ko...@gmail.com Hi, I have a number of services(threads) sharing the same RuleBase instance. Each service is calling execute method and waiting for the results. should each service call StatelessSession session = ruleBase.newStatelessSession() Or I can create one StatelessSession and share it between the services (probably will improve performance)? Meny ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] RE: questions on guvnor and drools 5.0
Hi Shawn, I'm also currently evaluating Guvnor. I certainly don't have all the answers but maybe I can share what I have learned so far. I've put my comments below. Steve Ronderos rules-users-boun...@lists.jboss.org wrote on 06/04/2009 08:14:30 AM: [image removed] [rules-users] RE: questions on guvnor and drools 5.0 Garner, Shawn to: rules-users@lists.jboss.org 06/04/2009 08:19 AM Sent by: rules-users-boun...@lists.jboss.org Please respond to Rules Users List Sorry it's been a few days and I haven't gotten any response on any questions/statements below. I've used drools in the past but am pretty new to some features of drools still and new to Guvnor. I wrote a proof of concept drools/ Guvnor app and these are the things I don't like or have questions around. I was wondering if other people have the same problems or am I going about things wrong? Are there work arounds or is there plans to expand/change functionality? Maybe I should ask the dev list? SG -Original Message- From: G, S Sent: Monday, June 01, 2009 3:28 PM To: 'rules-users@lists.jboss.org' Subject: questions on guvnor and drools 5.0 I was wondering if somebody can help me with some questions: 1) Is there any more detail on how to setup Guvnor with a database? Guvnor uses Apache Jackrabbit for persistence. You can find a pretty good walk through on the Drools blog http://blog.athico.com/2008/08/tuning-guvnor.html. Additional information about configuring the repository can be found on the Apache Jackrabbit site. http://jackrabbit.apache.org/jackrabbit-configuration.html 2) How do you use the test scenarios with complex object structures? -eg Create a fact in working memory that has another Object in it which in turn has a list of Objects in it. -Seems like any Fact in working memory is assumed to only have only primitive values like Strings or numbers. -We would like a more depth of objects where objects have a deep relationship to other objects at least 2-4 levels deep. I'm not sure, haven't used that feature of Guvnor much yet. 3) Why add ruleflow-group to the rule definition instead of adding the rule to a ruleflow-group? If the ruleflow-group is part of the rule then you can't use the same rule in multiple ruleflow-groups and leads to copy and maintaining the rule in two different spots. Should probably ask the dev group this one. 4) DSL seems to be very inconvenient to edit in a text box especially when it wraps. Why not a table where you can add rows and each row is a translation. Also there are no examples how to do translation into Drools syntax that is multiple lines long and not just a single line. I haven't used DSLs much either yet. Maybe ask the dev group this one also. 5) Is Java 5 Type Enumerations supported? I was assuming I'd get a list of values if a field was an Enumeration. Not sure 6) There seems to be a vast functionality difference between the Guvnor decision tables and examples that use spreadsheets. I believe that Guvnor decision tables are not as full featured as the spreadsheet based version, but you can still upload spreadsheets to Guvnor as decision tables. 7) Guvnor lost the ability to select variables for use in other statements. Functionality was in BRMS of drools 4.0.7 I don't understand the question. Are you talking about assigning a pattern or an attribute in a pattern to a variable for use in another statement in the LHS or RHS? If so clicking on the fact type or field restriction that gives you that option. 8) I was not able to insert a fact using a constructor that needed parameter values. Seems like it assumes everything is a bean but I couldn't find this requirement stated in the documentation anywhere. Examples in documentation show inserting facts with constructor parameters. Are you talking about in the Guided Rules Editor? I haven't tried this, but it sounds like a bug. Maybe ask the dev team. 9) It would be nice when you upload a domain model jar that you could explore the objects and fields somehow. I agree, being able to traverse the model that you include would be nice. Maybe ask the dev team if there are plans for such a feature or create a request in the Guvnor JIRA. https://jira.jboss.org/jira/browse/JBRULES 10) When you write a rule using one particular editor it would be nice if you could switch to another editor. Switch between Guided, DSL, Technical, etc. Agreed. Some other posters on the email group have discussed this before. As it stands the different editors aren't equally as powerful. Some rules can not be represented in the Guided editor since it does not have anything capable of from (I think). Maybe ask the dev team about this and possibly create a feature request. 11) It seems hard to reorder the statements in a when or then block. If I put them in the wrong order I have to delete them
Re: [rules-users] Using StatelessSession session
Yes, David is correct. What I do in my Job is create a pool of WorkingMemories from the same RuleBase (we use StatefullSession) in order to increase the time of response. 2009/6/4 David Sinclair dsincl...@chariotsolutions.com The Rulebase is thread safe, but individual sessions are not, regardless if it is a stateless or stateful. So your first suggestion, creating a new session for each call is correct. 2009/6/4 Meny Kobel meny.ko...@gmail.com Hi, I have a number of services(threads) sharing the same RuleBase instance. Each service is calling execute method and waiting for the results. should each service call StatelessSession session = ruleBase.newStatelessSession() Or I can create one StatelessSession and share it between the services (probably will improve performance)? Meny ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Luis Enrique Silva Valdivieso Cel. 00 51 1 991546707 Casa 00 51 1 4476616 ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] A relational SQL Database as RuleBase
On Wed, Jun 3, 2009 at 10:21 PM, r.r.neum...@freenet.de r.r.neum...@freenet.de wrote: Hi guys, my question is listed in the topic. Is it possible? I read, that Drools 4 provides such a feature but in this case, there is noch DSL available? Is this correct? What's about Drools 5, same thing? Thanks for an answer! Regards René If you want to store the rules in a RDBMS in order to have them accessible from many sources and/or outside your application, you may want to consider using Guvnor to decouple the rule management from the main application code. Inside your app you can then download the rules which were created within Guvnor from a URL on the application server. Maybe that helps. Best regards Marcus ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] RE: questions on guvnor and drools 5.0
On 6/4/09, Garner, Shawn garner.sh...@principal.com wrote: 2) How do you use the test scenarios with complex object structures? -eg Create a fact in working memory that has another Object in it which in turn has a list of Objects in it. -Seems like any Fact in working memory is assumed to only have only primitive values like Strings or numbers. -We would like a more depth of objects where objects have a deep relationship to other objects at least 2-4 levels deep. Any object that is inserted as a fact may contain references to other objects, which, in turn, may contain references, and so on. The main thing to consider with complex object structures is, which of the objects should be inserted as facts. The distinction should be made according to whether an object's properties participate in rule patterns and whether this object will change during the (stateful) session. If so, make it a fact. Referring to object properties via one or more levels of dereferencing when using them in patterns won't be possible except in inline evals or eval patterns. Notice that LHS patterns may be written so that additional levels of objects are included in the reasoning, letting you access their non-reference fields in field constraints, e.g.: rule x when $p : Person( $name : name, $f : father ) Person( this == $f, name == Joe ) then // $name is a child of Joe end -W ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Help creating a GUI for an example
I have a few idle days starting this weekend. I have some (real-world) experience doing 2D graphics with AWT, so I might qualify ;-) Send me the specs, please, unless you are already crowded by applications. -W On 6/3/09, Edson Tirelli tire...@post.com wrote: Hey people, To achieve a list of short term goals related to Drools, I am implementing a fairly interesting new example using as many features from the Drools 5 platform as I see fit. Among other things, this example will serve as a basis for a few tutorials on the engine capabilities that I want to create. To keep the example accessible to everyone, and at the same time keeping things a bit more fun, I dropped the idea of developing a business application and decided to go with a board game implementation, so that at the same time it is easy enough for people to understand but complex enough to demonstrate the engine features. At this point, I have a bit more than 50 rules already implemented for this example, it uses drools flow, custom evaluators and custom accumulate functions. I will still add work items, DSL and fusion features. In the end, I estimate the example will have between 120 and 150 rules, what is pretty decent for an example, I think. Anyway, digressions aside, I could really use some help from someone willing to develop a GUI for it. The GUI is basically a diamond shaped board (or a square board with a 45 degrees rotation, if you prefer), 18 square pieces and 18 cards. I have images for most of the components, but you are free to create new if you fancy. The game will be played by 2 AI players, against each other, so there is no need for user commands on the game itself. Instead, the user should be able to control the game pace (i.e., see the game move-by-move, slow or fast-forward). The game already works from start to end, although players are still in the Artificial Dumbness state (they will move to Artificial Intelligence in the future). So, if anyone is willing to help, we can start plugging in the GUI asap. Please send me a private mail and I will send you the details. Thanks, Edson -- Edson Tirelli JBoss Drools Core Development JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] RE: questions on guvnor and drools 5.0
We have lists of objects and I was talking about how you do it with the test scenario in Guvnor. The fact is in working memory but I need to be able to create the object so it has a list of objects. Because the rule matches if it is in working memory and party of another object's list. So if I have a School and Children for example Then I write a rule that says if School and Child where child is a member of the School [when] $child : Child(readyForRegistration == true) $school : School($child memberof children) [then] $school.registerChild($child); [end] So in Guvnor I need to create a test scenario where School has a list of Children objects. But Guvnor only shows me a textfield so I assume it wants a value like Bob or 1. I don't see the option or an example how to create a Child fact with a name of Bob and readyForRegistration = true. Then another child with name of Nancy which readyForRegistration = false. Then I want to put them in both into a collection and create a new School object using the collection of Bob and Nancy. I can do this type of thing easily with a JUnit test creating and inserting facts into working memory. It would be nice if business users could write test scenarios just as easy with Guvnor. If you haven't checked out that part of Guvnor it might help if you take a peek. SG -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun Sent: Thursday, June 04, 2009 11:59 AM To: Rules Users List Subject: Re: [rules-users] RE: questions on guvnor and drools 5.0 On 6/4/09, Garner, Shawn garner.sh...@principal.com wrote: 2) How do you use the test scenarios with complex object structures? -eg Create a fact in working memory that has another Object in it which in turn has a list of Objects in it. -Seems like any Fact in working memory is assumed to only have only primitive values like Strings or numbers. -We would like a more depth of objects where objects have a deep relationship to other objects at least 2-4 levels deep. Any object that is inserted as a fact may contain references to other objects, which, in turn, may contain references, and so on. The main thing to consider with complex object structures is, which of the objects should be inserted as facts. The distinction should be made according to whether an object's properties participate in rule patterns and whether this object will change during the (stateful) session. If so, make it a fact. Referring to object properties via one or more levels of dereferencing when using them in patterns won't be possible except in inline evals or eval patterns. Notice that LHS patterns may be written so that additional levels of objects are included in the reasoning, letting you access their non-reference fields in field constraints, e.g.: rule x when $p : Person( $name : name, $f : father ) Person( this == $f, name == Joe ) then // $name is a child of Joe end -W ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -Message Disclaimer- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to conn...@principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act (E-Sign) unless a specific statement to the contrary is included in this message. While this communication may be used to promote or market a transaction or an idea that is discussed in the publication, it is intended to provide general information about the subject matter covered and is provided with the understanding that The Principal is not rendering legal, accounting, or tax advice. It is not a marketed opinion and may not be used to avoid penalties under the Internal Revenue Code. You should consult with appropriate counsel or other advisors on all matters pertaining to legal, tax, or accounting obligations and requirements. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Why are MVEL rules compiled on first access?
hi, Our application uses Drools 4.0.7 and Hibernate 3.x. We use the BRMS to compile the rules from drl files (using java dialect) into rule packages which are updated into the rule base using the rule agent. We have seen that MVEL rules are compiled when the rules are fired for the first time. If the fact passed at the first run contains a Hibernate proxy (subclass of the original object) and we later re-use the compiled rule on the fact containing the original object, we get a ClassCastException. However, if we pass the fact containing the original object in the first run, there is no problem for further runs. Why are the rules not compiled when we create the package using the BRMS? How can we enable precompilation so that the type is taken as the original object itself? Thanks, Sobhana -- View this message in context: http://www.nabble.com/Why-are-MVEL-rules-compiled-on-first-access--tp23874950p23874950.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Why are MVEL rules compiled on first access?
Sobhana, This is very important feedback. Would you be able to create an isolated test case showing this problem? This would be the quickest way for us to fix it. On a related note, everything should be compiled at compile time, including MVEL stuff. If that is not happening, we need to check what mvel is doing internally. Thanks, Edson 2009/6/4 Sobhana sobhanar...@yahoo.com hi, Our application uses Drools 4.0.7 and Hibernate 3.x. We use the BRMS to compile the rules from drl files (using java dialect) into rule packages which are updated into the rule base using the rule agent. We have seen that MVEL rules are compiled when the rules are fired for the first time. If the fact passed at the first run contains a Hibernate proxy (subclass of the original object) and we later re-use the compiled rule on the fact containing the original object, we get a ClassCastException. However, if we pass the fact containing the original object in the first run, there is no problem for further runs. Why are the rules not compiled when we create the package using the BRMS? How can we enable precompilation so that the type is taken as the original object itself? Thanks, Sobhana -- View this message in context: http://www.nabble.com/Why-are-MVEL-rules-compiled-on-first-access--tp23874950p23874950.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss, a division of Red Hat @ www.jboss.com ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Event wait constraint syntax
I am trying to figure out how to specify the constraint for Event wait. The rules flow diagram attached would be launched for each incoming request. The request is set in a process scope variable (reqIn). Each request has a *tag* associated with it. The event wait in question is waiting for a response event with the same tag value. How would I create a constraint rule to match this? I guess the bigger question here is, how do I access the process scope request variable in the constraint? Something like: RFQResponse (tag == reqIn.tag) PS: When I try this, I get an error: Unable to create restriction '[QualifiedIndentifierRestr: == reqIn.tag ]' for field 'tag' in the rule 'RuleFlow-Milestone-com.rbs.gbm.pm.RFQ-WorkFlow-21' : [Rule name='RuleFlow-Milestone-com.rbs.gbm.pm.RFQ-WorkFlow-21'] Any help / pointers would be highly appreciated. Thanks Ajay Gautam *Please note that my email address may have changed. For all future correspondence, please use this address* This message (including any attachments) is confidential and/or privileged. It is to be used by the intended recipients only. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are inherently insecure and susceptible to change. The Royal Bank of Scotland Group, plc (RBS) and its US subsidiaries, and affiliates and subsidiary undertakings, including but not limited to, RBS plc New York and Connecticut Branches, RBS Securities Inc., ABN AMRO Bank N.V. New York and Chicago Branches and, ABN AMRO Incorporated, Citizens Financial Group, Inc. and RBS Citizens, N.A., shall not be liable for the improper or incomplete transmission of the information contained in this communication or Attachment nor for any delay in its receipt or damage to your system. RBS does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. RBS and its subsidiaries and affiliates do not guarantee the accuracy of any email or attachment, that an email will be received or that RBS or its affiliates and subsidiaries will respond to an email. RBS makes no representations that any information contained in this message (including any attachments) are appropriate for use in all locations or that transactions, securities, products, instruments or services discussed herein are available or appropriate for sale or use in all jurisdictions, or by all investors or counterparties. Those who utilize this information do so on their own initiative and are responsible for compliance with applicable local laws or regulations.attachment: RFQ-WorkFlow.png___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Why are MVEL rules compiled on first access?
If I recall correctly the HashMap churn issue I pointed out with mvel on the dev list was due to mvel expressions being repeatedly compiled. I'll have to double check, but if that's the case and it can be avoided it would be awesome. :) --- On Thu, 6/4/09, Edson Tirelli tire...@post.com wrote: From: Edson Tirelli tire...@post.com Subject: Re: [rules-users] Why are MVEL rules compiled on first access? To: Rules Users List rules-users@lists.jboss.org Date: Thursday, June 4, 2009, 1:40 PM Sobhana, This is very important feedback. Would you be able to create an isolated test case showing this problem? This would be the quickest way for us to fix it. On a related note, everything should be compiled at compile time, including MVEL stuff. If that is not happening, we need to check what mvel is doing internally. Thanks, Edson 2009/6/4 Sobhana sobhanar...@yahoo.com hi, Our application uses Drools 4.0.7 and Hibernate 3.x. We use the BRMS to compile the rules from drl files (using java dialect) into rule packages which are updated into the rule base using the rule agent. We have seen that MVEL rules are compiled when the rules are fired for the first time. If the fact passed at the first run contains a Hibernate proxy (subclass of the original object) and we later re-use the compiled rule on the fact containing the original object, we get a ClassCastException. However, if we pass the fact containing the original object in the first run, there is no problem for further runs. Why are the rules not compiled when we create the package using the BRMS? How can we enable precompilation so that the type is taken as the original object itself? Thanks, Sobhana -- View this message in context: http://www.nabble.com/Why-are-MVEL-rules-compiled-on-first-access--tp23874950p23874950.html Sent from the drools - user mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Edson Tirelli JBoss Drools Core Development JBoss, a division of Red Hat @ www.jboss.com -Inline Attachment Follows- ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Default rule
Anyone knows if it is possible to have a `default` rule that would fire only if others have not? Also, is there a way, using decision tables in XLS, to look if the value of a field is contained in a list elsewhere in the XLS? Thanks André ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Default rule
How about if you create a rule with lowest salience, this will fire _after_ all other rules have fired. Would this help? Am 04.06.2009 um 22:17 schrieb Malenfant, Andre: Anyone knows if it is possible to have a `default` rule that would fire only if others have not? Also, is there a way, using decision tables in XLS, to look if the value of a field is contained in a list elsewhere in the XLS? Thanks André ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] Default rule
Yes, but I will have to have a condition in that rule to prevent it from firing if others have. I will have to alter my data model to detect that situation. I can fix my problem using the salience parameter but I was wondering if there is was a built-in mechanism for that purpose. I will try with the salience method Thanks -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ingomar Otter Sent: Thursday, June 04, 2009 4:28 PM To: Rules Users List Subject: Re: [rules-users] Default rule How about if you create a rule with lowest salience, this will fire _after_ all other rules have fired. Would this help? Am 04.06.2009 um 22:17 schrieb Malenfant, Andre: Anyone knows if it is possible to have a `default` rule that would fire only if others have not? Also, is there a way, using decision tables in XLS, to look if the value of a field is contained in a list elsewhere in the XLS? Thanks André ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Timer does not return!
I have a timer in my code that does not return. It just hangs the process (with no CPU activity). Any idea what may be causing this? The timer delay is 2000 ms. Based on the docs, here are code snippets: ... ksession = kbase.newStatefulKnowledgeSession(); new Thread(new Runnable() { public void run() { ksession.fireUntilHalt(); } }).start(); final RFQRequest req = createRequest(); parameters.put(rfqIn, req); ksession.setGlobal(reqTag, req.getTag()); ksession.startProcess(com.rbs.gbm.pm.RFQ-WorkFlow, parameters); If I remove the fireUntilHalt thread, the timer is not triggered at all. The flow just passes through it lilke its not even there. Any help / info / pointers will be appreciated. Thanks Ajay *Please note that my email address may have changed. For all future correspondence, please use this address* This message (including any attachments) is confidential and/or privileged. It is to be used by the intended recipients only. If you have received it by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. Please note that e-mails are inherently insecure and susceptible to change. The Royal Bank of Scotland Group, plc (RBS) and its US subsidiaries, and affiliates and subsidiary undertakings, including but not limited to, RBS plc New York and Connecticut Branches, RBS Securities Inc., ABN AMRO Bank N.V. New York and Chicago Branches and, ABN AMRO Incorporated, Citizens Financial Group, Inc. and RBS Citizens, N.A., shall not be liable for the improper or incomplete transmission of the information contained in this communication or Attachment nor for any delay in its receipt or damage to your system. RBS does not guarantee that the integrity of this communication has been maintained nor that this communication is free of viruses, interceptions or interference. RBS and its subsidiaries and affiliates do not guarantee the accuracy of any email or attachment, that an email will be received or that RBS or its affiliates and subsidiaries will respond to an email. RBS makes no representations that any information contained in this message (including any attachments) are appropriate for use in all locations or that transactions, securities, products, instruments or services discussed herein are available or appropriate for sale or use in all jurisdictions, or by all investors or counterparties. Those who utilize this information do so on their own initiative and are responsible for compliance with applicable local laws or regulations. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] Default rule
The ruleflow-group and the State Example from the documentation may be what you're looking for. SG -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Malenfant, Andre Sent: Thursday, June 04, 2009 3:47 PM To: Rules Users List Subject: RE: [rules-users] Default rule Yes, but I will have to have a condition in that rule to prevent it from firing if others have. I will have to alter my data model to detect that situation. I can fix my problem using the salience parameter but I was wondering if there is was a built-in mechanism for that purpose. I will try with the salience method Thanks -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ingomar Otter Sent: Thursday, June 04, 2009 4:28 PM To: Rules Users List Subject: Re: [rules-users] Default rule How about if you create a rule with lowest salience, this will fire _after_ all other rules have fired. Would this help? Am 04.06.2009 um 22:17 schrieb Malenfant, Andre: Anyone knows if it is possible to have a `default` rule that would fire only if others have not? Also, is there a way, using decision tables in XLS, to look if the value of a field is contained in a list elsewhere in the XLS? Thanks André ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -Message Disclaimer- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to conn...@principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act (E-Sign) unless a specific statement to the contrary is included in this message. While this communication may be used to promote or market a transaction or an idea that is discussed in the publication, it is intended to provide general information about the subject matter covered and is provided with the understanding that The Principal is not rendering legal, accounting, or tax advice. It is not a marketed opinion and may not be used to avoid penalties under the Internal Revenue Code. You should consult with appropriate counsel or other advisors on all matters pertaining to legal, tax, or accounting obligations and requirements. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
RE: [rules-users] Default rule
Thanks a lot, I am starting to see how I can use that... -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Garner, Shawn Sent: Thursday, June 04, 2009 5:12 PM To: Rules Users List Subject: RE: [rules-users] Default rule The ruleflow-group and the State Example from the documentation may be what you're looking for. SG -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Malenfant, Andre Sent: Thursday, June 04, 2009 3:47 PM To: Rules Users List Subject: RE: [rules-users] Default rule Yes, but I will have to have a condition in that rule to prevent it from firing if others have. I will have to alter my data model to detect that situation. I can fix my problem using the salience parameter but I was wondering if there is was a built-in mechanism for that purpose. I will try with the salience method Thanks -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ingomar Otter Sent: Thursday, June 04, 2009 4:28 PM To: Rules Users List Subject: Re: [rules-users] Default rule How about if you create a rule with lowest salience, this will fire _after_ all other rules have fired. Would this help? Am 04.06.2009 um 22:17 schrieb Malenfant, Andre: Anyone knows if it is possible to have a `default` rule that would fire only if others have not? Also, is there a way, using decision tables in XLS, to look if the value of a field is contained in a list elsewhere in the XLS? Thanks André ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -Message Disclaimer- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to conn...@principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act (E-Sign) unless a specific statement to the contrary is included in this message. While this communication may be used to promote or market a transaction or an idea that is discussed in the publication, it is intended to provide general information about the subject matter covered and is provided with the understanding that The Principal is not rendering legal, accounting, or tax advice. It is not a marketed opinion and may not be used to avoid penalties under the Internal Revenue Code. You should consult with appropriate counsel or other advisors on all matters pertaining to legal, tax, or accounting obligations and requirements. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users