如何在Bluemix上的业务规则服务中跟踪规则? [英] How can I trace rules in the Business Rules service on Bluemix?

查看:75
本文介绍了如何在Bluemix上的业务规则服务中跟踪规则?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Bluemix上使用业务规则服务,并且它似乎没有使用决策仓库.还有另一种方法来跟踪规则触发吗?

I am using the Business Rules service on Bluemix, and it does not seem to use the Decision Warehouse. Is there another way to trace the rule firing?

推荐答案

您已经注意到,决策仓库不是业务规则服务中的功能.此外,规则跟踪也被禁用.

As you noticed, the Decision Warehouse is not a feature within the Business Rules service. Also, rule traces are disabled.

您可以将跟踪过滤器标签添加到有效负载请求中.使用REST表单(&trace=true)查看跟踪过滤器标签:

You can add trace filter tags to the payload request. Use the REST form (&trace=true) to view the trace filter tags:

https://brsv2- instanceID ./DecisionService /run.jsp?path =/ ruleApp /1.0/规则集/1.0&trace=true

https://brsv2-instanceID.domain/DecisionService/run.jsp?path=/ruleApp/1.0/ruleset/1.0&trace=true

(您可以从以下位置获取 instanceID domain ruleApp ruleset 的值以及相应的版本规则集详细信息"页面中的"URL".)

(You can get the values for instanceID, domain, ruleApp, ruleset and the corresponding versions from the "URL" in the Ruleset Details page.)

如果使用XML,请选择XML选项,在这种情况下,生成的有效负载将包含过滤器标签,例如:

If you work with XML, choose the XML option, in which case the generated payload will contain filter tags such as:

 <!--Optional:-->
 <trac:all>false</trac:all>
 <!--Optional:-->
 <trac:none>true</trac:none>
 <!--Optional:-->
 <trac:executionDuration>true</trac:executionDuration>
 <!--Optional:-->
 <trac:executionDate>true</trac:executionDate>

如果使用JSON,请改为选择JSON选项.生成的有效负载将包含过滤器条目,例如:

If you work with JSON, choose the JSON option instead. The generated payload will contain filter entries, for example:

 "_TraceFilter_":{
  "infoRulesetProperties":true,
  "infoOutputString":false,
  "infoInputParameters":false,
  "infoOutputParameters":true,
  ...

添加这些标记/条目,并在执行请求中启用相应的过滤器.有效负载响应将包含请求的跟踪.

Add these tags/entries with the appropriate filter enabled in the execution request. The payload response will contain the requested traces.

另一种方法是在获取WSDL或WADL时启用Decision跟踪信息.请参阅位于"

Another way is to enable the Decision trace information when getting the WSDL or WADL. See the documentation at "Decision trace information" in the IBM ODM documentation at "IBM Operational Decision Manager 8.7.0>Operational Decision Manager 8.7> Decision Server Rules>Rule Execution Server console online help>Viewing and managing transparent decision services>Viewing or downloading an HTDS description file", Step 6 and collect the execution information on the client side.

这篇关于如何在Bluemix上的业务规则服务中跟踪规则?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