Re: [rules-users] Exposing rules as services
Hi, Maybe this link can be helpful. http://docs.jboss.org/drools/release/5.2.0.CR1/droolsjbpm-integration-docs/html_single/index.html#d0e488 http://docs.jboss.org/drools/release/5.2.0.CR1/droolsjbpm-integration-docs/html_single/index.html#d0e488 BR Xinhua On Thu, Jun 9, 2011 at 4:02 PM, Sumeet Karawal sumeet.kara...@tcs.comwrote: Is there any documentation available regarding that or any link that I could refer. It would be really helpful if I get an idea on how to proceed further. Thanks Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com From: Xinhua Zhu xh...@it.uts.edu.au To: Rules Users List rules-users@lists.jboss.org Date: 06/09/2011 05:51 AM Subject:Re: [rules-users] Exposing rules as services Sent by:rules-users-boun...@lists.jboss.org Hi, You can have a look at drools server. BR Xinhua On Wed, Jun 8, 2011 at 11:38 PM, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, I am using Drools Guvnor to maintain the rule sets. I need to publish the rules as stand-alone web services. Is it possible to do that? How can this be done... Thanks and regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ 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 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] Exposing rules as services
On Thu, Jun 9, 2011 at 7:23 PM, Sumeet Karawal sumeet.kara...@tcs.comwrote: Hi, Thanks Xinhua!!! Here I am able to get that using drools server, we could expose the knowledgebases as RESTful services, and those could be consumed by the Application. As in the normal application, we create a Knowledgebase, then session and insert facts,. after that we fireAllRules(); So will the procedure be same in this case, to insert fact,creating knowledgebases and firing rules. Xinhua: Do you mean you want to insert fact first and create knowledge-base secondly? What are the scenarios to do so? Also can't we expose the rules as SOAP services? Xinhua: Are you talking about whether or not Drools supports SOAP, or you want to expose only some drl files as SOAP services? Actually I have never come across using rules as services. But in the new implementation I have this requirement. So, I am totally confused on how to go ahead, how to actually do this. Thanks for the help... Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com From: Xinhua Zhu xh...@it.uts.edu.au To: Rules Users List rules-users@lists.jboss.org Date: 06/09/2011 11:55 AM Subject:Re: [rules-users] Exposing rules as services Sent by:rules-users-boun...@lists.jboss.org Hi, Maybe this link can be helpful. http://docs.jboss.org/drools/release/5.2.0.CR1/droolsjbpm-integration-docs/html_single/index.html#d0e488 BR Xinhua On Thu, Jun 9, 2011 at 4:02 PM, Sumeet Karawal sumeet.kara...@tcs.com wrote: Is there any documentation available regarding that or any link that I could refer. It would be really helpful if I get an idea on how to proceed further. Thanks Regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com From: Xinhua Zhu xh...@it.uts.edu.au To: Rules Users List rules-users@lists.jboss.org Date: 06/09/2011 05:51 AM Subject:Re: [rules-users] Exposing rules as services Sent by:rules-users-boun...@lists.jboss.org Hi, You can have a look at drools server. BR Xinhua On Wed, Jun 8, 2011 at 11:38 PM, Sumeet Karawal sumeet.kara...@tcs.com wrote: Hi, I am using Drools Guvnor to maintain the rule sets. I need to publish the rules as stand-alone web services. Is it possible to do that? How can this be done... Thanks and regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ 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 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 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] Exposing rules as services
Hi, You can have a look at drools server. BR Xinhua On Wed, Jun 8, 2011 at 11:38 PM, Sumeet Karawal sumeet.kara...@tcs.comwrote: Hi, I am using Drools Guvnor to maintain the rule sets. I need to publish the rules as stand-alone web services. Is it possible to do that? How can this be done... Thanks and regards, Sumeet Karawal Mailto: sumeet.kara...@tcs.com =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ 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] can't find google calendar and logging samples in drools flow workitems samples
Hi, In this paper, http://planet.jboss.org/post/drools_flow_work_items, it said drools flow work items provide calendar and logging samples, but I can't find them in source code ( http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-process/drools-workitems/). Anyone know where they are? Thanks. BR Xinhua ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Unable to start drools-server 5.1.1 or 5.2.0.M1 under Tomcat 6.0.30
Hi I am using 5.2.0-M1 under Tomcat6, I tried both way you provided but both don't work. The error message is still there. How can I debug it? BR Xinhua 2011/3/2 A R andromeda...@gmail.com Hopefully this is helpful to someone else... The reason 5.2.0-M1 wasn't starting under Tomcat was also due to a schema problem. In knowledge-services.xml, I had to change the path to drools-spring-1.2.0.xsd from: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:drools=http://drools.org/schema/drools-spring; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://drools.org/schema/drools-springorg/drools/container/spring/drools-spring-1.2.0.xsd; to beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:drools=http://drools.org/schema/drools-spring; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://drools.org/schema/drools-spring https://github.com/droolsjbpm/droolsjbpm-integration/raw/master/drools-container /drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.2.0.xsd Alternatively, you can also copy the drools-sprin-1.2.0.xsd file to tomcat/webapps/drools-server/org/drools/container/spring/drools-spring-1.2.0.xsd, and it will just be loaded from the local file system. On Tue, Mar 1, 2011 at 1:26 PM, A R andromeda...@gmail.com wrote: Well I was able to get drools server 5.1.1 running under Tomcat 6.0.30, no luck with 5.2.0-M1 or JBoss AS though. The problem with 5.1.1 not starting seems to be with it not being able to download an xsd since I'm in a corp environment and http requests have to be proxyed. So I moved the drools server to a server that could bypass our proxy server, and then it started up. It looks like there's an issue open related to the problem I had here: https://issues.jboss.org/browse/JBRULES-2905 On Mon, Feb 28, 2011 at 2:30 PM, A R andromeda...@gmail.com wrote: I'm just using a stock build from http://www.jboss.org/drools/downloads.html, and it has drools:execution-node defined in 5.1.1. When I remove it, I just get a error on the next xml tag. I tried again with the JBoss AS included with Drools Guvnor Standalone 5.2.0.M1, copying drools-5.2.0.M1-server.war to jboss-5.1.0.GA/server/default/deploy/drools-server.war, but get the following error: 14:19:57,160 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#org.drools.grid 14:19:57,165 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#org.drools.grid state=Create java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named: org.drools.grid On Mon, Feb 28, 2011 at 4:04 AM, Esteban Aliverti esteban.alive...@gmail.com wrote: I'm not sure about this, but I think there is no need to define drools:execution-node any more. Please try to remove the definition and all its usages from knowledge-services.xml and see what happens. If somebody else could confirm this behaviour, please let us know. By the way, did you try to deploy drools-server in a JBoss AS? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2011/2/27 A R andromeda...@gmail.com execution-node ___ 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] Unable to start drools-server 5.1.1 or 5.2.0.M1 under Tomcat 6.0.30
Haha, I made it runable. The xsd path should be http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-container/drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.2.0.xsd BR On Sat, Mar 5, 2011 at 5:25 PM, Xinhua Zhu xh...@it.uts.edu.au wrote: Hi I am using 5.2.0-M1 under Tomcat6, I tried both way you provided but both don't work. The error message is still there. How can I debug it? BR Xinhua 2011/3/2 A R andromeda...@gmail.com Hopefully this is helpful to someone else... The reason 5.2.0-M1 wasn't starting under Tomcat was also due to a schema problem. In knowledge-services.xml, I had to change the path to drools-spring-1.2.0.xsd from: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:drools=http://drools.org/schema/drools-spring; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://drools.org/schema/drools-springorg/drools/container/spring/drools-spring-1.2.0.xsd; to beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:drools=http://drools.org/schema/drools-spring; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://drools.org/schema/drools-spring https://github.com/droolsjbpm/droolsjbpm-integration/raw/master/drools-container /drools-spring/src/main/resources/org/drools/container/spring/drools-spring-1.2.0.xsd Alternatively, you can also copy the drools-sprin-1.2.0.xsd file to tomcat/webapps/drools-server/org/drools/container/spring/drools-spring-1.2.0.xsd, and it will just be loaded from the local file system. On Tue, Mar 1, 2011 at 1:26 PM, A R andromeda...@gmail.com wrote: Well I was able to get drools server 5.1.1 running under Tomcat 6.0.30, no luck with 5.2.0-M1 or JBoss AS though. The problem with 5.1.1 not starting seems to be with it not being able to download an xsd since I'm in a corp environment and http requests have to be proxyed. So I moved the drools server to a server that could bypass our proxy server, and then it started up. It looks like there's an issue open related to the problem I had here: https://issues.jboss.org/browse/JBRULES-2905 On Mon, Feb 28, 2011 at 2:30 PM, A R andromeda...@gmail.com wrote: I'm just using a stock build from http://www.jboss.org/drools/downloads.html, and it has drools:execution-node defined in 5.1.1. When I remove it, I just get a error on the next xml tag. I tried again with the JBoss AS included with Drools Guvnor Standalone 5.2.0.M1, copying drools-5.2.0.M1-server.war to jboss-5.1.0.GA/server/default/deploy/drools-server.war, but get the following error: 14:19:57,160 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#org.drools.grid 14:19:57,165 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#org.drools.grid state=Create java.lang.RuntimeException: Specification violation [EJB3 JPA 6.2.1.2] - You have not defined a jta-data-source for a JTA enabled persistence context named: org.drools.grid On Mon, Feb 28, 2011 at 4:04 AM, Esteban Aliverti esteban.alive...@gmail.com wrote: I'm not sure about this, but I think there is no need to define drools:execution-node any more. Please try to remove the definition and all its usages from knowledge-services.xml and see what happens. If somebody else could confirm this behaviour, please let us know. By the way, did you try to deploy drools-server in a JBoss AS? Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com 2011/2/27 A R andromeda...@gmail.com execution-node ___ 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] @role( event ) in guvnor
Guvnor doesn't support Fusion now. On Tue, Nov 30, 2010 at 8:09 PM, Pankaj Khattar pankaj.khatt...@alcatel-lucent.com wrote: Is it possible to declare the following with the GUVNOR ui?: declare StockTick @role( event ) @timestamp( timestampAttr ) companySymbol : String stockPrice : double timestampAttr : long end I don't see how I could declare the @role and @timestamp with the UI. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/role-event-in-guvnor-tp1991538p1991538.html Sent from the Drools - User 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] Integrate Fusion into Guvnor
Hi When Fusion can be integrated into Guvnor? BR Xinhua ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Can Guvnor's repository functionality be exposed as a web service? [was: Drools API]
Seems you can use drools server to do it. http://alesaudate.com/2010/05/24/hot-deploy-de-regras-utilizando-drools-guvnor-parte-2/ Xinhua 2010/10/19 Michael Anstis michael.ans...@gmail.com I know of the following (but not used) which might help point you in the right direction. There is org.drools.guvnor.server.GuvnorAPIServlet (drools-guvnor) which provides a narrow API for dealing with repository artifacts. There is also a narrow REST-ful API in org.drools.repository.remoteapi.RestAPI (drools-repository, which is the backend to which you refer). Class org.drools.guvnor.server.RepositoryServiceServlet is the meat of Guvnors actions but it is tightly coupled to GWT and hence less useful as a generic external service. Unfortunately I doubt any will be entirely useful for your use-case without extensive enhancement. If you do end up creating a generic web-service exposing RepositoryService please consider giving back to the community. On 18 October 2010 18:00, Wolfgang Laun wolfgang.l...@gmail.com wrote: [I'm re-posting this as a new thread with an apt subject on behalf of Patricia] This is the scenario that I am looking for: I am using Drools Guvnor as the central rule repository. I also have an external application, that has a custom rule editor in place, and users can create rules. This custom rule editor will take care of Conditional Elements and Consequence actions. I would like to be able to save the rule back in Guvnor, as that is the rule repository. In the docs, there says that Guvnor has 2 parts: front-end and backend. The backend includes the repository access as well. My question is if the Guvnor backend exposes the repository functionality as web service, or if it can be easily exposed. Thanks, Patricia ___ 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 mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Question about drools server
oh, thanks. If you replace address=/kservice/rest with address=/rest in camel-server.xml there should be only one kservice is ok. br xinhua On Thu, Oct 14, 2010 at 5:24 PM, Ji Oh Yoo jioh.yoo@gmail.com wrote: hmm.. I just found the answer: in camel-client.xml, make your to uri to: to uri=cxfrs:// http://localhost:8080/drools-server-app/kservice/kservice/rest/ instead of just one kservice. And I am not sure why the kservice is written twice. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-drools-server-tp1698427p1699021.html Sent from the Drools - User 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] Question about drools server
) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:168) at junit.framework.TestCase.runBare(TestCase.java:134) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) How can I Marshaller the command? BR Xinhua On Thu, Oct 14, 2010 at 9:50 PM, Xinhua Zhu xh...@it.uts.edu.au wrote: oh, thanks. If you replace address=/kservice/rest with address=/rest in camel-server.xml there should be only one kservice is ok. br xinhua On Thu, Oct 14, 2010 at 5:24 PM, Ji Oh Yoo jioh.yoo@gmail.com wrote: hmm.. I just found the answer: in camel-client.xml, make your to uri to: to uri=cxfrs:// http://localhost:8080/drools-server-app/kservice/kservice/rest/ instead of just one kservice. And I am not sure why the kservice is written twice. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-drools-server-tp1698427p1699021.html Sent from the Drools - User 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] Question about drools server
Hi I am a new guy on drools server. I am trying to exposed drools rules in web services. I downloaded Drools Guvnor Standalone from website, it includes Jboss, then I put drools server war file in deploy folder, and start the Jboss. When I input http://localhost:8080/drools-5.1.1-server/; in browser, it works well. the result is Execution server is running. When I input http://localhost:8080/drools-5.1.1-server/test.jsp;, the expected result should be echo: Hello world, but the actual result is: Sending Message: Hello World Response: org.apache.cxf.jaxrs.impl.responsei...@6231ed What is wrong with it? How to solve it? Thanks very much! BR Xinhua ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users