Hello All,
This is my first post. I am using drools from last few months, but it is
restricted to using it as an Eclipse IDE plugin with Java to create containers,
sessions and executing commands. Thanks to various blogs as well as drools
documentation that I could create complex event processing events and execute
rules.
Recently my requirement has changed, so now I would like to
run same set of rules on KIE-Execution Server. Hence I worked on to setup
KIE-Execution Server on Wildfly environment along with KIE Workbench. Thanks to
Maciej to providing detailed blog as how to setup server (Accelerate your
Business blog at http://mswiderski.blogspot.in/).
To create container on server I used
APIs such as KieServicesFactory.newRestConfiguration
mentioned in this blog but not much luck as there are lot of
compilation/runtime errors. Please note that I have included all the required
jars to solve compilation errors but still face runtime error.
Hence I thought of taking other approach of deploying container via KIE-Workbench. To test this approach, I took sample “Hello World” project (That is created by default when you create new drools project in eclipse) and created a jar (not executable jar). And this jar is uploaded into artifact repository of KIE-Workbench using option Authoring à Artifact Repository à upload. Once it is uploaded I linked this container to KIE-Execution-Server listed under “Server Management Browser” and started the container.
To check if container is deployed properly I used Advanced REST Client on chrome and executed GET command on http://localhost:8080/kie-server/services/rest/server/containers/Hello (Name of container is Hello) and I receive success message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<response type="SUCCESS" msg="Info for container Hello">
<kie-container container-id="Hello" status="FAILED">
<scanner status="DISPOSED" />
</kie-container>
</response>
However when I post fire all rules command via POST I am unable to get any response. So I tried added GET and POST Http methods (javax.ws.rs.GET) in the code but no luck. Now my question is what modifications I need to do to “Hello World” project code so that I can get same response that I see on command prompt when I run this code on Eclipse ?
Environment: Drools 6.3.0.Final on Eclipse, KIE-Execution-Server: 6.3.0.Final
Any pointers in this direction is greatly appreciated.
Thanks and Regards,
Realby
...
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/bb1164f5-e5bd-4677-86de-eae927245e1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.