Re: [rules-users] Retrieve values from a Map

2010-08-11 Thread Manav
Thanks a lot Edson . The below approach worked like a charrm :).  I went with the second approach     Client( languages.keySet contains "Japanese",  $lang : language["Japanese"] ) Regards, Akash   From: Edson Tirelli To: Manav ; Rules Users List Sent: Wed

Re: [rules-users] Disting and group by

2010-08-11 Thread Edson Tirelli
Hi Wolfgang, I believe both suggestions (mine and yours) are equivalent, just different ways of writing down the solution for the problem. If you identify any significant difference in the results, please let me know... :) Edson 2010/8/11 Wolfgang Laun > 2010/8/11 Edson Tirelli : >

Re: [rules-users] Drools 5.1 Update Site

2010-08-11 Thread Georg Maier
Thanks for replying. I actually read the post, but I thought the answer referred to update sites regarding candidate releases - not finals as well. But probably I got it wrong. Sorry for the noise! -Ursprüngliche Nachricht- Von: rules-users-boun...@lists.jboss.org [mailto:rules-users-bou

[rules-users] JpaManager - SingleSessionCommandService

2010-08-11 Thread drooRam
Hi, I am using bitronix transaction manager for oracle through tomcat... i have set the transaction manager as follows : and finally passing this wrapped JtaTransactionManager to drools

Re: [rules-users] Drools 5.1 Update Site

2010-08-11 Thread drooRam
I had the same question... see the response from drools team from the below post http://drools-java-rules-engine.46999.n3.nabble.com/Drools-IDE-Update-site-link-for-5-1-CR1-td1009065.html#a1009065 -drooRam -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com

Re: [rules-users] Disting and group by

2010-08-11 Thread Wolfgang Laun
2010/8/11 Edson Tirelli : > >    "Group by" is implicit in rules, just by writing patterns in order. So, > if you write a rule that starts with Customer(), it will automatically do a > "group by" customer: > when >    Customer(...) >    ... > then Hmm, I think vijrams meant "grouping of the accumu

Re: [rules-users] Retrieve values from a Map

2010-08-11 Thread Edson Tirelli
Did you tried this? Client( $lang : language["Japanese"] != null ) This will bind $lang to the value associated with the key "Japanese" on the "languages" map and at the same time check that the value is not null. If you want to explicit test if there is a key "Japanese" in the map,

Re: [rules-users] Disting and group by

2010-08-11 Thread Edson Tirelli
"Group by" is implicit in rules, just by writing patterns in order. So, if you write a rule that starts with Customer(), it will automatically do a "group by" customer: when Customer(...) ... then "Distinct" is a bit problematic, as we have no explicit distinct functionality (I have

Re: [rules-users] Retrieve values from a Map

2010-08-11 Thread Wolfgang Laun
If you need the value on the RHS, you can use s.th. like lang.get("Japanese") or $c.getLanguage().get("Japanese") If you want to match the value in a subsequent pattern, you could use an eval() or similar; since you don't show what you need the value for, I'll not enumerate all possibilities

Re: [rules-users] Can't see process in gwt-console after changingguvnor to authenticator

2010-08-11 Thread Han Ming Low
Hi, Just to add on some information. I have tried to do the following and had the following findings. on the gwt-console-server-drools.war, I have extracted and remove ChangeSet.xml from drools-gwt-console-5.1.0.jar onto the classpath. Thus, allow me to change the element's attributes value for

[rules-users] Eclipse Osgi-Framework and Drools Flow

2010-08-11 Thread pelle7
Hello, Is it possible to use the "Process Instance" View with a Knowledge Base created in a Osgi Runtime? Thanks for this nice project! Regards, Per -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail ___

[rules-users] Drools 5.1 Update Site

2010-08-11 Thread Georg Maier
Hi, is there any reason why 5.1. final Eclipse Workbench is not put into an Update Site? Sure it is possible just to drop in the content of the zip, but I think Update Sites are far more comfortable :-) Furthermore, there actually is an Update Site - but it's kind of empty...? On purpose?

Re: [rules-users] Disting and group by

2010-08-11 Thread Wolfgang Laun
With an additional class PurchaseSum List customers; ... purchaseDate; ... custNo; ... sum; } you can write these rules; rule "insert PurchaseSum" when Customer( $pd : purchaseDate, $cn : custNo ) not( PurchaseSum( purchaseDate == $pd, custNo == $cn ) ) then insert( new

Re: [rules-users] drools in a SOA environment

2010-08-11 Thread tom
Hello, there are another ways to create Drools as SOAP Web Service. I created my Drools project as JAR. Then I loaded it to another project - AXIS2-based Web Project (SOAP). I created facade to my Drools object (defined in JAR) in this SOAP project. And now, I can use it as SOAP Web Service :) gr

Re: [rules-users] GWT Console - Drools Flow problems.

2010-08-11 Thread tom
Hello, if I were you, i would try installer. It helped me - it is ANT - based script, which installs you all Drools tools (from Eclipse with plugins to Guvnor, GWT, and so on). It also configures all Drools tools, so all is running well after installation. Good luck! tom -- View this message in