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

2011-12-21 Thread Toshiya Kobayashi
Okay, I've raised a JIRA. https://issues.jboss.org/browse/GUVNOR-1792 I hope I can make a pull request soon :) Cheers, Toshiya - Original Message - From: Michael Anstis michael.ans...@gmail.com To: Rules Users List rules-users@lists.jboss.org Sent: Wednesday, December 21, 2011 6:29:55

[rules-users] Regarding tBRMS component and embedded Rules in talend

2011-12-21 Thread Lavanya
Hi all, I am new to Drools tool. I would like to implement the Drools Technical Rule on the data (Excel file) through Talend Studio by using Embedded Rules under the metadata or by using tBRMS component from palette. From both ways we tried the job. The technical Rule that we want to

[rules-users] Regarding implementation of bussiness Rule in Talend

2011-12-21 Thread Lavanya
Hi All, I am new user of Drools tool. I have done a sample business Rule in Drools and tested. It is working fine in Drools. So I validated the package and imported .drl file into talend studio under Meta data (Embedded Rules). The code generated for the business rule is as follows:

[rules-users] Decision table multiple sheets...

2011-12-21 Thread Sumeet Karawal
Hi, I am having my rules in a Decision Table (.xls) There I have 3 sheets for rules. Like in Sheet1 there are two Rule Tables... In Sheet2 there are 2 and in Sheet3 there is only 1. When I am creating the knowledgebase and firing rules, the rules that are in the Sheet1 are getting fired. But

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

2011-12-21 Thread Swindells, Thomas
The link http://blog.athico.com/2011/12/new-feature-spotlight-traits-part-1.htmlhttp://docs.jboss.org/drools/release/5.4.0.Beta1/droolsjbpm-introduction-docs/html/releaseNotesBeta1.html??? in the release notes actually points back to the release notes not to the url it is meant to. The rest of

Re: [rules-users] Decision table multiple sheets...

2011-12-21 Thread Wolfgang Laun
By definition (see the Expert manual) only sheet 1 is used for generating rules. For controlling rule firing you may consider using any of the rule attributes supported by spreadsheets, e.g., agenda-group. -W On 21/12/2011, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, I am having my

Re: [rules-users] Decision table multiple sheets...

2011-12-21 Thread Swindells, Thomas
We have the following code to load multiple sheets from a single xls - it's more involved than I would like and I'd agree with the sentiment that drools should load all the sheets not just the first one. It's brutely pulled from out codebase so I'll leave it as an exercise to the reader to

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

2011-12-21 Thread Mauricio Salatino
Exactly, that script moves everything into place.. What you can do is to install in in another machine and see how everything gets configured. Cheers On Wed, Dec 21, 2011 at 12:23 AM, Cristiano Gavião cvgav...@gmail.com wrote: Not yet, because I'm trying to install Console in one existent Linux

Re: [rules-users] Regarding tBRMS component and embedded Rules in talend

2011-12-21 Thread Mauricio Salatino
That sounds like a product that is using Drools internally. Unless you share more internal details about how drools is being embedded we cannot help. (At least I cannot help) You should ask them about what can be wrong with their product. On Wed, Dec 21, 2011 at 5:31 AM, Lavanya

Re: [rules-users] Regarding implementation of bussiness Rule in Talend

2011-12-21 Thread Mauricio Salatino
Once again, you should ask talend guys about how to configure the rule environment to work with it. It looks like you are using a model and the component in charge of compiling the rules is not being able to locate the Sales class. Cheers On Wed, Dec 21, 2011 at 6:18 AM, Lavanya

Re: [rules-users] decisiont table web editor

2011-12-21 Thread Lalitha
Hi Mike, Thank you for your quick reply. Actually, I want to use these Drools business rules in Talend Studio which is an ETL tool. In this we are using tBRMS component to execute Drools Rules. I have one doubt, is Guvnor 5.3.0 or any higher version of drools is compatible with Talend 4.2.2 or

Re: [rules-users] decisiont table web editor

2011-12-21 Thread Mark Proctor
On 21/12/2011 11:29, Lalitha wrote: Hi Mike, Thank you for your quick reply. Actually, I want to use these Drools business rules in Talend Studio which is an ETL tool. In this we are using tBRMS component to execute Drools Rules. I have one doubt, is Guvnor 5.3.0 or any higher version of

[rules-users] Decision Tables Examples

2011-12-21 Thread Juanker Atina
Hi there, I want to try some more examples of decision tables. - I have tried with the example from eclipse (drools plugin - create new decision table) - TeamAllocationExample.xls and CheckAccepted.xls too (easy to find on google). But all of them are created in horizontal way (each rule is one

Re: [rules-users] Decision Tables Examples

2011-12-21 Thread Wolfgang Laun
The presentation merely pointed out that there are several forms about. A little later it says that only the vertical form is supported. -W On 21/12/2011, Juanker Atina juank...@gmail.com wrote: Hi there, I want to try some more examples of decision tables. - I have tried with the example

[rules-users] Action

2011-12-21 Thread Alan Ma
Hi Drools Rulers, I am new to drools and I've configured a rule with the following: rule my rules ruleflow-group nike no-loop true when $nikeShoe : NikeShoe() from shoeManager.getNikeShoe() then

Re: [rules-users] Action

2011-12-21 Thread Mauricio Salatino
Hi, if you use the from expression it will get evaluated each time that anything in the session change (at least in your example). So you can insert all the NikeShoes from the service you are calling into the working memory and those rules will be only evaluated when a NikeShoe is modified or

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread freejava
Actually I am appending the error in a collection in the party object itself. So the rule is like this: rule 041 when Party( $e : errors) Party(partyType != null, partyType.trim() != , partyType not in (MF, SE, BY, ST, LG, CS, CN)) then

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread Mauricio Salatino
Do you understand the difference between: Party( $e : errors) Party(partyType != null, partyType.trim() != , partyType not in (MF, SE, BY, ST, LG, CS, CN)) and Party($e : errors, partyType != null, partyType.trim() != , partyType not in

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

2011-12-21 Thread Michael Anstis
Thanks Toshiya. If you don't get a chance to make a pull request don't worry, I will pick up in the New Year. From the information you've given the addFieldsForType method should perform a merge and not an overwrite. 2011/12/21 Toshiya Kobayashi tkoba...@redhat.com Okay, I've raised a JIRA.

Re: [rules-users] Action

2011-12-21 Thread lhorton
Is that true (i.e. all rules evaluated even though they won't be fired) also of agenda groups? -- View this message in context: http://drools.46999.n3.nabble.com/rules-users-Action-tp3604296p3604571.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] adding all packages to kbuilder in web application geting errors...

2011-12-21 Thread srinivasasanda
packagelisturl=http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/webdav/packages (which show the list of package == Contents of this Folder:

Re: [rules-users] Action

2011-12-21 Thread Mauricio Salatino
Yes, the agenda-groups works in the same way. They only control when the activated rules should fire. Cheers On Wed, Dec 21, 2011 at 1:59 PM, lhorton lhor...@abclegal.com wrote: Is that true (i.e. all rules evaluated even though they won't be fired) also of agenda groups? -- View this

Re: [rules-users] Action

2011-12-21 Thread Michael Anstis
Just to add to what salaboy wrote, *all* LHS are evaluated as Facts are inserted. If I am not mistaken, ruleflow-group (like agenda-group) only controls what activations (RHS) on the agenda caused by the evaluation of the LHS are executed. On 21 December 2011 15:24, Mauricio Salatino

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread freejava
I guess so : In the first case it is Assign errors to $e for all parties. and in the second case it is Assign errors to $e for the parties matching the condition. Is that a correct statement ? It is working as expected in my local environment but in the development env. -- View this

Re: [rules-users] Decision Tables Examples

2011-12-21 Thread Michael Anstis
The horizontal implementation is in org.drools.decisiontable.parser.xls.ExcelParser. If you look at the processSheet method you'll see it scans rows to build the decision table. A vertical implementation would need to obviously scan columns (and a pull request for a community contribution would

Re: [rules-users] Action

2011-12-21 Thread Mauricio Salatino
To add to Michael, Insert/Update/Retract 2011/12/21 Michael Anstis michael.ans...@gmail.com: Just to add to what salaboy wrote, *all* LHS are evaluated as Facts are inserted. If I am not mistaken, ruleflow-group (like agenda-group) only controls what activations (RHS) on the agenda caused

Re: [rules-users] Action

2011-12-21 Thread lhorton
So if we have, for example, a set of rules that we know only need to be evaluated under certain conditions or for discrete types of Facts, would it be more efficient to put them in a separate knowledge sessions? Meaning, instead of one session where we insert all objects and then fire

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread Mauricio Salatino
no.. the first option Looks for two instances of Party() and the second just for one instance of Party() No, if you bind a variable inside a Pattern, the $e variable in your case will contain only the errors from the party that matches. The second rule will evaluate two instances of Parties, that

Re: [rules-users] Action

2011-12-21 Thread Mauricio Salatino
It depends on your problem, but yes.. it could be more efficient, except for the fact that you need to move all the objects from one session to the other. Another alternative is to use some kind of control fact that only activate the second group of rules when the first group has been evaluated.

Re: [rules-users] Decision table multiple sheets...

2011-12-21 Thread Michael Anstis
Using a KnowledgeBuilder defaults to using org.drools.decisiontable.DecisionTableProviderImpl. This in turn uses org.drools.decisiontable.SpreadsheetCompiler that delegates to org.drools.decisiontable.parser.xls.ExcelParser in its compile method. The delegation uses a ExcelParser constructor that

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread freejava
Thanks for the explanation. I think I got it. Here is my scenario: I have n number of parties in the memory. I have to perform the validation on each party for the party type. If it fails then add an error message(just one) to the collection of that particular party. So I rewrote the rule as

Re: [rules-users] Action

2011-12-21 Thread Vincent LEGENDRE
First solution is the one I use almost all times, and moving facts from a session to another is far less costly than propagating facts for rules that will never be fired... The second solution could be great too, but I am not sure that it will cut all propagations. If you have this : rule

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread Vincent LEGENDRE
I bet this : your error list is the same instance, shared in all Party objects... Am I right ? And why do you need to pass drools to your appendMessage method ? Do you modify (insert/update/retract some objects) the WM inside this method ? Be very careful if you do that (especially if you said

Re: [rules-users] Rules Hello Evalution

2011-12-21 Thread freejava
You were right. There was a bug in the system. I fixed and it is working as expected now. I am passing the 'drools' object to get the rule name. I am not modifying the WM after I call the fireAllrules method Thanks a lot and Happy Holidays. -- View this message in context:

[rules-users] Big BPMN2 processes are dificult to watch/edit inside Guvnor?

2011-12-21 Thread jwest
Hi there, We imported a fairly big BPMN2 process inside Guvnor, but the only way to reach/watch some parts of the process is through zooming out the model. Unfortunately, by then, the process is too small to be read/edited. The yellow arrows at the edges that allow to increase the canvas size

Re: [rules-users] Big BPMN2 processes are dificult to watch/edit inside Guvnor?

2011-12-21 Thread Mauricio Salatino
Hmm that sounds awkward.. Can you file a jira issue for that problem? Cheers On Wed, Dec 21, 2011 at 6:33 PM, jwest jmwest...@gmail.com wrote: Hi there, We imported a fairly big BPMN2 process inside Guvnor, but the only way to reach/watch some parts of the process is through zooming out the

[rules-users] PatternBuilder createRestriction bug on Drools 5.1.1

2011-12-21 Thread Manuel Ortiz
Dear Sirs: I'm working on an application which writes a set of rules using information which is stored in BDD tables. This information can be 'wrong' concerning rule compilation, and I expect that Drools reports the corresponding compilation errors. I've found that

[rules-users] drools consequence and dialect

2011-12-21 Thread domingo
I have one simple rule, just check the boolean attribute of the object and print the value of the boolean, that simple rule. I am using java as my rule dialect. I found something interesting while debugging. 1. When i read the drl file from the local file stream I found the following...

[rules-users] Guvnor role based authentication with JBossAS 7

2011-12-21 Thread Cristiano Gavião
Hi, I've downloaded the JBPM installer 5.2.Final. It is running ok. I'm trying do enable role based authentication for Guvnor and I'm not having success. So, I found some links at google and I follow this: 1) modified the standalone.xml: security-domain name=other cache-type=default

[rules-users] How to make available declarative model to all packages.

2011-12-21 Thread srinivasasanda
Hi All, I have created declarative model in global area but even it is not visible to other packages, how to some model to available to the all packages. Thanks in Advance -- View this message in context:

Re: [rules-users] How to make available declarative model to all packages.

2011-12-21 Thread Salaboy
Did you try importing the declared types in the other drl? Package.declared type - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio Salaboy Salatino - On 21/12/2011, at 22:41, srinivasasanda srinivasasa...@gmail.com wrote:

Re: [rules-users] How to make available declarative model to all packages.

2011-12-21 Thread srinivasasanda
Hi Salaboy, I have a problem please give me some solution.. packagelisturl=http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/webdav/packages (which show the list of package ==

Re: [rules-users] PatternBuilder createRestriction bug on Drools 5.1.1

2011-12-21 Thread Wolfgang Laun
Now would you mind posting an example reproducing this error... -W On 22/12/2011, Manuel Ortiz manuel.ortizra...@gmail.com wrote: Dear Sirs: I'm working on an application which writes a set of rules using information which is stored in BDD tables. This information can be 'wrong' concerning