[rules-users] Drools-Guvnor doubt regarding firing of rules

2010-07-28 Thread Pardeep Ruhil
Hi All, I have a doubt regarding drools-guvnor, as I am going to use Drools-Guvnor and integrate it with my application. 1. Can I make two rules with the same name having different date-expires attributes. Like depending upon the date the corresponding rule fires. rule "discount" date

Re: [rules-users] Drools Gunvor and Oryx integration

2010-07-28 Thread Mark Proctor
On 29/07/2010 04:05, Han Ming Low wrote: Hi, Just for information. In order for the Oryx integration to work, you need to install the oryx designer available from http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/designer/ I would add that the .war is provided by the Antoine Toulme,

[rules-users] Help : Enabling Role Base Authorization in Guvnor

2010-07-28 Thread Han Ming Low
Hi all, I try to enable the Role Base Authorization in Guvnor after it was running fine with the default login mechanism. But, encountered some problem with the attempt. What I did was that in the components.xml, - commented out the default - uncomment the - change the role base authorization t

Re: [rules-users] Drools Gunvor and Oryx integration

2010-07-28 Thread Han Ming Low
Hi, Just for information. In order for the Oryx integration to work, you need to install the oryx designer available from http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/designer/ Install the designer.war into JBoss and make sure you can access it from localhost:8080/designer Then,

Re: [rules-users] CEP Stream Mode

2010-07-28 Thread Jean-Philippe Steinmetz
Hello again! It's been a while since I could tackle this problem but I'm back at it. I've got the engine up and running and I'm able to insert event facts at specific entry points. Drools is outputting an "OBJECT ASSERTED" in the logs when this happens so this appears to be working correctl

Re: [rules-users] 5.1.0 CR1: Drools Spring Configuration Changed?

2010-07-28 Thread Mark Proctor
use the kstore element. You already have the various jpa settings in spring as beans. So you can retrieve those and pass them as parameters to the kstore in java code; which follows exactly the same interface as JPAKnowledgeService. Mark On 28/07/2010 15:41, tolitius wrote: > 1. If there is n

Re: [rules-users] Using from with named queries

2010-07-28 Thread rouvas
Wolfang, Wolfgang Laun wrote: > Don't be too keen on using "from" in connection with queries. The simple > reason is that queries return nothing but what rules can do just as well. > > Thus, getting all pairs of Person's and Restaurant's with matching "food" > and "zipcode", the straightforward LH

Re: [rules-users] Drools-Spring Schema location changed ????

2010-07-28 Thread drooRam
drools-spring.xsd is in the eclipse classpath... am facing the same problem like "Referenced file contains errors (http://drools.org/schema/drools-spring.xsd). For more information, right click on the message in the Problems View and select "Show Details..." The above error is stopping me to in

Re: [rules-users] Using from with named queries

2010-07-28 Thread Wolfgang Laun
Don't be too keen on using "from" in connection with queries. The simple reason is that queries return nothing but what rules can do just as well. Thus, getting all pairs of Person's and Restaurant's with matching "food" and "zipcode", the straightforward LHS would be p:Person( $favFood : favou

Re: [rules-users] Drools Objects not released from heap

2010-07-28 Thread Edson Tirelli
Dan, I am not aware of any memory leak in CR1. If you can provide me with a test case I will investigate this today. Please open a JIRA, attach your test case and let me know. If there is a leak, I need to fix it before final release. And it is not a problem to instantiate object

[rules-users] Drools Objects not released from heap

2010-07-28 Thread dmiller44
Hello, I have a weird issue, and I'm trying to figure out if this is a bug I should report, or an error in my rule. I'm running an application with a heap space (min: 512mb, max: 1024mb) that gets full and eventually overflows relatively quickly (12hrs or less). We insert about 112 records int

[rules-users] Using Drools for Business Rules Validation

2010-07-28 Thread pm-lemos
Hi everybody, I've started reading about Drools and I quite didn't understand if it's appropriate for a work I want to do... I'm posting this in order to get some feedback about what other people may think about it. So heres what I need: I need to develop some sort of application (A) to be used

Re: [rules-users] 401 error when attempting to get PKG for changeset.

2010-07-28 Thread Tihomir Surdilovic
These attributes were added in M1 or M2 so yes, need to update. On 7/28/10 10:54 AM, Stephen Mcgruer wrote: > Kris, > > Thanks for the post, but I have tried something like that: > >xmlns:xs='http://www.w3.org/2001/XMLSchema-instance' > xs:schemaLocation='http://drool

[rules-users] How to compare java.sql.Dates in a Drools 'when'

2010-07-28 Thread Stephen Mcgruer
Hi there, Sorry for so many questions today. How would one compare dates in a Drools when/then rule? I have an object, Tool, that has a last used field which is a java.sql.Date (yes, this is a fairly bad type for it to be. Long story.). I want to write a rule to check if there is a Tool th

Re: [rules-users] 401 error when attempting to get PKG for changeset.

2010-07-28 Thread Stephen Mcgruer
Kris, Thanks for the post, but I have tried something like that: And unfortunately this didn't work! D= Sudden thought - I am running the old Drools jar files - 5.0.1. Would these need to be updated to work with Guvnor 5.1? Stephen Quoting Kris Verla

Re: [rules-users] Drools-Spring Schema location changed ????

2010-07-28 Thread drooRam
drools-spring.xsd is in the eclipse classpath... am facing the same problem like "Referenced file contains errors (http://drools.org/schema/drools-spring.xsd). For more information, right click on the message in the Problems View and select "Show Details..." The above error is stopping me to i

Re: [rules-users] 5.1.0 CR1: Drools Spring Configuration Changed?

2010-07-28 Thread tolitius
1. If there is no answer for this, I will resurrect "JPAKnowledgeServiceBean", cause it is actually one place to deal with creating / reloading Sessions + it has a good simple APIs: createNew...() load...( id ) hence makes sense. 2. Under the covers it'll have to probably use

[rules-users] Drools Gunvor and Oryx integration

2010-07-28 Thread Patricia Bogoevici
Hi all, I found a preview of the Guvnor /Oryx integration here (http://blog.athico.com/2010/06/browser-based-bpmn2-authoring-in-drools.html). I tried Drools Guvnor 5.1.0.CR1, but there is nothing about this integration, one can only view the flow diagram. Can any of you tell when the integrat

[rules-users] Using from with named queries

2010-07-28 Thread rouvas
Hello list, I'm using Drools.5.0.1 and I am trying to comprehend how to used the "from" keyword over a named query. I've googled this: http://blog.athico.com/2007/06/chained-from-accumulate-collect.html where it states: p : Person( ) Restaurant( food == p.favouriteFood ) from

Re: [rules-users] How do I totally clear out an installation of Guvnor (Tomcat 6.0)

2010-07-28 Thread Stephen Mcgruer
Thanks Esteban and Jervis, that worked. Just in case it's important, the repository file and directory were actually in the $TOMCAT_HOME folder, not under bin. Cheers, Stephen Quoting Esteban Aliverti : > Go to $TOMCAT_HOME/bin and remove *repository.xml* file and > *respository*directory. >

Re: [rules-users] How do I totally clear out an installation of Guvnor (Tomcat 6.0)

2010-07-28 Thread Esteban Aliverti
Go to $TOMCAT_HOME/bin and remove *repository.xml* file and *respository*directory. Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Wed, Jul 28, 2010 at 7:51 AM, Jervis Liu wrote: > Stephen Mcgr

Re: [rules-users] Guvnor BRL format

2010-07-28 Thread wilsonywx
I see. My uses will be a lot simpler since I will only use the Drools Expert subset of the rules engine. What I am doing now is to come up with some classes to represent a rule and its components, then come up with an xml schema to represent that. We are using C# for the front end where the users

Re: [rules-users] 401 error when attempting to get PKG for changeset.

2010-07-28 Thread Kris Verlaenen
Stephen, Something like this: Kris - Original Message - From: "Stephen Mcgruer" To: Sent: Wednesday, July 28, 2010 1:09 PM Subject: [rules-users] 401 error when attempting to get PKG for changeset. >I have the following changeset: > > xmlns:xs='http:/

Re: [rules-users] 401 error when attempting to get PKG for changeset.

2010-07-28 Thread Stephen Mcgruer
As an update, I found this post - http://comments.gmane.org/gmane.comp.java.drools.user/20163 - and so I tried: Doesn't work. Same 401 error as before. Stephen Quoting Stephen Mcgruer : > I have the following changeset: > > xmlns:xs='http:

[rules-users] 401 error when attempting to get PKG for changeset.

2010-07-28 Thread Stephen Mcgruer
I have the following changeset: I just updated to the RC of Guvnor, and my PKG address now demands a username and password when I try and access it. Anything works, which is fine, but how do I edit the changeset so that it gives the details? At the mome

Re: [rules-users] How do I totally clear out an installation of Guvnor (Tomcat 6.0)

2010-07-28 Thread Jervis Liu
Stephen Mcgruer wrote: > Hi there, > > I'm migrating to Guvnor RC atm, and was wanting to completely clear > out my Guvnor Packages files before I did so - I wanted everything > gone. I thought that all information was stored in the Guvnor folder > created in Tomcat/webapps, so I deleted that

Re: [rules-users] General rules in spreadsheet.

2010-07-28 Thread tom ska
Thomas, as far as I understood, I don't have to use update(p), to update it :) After using update method, there is infinite loop in my rules (I am talking about DRL). # this method doesn't change CProduct object rule "Case A" salience 1 activation-group "g1" when p : CProduct( name ==

[rules-users] How do I totally clear out an installation of Guvnor (Tomcat 6.0)

2010-07-28 Thread Stephen Mcgruer
Hi there, I'm migrating to Guvnor RC atm, and was wanting to completely clear out my Guvnor Packages files before I did so - I wanted everything gone. I thought that all information was stored in the Guvnor folder created in Tomcat/webapps, so I deleted that, restarted the server and dragg

Re: [rules-users] General rules in spreadsheet.

2010-07-28 Thread Swindells, Thomas
There are two other solutions if you do need the p: 1. Change your condition to be "name matches $param", this will match as a regular expressions. Your general case can then be ".*". 2. Merge your p:CProduct across two columns. Have a condition of "this != $param" for the first co

Re: [rules-users] fireAllRules performance

2010-07-28 Thread Wolfgang Laun
I think that Sean worries about the overhead of n*1000 calls to fireAllRules, as opposed to a single call. Also, a different heap usage/GC pattern could impact timing. A potential benefit of the second approach would be that results from first firings are available sooner than with the 1st approac

Re: [rules-users] General rules in spreadsheet.

2010-07-28 Thread tom ska
Hello, well, You are right, but what if I want to use object's method in ACTION section like this: CONDITION ACTION ACTIVATION-GROUP PRIORITYp:CProduct name System.out.println(p.getName() + " " + "$param"); Rules names Product name what to print Case A A Special A G1 1 C

Re: [rules-users] Exception when use Human Task

2010-07-28 Thread Han Ming Low
Hi, The create table statement is generated by hibernate, so you won't see a sql script file for it. With the hbm2ddl.auto set to create, it will means that hibernate auto create the table for you if it's not there. The table structure should closely match the hbm.xml file or whichever class that

Re: [rules-users] Guvnor BRL format

2010-07-28 Thread Sreenath
We are trying to build a Guvnor like application which is a super set in terms of functionality.We have couple of home grown rule engines and all of them represent the rules in a different format (they are all represented in XML format but every one has their own XSDs). Now we are trying to come

Re: [rules-users] StackOverflowError when serializing KnowledgeBase

2010-07-28 Thread Mark Proctor
On 27/07/2010 22:36, Andargor wrote: > Second try, sorry for spamming. Does anyone have an idea why serialization of > a large knowledge base fails with a stack error? It's to do with Java's poor ability to serialise linked lists: https://jira.jboss.org/browse/JBRULES-2335 https://jira.jboss.org

Re: [rules-users] fireAllRules performance

2010-07-28 Thread Mauricio Salatino
fireAllRules will only fire all the rules that where activated during the insertion phase. So basically when you call it at the end, it will only fire all those rules activated. If you insert a fact that doesn't activate any rule you don't need to call fire all rules. On Tue, Jul 27, 2010 at 1:54

Re: [rules-users] FW: Drools 5.1.0.M2 - WorkItemNodeInstance --Listeners can't get hold of WorkItem object

2010-07-28 Thread Vijay K Pandey
Thanks Kris. Will take a look at it. Earlier I was thinking to get the CR1 release but will take the latest trunk. Vijay From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Kris Verlaenen Sent: Tuesday, July 27, 2010 8:27 AM To: Rules Users List S

Re: [rules-users] General rules in spreadsheet.

2010-07-28 Thread Mauricio Salatino
you can remove p, because in the spreadsheet you are not using it.. in the rules you use p to print the type of the product but in the spreadsheet you are hardcoding the value in the "what to print" column 2010/7/27 tom ska > Hello, > I want to use StatelessSession with spreadsheet. I wrote few