A large livelink system does not insists on any kind of structuring.If your question is I have a folder that is called FolderLevel3
in a hierarchy and can you have Folderlevel2 and FolderLevel1 as its parents ,if so yes.In your call
fDocMan.getNodeByPath(ews.getID(), FolderLevel1:FolderLevel:FolderLevel3) all you are asking the sytem is starting at the
ews.getID() is there something like that in that path specified.
If a company says I will have 100 folders in my EWS and in each of the folders I create a path FolderLevel1:FolderLevel:FolderLevel3 then you have
ENTERPRISE WS(2000)
LEVEL1(12345):FolderLevel1:FolderLevel:FolderLevel3
LEVELN(43216789):FolderLevel1:FolderLevel:FolderLevel3
If you have not understood livelink to this point then please understand that it is the immediate parent or volume with which you can traverse and livelink is a RDBMS
based solution which kind of is trying to give you a TREE walk.
One can using a RDBMS function,query or stored proc write something that would say give me all the trees that look like FolderLevel1:FolderLevel:FolderLevel3 regardless of its position but I would question you why do this.Why is it important to know this pathing in livelink?.It does not make any SENSE to me.
BWS or xECM are a custom subtype in livelink like folders.Newer CWS code probably knows how to interact with it.If not there is another kind of webservices trageting SAP to livelink programmers called Enterprise Library services.in a xECM scenario you will have some function to figure out the root location of a BWS or Application and I would start looking there not in the entire livelink system as it can become expensive very much.
Are you sure about this
If pathElements is wrong fDocMan.getNodeByPath is not returning any exception, how to verify (raise exception) if there is no node at the pathElements ?
if so have you asked OT about it?How can you say it is an EXCEPTION. An exception means some kind of problem happened.My thought is you are asking the system do you have this fDocMan.getNodeByPath(ews.getID(), FolderLevel1:FolderLevel:FolderLevel3) if livelink does not have it it will probably return something,if it suceeds it will return the nodeid of FolderLevel3.Again I have not tested this but just to help you out.If you feel it should be an exception please ask OT.
Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010