Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread Wolfgang Laun
How do the record counts relate to files? 1800,12k and 9.5k =:= ABPolicyTransactions, ABPolicy, ABAgent? Are these two rules all there is? The second one has $csvPolicy : CSVBeanPolicy() //$csvAgent : CSVBeanAgent() --- assume this is not commented out Now if you do insert CSVBeanAgent

Re: [rules-users] Guvnor reports Invalid Gateway direction for Parallel Gateway.

2012-07-26 Thread xmithj
Clearing my browser cache fixed the icons problems. Thanks a lot! -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-reports-Invalid-Gateway-direction-for-Parallel-Gateway-tp4018934p4018940.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread zeeshan
Hi Laune and thanks for replying Actually it was not just 50,000, it was 1,00,000 records in single CSV that we solved the Heap space problem by your help and we have developed that product and successfuly integrated in Liferay Portal... :) Now in this case, we have to read* three CSV files*

Re: [rules-users] Guvnor reports Invalid Gateway direction for Parallel Gateway.

2012-07-26 Thread Tihomir Surdilovic
It looks as you did not clear your browser cache before using the new version. Do that and try again - let me know if the issue persists. Thanks. On 7/27/12 12:17 AM, xmithj wrote: Hi Tihomir, Thanks a lot for your help. I have tried the Designer 2.3.0.Final and Guvnor's Validate Process passe

Re: [rules-users] Guvnor reports Invalid Gateway direction for Parallel Gateway.

2012-07-26 Thread xmithj
Hi Tihomir, Thanks a lot for your help. I have tried the Designer 2.3.0.Final and Guvnor's Validate Process passed! However I am facing a new problem: Although I can see the Service Tasks icons in the palette (see attached picture), the icons are not displayed anymore in the business process dia

Re: [rules-users] Guvnor reports Invalid Gateway direction for Parallel Gateway.

2012-07-26 Thread Tihomir Surdilovic
Try with Designer 2.3.0.Final which was just released: http://blog.athico.com/2012/07/jbpm-designer-230final-released.html This should not be an issue with that version. If for some reason it still is, open a jBPM Jira with the BPMN2 of your process generated with the Eclipse editor so we can ta

[rules-users] Guvnor reports Invalid Gateway direction for Parallel Gateway.

2012-07-26 Thread xmithj
A business process with a parallel path (see attached diagram) created through the Eclipse plug-in and imported later to Guvnor or just created from scratch inside Guvnor, doesn’t pass the Guvnor’s Validate Process. Guvnor reports: “Invalid Gateway direction for Parallel Gateway. It should be ‘Con

Re: [rules-users] Guvnor: Accessing Bound Variable in "Then" Statement

2012-07-26 Thread Vann_the_Red
Mods, please delete. Superceded by new thread now that I'm on the mailing list. Thank you. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Accessing-Bound-Variable-in-Then-Statement-tp4018905p4018933.html Sent from the Drools: User forum mailing list archive at Nabbl

[rules-users] Guvnor: Accessing Bound Variable in "Then" Statement

2012-07-26 Thread Vann_the_Red
Hello. I started with a search and didn't find an answer. I apologize if my search-fu was lacking today. I'm a non-developer tasked with rules creation and testing using guvnor. I have found some scenarios where I can bind a variable to either the whole input model or a fact in the input model

Re: [rules-users] Apply role to whole class hierarchy

2012-07-26 Thread Edson Tirelli
Derived classes should inherit the @role of parent classes... which version of Drools are you using? Edson On Thu, Jul 26, 2012 at 12:48 PM, Joerg Henne wrote: > Hi all, > > we are processing events through a Fusion rule base. To be recognized as > such, model classes must be declared as

[rules-users] Apply role to whole class hierarchy

