z_blue
z_blue

Reputation: 360

How do I invoke Business Rules from the Node-RED editor in Bluemix?

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

Answers (1)

z_blue
z_blue

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

Related Questions