Trace your rules on Bluemix
usiddiqui 270002MWB6 Visits (10054)
You have started using the Business Rules service on Bluemix, and it is fast and easy and convenient, and the best thing since sliced bread. ("Not really...", you say? In that case, try out the Business Rules service on Bluemix and see how
And then you realize, "Wait a minute, I have no idea what my rules are doing.."
Assuming of course, that you have already test
"I have already enabled trace on my rules by setting the ruleset properties rule
That's great, except those ODM settings just don't work on Bluemix, since rule tracing is disabled by default in the Business Rules service, and it does not support the use of the Decision Warehouse.
All's not lost however, there is another way.
All you have to do is add some trace filter tags to your payload and you are all set.
Use the REST form (&trace=true) to view the trace filter tags:
(You can get the values for <instanceID>, <domain>, <ruleApp>, <ruleset> and the corresponding versions from the “URL” in the Ruleset Details page.)
If you work with XML, choose the XML option, in which case the generated payload will contain filter tags such as:
If you work with JSON, choose the JSON option instead. The generated payload will contain filter entries, for example:
All you need to do now is add this additional trace filter information to the payload you send to the service with your execution request.
The response will contain the traces you requested.
... And, since this is after all related to ODM, there is always another way. You can also enable the Decision trace information for the WADL or WSDL from the Rule Execution Server console, as explained in Step 6, "Decision trace information" in the ODM documentation at View
If you haven't traced your rules on Bluemix yet, try it out and let us know what you think!