[rules-users] What is the compatibility matric of kie workbench 6.0.x and 6.1.x?
Hi, Will workbench 6.0 deploy on jdk7 and jee 6 and will the same work for 6.1.x? I'm trying to deploy on WAS 8.5.5 running jdk 7. Thanks, Shrinath Managuli [Aspire Systems] This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] KIE API for Decision Tables Templates
Hi there! I was looking on web to find if KIE provide any API for reading the Decision Tables from XLS/CSV and I was not able to find :( Can somebody point me where I can find that or just to tell me if such API exist or not. Thank you. -- Andrei Ermicioi aka erani, Software Engineer at CaseNet Phone: +420 776 424 143 Skype: aermicioi_casenet CONFIDENTIALITY NOTICE: This e-mail and the information transmitted within including any attachments is only for the recipient(s) to which it is intended and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of; or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please send the e-mail back by replying to the sender and permanently delete the entire message and its attachments from all computers and network systems involved in its receipt. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Pooling stateful sessions to have threaded executions of a ruleset
I'm sorry but I don't understand what you are talking about. In this article, there is nothing about multithreaded rules evaluation. It just says that the Phreak algorithm is designed for thread safety and *future*multicore processors exploitation. It doesn't mean that it is already multithreaded. Moreover I tested my appliciation with and without multithreaded sessions (I am using Drools 6.0.1.Final) and I noted a faster execution in the multithreaded one. 2014-04-04 13:53 GMT+02:00 jmercier jmerc...@genoscope.cns.fr: Le 04/03/2014 09:55, Maxime Falaize a écrit : Hello, I want to ask you if it is a good practive to pool stateful sessions for a specific ruleset to improve the execution performance. Actually in my application I execute my rules by calling SOAP webservice. For performance purpose, I test multithreaded calls to my webservice and I noted that when I pool sessions in the server side, it improves the performance a lot. To pool sessions, I just declare multiple ksession tag in my kmodule.xml : kbase name=KBase packages=com.example.* ksession name=KSession1/ ksession name=KSession2/ ksession name=KSession3/ ksession name=KSession4/ ksession name=KSession5/ /kbase In my spring webservice endpoint I just put that code to handle the pool : @Endpoint public class ExampleEndpoint implements InitializingBean { @Autowired private ExampleRuleService ruleService; private MapInteger, Boolean isRunningMap = new HashMapInteger, Boolean(); private static final int NB_POOL_SESSIONS = 5; @PayloadRoot(localPart = com.example.ExampleRequest) @ResponsePayload public ExampleResponse handleRequest( @RequestPayload ExampleRequest request) throws InterruptedException { KieServices ks = KieServices.Factory.get(); KieContainer kc = ks.getKieClasspathContainer(); while (true) { for (int i = 0; i NB_POOL_SESSIONS; i++) { boolean run = false; synchronized (isRunningMap) { if (!isRunningMap.get(i)) { isRunningMap.put(i, true); run = true; } } if (run) { KieSession ksession = kc.newKieSession(KSession + (i + 1)); ExampleResponse response = ruleService.run(ksession, request); ksession.dispose(); isRunningMap.put(i, false); return response; } } Thread.sleep(100); } } public void afterPropertiesSet() throws Exception { for (int i = 1; i = NB_POOL_SESSIONS; i++) { isRunningMap.put((i - 1), false); } } } It works well because in my benchmark I improve 5 times the performance (as I have 5 different threads) but I wondered if it is a good practice and if it does not hide any issues that I could have in the future. Thanks for your help. -- Maxime FALAIZE ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users Hi maxime, I do not remember if use drools 6 or drools 5. If you using drools 6. Phreaks algorithm use multi threading according to use 'from accummulate' far i understand here: http://planet.jboss.org/post/drools_6_performance_with_the_phreak_algorithm Instead to put a thread by ksession here rules evaluation are multi-threaded. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users -- Maxime FALAIZE ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] KIE API for Decision Tables Templates
You'll find the classes for dsecision table parsing and DRL building in and below org/drools/decisiontable/... Sources are in the jar drools-decisiontables-6.X.X.Final-sources.jar -W On 07/04/2014, Andrei Ermicioi aermic...@casenetllc.com wrote: Hi there! I was looking on web to find if KIE provide any API for reading the Decision Tables from XLS/CSV and I was not able to find :( Can somebody point me where I can find that or just to tell me if such API exist or not. Thank you. -- Andrei Ermicioi aka erani, Software Engineer at CaseNet Phone: +420 776 424 143 Skype: aermicioi_casenet CONFIDENTIALITY NOTICE: This e-mail and the information transmitted within including any attachments is only for the recipient(s) to which it is intended and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of; or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please send the e-mail back by replying to the sender and permanently delete the entire message and its attachments from all computers and network systems involved in its receipt. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] KIE API for Decision Tables Templates
Reading is inferred from the file extension type. Simply add your resources, with the correct file extension, and it will be built. Mark On 7 Apr 2014, at 10:03, Andrei Ermicioi aermic...@casenetllc.com wrote: Hi there! I was looking on web to find if KIE provide any API for reading the Decision Tables from XLS/CSV and I was not able to find :( Can somebody point me where I can find that or just to tell me if such API exist or not. Thank you. -- Andrei Ermicioi aka erani, Software Engineer at CaseNet Phone: +420 776 424 143 Skype: aermicioi_casenet CONFIDENTIALITY NOTICE: This e-mail and the information transmitted within including any attachments is only for the recipient(s) to which it is intended and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of; or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please send the e-mail back by replying to the sender and permanently delete the entire message and its attachments from all computers and network systems involved in its receipt. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 6.0.1: Pushing changes back to Workbench GIT using SSH
I have the same problem... What's going wrong ? Can anyone help ? dotrc wrote I am using workbench for managing my rules maven projects within the embedded GIT repository. I am aware that using git:// protocol, I can clone an existing rule repository; I can do this successfully. For authoring rules, I want to use Eclipse (using EGit). I want to push my commits back to the GIT repo. I understand that I'll have to use ssh protocol instead of git for specifying the repo, something like this: ssh://{userName}@localhost:8001/{repoName} When we use a standard GIT repo like stash, it gives us an option to set our public key on the stash server, but I'm not able to find a way to do that with the embedded ssh server within workbench. Hence, I'm not able to authenticate myself and perform a push. We tried creating a private-public key pair using ssh-keygen and put that within c:\users\ username \.ssh and added the public key to 'authorized_keys(2) (though I know this may not be the right place) and then used the private key as the identity file with ssh client directly from cygwin, again to no avail. Any pointers will be really appreciated. Also, should the username be 'admin' or any other specific one for pushing? Will the existing Windows username work? Thanks, Rishi -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-1-Pushing-changes-back-to-Workbench-GIT-using-SSH-tp4027800p4029140.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Drools 6.0.1: Pushing changes back to Workbench GIT using SSH
Hi Rishi, The SSH server public key info for workbench is stored into .security folder (more info about it here: http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/wb.Workbench.html#wb.systemProperties) Regards, --- Alexandre Porcelli Principal Software Engineer Red Hat Business Systems and Intelligence Group On Jan 21, 2014, at 11:32 PM, dotrc rishi.choudh...@gmail.com wrote: I am using workbench for managing my rules maven projects within the embedded GIT repository. I am aware that using git:// protocol, I can clone an existing rule repository; I can do this successfully. For authoring rules, I want to use Eclipse (using EGit). I want to push my commits back to the GIT repo. I understand that I'll have to use ssh protocol instead of git for specifying the repo, something like this: ssh://{userName}@localhost:8001/{repoName} When we use a standard GIT repo like stash, it gives us an option to set our public key on the stash server, but I'm not able to find a way to do that with the embedded ssh server within workbench. Hence, I'm not able to authenticate myself and perform a push. We tried creating a private-public key pair using ssh-keygen and put that within c:\users\username\.ssh and added the public key to 'authorized_keys(2) (though I know this may not be the right place) and then used the private key as the identity file with ssh client directly from cygwin, again to no avail. Any pointers will be really appreciated. Also, should the username be 'admin' or any other specific one for pushing? Will the existing Windows username work? Thanks, Rishi -- View this message in context: http://drools.46999.n3.nabble.com/Drools-6-0-1-Pushing-changes-back-to-Workbench-GIT-using-SSH-tp4027800.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] Drools Declaring New Types To Use Across Multiple Files
Hi, can anybody tell me, how can I declare a type which I can use in multiple files? Sure, I can create a java class and then import to respective files. But I was wondering whether there was a solution which wouldn't demand compilation of source code after each change of rules (extending the rules with new type which is java class would require that). Any suggestion appreciated. Regards Jan ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
[rules-users] No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean'
I'm integrating Drools KIE and Spring 3.2.3.RELEASE (MVC Web)- and I'm getting the following error that Google just isn't finding any references for: ERROR: *No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean' * [config set: maven-spring-drools/web-context *application-config.xml* /maven-spring-drools/src/main/resources/spring The Project is a pure Maven project w/out any outside natures imposed upon it (aka. Drools/Spring). It's complaining that it can't find the setters for the kBaseName', which is set here: kie:kbase name=rules packages=rules I'm using a kmodule.xml found in the META-INF dir under the src/main/resources dir. Can anyone help me discover the disconnect? Moreover - do I have to do it this way? The project executes the SPring MVC Web App just fine and the Drools KIE test case runs perfectly in the same Maven project. Can't I just integrate them programmatically instead? Many thanks in advance ... :-) The offending file: *application.xml* ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:kie=http://drools.org/schema/kie-spring; xmlns:context=http://www.springframework.org/schema/context; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://drools.org/schema/kie-spring http://drools.org/schema/kie-spring.xsd; context:component-scan base-package=com.versaggi.springweb/ kie:kmodule id=ksession-rules kie:kbase name=rules packages=rules /kie:kbase /kie:kmodule bean id=kiePostProcessor class=org.kie.spring.KModuleBeanFactoryPostProcessor / /beans -- View this message in context: http://drools.46999.n3.nabble.com/No-setter-found-for-property-kBaseName-in-class-org-kie-spring-factorybeans-KBaseFactoryBean-tp4029143.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean'
I suspect the current code looks for the different xml, depending on the container. i.e. spring looks for kmodule-spring.xml. I guess what is needed is to fallback to kmodule.xml if that is not present. I’ve cc’d in the author for more feedback. Mark On 7 Apr 2014, at 22:49, profversaggi profversa...@gmail.com wrote: I'm integrating Drools KIE and Spring 3.2.3.RELEASE (MVC Web)- and I'm getting the following error that Google just isn't finding any references for: ERROR: *No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean' * [config set: maven-spring-drools/web-context *application-config.xml* /maven-spring-drools/src/main/resources/spring The Project is a pure Maven project w/out any outside natures imposed upon it (aka. Drools/Spring). It's complaining that it can't find the setters for the kBaseName', which is set here: kie:kbase name=rules packages=rules I'm using a kmodule.xml found in the META-INF dir under the src/main/resources dir. Can anyone help me discover the disconnect? Moreover - do I have to do it this way? The project executes the SPring MVC Web App just fine and the Drools KIE test case runs perfectly in the same Maven project. Can't I just integrate them programmatically instead? Many thanks in advance ... :-) The offending file: *application.xml* ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:kie=http://drools.org/schema/kie-spring; xmlns:context=http://www.springframework.org/schema/context; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://drools.org/schema/kie-spring http://drools.org/schema/kie-spring.xsd; context:component-scan base-package=com.versaggi.springweb/ kie:kmodule id=ksession-rules kie:kbase name=rules packages=rules /kie:kbase /kie:kmodule bean id=kiePostProcessor class=org.kie.spring.KModuleBeanFactoryPostProcessor / /beans -- View this message in context: http://drools.46999.n3.nabble.com/No-setter-found-for-property-kBaseName-in-class-org-kie-spring-factorybeans-KBaseFactoryBean-tp4029143.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean'
Are you having both kmodule.xml and your spring configuration file? With spring, you can configure all your kie resources without the need for a separate kmodule.xml. Can you provide me with the following? 1. Full stack trace 2. your spring configuration file and kmodule.xml -- View this message in context: http://drools.46999.n3.nabble.com/No-setter-found-for-property-kBaseName-in-class-org-kie-spring-factorybeans-KBaseFactoryBean-tp4029143p4029146.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean'
Thanks Mark! I'll try that (*kmodule-spring.xml*) today In the mean time I answered one of my own questions: Moreover - *do I have to do it this way?* The project executes the Spring MVC Web App just fine and the Drools KIE test case runs perfectly in the same Maven project. *Can't I just integrate them programmatically instead?* The answer is *yes*, I can do it programmatically instead. I tested running the simple DroolsTest code in one of the Spring MVC Controllers (just for kicks and giggles) and after fixing the thorny problem articulated below ... IT Worked! I was able to *enter form data in a Spring MVC Web app and have it execute Drools KIE on the back end* There was an error which warrants articulating for posterity sake - here it is below: I was Trying to get Drools to execute from Spring MVC WEB in Pure Maven Project (no added natures of any kind) and ran head first into this problem: *ERROR KieContainerImpl - Unknown KieSession name: ksession-rules* Initial RND: (some direction - but no solutions) Unknown KieSession name in drools 6.0 (while trying to add drools to existing maven/eclipse project) http://drools.46999.n3.nabble.com/Null-pointer-exception-when-adding-drools-to-existing-project-td4027944.html#a4028011 Related Problem (... but a big clue): *WARN ClasspathKieProject - Unable to load pom.properties tried recursing down from/Apache-Tomcat7/webapps/maven-spring-drools/WEB-INF/classes* SOLUTION: As it turns out, creating the directory *WEB-INF/classes* and placing the files* pom.properties* and *pom.xml* in it *solves the problem*. The clue came from this link: http://drools.46999.n3.nabble.com/Drools-6-Unable-to-build-index-of-kmodule-xml-td4026791.html - where Mark Proctor indicated that the project has to be a maven project, and it *needs to find pom.properties*. As soon as the KIE finds the *pom.properties* file, it figures out the KieSession name and the problem is solved. Note: I'd suspect you'd have to manually keep that POM.XML file updated but the pom.properties file never changes. This has been my experience - hope it helps someone -- View this message in context: http://drools.46999.n3.nabble.com/No-setter-found-for-property-kBaseName-in-class-org-kie-spring-factorybeans-KBaseFactoryBean-tp4029143p4029147.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean'
Hi Vinodkiran! What I did was this - I embarked on a *pure* process and then merged the results. My goal was to create a *pure* Maven project without any specific natures of any kind imposed upon them (in Eclipse) which would run a Drools KIE function as well as a Spring MVC WEB App function from that single Maven project. Prework: (A) I created a standard Drools test project using a Eclipse Drools KIE *Nature* and got it running. (B) I created a standard Spring MVC WEB project using the Eclipse Spring 3 *Nature* and got that running properly as well. These would be inspiration for their pure Maven equivalents counterparts. First: I created a pure Maven Drools KIE project and got that running with the standard DroolsTest and corresponding Sample.drl running as expected. So to be clear it was a Maven project that just so happened to run Drools KIE in it. Execution took place in Eclipse Second: I created a totally different pure Maven Spring MVC WEB project and got that running locally using Tomcat7. Again - it was a pure Maven project that just so happened to run a Spring 3.2.3 MVC Web App in it and deploying it as a WAR to a local Tomcat7 installation. Execution took place through a web browser: http://localhost:8080/maven-spring Third: I created another totally different pure Maven project which was a combination of the (1) pure Maven Drools KIE project and the (2) pure Maven Spring MVC WEB project. I copied the appropriate directory structures over from the individual projects to their respective places in the combination project and (after a bit of fiddling) was able to run *each* (Drools and Spring) projects functionality independently - directly from the single (combination) Maven project. Execution for the spring portion initiated through a web browser: http://localhost:8080/maven-spring-drools, and for the Drools portion from the IDE. Forth: Integration - this is where I started having the problems we are corresponding about. The Drools doc tells us to use variants of the below code to tie Drools KIE and Spring together - except it *never* tells us where to put it. kie:kmodule id=sample_module kie:kbase name=kbase1 packages=org.drools.spring.sample /kie:kbase /kie:kmodule bean id=kiePostProcessor class=org.kie.spring.KModuleBeanFactoryPostProcessor/ I found references to putting it in the Spring application-config.xml file so I tried it there. Then I received the following error: ERROR: No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean' [config set: maven-spring-drools/web-context application-config.xml /maven-spring-drools/src/main/resources/spring line 8 Spring Beans Problem That's when Mark suspected the current code looks for the different xml, depending on the container. i.e. spring looks for kmodule-spring.xml. Perhaps what is needed is to fallback to kmodule.xml if that is not present. (I haven't tested that yet). In any case I tried another avenue toward integration and that is programmatically integrate Drools KIE into the Spring MVC Web App Controllers - which as it turned out (after a bit of tweeking) - it work quite well. I'm still very curious as to how to accomplish the integration the way the documentation articulates, but I quite glad it can be done programmatically as well. If I can help out in any way just ask -matt On Mon, Apr 7, 2014 at 9:49 PM, vinodkiran [via Drools] ml-node+s46999n4029146...@n3.nabble.com wrote: Are you having both kmodule.xml and your spring configuration file? With spring, you can configure all your kie resources without the need for a separate kmodule.xml. Can you provide me with the following? 1. Full stack trace 2. your spring configuration file and kmodule.xml -- If you reply to this email, your message will be added to the discussion below: http://drools.46999.n3.nabble.com/No-setter-found-for-property-kBaseName-in-class-org-kie-spring-factorybeans-KBaseFactoryBean-tp4029143p4029146.html To unsubscribe from No setter found for property 'kBaseName' in class 'org.kie.spring.factorybeans.KBaseFactoryBean', click herehttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4029143code=cHJvZnZlcnNhZ2dpQGdtYWlsLmNvbXw0MDI5MTQzfC0zODczNzk5MA== . NAMLhttp://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml -- # Matthew R. Versaggi, President CEO Versaggi Information Systems, Inc. Adjunct Professor of eBusiness DePaul University Email: mailto:m...@versaggi.com, profversa...@gmail.com M: 630-292-8422 LinkedIn: