SAP BRF+ Interpretation模式与Generation模式的区别

From: Wang, Jerry

Sent: Tuesday, August 26, 2014 4:45 PM

在Simulation mode下测试一个ruleset时,

SAP BRF+ Interpretation模式与Generation模式的区别

可以选择Simulation Mode为Interpretation Mode或者Generation Mode。

SAP BRF+ Interpretation模式与Generation模式的区别

这两者的区别是,如果以Interpretation Mode运行ruleset, 则ruleset里每条rule包含的formula都会由BRF 框架的class逐一执行,

SAP BRF+ Interpretation模式与Generation模式的区别

callstack如下图:

SAP BRF+ Interpretation模式与Generation模式的区别

而当选择Generation mode时,因为每个BRF function都存在一个对应自动生成的ABAP class里处理该function内包含的rule.

如果选择Generation mode时,rule的执行由此generated ABAP class来完成:

SAP BRF+ Interpretation模式与Generation模式的区别
SAP BRF+ Interpretation模式与Generation模式的区别
SAP BRF+ Interpretation模式与Generation模式的区别
SAP BRF+ Interpretation模式与Generation模式的区别

function 和generated class的对应关系维护在table FDT_CC_0000里,通过function id进行查询。

SAP BRF+ Interpretation模式与Generation模式的区别

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP BRF+ Interpretation模式与Generation模式的区别