2012-07-26 Thread Joerg Henne
Hi all, we are processing events through a Fusion rule base. To be recognized as such, model classes must be declared as @role(event). We are using a rather extensive hierarchy of events, all derived from a single abstract class. Unfortunately, it doesn't seem to be possible to declare just this b

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread Michael Anstis
I notice that the Drools download page has a link to older versions. Maybe, just maybe, there's a slight chance following the link will lead you to what you seek. I don't know it must be worth a try. The internet is full of these links and they seem to go to useful places. With kind regards, Mi

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread abhinay_agarwal
i cannot upgrade to guvnor 5.4... need pluging for guvnor 5.3 final -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Integration-with-Eclipse-Issue-tp4018919p4018928.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread Michael Anstis
You need Guvnor 5.4 and the Eclipse Plugin 5.4. Both are available here: http://www.jboss.org/drools/downloads On 26 July 2012 14:26, abhinay_agarwal wrote: > hey mike, > > thankz for the reply.. > > but i m using the plugin which yu supplied..i need a plugin for GUVNOR > v5.3.0 > > Thanks, > A

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread abhinay_agarwal
hey mike, thankz for the reply.. but i m using the plugin which yu supplied..i need a plugin for GUVNOR v5.3.0 Thanks, Abhinay -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Integration-with-Eclipse-Issue-tp4018919p4018925.html Sent from the Drools: User forum ma

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread Wolfgang Laun
This was the 50,000 lines spreadsheet? IIRC, the data in the Bean wasn't engineered with memory saving in mind. Could you please post this class again, and we'll see how to tone it down to get then all into the heap. -W On 26/07/2012, zeeshan wrote: > Hi MIke ! > > Yes we have multiple CSVBeanA

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread Michael Anstis
Different versions of the Eclipse Plugin and Guvnor is definitely a problem you will want to eliminate. I had no problem finding a download the the Eclipse Plugin: http://download.jboss.org/drools/release/5.4.0.Final/droolsjbpm-tools-distribution-5.4.0.Final.zip. There was a change made in 5.4 tha

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

2012-07-26 Thread rodolphio
I tried your steps you mentioned above with the existing repository: same problem. I setup a new repository in guvnor and tried your steps you mentioned above: no problems. It seems that the old repository has been chrashed for some reasons I can't fix out. So far it seems to work correctly now.

Re: [rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread abhinay_agarwal
i would also like to know if there can be any jar issue's .. i m using drools plugin 5.4 Final in eclipse and Guvnor v is 5.3.0 Final please lemme know (in details), the reason behind "KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage" error !!! I read one of "mike

[rules-users] Guvnor Integration with Eclipse Issue !!

2012-07-26 Thread abhinay_agarwal
hey der ! m currently using GUVNOR v5.3.0 i made some DRLs in my Eclipse loaded them to Guvnor repository and after loads of changes..i was finally able to build my kbase using the repositoy.. my change set is as foolows : * * My package name was Individual and it mainly c

[rules-users] Guvnor 5.4.0.Final and JBoss AS 7.1.1.Final

2012-07-26 Thread Michael Anstis
Hi, There have been a few messages recently suggesting there are problems running Guvnor 5.4.0.Final on JBoss AS 7.1.1.Final. I had a check and this is what I found:- 1) Downloaded guvnor-5.4.0-Final.zip from Drools website 2) Unzip 3) Deploy guvnor-5.4.0.Final-jboss-as-7.0.war to JBoss AS 7.1.1

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread zeeshan
Hi MIke ! Yes we have multiple CSVBeanAgent objects that initially we tried to insert in statefull session but we faced heap size issue. This Heap Issue was resolved by *Laune* using CSV, and we are following similar approach here too but we faced heap size issue. So we followed global variable ap

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread Michael Anstis
So, you have multiple CSVBeanAgent's (created from a text file somewhere). These are stored in a Map created in Java called "globals". Where do you actually set the global in WorkingMemory: See http://docs.jboss.org/drools/release/5.4.0.Final/drools-expert-docs/html/ch04.html#d0e4482 . Furthermor

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread zeeshan
Hi Mike ! Earlier I tried it inserting as a Fact in using Statefull Session in my RuleMain.java but was facing Java Heap Space error...so I tried Declaring as a Global in RuleMain.java like this HashMap globals = new HashMap(); StatefulSession statefulSession=new RuleRunner().getStatefu

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

2012-07-26 Thread Michael Anstis
I have tried with 5.4.0.Final and found everything to work as required. These are the steps I followed (which don't appear out of the ordinary):- 1) Create new Declarative Model (let's call in GADM) in Global Area 2) Define GADM. 3) Save GADM. 4) Create new Package (called P1) 5) Create new Packa

Re: [rules-users] Using global variable in DRL file

2012-07-26 Thread Michael Anstis
Try reading the Drools Expert User Guide section about the use of Globals :) Globals are not Facts to be reason in the Left-Hand-Side (WHEN) part of a rule. Either use the Global (assuming it contains static data) and initialize it correctly from within Java code (see the User Guide) or insert it

[rules-users] Using global variable in DRL file

2012-07-26 Thread zeeshan
Hi All ! I am trying use global variable in DRL file but when I am using it, gives Exception. Please have a look at the DRL file - package com.drools.rules import com.drools.facts.*; *global CSVBeanAgent csvAgent;* [here I have declared the Global variable] rule "Calculating Agent APE