[rules-users] How to reduce transaction time

2013-11-05 Thread arpitmittal
Hi All, My front end application has transaction timeout of 200 milli Sec and my code is taking upto 1200 ms to load & compile the DRL & store in cache. So I tried to create a package of compiled DRL so that it saves compilation time at run time, but to my surprise the reponse time increated to 3

Re: [rules-users] Guvnor Data Enumeration

2013-11-05 Thread Michael Anstis
I suspect it's by design, but your requirement is not unreasonable. Can you please raise a JIRA at https://issues.jboss.org/browse/GUVNOR and include details of your data model and enum definitions. Thanks, Mike On 5 November 2013 00:04, nkhogen wrote: > In the Advanced Data Enumeration in G

Re: [rules-users] how can I modify a batch of objects

2013-11-05 Thread Elran Dvir
Wolfgang, Thanks for the response. My new implementation, causing the error, is very similar to what you suggest. This is my new drl: -- package myimpl.drools.package1; import java.util.Date import java.util.HashMap import java.util.HashSet import java.util.C

Re: [rules-users] How to reduce transaction time

2013-11-05 Thread Stephen Masters
Rather than creating the knowledge base every time a request is made, you should be creating a knowledge base once. Probably during application start-up. Each request should just trigger creating a new session, which may well take just a few milliseconds. Steve On 5 Nov 2013, at 10:17, arpitm

[rules-users] Hi All,

2013-11-05 Thread Bernard Szlachta
Hi All, Does anyone know whether there is any chance that Drools API may comply with Application Programming Interfaces (API) to Knowledge Bases (KB) RFP) by OMG http://www.omg.org/cgi-bin/doc?ad/2010-6-9? Regards, Bernard Szlachta www.nobleprog.co.uk +44 7929173122 skype: nobleprog Check our

[rules-users] What is the difference/relationship between drools pipeline and drools server

2013-11-05 Thread scarlettxu
when I come to find a service which can expose web service API to execute the drools rules remotely. I firstly find the drools-camel-server, while sometimes I see there is module called drools-server, in order to find relationship between drools-camel-server and drools-server, I google a lot. but

Re: [rules-users] Hi All,

