Business Rules service on Bluemix and Node-RED
usiddiqui 270002MWB6 Visits (14127)
I found it is also pretty straightforward to invoke rules from the Node-RED editor.
I added the http request node called "invoke rules" to the flow editor:
I set the attributes as follows for the http request node:
The URL is retrieved from the "Details" page of the ruleset deployed on the Business Rules service instance on Bluemix, and the password from the "Connection Settings" page for the service instance.
The input into the http request node should pass in the payload with the input data for the ruleset, with the content type specified in the headers.
I also connected the "invoke rules" node to a debug node to view the output of the rules in the Debug pane:
I bound the Bluemix app to the Business Rules service instance, completed the Node-RED flow construction, deployed the flow, and the Debug pane showed the results of the rules in action!
If you have worked with Node-RED before (and even if you haven't), try invoking business rules from it and let us know what you think!