Issue symptom

We have met with a strange issue in breadcrumb navigation:

We first click hyperlink of instance 201400024731

/wp-content/uploads/2014/01/clipboard1_361213.png


And we go to its detail page, then click Inbox Workcenter to return to the search result view. Then we click the second instance 201400024710 to reach its detail page, and click   Inbox Workcenter again. Now we delete the 201400024731 via delete icon in toolbar, however we still can find the entry for it in breadcrumb drop down list. The worse thing is, after we choose the dropdown list for 201400024731, we actually reach the detail page of 201400024710 which is completely wrong.

/wp-content/uploads/2014/01/clipboard2_361238.png

Root cause

We found the issue is caused by missing implementation of GET_MAIN_ENTITY.

/wp-content/uploads/2014/01/clipboard3_361239.png

After implementing it the issue is gone. The reason why that method is necessary is because:

The class CL_BSP_WD_HIST_MANAGER_BASE has two event handlers:

ON_ENTITY_DELETED is responsible for the removal of history record of deleted bol instance from history storage.

/wp-content/uploads/2014/01/clipboard4_361240.png


it is registered on method ON_HISTORY_TRIGGER,

/wp-content/uploads/2014/01/clipboard5_361241.png

which is the event handler for event:

/wp-content/uploads/2014/01/clipboard6_361242.png

When we are navigating from search result to detail page, GET_MAIN_ENTITY will be called:

/wp-content/uploads/2014/01/clipboard7_361243.png

The returned main entity is registered for event handler ON_ENTITY_DELETED.

/wp-content/uploads/2014/01/clipboard8_361244.png

When this very instance is deleted, the event DELETED is raised and caught by event handler ON_ENTITY_DELETED( see callstack below)

/wp-content/uploads/2014/01/clipboard9_361245.png

The history entry for the deleted bol entity( o:871) is removed in line 32:

/wp-content/uploads/2014/01/clipboard10_361246.png

/wp-content/uploads/2014/01/clipboard11_361247.png

Row one is removed, and in back button drop down list now the entity for deleted bol entity is removed as expected.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply