SAP CRM WebClient UI cross workcenter的context cleanup

91 阅读1分钟

Created by Jerry Wang, last modified on Apr 28, 2014

PPR search result table里的result entry在同一work center内部的view之间做navigation(例如从Master Data->Product Ranges navigate到Master Data->Accounts )时不会被销毁。
clipboard1

但是在cross workcenter navigation的scenario下,例如从Master Data navigate到Sales workcenter,则context node的销毁逻辑如下:

  1. 在line 107的方法里会raise 一个context change的event:
    clipboard2
    clipboard3

bol core 会销毁掉collection wrapper内的bol entities, 前提是flag gv_bol_reset_requested 置为true:

clipboard4
clipboard5
clipboard6

  1. gv_bol_reset_requested 的置位逻辑如下:
    UI framework会判断出当前的navigation是否是work center之间的navigation:
    clipboard7
    context change 的event handler会设置flag restart_requested为true:

clipboard8
gv_bol_reset_requested会根据restart_requested为true:
clipboard9