Reputation: 360
I am working with the Node-RED editor on Bluemix, and am trying to execute rules that are deployed to the Business Rules service. How do I do so?
Upvotes: 0
Views: 194
Reputation: 360
I found that I had to bind the app to the Business Rules service instance on Bluemix. Then, in the Node-RED flow editor, I used an http request node, with the following attributes defined with values for the ruleset retrieved from the Details page on the Bluemix console:
Method: POST
URL: https://brsv2-12345678.ng.bluemix.net/DecisionService/rest/MyRuleApp/1.0/myrules/1.0
"Use basic authentication?" checked
Username: resAdmin
Password: <password>
Return: a parsed JSON object
Upvotes: 1