Re: [rules-users] Drools flow and BPEL (Drools 5.1)

2010-09-15 Thread tim
Do you mean that there isn't embedded BPEL (i.e Apache ODE) in Drools 5.1?If that's true, I'll have to find other ways to support BPEL in our product. I find there is a guvnor-BPEL-editor component in Drools 5.1.1 source code. Are you planning to provide a BPEL editor in Guvnor? And in which rele

[rules-users] On Entry On Exit actions question

2010-09-15 Thread Gustavo Tenrreiro
Hi, When using an "Email" node for example, where On Entry, and On Exit actions are available. If I create an object within the On Entry action ( Let's say a list of recipients for the email ), how do I access that data from the body of the email ? What is the best strategy to access data that was

Re: [rules-users] Guvnor InvalidClassException

2010-09-15 Thread Robert Morse
Ah ha! Thank you! On Sep 15, 2010, at 2:57 PM, Tihomir Surdilovic wrote: > Seam 2.2 uses Drools 5.0, so you have to use Guvnor 5.0 as you need > the same version jars that are used to serialize and de-serialize > sessions/kbases. > > On 9/15/10 4:23 PM, Robert Morse wrote: >> I have a Seam 2

[rules-users] Memory leak error when deploying Guvnor in Tomcat

2010-09-15 Thread bbarani
Hi, I am getting the below now and then when I try to export the repository from one system to another system (move the repository folder / repository.xml file present in bin folder of tomcat to tomcat bin folder of another system). Can someone let me know what might be the root cause of this iss

Re: [rules-users] Guvnor InvalidClassException

2010-09-15 Thread Tihomir Surdilovic
Seam 2.2 uses Drools 5.0, so you have to use Guvnor 5.0 as you need the same version jars that are used to serialize and de-serialize sessions/kbases. On 9/15/10 4:23 PM, Robert Morse wrote: > I have a Seam 2.2 application that works perfectly with Drools when it > references the drl file dir

Re: [rules-users] How to remove a persisted session from the database ?

2010-09-15 Thread Gustavo Tenrreiro
Yeah thanks ! I had figured it out, but how do you get your "transactional context" ? I ended up doing the following, in case someone else needs to do the same: within a class... public void deleteSession(StatefulKnowledgeSession session) { initTransactionManager();

[rules-users] Guvnor InvalidClassException

2010-09-15 Thread Robert Morse
I have a Seam 2.2 application that works perfectly with Drools when it references the drl file directly. Using Guvnor 5.1.0.M1 and the same drl, I'm getting the exception listed below. I've used earlier releases of Guvnor without any issues, but was curious why this would occur. I've stayed a

Re: [rules-users] EntityManager is closed

2010-09-15 Thread drooRam
I forgot to mention one important point above, i am not using bitronix in tomcat i am trying to use tomcat with spring transactions and hibernate...no bitronix at all -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/EntityManager-is-closed-tp1475301

Re: [rules-users] How to remove a persisted session from the database ?

2010-09-15 Thread drooRam
I have done something like below to remove the persisted session : SessionInfo si = em.find(SessionInfo.class, sessionId); em.remove(si); call the above lines in a transactional context. its done. -- View this message in context: http://drools-java-rules-engine.

Re: [rules-users] EntityManager is closed

2010-09-15 Thread drooRam
thanks for ur reply... But where did u set the env.set (EnvironmentName.CMD_SCOPED_ENTITY_MANAGER, emf.createEntityManager ()); I used the drools:ksession tag in my applicationContext.xml ( spring ) and autowired to my service class which uses the ksession.

Re: [rules-users] Drools dependencies

2010-09-15 Thread Evert Penninckx
Mark Proctor wrote: > >> I read the README_DEPENDENCIES file, but it's rather outdated by now. Is >> it >> possible to update this file? > The file is just a summary of what's defined in the maven pom.xml. > Well, the thing is, we're not using maven but only ant. Even then, the readme file sta

Re: [rules-users] Drools: to find out if a rule has been triggered or not in a rule in when clause

2010-09-15 Thread Wolfgang Laun
If you set up an event handler for rule firings, you can insert a fact RuleHasFired( String name ) and use this as an additional pattern in the "one rule". Make sure not to insert duplicates by keeping track of already inserted RuleHasFired facts with a certain rule name. -W 2010/9/15 Shweta Agar

[rules-users] Drools: to find out if a rule has been triggered or not in a rule in when clause

2010-09-15 Thread Shweta Agarwal
Hi, In Drools, I have to trigger one rule based on some conditions and also if some rules, triggers and some do not trigger at all. I need to find this out in the when clause. Any idea on how to find if a rule has been triggered or not. Any help will be greatly appreciated. Thanks, Shweta Agarw

Re: [rules-users] forall not delivering as expected

2010-09-15 Thread Edson Tirelli
Hey Wolfgang, I owe you a few answers on this and other e-mails... I will try to reply to all of them by EOD today... just been busy trying to finish the parser changes... Edson 2010/9/15 Wolfgang Laun : > If someone from the Team would please confirm that this is indeed a bug? > Then I

Re: [rules-users] simultaneous forEach

2010-09-15 Thread Jonathan Woods
I've just noticed this too - I presume you mean using the 'from' keyword. The iteration seems to take place over only the match conditions which follow the 'from' line. I tried a debug-printing eval() before and after; when before 'from', it was evaluated only once; when after, it was evaluated (

[rules-users] simultaneous forEach

2010-09-15 Thread Carlos Villegas
Hi, I'm testing Drools Flow functionality and it seems that the foreach node iterates over the collection one value at a time, the embedded flow is executed sequentially for each value. I'm looking for some construct that invokes each embedded flow simultaneously for each collection value. L

Re: [rules-users] Drools Eclipse IDE Update Site 3.5

2010-09-15 Thread Toni Rikkola
I'll take a look at this. Toni Rikkola On Sep 14, 2010, at 5:52 PM, Brian Trezise wrote: > I'm not sure why, but when I try to get eclipse to download the > eclipse IDE from the drools update site as listed on the webpage, > Eclipse isn't seeing anything there. If i go to the link in Chrome

Re: [rules-users] forall not delivering as expected

2010-09-15 Thread Wolfgang Laun
If someone from the Team would please confirm that this is indeed a bug? Then I'll submit a JIRA. -W On 13 September 2010 08:50, Wolfgang Laun wrote: > Since the following rule is just a variant of (Expert) Example 4.66, "All > Buses are Red", I think that there is a bug, in 5.1.1: > > // Does n

Re: [rules-users] Drools flow and BPEL (Drools 5.1)

2010-09-15 Thread Mark Proctor
On 15/09/2010 07:46, tim wrote: > Hello, > I am studying how to integrate Drools 5.1 into our product. And we will need > a BPEL engine embedded in Drools. I read from the "Drools Flow User Guide" > that "the Drools Flow engine is based on a generic process engine that > allows the definition and

Re: [rules-users] Drools dependencies

2010-09-15 Thread Mark Proctor
On 15/09/2010 11:00, Evert Penninckx wrote: > Hello > > I'm using ant to compile and deploy a project which uses drools. I ran in > some jar dependency problems and have a hard time understanding which > packages are required for what and which dependent libs are really needed. > > I read the REA

Re: [rules-users] Drools Flow Events Not Working

2010-09-15 Thread jawa
Thanks for your reply. I am not using for each element. I am just using AND node with a message event and another node coming to it so process stops there and wait for the signal. Then I signal event as I mentioned in my posts above but get into problems as I've mentioned in my previous posts. Ho

Re: [rules-users] Drools Flow Events Not Working

2010-09-15 Thread Vlach Miloslav
Hello, I sent to Kris informations, that message event in for each element don't works. When the message event is on first level of the flow diagram (not in other containers) the signaling works for me. M. -Původní zpráva- Od: rules-users-boun...@lists.jboss.org za uživatele jawa Odes

[rules-users] Drools dependencies

2010-09-15 Thread Evert Penninckx
Hello I'm using ant to compile and deploy a project which uses drools. I ran in some jar dependency problems and have a hard time understanding which packages are required for what and which dependent libs are really needed. I read the README_DEPENDENCIES file, but it's rather outdated by now.

Re: [rules-users] Drools Flow Events Not Working

2010-09-15 Thread jawa
Any idea anyone? No one knows how to raise an event on session/flow? Thanks -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Events-Not-Working-tp1453738p1478568.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] using forall to validate same field value from a list

2010-09-15 Thread Wolfgang Laun
You have to establish the age of one applicant as bound to a variable so that you can ascertain this being equal to the age of all Applicants. rule "age-2" when $list : List( size > 0 ) # ensure non-empty so that get(0) doesn't NPE forall( Applicant( $age : age == ( ((Applicant)$list.get(

[rules-users] Waiting in the Join node (AND)

2010-09-15 Thread Ji Oh Yoo
Hi, I am a new to Drools and I have a question. I set up the Join (AND) node having two incoming edges, one from some other node and one from some Event node. I thought the Join (AND) node should wait until the Event node is triggered (triggered by separate user input) but the process actually

[rules-users] using forall to validate same field value from a list

2010-09-15 Thread tushmish
Hi, My requirement is to check for same field value from a list of items. in the test case mentioned below, I want to verify that all the applicants are of same age. I am running the rule as mentioned below. The 'then' part does not execute. Please suggest. Thanks for your time. public cla