Re: [rules-users] Drools Timers

2014-09-24 Thread Mauricio Salatino
Hi Demian, As far as I remember you can use a CRON like expression in the timer definition which will allow you to do that exactly. On Wed, Sep 24, 2014 at 4:59 AM, Demian Calcaprina calcacue...@gmail.com wrote: Hey Guys, I am trying to use to use the timer in the rule, but I don't fully

Re: [rules-users] Anyone? Re: Drools bpmn gateway constraints questions

2014-08-13 Thread Mauricio Salatino
Hi Matt so: 1. How do I refer to the current fact? - Can I do something like this? *$cancerRecord : CancerRecord ()* *The current record where??? If you have multiple CancerRecord(s) each of them will match with that conditional element. If you have a business process with a process variable

Re: [rules-users] Including repository in a WAR file

2014-07-23 Thread Mauricio Salatino
Hi, I don't think that it will be possible the repository is a JCR repository in 5.3, so there is no point in storing all the meta information from the repository if the only thing you need are the rules. You can always ship the rules inside the web application, provide a way to upload new rules

Re: [rules-users] Including repository in a WAR file

2014-07-23 Thread Mauricio Salatino
You can build the PKGs in guvnor and then just move the PKGs to a accesible server by the app that will load the rules in those packages. That will do the work IMO. Regards On Wed, Jul 23, 2014 at 2:39 PM, ilguapo ilgu...@gmail.com wrote: Thank you for replying Toni and Salaboy. This is the

Re: [rules-users] How do I access objects in a top level or condition?

2014-05-28 Thread Mauricio Salatino
Hi, you can't because you don't know which is true. You can create two rules one for each condition and then you can access by binding the Conditaional Element to a variable: Like for example: when $c: Customer( age == 50 ) then $c.setAge( 40 ); On Wed, May 28, 2014 at 3:39 PM,

Re: [rules-users] Distributed Drools

2014-04-24 Thread Mauricio Salatino
Daniel, that sounds as a really good project, as Esteban and Davide mention we should work together to at least share experiences and cons and pros over the two different implementations (drools only vs jade + drools). Keep us posted about your progress! On Thu, Apr 24, 2014 at 8:07 AM, Esteban

Re: [rules-users] Drools UI inside JSF

2014-03-21 Thread Mauricio Salatino
Hi, as far as I know there is nothing, but it shouldn't be that difficult to create. You will need to build a bridge between JSF and GWT and try to embed some bits of guvnor into your JSF app. I strongly recommend you to take a look at the new version of the tooling which will allow you to be more

Re: [rules-users] Want to post to this list

2014-03-21 Thread Mauricio Salatino
Hmm.. you are already posting to this list.. just send the questions :) On Fri, Mar 21, 2014 at 10:01 AM, Ankit Jain anki...@gmail.com wrote: Hi, I am Ankit Jain, a newbie to Drools. In order to get my queries answered I would like to post to this mailing list. Regards Ankit

Re: [rules-users] (no subject)

2014-03-10 Thread Mauricio Salatino
Can you please elaborate about why do you want to do that? what's the point of having a list inside of the Event class that will contain the same event? The Then side of the rule is pure java.. so you just do event.getEvents().add(event); but I don't see the point of doing that. Regards On

Re: [rules-users] (no subject)

2014-03-10 Thread Mauricio Salatino
: Event.listOfEvent.add( ... ); @Mauricio: It's not unusual to maintain a static collection (even though there may be better ways, esp. with Drools). On 10/03/2014, Mauricio Salatino sala...@gmail.com wrote: Can you please elaborate about why do you want to do that? what's the point of having a list

Re: [rules-users] (no subject)

2014-03-10 Thread Mauricio Salatino
(DefaultAgenda.java:1287) On Mon, Mar 10, 2014 at 7:08 PM, Mauricio Salatino sala...@gmail.comwrote: Please copy the entire stack trace.. what you have copied doesn't mean anything besides that there is something wrong. On Mon, Mar 10, 2014 at 1:29 PM, Sandhya Sree sandhyachinna...@gmail.com wrote

Re: [rules-users] [Drools Activation-group] / how to set many activation groups

2014-02-10 Thread Mauricio Salatino
It seems that you can define a rule to codify what you are explaining. You can change the agenda groups using rules, so you can write a rule that know how and when change the agenda groups for each of your codes. On Mon, Feb 10, 2014 at 12:16 PM, jcarpene jerome.carp...@sopragroup.comwrote:

Re: [rules-users] Driving License application

2013-12-24 Thread Mauricio Salatino
Can you share with us the Applicant class? because if you have something like: boolean valid; it will be automatically initialized to false, so the rule will not do anything just leave the Applicant as it is On Tue, Dec 24, 2013 at 10:05 AM, seyfullah seyfullahti...@outlook.comwrote: Hello, I

Re: [rules-users] Driving License application

2013-12-24 Thread Mauricio Salatino
So, if you don't touch in some way the boolean valid, value in your rules or in your java code it will be false not true. On Tue, Dec 24, 2013 at 10:15 AM, seyfullah seyfullahti...@outlook.comwrote: package MyPackage; public class Applicant { public String getName() {

Re: [rules-users] Driving License application

2013-12-24 Thread Mauricio Salatino
Yeah, that will do the work. On Tue, Dec 24, 2013 at 10:34 AM, seyfullah seyfullahti...@outlook.comwrote: Ok, I changed my drl file and main method as follows, and it works. Thank you. package MyPackage import MyPackage.Applicant; rule Is of not valid age when $a : Applicant(

Re: [rules-users] Drools Roadmap - Planned Release 6.0.0.Final release date

2013-10-28 Thread Mauricio Salatino
We are working hard on get it out soon, but there is no definitive date as far as I know.. Maybe early next week (??) On Mon, Oct 28, 2013 at 6:53 PM, Juan Ignacio Barisich juan.baris...@gmail.com wrote: Hi everybody. I need to know if is there a planned release date for Drools platform

[rules-users] Free Drools jBPM Workshops in London

2013-10-22 Thread Mauricio Salatino
Hi everyone, tomorrow we (Michael Anstis) are doing a couple of workshops about the new Drools and jBPM 6 platform. Here you can find more details about the event: http://salaboy.com/2013/10/04/drools-and-jbpm-6-workshops-2324-october-london/ There are very few seats available, so get in touch

Re: [rules-users] Free Drools jBPM Workshops in London

2013-10-22 Thread Mauricio Salatino
, ** ** *From:* rules-users-boun...@lists.jboss.org [mailto: rules-users-boun...@lists.jboss.org] *On Behalf Of *Mauricio Salatino *Sent:* Tuesday, October 22, 2013 8:49 AM *To:* Rules Users List; Rules Dev List *Subject:* [rules-users] Free Drools jBPM Workshops in London ** ** Hi everyone

Re: [rules-users] Help on writing a rule

2013-10-22 Thread Mauricio Salatino
Just curious here, why do you have this - signal : Signal( id == 1234 ) over window:length(1)? On Tue, Oct 22, 2013 at 9:40 PM, Davide Sottara dso...@gmail.com wrote: Am I wrong or do you have two PriceChange events - 392 and 394 ? If so, you can expect two activations.. when you fire al

Re: [rules-users] Drools Flow

2013-10-14 Thread Mauricio Salatino
Yeah, Drools Flow was renamed to jBPM 5 and 6 On Mon, Oct 14, 2013 at 5:44 PM, vojedav voje...@hotmail.com wrote: What happened with that project? Is embedded in Rules Expert o where? If I want to develop an app with workflow, have I to get jBPM instead? Thanks in advance -- View this

Re: [rules-users] Indicating used rules

2013-09-23 Thread Mauricio Salatino
yeah you can do that, you can write rules about rules activations with the declarative agenda feature. Check this out: http://planet.jboss.org/post/declarative_agenda_and_control_rules On Mon, Sep 23, 2013 at 4:06 PM, Andrzej Grzelak andrzej.grze...@g.plwrote: Hello again, Im making some

Re: [rules-users] JBPM 6 Loop back.

2013-09-08 Thread Mauricio Salatino
Can you please elaborate a little bit more? I coudn't understand what the problem is. Cheers On Sun, Sep 8, 2013 at 6:59 AM, Naman Shah nshah.w...@gmail.com wrote: I got a work flow, which has a loop back. ?node : yes-- do x /?node:no --repeat previous yes works and n o dont and also i

Re: [rules-users] Is drools the solution for my requirement.

2013-08-27 Thread Mauricio Salatino
It all depends on how often those rules will change and how often you will add new ones. It is also important to understand if the business users wants to see the rules and understand what is going on, or everything will be hidden? From the maintainance point of view, the rules can help you out

Re: [rules-users] What are Recursion Rules. Any example

2013-08-20 Thread Mauricio Salatino
Hi, why do you want to understand that? What are you trying to solve? Help us to help you. Usually when the terms Rules Recursion is used, is when you have a rule or a set of rules that are executed in a loop because the consequence of a rule trigger the same rule again. This can be caused

Re: [rules-users] Process Compilation Error: Drools can not be resolved

2013-08-20 Thread Mauricio Salatino
Yeah, that's because drools doesn't exist. I think that you can use the kcontext, in order to do that.. Try something like: kcontext.getKnowledgeRuntime().getFactHandles() instead of drools.getWorkingMemory().getFactHandles() On Tue, Aug 20, 2013 at 11:42 AM, V Vignesh vignes...@solartis.net

Re: [rules-users] Process Compilation Error: Drools can not be resolved

2013-08-20 Thread Mauricio Salatino
The kcontext is a special variable of the type RuleContext. If you take a look at that interface and all the inheritance you will find out which methods you can use. You can do something like: kcontext.getKnowledgeRuntime().getObjects() and then look for the HashMap. I'm not sure what do you want

Re: [rules-users] Process Compilation Error: Drools can not be resolved

2013-08-20 Thread Mauricio Salatino
Yeah I noticed that you are trying to do that.. but my question is why are you doing that. Are you using the hashmap in some rules? Why are you using a script task? You can use a workItemHandler to have more control on the objects that you are using and also to have auto completion, compilation

Re: [rules-users] Snapshot of drools engine's state

2013-08-12 Thread Mauricio Salatino
IMO that's a very difficult problem to solve.. because if you want to do it every X seconds you can be caught in the middle of an execution. If you delay the snapshot creation for when the execution ends, you will probably caught in the next snapshot creation. Depending on what are you doing

Re: [rules-users] JbpmJunitTestCase - where does it live?

2013-08-12 Thread Mauricio Salatino
That class is in jbpm-tests https://github.com/droolsjbpm/jbpm/blob/master/jbpm-test/src/main/java/org/jbpm/test/JbpmJUnitTestCase.java On Mon, Aug 12, 2013 at 10:18 AM, droolster quant.co...@gmail.com wrote: Hello, I have imported the jbpm dependency into my project: dependency

Re: [rules-users] Integrating custom UI with drools rule engine

2013-08-05 Thread Mauricio Salatino
Ok, so you will need to elaborate a little bit more, so we can help you. The Drools Engine is not Guvnor. The Drools Engine is Drools Expert and Guvnor is a Rules/Knowledge Assets Repository. I'm guessing that you have your own rules authoring environment and you want to deploy the rule to the

Re: [rules-users] Integrating custom UI with drools rule engine

2013-08-05 Thread Mauricio Salatino
if you are using Guvnor 5.5 the rules are being stored in both: DRL and BRL format. I would recommend you to go with a simple DRL format, which is plain text with valid rules in it. HTH On Mon, Aug 5, 2013 at 10:20 AM, ashish6276 ashishkumarec...@gmail.comwrote: Hi, I am creating UI which

Re: [rules-users] ruleflow-group and jBPMN

2013-08-05 Thread Mauricio Salatino
Are you calling fireAllRules after the process returns the execution to the application? Are you 100% sure that at least a rule is being activated? On Mon, Aug 5, 2013 at 4:54 PM, droolster quant.co...@gmail.com wrote: Hello, Please can the community help me. I have setup a Drools JBPMN

Re: [rules-users] Drools Dzone Refcard

2013-07-25 Thread Mauricio Salatino
Great Mario! Can I publish that in my blog? On Thu, Jul 25, 2013 at 9:01 AM, Mario Fusco mario.fu...@gmail.com wrote: Hi all, Marcin Grzejszczak and myself wrote a Dzone Refcard covering Drools 5.5 that is now available for download here: http://refcardz.dzone.com/refcardz/drools We

Re: [rules-users] Pattern matching rules

2013-07-24 Thread Mauricio Salatino
yeah you can use the matches operator and write your own regular expression there. Cheers On Wed, Jul 24, 2013 at 10:47 AM, rganesh84 ganesh_...@infosys.com wrote: I was just wondering if there is a pattern matcher available in drools. Below is a sample rule Action Movies dialect

Re: [rules-users] Getting deadlock-like thread state

2013-07-23 Thread Mauricio Salatino
If you run each of these sessions alone does you get the same problem? or this only happens when you try to run multiple sessions in parallel?? On Tue, Jul 23, 2013 at 1:33 PM, Bojan Janisch bojan.jani...@scai.fraunhofer.de wrote: Hey drools users, I'm running drools multiple times in

Re: [rules-users] clustering

2013-05-15 Thread Mauricio Salatino
Hi Sara, I'm not sure if this is the right mailing list for JBoss Application Server Clustering configurations. You should try at the JBoss AS User forums. On Wed, May 15, 2013 at 12:01 PM, sara ibrahim saraibrahimhas...@hotmail.com wrote: hi, i need to configure Jboss clustering , i tried

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
It could be related with the location of the file: classpath:data/ IntegrationExampleTest.xls Are you sure that the file is being picked up? On Wed, Apr 17, 2013 at 6:05 PM, Charles Moulliard ch0...@gmail.com wrote: Hi, When I try to instantiate an Excel Decision Table using Drools +

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
On Wed, Apr 17, 2013 at 11:11 PM, Mauricio Salatino sala...@gmail.comwrote: It could be related with the location of the file: classpath:data/ IntegrationExampleTest.xls Are you sure that the file is being picked up? On Wed, Apr 17, 2013 at 6:05 PM, Charles Moulliard ch0...@gmail.comwrote

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
) at org.drools.core.io.impl.ClassPathResource.getLastModified(ClassPathResource.java:180) On Wed, Apr 17, 2013 at 11:44 PM, Mauricio Salatino sala...@gmail.comwrote: Can you try pointing to a non existing location? to see if you get the same error? On Wed, Apr 17, 2013 at 6:30 PM, Charles Moulliard ch0...@gmail.comwrote: As the file exists under

