Re: [rules-users] Multithreading work items

2010-04-22 Thread Mauricio Salatino
yes.. sounds more like a normal java problem than Drools FLow problem. I think that your solution is the correct one because it handle internally the multithreaded requierements and then it continue the business process normally. 2010/4/22 Pedro Maria Buitrago Mantilla > The idea is to run mult

[rules-users] (no subject)

2010-04-22 Thread HONG DENG
___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Multiple timers in a single ruleflow

2010-04-22 Thread nanic23
Hi guys, I am trying to implement multiple timers in a single ruleflow. I am trying to achieve: 1. Multiple timers running at the same time. 2. Multiple timers running consecutively. It seems to me that the current implementation will not allow for this kind of behavior out of the box.

Re: [rules-users] Drools Flow: API for Timers

2010-04-22 Thread tolitius
ideas? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-API-for-Timers-tp732299p744423.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.j

Re: [rules-users] Very basic running of drools 5, basic setup and quickstart

2010-04-22 Thread Berlin Brown
Is there documentation on how to do this, including a full example. I saw the pom file, but still don't know the run/compile targets? 2010/4/22 Greg Barton > Have you ever thought of using maven? Your problem is no doubt with > including the transitive dependencies of the drools libraries, whi

[rules-users] template 101

2010-04-22 Thread Stefan Marconi
Hi, just starting using drools and need to use templates but having error messages (described in comments in the code below). I checked the meaning of the error messages but still can't figure it out. I modified an simple rule according to the template section of the drools manual: btw I use the e

[rules-users] Declaration of Metadata tags for External Data Models in Guvnor.

2010-04-22 Thread Meyer, David A
I have a set of externally defined java beans that are utilized elsewhere in the overarching application, and would like to declare these external classes as events within drools. I am able declare these objects as events, and compile a drools DRL file, and execute the rules. When the same DRL is

Re: [rules-users] Multithreading work items

2010-04-22 Thread Pedro Maria Buitrago Mantilla
The idea is to run multiple independent sub flows. Each of the sub flows requires approximately 2 minutes to complete, so parallel processing is required. Once all the sub flows have completed their tasks is necessary to collect all the results and process them. This implies that the workflow shoul

[rules-users] Drools Expert (Rule Engine) - Performance Tips

2010-04-22 Thread andre . fonseca
Hi all, I need to perform a test in the Drools Rule Engine. This test is intended to discover the SLA for Rule Processing. The scenario that I have is: - My Knowledge Database will have almost 200 million records. - There will be a full monthly charge and a short diary charge in this KD. - T

Re: [rules-users] RuntimeDroolsException as Solver concludes execution

2010-04-22 Thread Geoffrey De Smet
Looks like an NPE in your rule. Maybe maintenanceSlot or something is null. You should raise an issue with drools-core (drools expert) that it should give a better runtime error to show on which line it NPE'ed. With kind regards, Geoffrey De Smet dweppenaar schreef: > Hi. > > I am experiencin

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread HMandic
I have everything exactly the same as you (just like in the documentation), the only difference being the SQL for fetching the tasks. You will notice that mine has two inner joins, and yours hasn't. H, that makes me think, could it be something involving org.hibernate.dialect.PostgreSQLDialec

Re: [rules-users] ClassCastException during inserting knowledge package

2010-04-22 Thread Edson Tirelli
Can you provide an isolated test case to reproduce this problem? If so, please create a JIRA, attach your case and ping me plz. Edson 2010/4/22 Piotr Jedrychowski > I've downloaded last stable build (number 3845, made 2010-04-14) from > Drools Hudson (http://hudson.jboss.org/hudson/job

Re: [rules-users] Running Sub-process only once in rule flow

2010-04-22 Thread Mauricio Salatino
can you describe a little more your use case? what are you trying to achieve? 2010/4/21 Adeyinka Timi > Hi, > > > > Is it possible to set some kind of RUN-ONLY-ONCE restriction on a > sub-process in a rule flow, to avoid running this process multiple times in > the case of a cycle in the rule-f

Re: [rules-users] Load balancing, fail-over, replication

2010-04-22 Thread Mauricio Salatino
Hi Bertrand, Did you see my blog posts about Drools Grid? during this weekend I will post one presentation that I've do in Drools Boot Camp in San Diego yesterday, where I discuss this topic for large environments. In the meantime you can take a look at my previous blog post about this work: http:

Re: [rules-users] Apply a selector by default in Guvnor

2010-04-22 Thread Mauricio Salatino
I'm not sure if can be done right now... but it's a cool feature to add.. we are also thinking to add support for a flow based revision of each rule.. that allows the user define a set of stages required to a rule to be usable and exported. On Wed, Apr 21, 2010 at 10:41 AM, Jean-Denis Maroie wro

Re: [rules-users] Multithreading work items

2010-04-22 Thread Mauricio Salatino
can you describe a little bit your use case? I'm not sure about what you want to achieve. 2010/4/21 Pedro Maria Buitrago Mantilla > In general, I meet that for resolve the topic of multithreading it's > required to implement another thread over a work item. > > How does the asynchronic task can

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread Mauricio Salatino
client.getTasksAssignedAsPotentialOwner("Joe", "en-UK", summaryHandler); This method used the "en-UK" for i18n reasons.. you need to set the field content (and I'm sure right now, because that I don't have the source code here) and the field comment to "en-UK". 2010/4/22 rudolf michael > and the

Re: [rules-users] drools-guvnor 5.1.0-M1 not available on Maven2

2010-04-22 Thread Mauricio Salatino
guvnor is a web application, that's why it's not deployed there. What are your goals exaclty? try to give us more details. On Thu, Apr 22, 2010 at 10:27 AM, fmetral wrote: > > Hi all, > > I'd like to add a dependency in my project on drools-guvnor in version > 5.1.0-M1. > > Unfortunately, for t

Re: [rules-users] Very basic running of drools 5, basic setup and quickstart

2010-04-22 Thread Greg Barton
Have you ever thought of using maven?  Your problem is no doubt with including the transitive dependencies of the drools libraries, which maven would do for you automatically.  Here are the jars that were included automatically in a project I compiled with drools-core, drools-compiler, drools-ap

[rules-users] RPC call exception with drools guvnor

2010-04-22 Thread Dominik Hüttner
Hi, I use drools guvnor first version 5.1.0, but now I have to use 5.0.1. On the PC, it has to work on, the following error is produced, when I enter the drools webpage: 22.04.2010 14:24:03 org.apache.catalina.core.ApplicationContext log SCHWERWIEGEND: Exception while dispatching incoming

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread Mauricio Salatino
Did you see the "en-UK" parameter in the getTasksASPotentialOwner method? are you setting that value to the content field? On Thu, Apr 22, 2010 at 9:16 AM, HMandic wrote: > > Still no resolution... > > I was reading through gazillion rows of log output (I've put > log4j.logger.org.hibernate=debu

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread rudolf michael
and the hibernate hql query select new org.drools.task.query.TaskSummary( t.id, names.text, subject.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn,

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread rudolf michael
and this is how i am listing the tasks. try { MinaTaskClient client = new MinaTaskClient("client 1", new TaskClientHandler(SystemEventListenerFactory.getSystemEventListener())); NioSocketConnector connector = new NioSocketConnector(); SocketAddress address = new InetSocketAddress("127.0.0.1",9123);

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread rudolf michael
well i had your problem when i started doing some human task processing then after i have set the Comment for the tasks, the task list worked fine for me. Find below my Test case logs: Hibernate: update ProcessInstanceInfo set externalVariables=?, lastModificationDate=?, lastReadDate=?, processId=

[rules-users] drools-guvnor 5.1.0-M1 not available on Maven2

2010-04-22 Thread fmetral
Hi all, I'd like to add a dependency in my project on drools-guvnor in version 5.1.0-M1. Unfortunately, for this version, only the pom is deployed on Jboss Maven2 repository http://repository.jboss.com/maven2. No the jar. Would it be possible to deploy the jar. It would be very helpfull. Thank

[rules-users] Drools3 syntax fails in Drools5

2010-04-22 Thread agopalkr
I am trying to migrate from Drools3 to Drools There is one particular syntax which works in Drools3 but not in Drools5. rule "Test Long2" when //Gives error in D5 m : MyLongValue(id1) then System.out.println("did it2:" + m); e

Re: [rules-users] Drools Flow: Another problem with Human Task

2010-04-22 Thread HMandic
Still no resolution... I was reading through gazillion rows of log output (I've put log4j.logger.org.hibernate=debug and log4j.logger.org.hibernate.hql.ast.AST=debug in log4j.properties) for the last few days, and still can't figure it out. It has nothing to do with my human task item (I populate

Re: [rules-users] BuildError: Unable to resolve ObjectType

2010-04-22 Thread BS
Hi all again, I still get distracted by the errors I have described in my original post. Although my post got hijacked, I still hope for help :-) I have to add, that I use Eclipse 3.5.1. Any idea why the IDE plugin displays these errors for guided rules? Anything that I should check? Regards, B

Re: [rules-users] Newbie on drools and servlets

2010-04-22 Thread Swindells, Thomas
As ever the answer is it depends on how you want to do it and where you want to put the logic. I'm not convinced that necessarily need to use flow, instead just use a stateful knowledge session (one per client session). Your servlet populate it with your constraints and whatever, runs a query o

[rules-users] RuntimeDroolsException as Solver concludes execution

2010-04-22 Thread dweppenaar
Hi. I am experiencing the following exception: org.drools.RuntimeDroolsException: Exception executing ReturnValue constraint org.drools.rule.returnvaluerestrict...@a5f6c234 : java.lang.NullPointerException. The rule that is causing the exception to occur is the following: rule "spreadOvertime"

Re: [rules-users] ClassCastException during inserting knowledge package

2010-04-22 Thread Piotr Jedrychowski
I've downloaded last stable build (number 3845, made 2010-04-14) from Drools Hudson (http://hudson.jboss.org/hudson/job/drools/). After running my tests I got same problem (but little different StackTrace): java.lang.ClassCastException: org.drools.core.util.ObjectHashMap at org.drools.reteo

Re: [rules-users] NullPointerException during removing knowledge packages

2010-04-22 Thread Piotr Jedrychowski
I've downloaded last stable build (number 3845, made 2010-04-14) from Drools Hudson (http://hudson.jboss.org/hudson/job/drools/). After running my tests I got same problem (but little different StackTrace): java.lang.NullPointerException at org.drools.reteoo.ReteooBuilder.removeRule(ReteooB

[rules-users] Newbie on drools and servlets

2010-04-22 Thread kuena
Hi, I know a question has been asked before about drools and servlets, so I apologise in advance. May someone please advice me on the best way of making Drools and servlets friends in my application ;-) I want to use drools to re-implement the servlet shown below. I have also attached the flow.

Re: [rules-users] Problems with result mapping for custom workitems

2010-04-22 Thread LokR
First, thank you for your answer Mauricio, my class definition is in my first mail, so, you can already see it, here it is: /forum/src/main/java/workDefinitions/Workmodel.java === package workDefinitions; public class Workmodel

[rules-users] Load balancing, fail-over, replication

2010-04-22 Thread Bertrand Grottier
Hello, I am evaluating the possible use of Drools to implement a pricing engine. Until now, I have developped my prototypes on my own computer; everything was fine. However, if Drools is retained, it will be used in a shared environment. More precisely, a shared platform is provided for differen