[rules-users] Help with Accumulate function

2011-04-06 Thread dwipin
Hi, I am having trouble implementing this rule with the accumulate function. My rule requirement is - Aggregate all PnlAttributionAmounts with a type of "UNEXPLAINED" for all Positions for a given day. Below is the code I have for this - $position : Position(date == $currDate) $posScn : Po

Re: [rules-users] Question

2011-04-06 Thread Wolfgang Laun
You have already been given the link http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html. Browse and make sure to find all occurrences of "eval". -W On 7 April 2011 05:41, Heng hh wrote: > Hi > I need to know what is the eval function in drools? > > On

Re: [rules-users] Question

2011-04-06 Thread Heng hh
Hi I need to know what is the eval function in drools? On Wed, Apr 6, 2011 at 4:39 PM, Swindells, Thomas wrote: > As far as the drools engine is concerned there is no such thing as files, > there are just rules loaded into the knowledge base. > As for salience the manual is a good place to star

Re: [rules-users] difference between jBPM and drools?

2011-04-06 Thread Mark Proctor
On 06/04/2011 22:34, Mauricio Salatino wrote: It's the same thing, you can use jBPM5. because Drools Flow and jBPM4 are abandoned right now. Greetings Abandoned isn't the best word. jBPM5 is the successor of the two projects, incorporating aspects of both. It is mostly, if not entirely, api c

Re: [rules-users] difference between jBPM and drools?

2011-04-06 Thread Mauricio Salatino
It's the same thing, you can use jBPM5. because Drools Flow and jBPM4 are abandoned right now. Greetings 2011/4/6 > Hi, > > I don't find much about the difference between jBPM and drools flow, only > that jBPM is the official one ( > http://www.jboss.org/drools/drools-flow#Drools_Flow_and_jBPM,

[rules-users] whern to remove persistent stateful drools session

2011-04-06 Thread Stephan . Koops
Hi, I use drools with JPA peristence. It also persists the sessions. If I want to load them back, I got an exception. So I create a new session every time a need one. Is this a bad (or not good) strategy? When can I remove the persisted session from the database? Directly after closing it? Or c

[rules-users] difference between jBPM and drools?

2011-04-06 Thread Stephan . Koops
Hi, I don't find much about the difference between jBPM and drools flow, only that jBPM is the official one ( http://www.jboss.org/drools/drools-flow#Drools_Flow_and_jBPM, first paragraph of the section) and rethinked. I'm interested for the practical site. Can anybody tell me about the advant

[rules-users] Ruleflow "stalling" in stateless session - no events, workitems, etc

2011-04-06 Thread drdaveg
I apologize if this is covered elsewhere, but I am not sure of the keywords to search that would not return 1000 posts. I have ruleflow running from a rule that starts it in a StatelessKnowledgeSession. I am doing this to avoid inferencing, which is present in the stateful version of this applica

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread gs76pl
hi, thanks for your explanation.. at least now it's more clear to me (wish this information was in a drools flow doc). I've also found this thread http://drools-java-rules-engine.46999.n3.nabble.com/Resuming-the-Flow-SESSION-ID-PROCESS-INSTANCE-ID-WORKITEM-ID-td607507.html Resuming-the-Flow-SESSI

Re: [rules-users] Drools Guvnor - Websphere 7

2011-04-06 Thread smileychappy
Thanks! As you had mentioned, JCR libraries were conflicting with the ones in classpath for Portal server. I deployed the application to a separate server and the error went away. On a side note, I will try changing the classloader to PARENT_LAST and see if the error goes away on first server. --

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread Esteban Aliverti
If your WorkItems take so long, they must be asynchronous. If they are asynchronous, the state of the process is persisted after the WIHandler is invoked. If your system crashes after WI1 was invoked, then an external system (the one the WI is communicating with) received a signal to start its work

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

2011-04-06 Thread gs76pl
if you want to use just local transactions below should be enough in your spring.xml file then in your persistence.xml file should look like below org.hibernate.ejb.Hiberna

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread gs76pl
ok, you're right about the ht node i.e. once i completed the task using reloaded sessionId the process has progressed to the next node. The problem i have though is that i don't think it's enough (unless my understanding is incorrect). Say for a process like below: Start -> WorkItem1(takes 1 hour

[rules-users] [Drools Flow] Stop a timer event

2011-04-06 Thread JAMAL Moundir (EXT)
Hello, I'm using Drools Flow 5, I have N Message events waiting for a signal to be started, I want to launch a Timer in the beginning of my WorkFlow, if one of the event is received, then I want to stop the Timer and execute my workflow, else I want to execute another branch of my workflow.

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread Esteban Aliverti
The point is that there is no reason to restart the process. It will be restarted (from the ht node) when the client UI completes the task. Try just reloading your ksession and completing the task from the UI. Best Regards, Esteban Aliverti - Developer @

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread gs76pl
hi, thanks for your prompt reply, OK, i've a custom screen that checks for a task assigned to a specific user. What i'm trying to do now is checking how to restart a process when for instance the server crashes. In order to simulate this i'm killing my process once a human task has been created. A

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread Esteban Aliverti
If you left your process instance inside a human task node, you will need to continue up to that point when the session is restored. If you are using Human Tasks API, you will need to call client.complete(taskId, actorId, ...) for example. How are you completing your human tasks? Best Regards, XX

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread gs76pl
hi, this could be it as i call ksession.startProcess(processName). is there any way to restart a specific process then as i have problems with finding appropriate API -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-why-after-reloading-some-process

Re: [rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread Esteban Aliverti
Are you starting the process after loading the session? If so, then you are starting a new instance of the process. The first process is still waiting for the human task to be completed. Best Regards, Best Regards, Esteban Aliverti - Developer @ http://w

[rules-users] drools flow - why after reloading some process previously completed workItems gets executed once again?

2011-04-06 Thread gs76pl
hi, i've a simple drools flow process with one workItem (its execute method simply prints some text) and one human task. I'm using drools-persistence-jpa to save my process status and load it when process/server crashes. What i've noticed is that: 1. after starting process my processinfo table get

Re: [rules-users] Question

2011-04-06 Thread Swindells, Thomas
As far as the drools engine is concerned there is no such thing as files, there are just rules loaded into the knowledge base. As for salience the manual is a good place to start learning about it: http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-expert/html_single/index.html#d0e35