Re: [rules-users] Strange error using Drools + Spring + DecisionTable

2013-04-17 Thread Mauricio Salatino
If you place the xls file inside src/main/resources it should be picked up for both, the test and the spring configuration On Wed, Apr 17, 2013 at 7:13 PM, Mauricio Salatino sala...@gmail.comwrote: Great! Good luck! On Wed, Apr 17, 2013 at 6:53 PM, Charles Moulliard ch0...@gmail.comwrote

Re: [rules-users] How to count the number of events that happened in the last X minutes and fire if is greater than Y

2013-04-15 Thread Mauricio Salatino
Hi Adrian, nice to see you here, you can do something like: Number(intValue Y ) from accumulate ( $e: MyEvent() over window:time(x m), sum($e)) On Mon, Apr 15, 2013 at 1:26 PM, Adrián Paredes adri...@epidataconsulting.com wrote: People, I'm new at Drools Fusion and I found a problem

Re: [rules-users] Shared Facts across nodes

2013-04-04 Thread Mauricio Salatino
Hi Mauro, At this moment you can't share the session state between multiple nodes. You can replicate your sessions in different nodes. Which means that two or more nodes will contain the same set of facts. Drools Grid was an experiment, so I don't recommend you going on that direction. On

Re: [rules-users] Expert Systems and Functional programming?

