SAP ABAP SICF事务码和SAP Hybris的链式过滤器filter chain
ABAP SICF
SICF里的node是树上的节点。
如果当前节点的handler class为空:
则回溯到其parent节点,直至定位到一个有handler class的node位置。
Hybris
通过debug会看到有一堆的filter参与进去:
Hybris帮助文档有一些常用filter的介绍:
上面debug screenshot里诸多的filter是如何串成一个chain的?在storefront的web.xml里查找到filter chain的名称:storefrontTenantFilterChain
filter-class是Spring标准的class
再到config folder下找到spring-filter-config.xml,把chain id storefrontTenantDefaultFilterChain抄下来:
这个chain里包含的所有filter就定义在这里:
上面这些filter都是Hybris开发人员开发的filter,按照顺序出现在runtime chain call里。
这个issue AIM in CRM and C4C里介绍了C4C和CRM的After import mechanism.
在Hybris里,客户把2个G的Hybris安装包下载下来,然后在命令行里运行命令安装,实际上就是用ant的build命令。
为什么要执行build:
The reasons why you need to build SAP Hybris Commerce are as follows:
(1) SAP Hybris Commerce is an extendable complex solution, and it has a very flexible structure. During the build process, all referenced components are integrated.
(2) Runtime files and configuration files are created, prepared, and validated.
(3) Some parts of SAP Hybris Commerce are compiled, such as ServiceLayer and Other SAP Hybris Commerce components you have implemented.
在我电脑上build需要将近半小时:
这个build起的作用ABAPer可以理解成ABAP里的tcode SGEN:
Hybris比SGEN强大之处在于能允许partner自定义build logic,相当于在Hybris标准的build 逻辑执行的过程中,定义了一些"BAdI definition".
Partner可以通过编辑extension下的buildcallbacks.xml来定义custom build behavior:
Regarding more custom build logic, please refer to SAP 2298535 - How to customize build behavior.
在C4C mobile上有一个built-in的function用于measure network latency,凡遇到客户报mobile performance问题时,我们都会让客户附上该latency的数据。
SAP官方建议的latency是200ms以下。
What is necessary for a better experience working in online?
Minimum bandwidth requirements for mobile devices using SAP Hybris Cloud for
Customer apps.
Upstream: 2 mbps
Downstream: 2 mbps
Latency: 200ms or better
- 点赞
- 收藏
- 关注作者
评论(0)