Test your rules using the Business Rules service on Bluemix
usiddiqui 270002MWB6 Visits (9321)
By now, you are probably very familiar with the Business Rules service on Bluemix.
And now it has gotten even better!
But how, you say? How can something so beautifully simple be made even better?
Remember in the old days when you had to log into the Rule Execution Server console to be able to test your rules?
This is what it looked like: you first had to navigate to the Ruleset view for your ruleset and click on "Retrieve the HTDS Description file". This displayed a dialog in which you had to choose the "REST" and "Latest ruleset version" options and click on the "Test" button. This opened a new browser tab, in which you chose the type of data (XML or JSON) to generate a sample payload. Finally, you hit the "Execute Request" button to test the ruleset with the sample payload.
Not really tiresome, you say?
Well how about this: what if I tell you that you no longer need to leave the Bluemix console to be able to test your rules?
That is right! You can now navigate to your Business Rules service instance on the Bluemix console, and go to the "Decision Services" tab to see your deployed RuleApps and rulesets within the Bluemix console:
Don't see your RuleApp or ruleset? Hit "Refresh" to display the latest deployment.
To test the ruleset, click on the arrow beside it. This loads up the "Decision Request" and "Decision Response". Choose the data format (JSON or XML) and generate the corresponding sample payload under "Decision Request":
Click the "Run Test" button and voila, the response from the ruleset execution is displayed under "Decision Response".
Yes, it was all done within the Bluemix console, and with 3 simple clicks. You no longer had to log into the Rule Execution Server console to test your rules.
If you haven't tested the service, now's the time to do so. Let us know what you think!