2013-03-15 Thread Mauricio Salatino
I usually try to attend RuleML meet ups and Intellifest (ex October Rules Fest) there you meet all the Expert System community. Cheers On Fri, Mar 15, 2013 at 5:43 PM, Grant Rettke gret...@acm.org wrote: Who are the primary researchers of expert-systems today? On Tue, Mar 12, 2013 at 8:21

Re: [rules-users] Web services and Drools

2013-01-14 Thread Mauricio Salatino
You can also take advantage of the Drools and Camel integration. Apache Camel is an integration framework that does exactly that, expose the services via different transports. Cheers On Mon, Jan 14, 2013 at 3:00 PM, Stephen Masters stephen.mast...@me.comwrote: Personally, I use the Spring

Re: [rules-users] Drools + Semantic Web : EulerGUI

2012-12-07 Thread Mauricio Salatino
for a rules, BPMS, inference, IA, Meetup in London, but found none . I can be here longer. I may move my meeup to attend yours. JMV 2012/12/7 Mauricio Salatino sala...@gmail.com Hi Jean-Marc, Ouch! I will be doing a jBPM5 and Drools talk at the same time the same day in the same city! I would

Re: [rules-users] A basic doubt about Drools Fusion

2012-12-07 Thread Mauricio Salatino
There should be a listener for afterActivationCreated, right? On Fri, Dec 7, 2012 at 3:16 PM, Esteban Aliverti esteban.alive...@gmail.com wrote: I think you have 2 main options here: - Invoke fireUnitlHalt() in an independent thread. - Invoke fireAllRules() after each insert() you

Re: [rules-users] Setting value in LHS for access in RHS

2012-11-30 Thread Mauricio Salatino
Hi Steve, Can you please gives us an example about what are you trying to achieve? Setting a variable in the LHS doesn't make sense for the common use cases. What we usually do is to bind a variable to a field from our facts, but that's it. Cheers On Fri, Nov 30, 2012 at 2:10 PM, Stephen

Re: [rules-users] Setting value in LHS for access in RHS

2012-11-30 Thread Mauricio Salatino
in the LHS to the object inserted on the RHS. I could do it by having different DSL phrases for consequences, but my audience is very non technical so I'm trying to keep the language as minimal as possible. Hope that explains it! Steve Mauricio Salatino sala...@gmail.com wrote: Hi Steve

Re: [rules-users] persistence packages in jbpm and drools

2012-11-29 Thread Mauricio Salatino
Hi Ricardo, Yes you can store the Drools working memory / knowledge session into a persistence storage to restore the previous state later. The same mechanisms are used for Processes. You will see that jbpm-persistence-jpa contains a dependency to the drools-persistence-jpa which contains the

Re: [rules-users] jBPM5 Developer Guide Official Presentation in London

2012-11-29 Thread Mauricio Salatino
, 2012, at 3:33 PM, Mauricio Salatino sala...@gmail.com wrote: Hi everyone, First of all sorry for cross posting, but as you may know jBPM5 and Drools are two very related projects. I just want to invite you all to a talk that Esteban Aliverti and myself will be giving about the jBPM5 Developer

Re: [rules-users] Drools response time

2012-11-27 Thread Mauricio Salatino
Hi Jesus, Well do you want us to include the response time for your Database? The Drools Rule engine will keep all your facts inside the main memory (RAM) so it will be fast, but if you need to retrieve data from your database, you will need to take that into account. Depending on how you are

Re: [rules-users] drools grid or other high availability solution?

2012-11-09 Thread Mauricio Salatino
Hi Justin, We are working on it, drools-grid was an experimental project to start the design. We also have the Drools Server using camel, and we will continue the development of the remoting APIs, probably after the next release. Cheers On Fri, Nov 9, 2012 at 5:21 PM, Justin Case

Re: [rules-users] drools grid or other high availability solution?

2012-11-09 Thread Mauricio Salatino
:* Mauricio Salatino sala...@gmail.com *To:* Justin Case send_lotsa_spam_h...@yahoo.com; Rules Users List rules-users@lists.jboss.org *Sent:* Friday, November 9, 2012 6:35 PM *Subject:* Re: [rules-users] drools grid or other high availability solution? Hi Justin, We are working on it, drools-grid

Re: [rules-users] Is Flow / jBPM dying on the vine?

2012-11-08 Thread Mauricio Salatino
Yes, your scenario is a good scenario for Drools and JBPM. What you can do is to describe a set of rules to handle the events and those rules can trigger processes. In that way your process definitions will be smaller and you will be able to handle with rules the correlation of the events. Cheers

Re: [rules-users] Is Flow / jBPM dying on the vine?

2012-11-07 Thread Mauricio Salatino
Hi J, Yes kind the opposite, we are full speed working and the team is getting bigger and bigger. My book is going out in one month and as you can imagine it takes time to write and a lot of effort. Write now it's getting reviewed by the editorial and it will be released early December. Feel free

Re: [rules-users] Leveraging Drools project in JBPM workflow

2012-11-05 Thread Mauricio Salatino
I've wrote a set of articles about the subject: http://salaboy.com/2012/07/29/processes-rules-or-rules-processes-3x/ Follow the links to the previous ones. I suggest you to read them in order. The README file inside this repository:

Re: [rules-users] Task Handler blocking

2012-10-17 Thread Mauricio Salatino
Hi Alberto, yes you can, the only thing that you need to do is deal with those I/O blocking operations as external and Async Tasks. Instead of making your Task sync (which will block by definition until your operations are done) just make them async by removing the completeWorkItem() method call

Re: [rules-users] UderFire

2012-09-24 Thread Mauricio Salatino
Hi Anton, As soon as the framework gets officially announced I will publish a couple tutorials about how to make simple hello worlds applications. In the mean time you can take a look at the uberfire-showcase project, which is a sample application demonstrating how to create an application that

Re: [rules-users] UderFire

2012-09-24 Thread Mauricio Salatino
I don't know right now the exact date, but I'm expecting to be any time soon. Cheers On Mon, Sep 24, 2012 at 7:27 PM, Anton Nikulin antonni...@gmail.com wrote: Thanks, Mauricio Can you tell me when UbetFire will be officially announced? Regards, Anton. 2012/9/25 Mauricio Salatino sala

Re: [rules-users] Call a Process from a Rule

2012-09-03 Thread Mauricio Salatino
Hi, A lot of questions in the same email about different subjects! :) Yes you can start a process inside the Right Hand Side of a Rule using: kcontext.getKnowledgeRuntime().startProcess(here goes the process id, here the parameters) For running a rule every two days you will need to use timers,

Re: [rules-users] Call a Process from a Rule

2012-09-03 Thread Mauricio Salatino
Hi there, thanks for the interest in the book, it is now in technical revision phase, there is nothing more that I can do to speed it up. Cheers On Mon, Sep 3, 2012 at 5:09 PM, Sadiroveski sadiro...@hotmail.com wrote: Thanks Salaboy, You are right, but the problem is that Still Have Thousands

Re: [rules-users] fireUntilHalt() is halt forever

2012-08-15 Thread Mauricio Salatino
Hi, yes if you use : drools.halt(); that will stop the session. What exactly do you want to achieve with that? Cheers On Wed, Aug 15, 2012 at 5:49 PM, Rana ven12...@yahoo.com wrote: Hi my rule file is halt for ever. Can anybody tell me why. I debugged and saw that it is going into this method

Re: [rules-users] Workitems doesn't get persisted when completing a task after rehydrating a knowledge session is some circumstances.

2012-06-26 Thread Mauricio Salatino
, Mauricio Salatino sala...@gmail.comwrote: What I've noticed in the past, doing consulting is that people wants to migrate from jBPM3 that is almost stateless to jBPM5 and have everything inside a Stateful session with a richer context and expect that everything will work in the same way. If you

Re: [rules-users] Drools JBPM Persistence

2012-06-25 Thread Mauricio Salatino
R. Galdo arga...@gmail.com On Fri, Jun 22, 2012 at 3:05 PM, Mauricio Salatino sala...@gmail.comwrote: Drools and jBPM are being executed in the same thread, in your set up mina is not. Is that what are you pointing out? Did you really need to have mina in a separate JVM or you can use

Re: [rules-users] Workitems doesn't get persisted when completing a task after rehydrating a knowledge session is some circumstances.

2012-06-25 Thread Mauricio Salatino
began to face ugly race conditions and rare transactional problems ... we honestly thought that must be our fault, that's why we opened this thread, just to check if someone had this problems and make ourselves wrong or found another solution. On Fri, Jun 22, 2012 at 3:03 PM, Mauricio Salatino

Re: [rules-users] Workitems doesn't get persisted when completing a task after rehydrating a knowledge session is some circumstances.

2012-06-22 Thread Mauricio Salatino
We are unable to complete a human task after rehydrating a Drools knowledge session because in some circunstances the generated Drools' workitems don't get persisted in the database after the completion of a previous task They are never persisted, they are runtime information that you must

Re: [rules-users] Drools JBPM Persistence

2012-06-22 Thread Mauricio Salatino
Both persistence mechanisms are already unified. the jBPM-persistence module extends the Drools one adding the relevant entities by the processes. You can be having problems with the Mina Server, did you try the local configuration? The Mina Server was designed to run in a different JVM than the

Re: [rules-users] Workitems doesn't get persisted when completing a task after rehydrating a knowledge session is some circumstances.

2012-06-22 Thread Mauricio Salatino
:15 PM, Mauricio Salatino sala...@gmail.comwrote: We are unable to complete a human task after rehydrating a Drools knowledge session because in some circunstances the generated Drools' workitems don't get persisted in the database after the completion of a previous task They are never

Re: [rules-users] Drools JBPM Persistence

2012-06-22 Thread Mauricio Salatino
...@gmail.com On Fri, Jun 22, 2012 at 2:17 PM, Mauricio Salatino sala...@gmail.comwrote: Both persistence mechanisms are already unified. the jBPM-persistence module extends the Drools one adding the relevant entities by the processes. You can be having problems with the Mina Server, did you try

Re: [rules-users] Workitems doesn't get persisted when completing a task after rehydrating a knowledge session is some circumstances.

2012-06-22 Thread Mauricio Salatino
...@gmail.com On Fri, Jun 22, 2012 at 2:15 PM, Mauricio Salatino sala...@gmail.comwrote: We are unable to complete a human task after rehydrating a Drools knowledge session because in some circunstances the generated Drools' workitems don't get persisted in the database after the completion

Re: [rules-users] Drools JBPM Persistence

2012-06-22 Thread Mauricio Salatino
for long-time running processes. As mentioned, there is at least one scenario, at least when mina is involved, where things are broken. Alberto R. Galdo arga...@gmail.com On Fri, Jun 22, 2012 at 2:50 PM, Mauricio Salatino sala...@gmail.comwrote: I think that you are mixing things up. Did

Re: [rules-users] Is a single StatefulKnowledgeSession with Distributed Memory cache possible?

2012-06-14 Thread Mauricio Salatino
Yes, that's another option too.. it really depends on how you can accumulate data or split your data to be analyzed. Cheers On Thu, Jun 14, 2012 at 1:22 PM, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote: May be you can think differently : Instead of keeping all objects for 90 days,

Re: [rules-users] Looking for Drools audit tool

2012-05-30 Thread Mauricio Salatino
What kind of things do you want to audit? Most of the information generated by the engine can be exposed to be consumed by external tools. Edson write a great post about how to monitor the engine using JMX and Visual VM: http://blog.athico.com/2009/10/drools-monitoring-with-jmx.html On Wed, May

Re: [rules-users] Possibly race condition in a persisted Drools + JBPM during a StatefulKnowledgeSession

2012-05-29 Thread Mauricio Salatino
Ok, so what is happening is that two or more threads are fighting for the resources, causing that two or more transactions wants to be completed, but just one can win. All the other must be retried. Are you seeing rolled back exceptions in your stack trace? My question to you is if you really need

Re: [rules-users] Possibly race condition in a persisted Drools + JBPM during a StatefulKnowledgeSession

2012-05-29 Thread Mauricio Salatino
for the integration of a shared JPA persistence management of both Drools JBPM, wich may be the solution for this problem? ... Will we be better thinking to change our architecture ASAP? Greets, Alberto R. Galdo arga...@gmail.com On Tue, May 29, 2012 at 1:54 PM, Mauricio Salatino sala

Re: [rules-users] Possibly race condition in a persisted Drools + JBPM during a StatefulKnowledgeSession

2012-05-29 Thread Mauricio Salatino
of the transaction management to avoid race conditions? Alberto R. Galdo arga...@gmail.com On Tue, May 29, 2012 at 3:58 PM, Mauricio Salatino sala...@gmail.comwrote: I'm in no way saying this: Let me see if I'm getting this right, What you mean is that there is no way for the JPA persistence

Re: [rules-users] Possibly race condition in a persisted Drools + JBPM during a StatefulKnowledgeSession

2012-05-29 Thread Mauricio Salatino
task interactions and long running processes. If you are getting events in real time and you want to process them, you cannot expect to persist all the session state and have no performance impacts. Alberto R. Galdo arga...@gmail.com Cheers On Tue, May 29, 2012 at 4:43 PM, Mauricio Salatino

Re: [rules-users] Possibly race condition in a persisted Drools + JBPM during a StatefulKnowledgeSession

2012-05-29 Thread Mauricio Salatino
. xD Alberto R. Galdo arga...@gmail.com On Tue, May 29, 2012 at 5:59 PM, Mauricio Salatino sala...@gmail.comwrote: Comments inline, On Tue, May 29, 2012 at 12:24 PM, Alberto R. Galdo arga...@gmail.comwrote: Sure!. I didn't mention that we're running in a OSGi environment and we're

Re: [rules-users] Persist JPA Entity fact in session

2012-05-24 Thread Mauricio Salatino
You can use the Variable Persistency Strategies, that will store your facts in the database for you. You need to configure in the environment the strategies for example:

Re: [rules-users] ProcessInstance from StartProcessCommand

2012-05-18 Thread Mauricio Salatino
Did you take a look at the documentation? http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-integration-docs/html_single/index.html#d0e1070 Cheers On Fri, May 18, 2012 at 12:11 AM, Hrumph herman.p...@imail.org wrote: What would one call with the outIdentifier to get a result? --

Re: [rules-users] ProcessInstance from StartProcessCommand

2012-05-17 Thread Mauricio Salatino
Hi Herm, You can use the out identifier to get some result.. On Thu, May 17, 2012 at 8:25 PM, Hrumph herman.p...@imail.org wrote: I am using the StartProcessCommand through the BatchExecution interface, and it works fine, but I don't see any return information in the ExecutionResults, such

Re: [rules-users] Is there a faster way of doing this in Drools ?

2012-05-09 Thread Mauricio Salatino
You can do that step once and then reload the compiled rules from the disk, or use guvnor which will compile the rules for you. Cheers On Wed, May 9, 2012 at 12:55 PM, soumya_sd soumya...@yahoo.com wrote: I've a use case where I need to create a rule dynamically every time the user sends a

Re: [rules-users] Is there a faster way of doing this in Drools ?

2012-05-09 Thread Mauricio Salatino
Can you explain a little bit more about your context? having completely dynamic rules is not an usual use case, rules tends to be static because they define the business logic that you want to apply. So please elaborate on the context. On Wed, May 9, 2012 at 1:07 PM, soumya_sd soumya...@yahoo.com

Re: [rules-users] drools 5.0's RuleFlow drools 5.2's jbpm5

2012-05-05 Thread Mauricio Salatino
Yes, jbpm5 is focused on the BPMN2 modeling language, I suggest you to read about that specification in order to start working with jBPM5. From the technical point of view most of the things that you will read about Drools Flow are still valid for jBPM5 (except the modeling language - RuleFlow).

Re: [rules-users] ontologies

2012-03-30 Thread Mauricio Salatino
You usually create ontologies with other tools like Protege, right? 2012/3/30 Olfa h h.olf...@gmail.com hello, how I can create ontologies with Drools ? thx ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] NullPointerException when load file rules

2012-03-26 Thread Mauricio Salatino
What do you mean with doesn't work well? which problem are you experiencing? 2012/3/26 elMateo soyelma...@gmail.com Hi all, the problem is that Drools doesn't work well with Java 1.7.0 On Mon, Mar 26, 2012 at 2:21 PM, jjmartinez soyelma...@gmail.com wrote: Hello all, I have, again, this

Re: [rules-users] NullPointerException when load file rules

2012-03-26 Thread Mauricio Salatino
it and my project work ok again :) On Mon, Mar 26, 2012 at 5:41 PM, Mauricio Salatino sala...@gmail.comwrote: What do you mean with doesn't work well? which problem are you experiencing? 2012/3/26 elMateo soyelma...@gmail.com Hi all, the problem is that Drools doesn't work well with Java

Re: [rules-users] The rule language. More about the agenda-group and ruleflow-group attributes

2012-03-24 Thread Mauricio Salatino
As far as I remember Ruleflow Groups are documented inside the jBPM5 documentation and agenda group inside the Drools docs. What do you want to achieve with them? Cheers 2012/3/24 Maxim Kolchin kolchin...@gmail.com Hi, I've only been working with drools about couple of months. I've read the

Re: [rules-users] The rule language. More about the agenda-group and ruleflow-group attributes

2012-03-24 Thread Mauricio Salatino
to several groups which must fire in a certain order: at first rules from group-A, then rules from group-B etc. I don't know, how should I use agenda-group and ruleflow-group. And how to specify the order of the groups firing. Thanks for your help, Max 2012/3/24 Mauricio Salatino sala

Re: [rules-users] Drools and Jersey

2012-03-14 Thread Mauricio Salatino
) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) 2012/3/14 Mauricio Salatino sala...@gmail.com what are you trying to do? what's the error? the rule should look like rule create Rest Client when then new Client(); end 2012/3/14 mike mike...@gmail.com Hi there, I am

Re: [rules-users] Drools and Jersey

2012-03-14 Thread Mauricio Salatino
but the exception was happening inside Jersey. Please notice I reduced the code to the minimum. I had 'real' code doing more reasonable things with new Client. Client c = new Client() fails too. Thank you very much Mike 2012/3/14 Mauricio Salatino sala...@gmail.com Hi Mike, I've never

Re: [rules-users] Drools and Jersey

2012-03-14 Thread Mauricio Salatino
... and I don't think it's Jersey's fault because it works in any condition except when using mvel. I thought that the Drools team follows this list and might be interested in that bug. Thank you very much Mike 2012/3/14 Mauricio Salatino sala...@gmail.com Cool that you find that :) Cheers

Re: [rules-users] Drools and Jersey

2012-03-14 Thread Mauricio Salatino
. dependency groupIdcom.sun.jersey/groupId artifactIdjersey-client/artifactId version1.12/version /dependency Thank you very much Cheers Mike 2012/3/14 Mauricio Salatino sala...@gmail.com Sure.. we are interested in finding out what is happening. So, you find that when you are using

Re: [rules-users] Raising event signal from work item handler

2012-03-08 Thread Mauricio Salatino
Do you mean a ksession.signalEvent()?? Usually the work item is considered an execution outside the process context, so are not supposed to access the process context from there. Can you explains us a little bit about your use case? 2012/3/8 Swindells, Thomas tswinde...@nds.com Within a work

Re: [rules-users] Simple question about String comparison in Drool

2012-03-07 Thread Mauricio Salatino
you can just use String( this == key) On Wed, Mar 7, 2012 at 11:32 PM, shawn youngxiao...@hotmail.com wrote: I insert several strings into working memory to make a comparison. But how to compare a anonymous string to another string. code like: List String s = ArrayList String String key

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mauricio Salatino
Why are you trying with that partitioning approach? By the why I notice that most of the time when people uses ruleflow-groups they didn't realize that all the evaluations are done at insertion time, not when the process reaches the rule flow group, is that you case? Doing consulting around these

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mauricio Salatino
So the question is.. for processing those messages, you can set up multiple sessions and evaluate each message separately? or do you need to have all the messages in the same session? Cheers On Fri, Mar 2, 2012 at 3:58 PM, gboro54 gbor...@gmail.com wrote: I understand that all the evaluations

Re: [rules-users] Drools 5.3 partitioned rule base

2012-03-02 Thread Mauricio Salatino
But are the facts related with each other? do you need to analyze them all together inside the same session? Can you share a little bit more about your use cases? What do you mean with Execution execution of what? What do you mean with evaluation? Cheers On Fri, Mar 2, 2012 at 4:12 PM, gboro54

Re: [rules-users] traits - don more than 3 pojos, got IllegalArgumentException

2012-02-29 Thread Mauricio Salatino
Hi Michal, You need to change this: declare NiceMessage @format(trait) end to this: declare trait NiceMessage .. end Cheers 2012/2/29 Michal Bali michalb...@gmail.com Hi all, I came across this issue when trying out 'traits' with POJOs (not declared types). An

Re: [rules-users] CLOUD mode Vs Stream Mode.

2012-02-27 Thread Mauricio Salatino
Hi, What exactly are you doing with events? I think that the temporal operators will work as expected. If you are working in cloud mode you will not have sliding windows, the concept of now and events lifecycle managements as stated in the docs. Cheers On Mon, Feb 27, 2012 at 10:51 AM, Hassan

  1   2   3   4   5   6   7   >