Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Wolfgang Laun
2010/5/5 miguel machado : > Hi, > First of all, thank you both for your answers. > > @Wolfgang: > My problem is that i cannot have the different rule groups stacked. I may do > as you suggested, but i'll have rules firing from other agenda-groups after > the first agenda-group activations are all g

Re: [rules-users] Getting an Error While Executing Rule in Drools 5.0

2010-05-04 Thread Puneet duggal
@ Nikhil, I am not sure weather it a good practice to seralize a package and store it , i am new to it and i am storing the drl files in db . Can we retrive our DRL file after retriving the packge from database.?? On 5/4/10, Nikhil S. Kulkarni wrote: > > Hi, > > > > I have co

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread miguel machado
Exactly! That's precisely why i'm trying to find a workaround. I have no way to activate a specific set of rules except for stacking up activations using agenda-groups. Any other suggestions? Thank you. 2010/5/4 Mauricio Salatino > if you use the new api's (5.x StatefulKnowledgeSession inste

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread miguel machado
Hi, First of all, thank you both for your answers. @mauricio: I'm currently not using drools flow, only expert, so i'm not very familiar with the approach you suggested. Isn't it possible to achieve this goal just by using drools expert? @Wolfgang: My problem is that i cannot have the different

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Mauricio Salatino
if you use the new api's (5.x StatefulKnowledgeSession instead of workingMemory) you don't have that methods exposed. 2010/5/4 vasilievip > You could manually activate and deactivate ruleflow groups using > workingMemory.getAgenda().[de]activateRuleflowGroup(name). > workingMemory.getAgenda().[

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread vasilievip
You could manually activate and deactivate ruleflow groups using workingMemory.getAgenda().[de]activateRuleflowGroup(name). workingMemory.getAgenda().[de]activateRuleflowGroup(name). session.fireAllRules(); http://drools-java-rules-engine.46999.n3.nabble.com/Agenda-group-doesn-t-stay-set-td565

Re: [rules-users] How to make this rule more memory efficient?

2010-05-04 Thread Greg Barton
It can handle it. The limiting factor is available heap. GreG On May 4, 2010, at 10:55, Ryan Fitzgerald wrote: Hi Thomas, You are correct in your interpretation of what I want to do. I did consider adding the mappings as their own facts but I was concerned that the sheer number of them woul

Re: [rules-users] Drools + ETL Process

2010-05-04 Thread Mauricio Salatino
that's good.. but please check the transaction configurations.. because that's the problem I think 2010/5/4 > Hi Mauricio, team > > I mapped my javabean in the persistence.xml > > org.acme.drools.Account > > And after run my main test I can see the "account table" in DB, but it's > still empty,

[rules-users] Getting an Error While Executing Rule in Drools 5.0

2010-05-04 Thread Nikhil S. Kulkarni
Hi, I have compiled some rules and added it in packages. Then I serialized those packages and stored in database in the form of CLOB data Now I am able to get Packages back from database and loaded it in RuleBase. But while executing Rule, I am getting the following Exception. j

[rules-users] Human Task with a graphical representation

2010-05-04 Thread rudolf michael
Hello there, I was able to draw an "Incident on Workstation Process" using Drools flow and i am going to test it today. I have a Timer on every Human task where i need to log an OLA Exception when the timer is due. this is easy but what is missing a graphical representation for this. is there a w

Re: [rules-users] How to make this rule more memory efficient?

2010-05-04 Thread Ryan Fitzgerald
Hi Thomas, You are correct in your interpretation of what I want to do. I did consider adding the mappings as their own facts but I was concerned that the sheer number of them would overload drools. For each Cell instance, it can refer to up to 60 ProxyCell instances. With 20,000 Cell instances

Re: [rules-users] How to make this rule more memory efficient?

2010-05-04 Thread Ryan Fitzgerald
Hi Wolfgang, Sorry for the late reply on this. Actually I did miss your earlier reply. I applied the changes you suggested and made a few more tweaks and I have been able to get the memory down from over 1.5GB (where I was getting OOM exceptions) to 300MB. I now realise that I have to be very

Re: [rules-users] Drools + ETL Process

2010-05-04 Thread Mauricio Salatino
I saw that you change the transaction-type to RESOURCE_LOCAL, and not JTA as it's in the documentation. In the documentation I think that it mention that drools requires JTA, for it's internal mechanisms, that's why we use bitronix as a transaction manager implementation. 2010/5/4 > Hi Mauricio

Re: [rules-users] Drools + ETL Process

2010-05-04 Thread andre . fonseca
Hi Mauricio, team I mapped my javabean in the persistence.xml org.acme.drools.Account And after run my main test I can see the "account table" in DB, but it's still empty, probably I am missing something in the project configuration. Let me check and I'll reply back Tks! -Orig

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Wolfgang Laun
I've been using agenda groups without any trouble for a similar problem, doing setFocus( ... ); insert( ... );... insert( ... ); fireAllRules(); repeatedly. You don't have to be afraid of the focus stack growing indefinitely:You control the "push" (setFocus()), and if an agenda group's activ

Re: [rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Mauricio Salatino
Hi miguel, Did you try creating a new Drools Flow process with Rule Tasks inside it to isolate each specific set of rules. Then you can insert the facts into the working memory, start the process and the rules will be executed secuencially. You need to remember also that, if the rules are activated

Re: [rules-users] Drools Flow: how to get knowledge session ID from WorkItem

2010-05-04 Thread Mauricio Salatino
Anatoly, if you can share your generic implementation that would be nice.. because a lot of people is looking for something like that. I prefer custom and domain specific implementation, but it seams that a lot of people is looking for something generic that can be reused. I can blog about that gen

Re: [rules-users] Drools + ETL Process

2010-05-04 Thread andre . fonseca
Hi Mauricio, It's below, thanks! http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"; xmlns:orm="http://java.sun.com/xml/

[rules-users] expert: usage of ruleflow-groups

2010-05-04 Thread Miguel Machado
Hi there, I'm having some trouble implementing the desired workflow of rule firing in an application using drools expert. I've read the thread about the difference between ruleflow groups and agenda groups, but it is still unclear to me how to achieve what i need. What i intend to have is the

Re: [rules-users] Drools Flow: how to get knowledge session ID from WorkItem

2010-05-04 Thread tolitius
@Alan, Implementation of WorkItemHandler is a custom ( "your" ) component. This means that this implementation may have anything injected ( set as property or at construction time ). Let's say you implement "YourCustomWorkItemHandler" to take a "session id" at the construction time ( goo

Re: [rules-users] Rules doubt

2010-05-04 Thread Puneet duggal
@Wolfgang, thanks a lot for ur wonderful explanation regarding the Dialect... But i still cant find the better way to know the exact error in some cases ,one case i had mentioned in my previous post ...i want to highlight that my drl are loading from database so i cant put break point in drl. app

Re: [rules-users] Rules doubt

2010-05-04 Thread Wolfgang Laun
Here, I've found this for you, a comment from the Drools source file org.drools.rule.builder.dialect.java.JavaDialectConfiguration * There are options to use various flavours of runtime compilers. * Apache JCI is used as the interface to all the runtime compilers. * * You can also use the syst

Re: [rules-users] Rules doubt

2010-05-04 Thread tolitius
@Wolfgang, 1.Thank you for being considered, and not simply deleting Puneet's question. 2.I know that "debugging" was not the right answer, in case the error meant "his rule did not even compile", and it was not a "business" error. 2.After Puneet's gave you a better desc

Re: [rules-users] Rules doubt

2010-05-04 Thread Puneet duggal
@ Wolfgang Laun , i am using just this statement:- javaConf.setCompiler( JavaDialectConfiguration.*JANINO* ); I dont know the exact use of this statement .I am not using the mvel , i tried to google abt it but couldnt find the use of this ... can u through some light on this. Thanks On 5/4

Re: [rules-users] Rules doubt

2010-05-04 Thread Wolfgang Laun
Actually, this kind of error isn't discovered by the Drools DRL compiler; it would be flagged by the Java compiler. (You can verify: if you make the same error in Java code, you'll get that error message.) But if you are using dialect "mvel" (are you?), this is not flagged as an error, and it woul

Re: [rules-users] Drools Flow: how to get knowledge session ID from WorkItem

2010-05-04 Thread Chris Raschl
Hi Alan, On 2010-05-04 13:10, alan.gai...@tessella.com wrote: > The subject says it all really: is there any way of determining the > knowledge session ID from the WorkItem argument (or WorkItemManager > argument?) passed in to the executeWorkItem method of an implementation > of the WorkItemHandl

[rules-users] Drools Flow: how to get knowledge session ID from WorkItem

2010-05-04 Thread Alan . Gairey
The subject says it all really: is there any way of determining the knowledge session ID from the WorkItem argument (or WorkItemManager argument?) passed in to the executeWorkItem method of an implementation of the WorkItemHandler interface? Any help would be very much appreciated. Thanks, Alan_

Re: [rules-users] Rules doubt

2010-05-04 Thread Puneet duggal
drlFile = BusinessRuleUtils.createCombinedDrlDocument(id,map.get(id)); PackageBuilder PACKAGE_BUILDER = new PackageBuilder(BUILDER_CONFIGURATION); org.drools.rule.Package pkg = null; PACKAGE_BUILDER .addPackageFromDrl(new StringReader(drlFile)); if (PACKAGE_BUILDER.hasErr

[rules-users] how "exists" works exactly?

2010-05-04 Thread Antonio Neto
Hi all, I don't know exactly why I have a problem in my "exists" function. I've tried many different ways, but it does not work. Anybody could help me, please? I have the following rules: *rule "diff" when $var1: EReference(name == "employee") $var2: EClass(name == "Company", EAllRefere

[rules-users] Chained Rules

2010-05-04 Thread djb
Hi all, I know there are some basic ways to chain rules together, by setting flags in consequences that are checked in the conditions of other rules... but in a large system based on rule templates, where thousands of rules are generated, it is not feasible to chain rules in this manner, especia