2013-11-05 Thread Mark Proctor
not right now. But there is nothing to stop someone doing an adapter up at github, as a 3rd party project. MArk On 5 Nov 2013, at 11:11, Bernard Szlachta wrote: > Hi All, > > Does anyone know whether there is any chance that Drools API may comply with > Application Programming Interfaces (API

Re: [rules-users] Optaplanner - Issue with real-time, chained and shadow variables

2013-11-05 Thread Juan Ignacio Barisich
Thanks Geoffrey I solved this problem. In case anyone is interested, I have attached the fixed test with your suggestions. Best regards 2013/11/4 Geoffrey De Smet > > On 04-11-13 14:24, Juan Ignacio Barisich wrote: > > You are right. > Do you think that is a bug? Or is there a hack to solve

Re: [rules-users] Hi All,

2013-11-05 Thread Bernard Szlachta
Thanks Mark. Regards, Bernard Szlachta www.nobleprog.co.uk +44 7929173122 skype: nobleprog Check our Special Offers! http://www.nobleprog.co.uk/course+discounts On Tue, Nov 5, 2013 at 11:31 AM, Mark Proctor wrote: > not right now. But there is nothing to stop someone doing an adapter up at >

Re: [rules-users] How to reduce transaction time

2013-11-05 Thread MittalA
Hi Steve, Thanks for the reply. Can you please tell me how to use the existing knowledge base? Secondly my issue is mainly about the first request to the application..which is getting timed out from second request onward the system is responding quick. Thanks & Regards, Mittal A -- View this m

Re: [rules-users] How to reduce transaction time

2013-11-05 Thread Wolfgang Laun
On 05/11/2013, MittalA wrote: > Hi Steve, > > Thanks for the reply. > Can you please tell me how to use the existing knowledge base? > Secondly my issue is mainly about the first request to the > application..which is getting timed out from second request onward the > system is responding quick.

Re: [rules-users] How to reduce transaction time

2013-11-05 Thread Stephen Masters
See the lines: WorkingMemory workingMemory = ruleBase.newStatefulSession(); StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); Everything before those lines should be running on application start-up. i.e. Stored in variables at the class level (as long as the

Re: [rules-users] What is the difference/relationship between drools pipeline and drools server

2013-11-05 Thread Mark Proctor
-pipeline was a POC, that was never developed further. Camel replaces it in every way. Mark On 5 Nov 2013, at 11:28, scarlettxu wrote: > when I come to find a service which can expose web service API to execute the > drools rules remotely. > > I firstly find the drools-camel-server, while some

Re: [rules-users] Hi All,

2013-11-05 Thread Davide Sottara
Quite likely though.. given who's involved ;) T-Mobile. America's First Nationwide 4G Network Bernard Szlachta wrote: >Thanks Mark. > >Regards, >Bernard Szlachta >www.nobleprog.co.uk >+44 7929173122 >skype: nobleprog > > >Check our Special Offers! >http://www.nobleprog.co.uk/course+discounts > >

Re: [rules-users] Guvnor Data Enumeration

2013-11-05 Thread nkhogen
Thank you manstis. -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Data-Enumeration-tp4026633p4026650.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.j

[rules-users] Insert fact to be used as semaphore

2013-11-05 Thread webfrank
Hi everybody, I'm new to drools and I would like to solve this simple situation: I have a rule which will fire when 3 or more events comes from entry-point with level > 4 in a 10s window: rule "Got 3 events" when not Alarm() t : Number(intValue > 2) from accumulate (

[rules-users] bound variable scope

2013-11-05 Thread webfrank
Hi, I have a rule with a "from accumulate" where I bind "e" variable to Event object. I would like to pass "e" to send method of channel like: channels["reset"].send(e); but I got a Rule Compilation error with: "e cannot be resolved". Why I cannot access variable "e" when defined inside from acc

[rules-users] Export Web decision table to Xls ?

2013-11-05 Thread nzhu972
I created a web decision table through the browser on Drools 5. Is there a way to export the decision table to a spread sheet or xls or any other file format? Thanks in advance. -- View this message in context: http://drools.46999.n3.nabble.com/Export-Web-decision-table-to-Xls-tp4026653.html S

Re: [rules-users] What is the difference/relationship between drools pipeline and drools server

2013-11-05 Thread scarlettxu
But why I can see there is updated version of drools-pipeline? http://grepcode.com/project/repo1.maven.org/maven2/org.drools/drools-pipeline/ from 5.2.0 to 5.5.0, on some website, I even see 6.0 -- View this message in context: http://drools.46999.n3.nabble.com/What-is-the-difference-relationsh

Re: [rules-users] Insert fact to be used as semaphore

2013-11-05 Thread Wolfgang Laun
Primarily this is a problem of inaccurate specification, not so much of Drools or programming. Apparently, the specification doesn't say anything about re-raising an alarm after it has been started and stopped. If you have 6 events of level 5, the alarm ought to be started *and* stopped at the same

Re: [rules-users] how can I modify a batch of objects

2013-11-05 Thread Elran Dvir
Hi Wolfgang, I am sorry to nag, but did you have a chance to look at my recent implementation? How can I change it to make it work? Thank you very much! -Original Message- From: Elran Dvir Sent: Tuesday, November 05, 2013 12:51 PM To: Rules Users List Subject: RE: [rules-users] how can

Re: [rules-users] Export Web decision table to Xls ?

2013-11-05 Thread Michael Anstis
No; however completion of decision table round tripping is on our road map. Sent on the move On 6 Nov 2013 01:24, "nzhu972" wrote: > I created a web decision table through the browser on Drools 5. Is there a > way to export the decision table to a spread sheet or xls or any other file > format?