Depending on the size of the tree, it can take just a moment, or several seconds. As long as the tree doesn’t change, you can reuse the existing object.
The GUI & AWI run an
IKickEventListener
, to listen for
KickEvent
s of
KickEventType
type
TREE_CHANGED
. These kick events are sent any time a work process becomes aware that a change has been made to the
OFS table. If you develop an application that works with AE objects, and this app remains running for more than a few seconds, then it’s probably a good idea to implement something similar. (See also this discussion on
kick events.)
In a busy system, there can be frequent changes to the folder tree, particularly during deployments (XML imports or DB loads of transport case files). I do not know whether the scope of the folder tree changes is relevant to whether an existing FolderTree can still be used. Perhaps
any change to the tree is sufficient to invalidate old FolderTree objects. I do not know what would happen if one tried to use an outdated FolderTree object.