Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-20 Thread Toshiya Kobayashi
Thanks Michael and Mark. > If the member has a getter it is available in the LHS (=Guided Rule Editor > lists it in "Modify constraints" popup) Got it. I see it's true with a basic uploaded Pojo. But, hmm, in my case, it's not. If I annotate the Pojo in "New Declarable Model", the getter-only-m

[rules-users] Drools 5.4.0.Beta1 released

2011-12-20 Thread Toni Rikkola
Drools 5.4.0.Beta1 released (Expert, Fusion, Planner, Guvnor) New and Noteworthy: http://docs.jboss.org/drools/release/5.4.0.Beta1/droolsjbpm-introduction-docs/html/releaseNotesBeta1.html Download and info: http://blog.athico.com/2011/12/drools-540beta1-released.html Toni Rikkola_

[rules-users] Working memory batch insert performance

2011-12-20 Thread Zhuo Li
Hi, folks, I recently did a benchmark on Drools 5.1.2 and noticed that data insert into a stateful session is very time consuming. It took me about 30 minutes to insert 10,000 data rows on a 512M heapsize JVM. Hence I have to keep inserting data rows when I receive them and keep them in working

[rules-users] Drools Planner Beginner

2011-12-20 Thread cmcl79
Hi, I'm a beginner to Drools planner. I think it has everything I need to solve my staff and user scheduling problems. At the moment I have worked out how to edit the xml files in the nurse rostering problem to begin to shape my problem. However the xml is very intrecate and I don't think I will

Re: [rules-users] Working memory batch insert performance

2011-12-20 Thread Mark Proctor
On 20/12/2011 13:09, Zhuo Li wrote: Hi, folks, I recently did a benchmark on Drools 5.1.2 and noticed that data insert into a stateful session is very time consuming. It took me about 30 minutes to insert 10,000 data rows on a 512M heapsize JVM. Hence I have to keep inserting data rows when

Re: [rules-users] Drools Planner Beginner

2011-12-20 Thread Geoffrey De Smet
The XML files are just an XStream serialization of the domain classes. Change the domain classes (or use another XML serialiazer instead of XStream) and your xml schema changes. XStream is like JAXB, a class like this: public Person { private String name; ... } get serialized to file like t

Re: [rules-users] Working memory batch insert performance

2011-12-20 Thread Vincent Legendre
There is a recent post on "poor performance from a simple join" that highligths almost the same questions : because "insert" trigger RETE propagation, time to insert depends on rules complexity. May be you can start by looking at your rules to optimise them (see the previous post for some tips

Re: [rules-users] Working memory batch insert performance

2011-12-20 Thread Wolfgang Laun
Frequently, slow insertion is an indication of excessive joins resulting from unlucky pattern combinations. Only recently there was thread where things improved after a very simple reordering of patterns, constraining the combinations early on. We'd have to see your rules for more detailed hints.

[rules-users] 答复: Working memory batch insert performance

2011-12-20 Thread Zhuo Li
Thanks Laun/ Mark. This gave me stronger confidence... I have the same feeling that we can't get too big margin between stateless and stateful sessions... I will revisit the rules and report back. Best Abe -邮件原件- 发件人: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.j

[rules-users] 答复: Working memory batch insert performance

2011-12-20 Thread Zhuo Li
Thanks Vincent. Slicing the data is definitely an option but I guess stateless session is a better fit for this solution? Stateful session means you will have to keep your slices into different working memory slots which will not be efficient intuitionally. Best Abe 发件人: rules-users-boun.

Re: [rules-users] [rules-dev] Drools 5.4.0.Beta1 released

2011-12-20 Thread Geoffrey De Smet
It's at the bottom of the download page. At the top of the download page is the latest Final version. Op 20-12-11 15:13, G S schreef: I couldn't find 5.4.0 Beta Version, still showing 5.3 On Tue, Dec 20, 2011 at 5:20 AM, Toni Rikkola wrote: Drools 5.4.0.Beta1 released (Expert, Fusion, Plann

Re: [rules-users] 答复: Working memory batch insert performance

2011-12-20 Thread Vincent Legendre
As Mark said, stateless VS stateful is not really relevant for speed. In fact, stateless session is a a wrapper for a stateful session (except for sequential mode). Stateless session will save you from writing explicit fact insertion (3 or 4 line of codes) and dispose your session at end (1 lin

Re: [rules-users] Drools Planner Beginner

2011-12-20 Thread cmcl79
Many thanks, I need to stick my head in some more web pages to get the most out of this - thank you for pointing me in the right direction! C -- View this message in context: http://drools.46999.n3.nabble.com/Drools-Planner-Beginner-tp3601171p3601407.html Sent from the Drools: User forum mailin

[rules-users] java script to drl

2011-12-20 Thread G S
I have a source code written in Java script but I want that logic to be written in .drl (drools). Any guidelines, or ideas how I can convert java script to rules? sample source code attached. function() { var patient = this; var measure = patient.measures["0012"]; if (measure == null)measur

Re: [rules-users] java script to drl

2011-12-20 Thread Mauricio Salatino
JavaScript is an imperative language and Drools propose a declarative approach. You should analyze the business logic included in that js file and analyze how to translate that logically to business rules. Then you should learn about the DRL syntax and how is the rule engine behavior to fully under

Re: [rules-users] java script to drl

2011-12-20 Thread Wolfgang Laun
Even if you just want to have equivalent DRL functions you'll have to do it by hand. DRL functions are just like static Java methods. -W 2011/12/20 G S > I have a source code written in Java script but I want that logic to > be written in .drl (drools). Any guidelines, or ideas how I can > conve

Re: [rules-users] java script to drl

2011-12-20 Thread Esteban Aliverti
First of all you need to learn the basics about drools: http://docs.jboss.org/drools/release/5.4.0.Beta1/droolsjbpm-introduction-docs/html_single/index.html Then, you will need to learn about DRL syntax and how to use drools' engine: http://docs.jboss.org/drools/release/5.4.0.Beta1/drools-expert-do

Re: [rules-users] [rules-dev] Drools 5.4.0.Beta1 released

2011-12-20 Thread Mauricio Salatino
Congrats guys! 2011/12/20 Geoffrey De Smet : > It's at the bottom of the download page. > At the top of the download page is the latest Final version. > > Op 20-12-11 15:13, G S schreef: > > I couldn't find 5.4.0 Beta Version, still showing 5.3 > > > > On Tue, Dec 20, 2011 at 5:20 AM, Toni Rikkola

Re: [rules-users] [rules-dev] Drools 5.4.0.Beta1 released

2011-12-20 Thread Mark Proctor
On 20/12/2011 17:19, Mauricio Salatino wrote: > Congrats guys! The simulation/testing stuff is a good area for people to contribute. We need people to submit cunning classes for testing/matching against engine state, ideally wrapped in a hamcrest matcher. Mark > > 2011/12/20 Geoffrey De Smet: >>

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-20 Thread lhorton
You might like to view this video, posted by Mauricio (Salaboy) this year, from their Drools workshop in Argentina. It's about a real (production) implementation of a very high volume, high performance Drools-based system: http://vimeo.com/27209589 http://vimeo.com/27209589 -- View this messa

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-20 Thread Mauricio Salatino
That's not me.. his name is Alexandre Porcelli.. he is also a community member.. really good presentation On Tue, Dec 20, 2011 at 2:46 PM, lhorton wrote: > You might like to view this video, posted by Mauricio (Salaboy) this year, > from their Drools workshop in Argentina.  It's about a real (pro

[rules-users] How to do Rule Flow?

2011-12-20 Thread Venkat
Hi, I have written some rules and now I want to write rule-flow. But there are few questions. 1. I have written some rules of validation, where if not having values, they will throw exceptions, in the flow the exception is a different task, so should I write the rule file for these errors? 2. Als

[rules-users] JAAS issue for GUVNOR login

2011-12-20 Thread starfish15
Hi, We are trying to use JAAS to authenticate the GUVNOR login. I have done the following already. 1. We use Tomcat 6 as the server. 2. Added Realm in the server.xml as follows drools-guvnor is the drools war file. The Principal class is User. 3. Added the jaas.config file at /conf as fo

Re: [rules-users] How to do Rule Flow?

2011-12-20 Thread Mauricio Salatino
Hmm I saw in a lot of customers that they are trying to write some validation rules and they want to enforce the rules evaluation using ruleflow-groups. If that's your case I suggest you to reevaluate your scenario. Using ruleflow-groups you will not prevent the evaluations of the rules, you will o

Re: [rules-users] How to do Rule Flow?

2011-12-20 Thread Venkat
Thanks for your reply, but the problem I am facing is The rule file that I wrote, has some rules which are divided into two ruleflow-groups, but one of the ruleflow-group should be done inbetween the other ruleflow-group and this is a separate task in the rule flow. And I don't know how to do tha

Re: [rules-users] How to do Rule Flow?

2011-12-20 Thread Mauricio Salatino
If you have two RuleTasks and two ruleflow-groups you should only make a reference from the ruleTask to the ruleflow-group that you want. Look at the properties panel clicking in the ruleTask node. But once again, the evaluations of all the rules will happen at the same time when you insert informa

Re: [rules-users] How to do Rule Flow?

2011-12-20 Thread Venkat
I have seen your last point you told, now I see, but I have a question now. If you say so, what is the Rule Flow do. I have read about it and it says that is a engine that will process the flow. right? Thanks, Venkat. -- View this message in context: http://drools.46999.n3.nabble.com/How-to-do

Re: [rules-users] How to do Rule Flow?

2011-12-20 Thread Mauricio Salatino
you can take a look at the official documentation here in www.jbpm.org -> documentation: http://docs.jboss.org/jbpm/v5.2/userguide/ch05.html#d0e1350 The documentation is in some way wrong, because the evaluation happens when you insert information in the knowledge session. The rule flow or busine

Re: [rules-users] How to do Rule Flow?

2011-12-20 Thread Venkat
Thanks for the link, it is helpful. This flow is not just about the validation, it is that starting point of the flow. We are just starting to use this technology and we want to see how it works for us. is there anyway that we can call the java class directly or is it only the rules that we have

Re: [rules-users] JAAS issue for GUVNOR login

2011-12-20 Thread starfish15
A point was forgotten that was added as well The following was added to the server startup “set JAVA_OPTS=-Xmx256m -Djava.security.auth.login.config=%CATALINA_HOME%/conf/jaas.config” -- View this message in context: http://drools.46999.n3.nabble.com/JAAS-issue-for-GUVNOR-login-tp3601947p360

Re: [rules-users] JAAS issue for GUVNOR login

2011-12-20 Thread Nicolas LE BAS
I think the "jaas-config-name" should be "drools-guvnor" (the name of the jaas configuration from the file designated by java.security.auth.login.config). I'm not sure what version of seam is used by guvnor; see also here: http://docs.jboss.org/seam/2.2.2.Final/reference/en-US/html/security.htm

Re: [rules-users] Guided Rule Editor doesn't list no-setter-fields if a fact is annotated

2011-12-20 Thread Michael Anstis
Hi, It sounds like a bug then :) Can you please raise a JIRA (https://issues.jboss.org/browse/GUVNOR) and assign to me? I won't be looking at coding a fix until the New Year (vacation) but if you want to submit a GIT pull request I'll happily take a look. With kind regards, Mike 2011/12/20 To

Re: [rules-users] JAAS issue for GUVNOR login

2011-12-20 Thread starfish15
Hi Nicolas, DO you suggest that *drools-guvnor* be the config file name that is included in the server/conf location as well. I am unable to understand how modifying that is going to assist here. Do let me know if am mistaken anywhere. Regards, Starfish -- View this message in context: ht

Re: [rules-users] How to do Rule Flow?

2011-12-20 Thread Mauricio Salatino
You can call external systems using the concept of work items, check the official documentation in the section: Domain Specific Activities On Tue, Dec 20, 2011 at 5:18 PM, Venkat wrote: > Thanks for the link, it is helpful. > > This flow is not just about the validation, it is that starting point

[rules-users] Rules Hello Evalution

2011-12-20 Thread freejava
Hello, I have the following rule: rule "041" when Party(partyType != null, partyType.trim() != "", partyType not in ("MF", "SE", "BY", "ST", "LG", "CS", "CN")) then appendMessage(globalErrors, drools) end This is rule is getting fired 7 ti

Re: [rules-users] Rules Hello Evalution

2011-12-20 Thread Mauricio Salatino
How many Party (es) do you have? in the session? Are you sure that partyType.trim() returns "" ? Cheers On Tue, Dec 20, 2011 at 7:36 PM, freejava wrote: > Hello, > > I have the following rule: > > rule "041" >        when >        Party(partyType != null, partyType.trim() != "", >                

[rules-users] JbossAS 7 and JBPM Console Server problem

2011-12-20 Thread Cristiano Gavião
Hi, I'm trying to configure a JBoss AS 7 for JBPM. I've downloaded the 5.2.0.Final installer, discompacted it and I'm trying to install jbpm-gwt-console-server using JBossAS Admin Console. I'm getting this messages: > 20:09:07,874 INFO [org.jboss.as.jpa] (MSC service thread 1-1) > Deployment

Re: [rules-users] JAAS issue for GUVNOR login

2011-12-20 Thread Nicolas LE BAS
On 11-12-20 05:09 PM, starfish15 wrote: > Hi Nicolas, > > > DO you suggest that *drools-guvnor* be the config file name that is included > in the server/conf location as well. I am unable to understand how modifying > that is going to assist here. I'm suggesting this: because your jaas.config f

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-20 Thread Greg Barton
Absolutely. Anyone who wants to build a high performance rules system should watch it. --- On Tue, 12/20/11, Mauricio Salatino wrote: > From: Mauricio Salatino > Subject: Re: [rules-users] StatefulKnowledgeSession and multi-threaded > processing > To: "Rules Users List" > Date: Tuesday, Dec

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-20 Thread Salaboy
Sure, but its common sense and find the right tool for each particular problem. In my perspective he did that perfectly. - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio "Salaboy" Salatino - On 20/12/2011, at 22:52, Greg

Re: [rules-users] JbossAS 7 and JBPM Console Server problem

2011-12-20 Thread Salaboy
Did you try runnin the ant target: Ant install.demo - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio "Salaboy" Salatino - On 20/12/2011, at 21:06, Cristiano Gavião wrote: > Hi, > > I'm trying to configure a JBoss AS 7 f

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-20 Thread Greg Barton
Common sense doesn't become common until it's communicated. :) --- On Tue, 12/20/11, Salaboy wrote: > From: Salaboy > Subject: Re: [rules-users] StatefulKnowledgeSession and multi-threaded > processing > To: "Rules Users List" > Cc: "Rules Users List" > Date: Tuesday, December 20, 2011, 7:56

Re: [rules-users] StatefulKnowledgeSession and multi-threaded processing

2011-12-20 Thread Mauricio Salatino
You are completely right! and he is also good communicating complicated topics :) On Tue, Dec 20, 2011 at 11:19 PM, Greg Barton wrote: > Common sense doesn't become common until it's communicated. :) > > --- On Tue, 12/20/11, Salaboy wrote: > >> From: Salaboy >> Subject: Re: [rules-users] State

Re: [rules-users] JbossAS 7 and JBPM Console Server problem

2011-12-20 Thread Cristiano Gavião
Not yet, because I'm trying to install Console in one existent Linux Server Station (without Graphic) with mysql and JbossAS 7 installed. I already have set up Guvnor, so I'm trying to setup Console there too. And I would like to set up one clean installation without demo data, anyway... But I'

[rules-users] decisiont table web editor

2011-12-20 Thread Lalitha
Hi All, I am new to Drools-Tool. I am using "drools-5.1.1-guvnor" jar file in Apache Tomcat version 6.0. I am working on Decision Table web editor. I successfully created one decision table as follows: http://drools.46999.n3.nabble.com/file/n3603258/decision_table.bmp But while test this d

[rules-users] Problems importing sub-process with Designer 2.0

2011-12-20 Thread jwest
*Hi, We saw Tihomir blog about jBPM Web Designer 2.0 released (http://surdilovic.wordpress.com) where there is mentioned a list of new features including: ''Support for sub-processes'. We went to the documentation link but couldn't find anything about sub-process. We'd love to hear more on this.

Re: [rules-users] decisiont table web editor

2011-12-20 Thread Michael Anstis
Sorry but 5.1.1 is unlikely to be supported. >From what you describe I suspect there is a bug, however we are not likely to backport. Guvnor 5.3.0.Final is far superior to Guvnor 5.1.1 with regard to decision table support and 5.4.0.beta1 even more so. I would suggest you upgrade. With kind rega