CRUD operation on .drl using KIE-server and REST API

316 views
Skip to first unread message

swapnil irabatti

unread,
Jul 10, 2017, 10:25:55 AM7/10/17
to Drools Setup
Hello all,
I am working on Drools & JBPM with KIE-server I am not using any KIE-workbeanch.
I am working on drools and KIE-server 7.0.0 version, I have created one REST API which interacts with KIE-server using KieServiceClient, QueryServiceClient etc to execute .drls. I have Kjar which contains all drl files and deployed in KIE-server.
My requirement is user can add new drl file or update existing drl file or delete the drl file at runtime.
As we know all the drl files will resist in Kjar, my question is:
how to dynamically add new drl to Kjar? 
How to delete exist drl file from Kjar on user demand?
Is there any KieServiceClient API which helps to do this?
Is there any API which to auto rebuild of kjar?

I have seen some example such as https://groups.google.com/forum/#!topic/drools-usage/o4KZ6bSskj8 but this doesn't mention anything about KIE-server.
Did anyone go through this scenario?
Can anyone suggest me any link which I can follow
Appreciate the help.
Thank You...
 




Abhijit Humbe

unread,
Jul 10, 2017, 9:29:30 PM7/10/17
to drools...@googlegroups.com
No api's available to rebuild kjar. You have to do it from command line or from IDE. Kie-server provides KieScanner support which will upgrade kie-container with latest version of kjar. You just need to build kjar and make it available in maven repository and kieScanner API's will detect latest version of kjar is available and container will be upgraded.

Abhijit Humbe

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@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-setup/e68d3e09-ad81-4e3d-aad0-79888c1e5b46%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

swapnil irabatti

unread,
Jul 11, 2017, 3:04:16 AM7/11/17
to Drools Setup
Thanks for valuable response Abhijit


On Tuesday, July 11, 2017 at 6:59:30 AM UTC+5:30, Abhijit Humbe wrote:
No api's available to rebuild kjar. You have to do it from command line or from IDE. Kie-server provides KieScanner support which will upgrade kie-container with latest version of kjar. You just need to build kjar and make it available in maven repository and kieScanner API's will detect latest version of kjar is available and container will be upgraded.

Abhijit Humbe

On Mon, Jul 10, 2017 at 7:55 PM, swapnil irabatti <swapnilir...@gmail.com> wrote:
Hello all,
I am working on Drools & JBPM with KIE-server I am not using any KIE-workbeanch.
I am working on drools and KIE-server 7.0.0 version, I have created one REST API which interacts with KIE-server using KieServiceClient, QueryServiceClient etc to execute .drls. I have Kjar which contains all drl files and deployed in KIE-server.
My requirement is user can add new drl file or update existing drl file or delete the drl file at runtime.
As we know all the drl files will resist in Kjar, my question is:
how to dynamically add new drl to Kjar? 
How to delete exist drl file from Kjar on user demand?
Is there any KieServiceClient API which helps to do this?
Is there any API which to auto rebuild of kjar?

I have seen some example such as https://groups.google.com/forum/#!topic/drools-usage/o4KZ6bSskj8 but this doesn't mention anything about KIE-server.
Did anyone go through this scenario?
Can anyone suggest me any link which I can follow
Appreciate the help.
Thank You...
 




--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages