Drools Storm REST API integration

262 views
Skip to first unread message

sumit sharma

unread,
Nov 25, 2015, 1:44:36 PM11/25/15
to Drools Setup, vaibhav nirkhe
Hi All,

We want to integrate drools with storm.

Problem statement:

In our platform user can define their message structure. We want to push that message or data object definition to drools workbench so that definitions are available to business users for rule creation.

Once user create rules, we want those rules to be accessible with REST call or something so that in run time storm bolt can load rule files and execute the rules on tuple.

Questions:

  1. Does drools provide REST API to push the business object definition remotely deployed DROOLS workbench?
  2. Does drools provide REST API to retrieve the rule files based on some criteria like (give me rules from group id x, artifact id y or package structure)
  3. Please let us know if there is any other way then REST API.

Alternate solutions are also very much welcome.


Thanks | Sumit Sharma



Michael Anstis

unread,
Nov 25, 2015, 2:41:48 PM11/25/15
to drools...@googlegroups.com, vaibhav nirkhe
If I understand your statements and questions correctly:-

1) No, domain objects can either be provided to the Workbench in a regular JAR (you can mvn deploy to the workbench); or as a DRL Declared Type - in which case you'd need to clone the Workbench's repository; add your DRL Declared Type, commit and push back to the Workbench repository.

2) No, Projects built with the Workbench are compiled into regular JARs and published to maven repositories (either the Workbench's internal repository or any defined in the Project's distribution management). You could clone the Workbench's repository and read different files from the project structure; but that is far from the type of criteria you demand. Have you looked at Kie Server as your rule runtime environment?

--
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.
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/ea00a187-775e-4d75-988d-1f782670ad92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages