[rules-users] Drools Flow - problem with parameter mapping

2010-11-15 Thread matus
Hi, I recently run into some problems when trying to create a simple holiday request process. I defined process variables but I struggle to understand how to access them in Human Task. In my User Task ,,holiday approval I have this as a description: #{employee} requested holiday for #{length}

[rules-users] Drools STREAM Mode performance with rather simple rule

2010-11-15 Thread Roess. Oliver
Hello everyone. I've got a question regarding the performance of Drools in STREAM mode. It seems to me, that either Drools is not very fast here, or the problem is with the rule itself. This is the rule. rule ABC no-loop when $a :

Re: [rules-users] Drools Flow - problem with parameter mapping

2010-11-15 Thread Mauricio Salatino
You need to use both mappings IN Mappings (Parameter Mapping in the IDE): this will copy your process variables to the work item scope and OUT Mappings (Result Mappings): this will copy the information created or modified by the work item (in this case a human task) to the process scope.

Re: [rules-users] Drools Human Task Service Persistence

2010-11-15 Thread Mauricio Salatino
yes I'm with Rui, Changing the annotations in the code requires recompilation.. and that's not good... because when you update your drools version (ramram) you will lose that kind of changes. I think that the best solution is to create xml mappings for different vendors.. Rui if you can contribute

[rules-users] Reasoning with past events

2010-11-15 Thread Anais Martinez
I'm using Drools for a system of alarms on agriculture. I am considering several parcels, whose plants can be on different status (for example, sprouting, flowering, etc.). These statuses are updated automatically by rules, controled by several calendars. In the other hand, the farmer is allowed

Re: [rules-users] Drools STREAM Mode performance with rather simple rule

2010-11-15 Thread Wolfgang Laun
What and how are you timing? Executing exactly this rule on three event types with just an int id, running with long t0 = System.currentTimeMillis(); int count = 50; for( int i = 1; i count; i++ ){ session.insert( new EventA( i ) ); session.insert( new

Re: [rules-users] Some Code Problem about SingleSessionCommandService

2010-11-15 Thread Esteban Aliverti
For you, maybe t1 is more important than t2, but for someone else perhaps t2 is more important than t1. I don't know which solution is better, but right now, t1 is being logged and t2 is being thrown. Here is the Jira issue: https://jira.jboss.org/browse/JBRULES-2656

Re: [rules-users] Reasoning with past events

2010-11-15 Thread Wolfgang Laun
On 15 November 2010 11:56, Anais Martinez amarti...@iti.upv.es wrote: I'm using Drools for a system of alarms on agriculture. I am considering several parcels, whose plants can be on different status (for example, sprouting, flowering, etc.). These statuses are updated automatically by

[rules-users] Issue 2782 - Potential memory leak when rules are often reloaded

2010-11-15 Thread Pentarakis
Hi! I created a new issue some days ago. I'm new to the jboss community and therefore not sure whether I did it correctly. It seems like no one has found it yet. Could somebody have a look at it and could provide me feedback? http://jira.jboss.org/browse/JBRULES-2782

Re: [rules-users] Reasoning with past events

2010-11-15 Thread Anais Martinez
The system is receiving readings from real sensors of humidity, temperature, etc.. There are a lot of rules for deciding if a specific plague or illness affects (or can affect) to the plants or not: One condition of those rules is the plants' status, because the illnesses affect to the plant

[rules-users] help

2010-11-15 Thread Roess. Oliver
_ SEEBURGER AGVorstand/Seeburger Executive Board: Sitz der Gesellschaft/ Bernd Seeburger, Axel Haas, Michael Kleeberg Registered Office: Edisonstrasse 1

Re: [rules-users] help

2010-11-15 Thread Esteban Aliverti
You forgot to put the message in the bottle! ;) Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/11/15 Roess. Oliver o.ro...@seeburger.de

Re: [rules-users] help

2010-11-15 Thread Mauricio Salatino
lol 2010/11/15 Esteban Aliverti esteban.alive...@gmail.com You forgot to put the message in the bottle! ;) Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2010/11/15 Roess. Oliver

Re: [rules-users] Drools Human Task Service Persistence

2010-11-15 Thread Rui Tang
Of course! I'm just going to port MySQL database schema to Oracle in my project. Give me some days only! 2010/11/15 Mauricio Salatino sala...@gmail.com yes I'm with Rui, Changing the annotations in the code requires recompilation.. and that's not good... because when you update your drools

Re: [rules-users] Reasoning with past events

2010-11-15 Thread Wolfgang Laun
I think that a parcel (a field) needs to be a static fact, perhaps not maintaining a single state but two states, previous and current. Events are state changes and sensor readings. Now, if sensor readings are dangerous for state A and if the last state change is not much distant from the sensor

Re: [rules-users] Reasoning with past events

2010-11-15 Thread Anais Martinez
Well, I'm in a dead end with my model, so I'm going to consider your idea. I think it is best solution. Thanks again. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Reasoning-with-past-events-tp1903815p1904505.html Sent from the Drools - User mailing list

Re: [rules-users] Drools STREAM Mode performance with rather simple rule

2010-11-15 Thread Wolfgang Laun
Do you mean that insert (send) Y times A inserts Y times Aevent with the very same id?! If so, you will have to reconsider your approach because you are creating the worst possible scenario for the Rete algorithm, i.e., O(n^3) cartesian tuples for your activations. There are strategies for

[rules-users] ODP: ODP: Guvnor repository_export.xml the code

2010-11-15 Thread Pierre de Leusse
After some research it seems that jackrabbit handles the serialization/deserialization of the rules. However, I cannot find how the rules are exported so nicely (with a nice XML structure, with lhs, rhs tags). If I use XStream to serialize a RuleBase, org.drools.rule.Rule or

Re: [rules-users] 5.1.1: ArrayIndexOutOfBoundsException in org.drools.core.util.AbstractHashTable

2010-11-15 Thread Anatoly
maybe ( probably is ) related to JIRA: JBRULES-2794https://jira.jboss.org/browse/JBRULES-2794 /Anatoly On Thu, Oct 28, 2010 at 11:56 AM, Edson Tirelli tire...@post.com wrote: Lubos, Yes, you can always send an e-mail to the list first. In this case, it looks like a bug... needs to be

Re: [rules-users] Drools STREAM Mode performance with rather simple rule

2010-11-15 Thread Roess. Oliver
Hello again! Thanks for the heads up, Wolfgang. Basically, what I try to create is some sort of batch window, which is not really implemented into Drools Fusion if I remember correctly. It doesn't HAVE to be A, B, C in that particular order which I specified in my last post, but the

Re: [rules-users] Issue 2782 - Potential memory leak when rules are often reloaded

2010-11-15 Thread Konstantin Pentarakis
Hi Leonardo, Thank you very much for your fast response! I mentioned why I re-added the same rules within the issue-description. It is something like a simulation of lots of rule changes. We are building an application where rules will be created programmatically. Rules will often change. For

Re: [rules-users] Drools STREAM Mode performance with rather simple rule

2010-11-15 Thread Wolfgang Laun
And, I hope, it doesn't matter in which order the Events A with id x are matched with Events B with the same id. The idea of my approach is to make the Events A, B, C not directly visible to the rule ABC but through a filter fact, one per type (A, B. C) and per id. Here is the abstract base

Re: [rules-users] Can Drools Flow Persistence Work without JTA

2010-11-15 Thread Anatoly
if you use Spring, you can just use org.springframework.orm.jpa.JpaTransactionManager with non-XA transactions: http://drools-java-rules-engine.46999.n3.nabble.com/Exception-using-persistence-tp856774p863641.html /Anatoly On Sat, Oct 16, 2010 at 6:28 PM, Kris Verlaenen

Re: [rules-users] JBoss Rule Trace feature with 5.0

2010-11-15 Thread kkinjal
Hi All, I am able to print the logs that says which rule was fired and what is the id for it.Thanks Wolfgang! Is there any way I can print the conditions(when clause) that got executed and which condition failed to execute and the order of those conditions execution? The application which I am

[rules-users] Remote debug rules on GlassFish?

2010-11-15 Thread H.C.
We are attempting to remote debug our rules in GlassFish v3 and none of our rule breakpoints are bing hit? Is there any particular in container debug configuration needed for this to work? We are using Drools 5.0.1. Thanks -- View this message in context:

Re: [rules-users] 8Puzzle problem with Drools Planner

2010-11-15 Thread Anderson Rocha
Hi Geoffrey. Thank you very much for your replies. I was just testing the Drools Planner, and the way it was implemented (with a search approach), I thought it would work with the 8Puzzle problem. I already worked with this problem executing an A* search

Re: [rules-users] Can Drools Flow Persistence Work without JTA

2010-11-15 Thread Rui Tang
When I asked this question, I meant I don't want to use any frameworks or application servers. But for now I think I should consider to use jBoss or such to manage cross session tx. I'll take look at this Spring's implementation, because I think there should be an independent implementation in

[rules-users] == not work for big int value

2010-11-15 Thread Zeke
Hi, I'm using Drools 4.0.7. I find == operator does not work for big int value (like 2147483647). The condition is like sec.fir.i == 2147483647. I attach my test code. With my simple testing, it seems that it does not work for comparsion with int constant from 11 to 2147483647. Is it a

[rules-users] 401 Http Response while accessing a package

2010-11-15 Thread jegansp
Hi, I am using Drools 5.0 and Guvnor 5.1.1. I am trying to access a package from Guvnor in a Java application. It gives the below error message. Server returned HTTP response code: 401 for URL: http://localhost:8080/drools-5.1.1-guvnor/org.drools.guvnor.Guvnor/package/pricing/LATEST I

Re: [rules-users] 401 Http Response while accessing a package

2010-11-15 Thread Jervis Liu
Hi, you need to use same of Drools/Guvnor on your client and server side. Cheers, Jervis On 2010/11/16 11:19, jegansp wrote: Hi, I am using Drools 5.0 and Guvnor 5.1.1. I am trying to access a package from Guvnor in a Java application. It gives the below error message. Server returned

Re: [rules-users] 401 Http Response while accessing a package

2010-11-15 Thread jegansp
Thanks for your response Jervis. I will try with Drools 5.1 and update. Regards, Jegan -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/401-Http-Response-while-accessing-a-package-tp1908870p1909139.html Sent from the Drools - User mailing list archive at

[rules-users] Alternate Flow Creation

2010-11-15 Thread srikanthp
In process flow i need to execute alternate path based on some external event. How can i do this ? For Ex:In a process (shown below) billing activity was implemented using work-item definition. Process goes to next node i.e. Do some task only after completing billing activity. I am calling

Re: [rules-users] JBoss Rule Trace feature with 5.0

2010-11-15 Thread Wolfgang Laun
On 15 November 2010 19:30, kkinjal kinjal.khand...@gmail.com wrote: Hi All, I am able to print the logs that says which rule was fired and what is the id for it.Thanks Wolfgang! Is there any way I can print the conditions(when clause) that got executed and which condition failed to