I'm generating a velocity report. I currently iterate through a collection of documents (IDs), for each of these I can get a list of relationships.
What I'd like to do is for each these IDs is to call the same function to see if there any further relationships:
I thought about a while loop but subsequently found out that is not supported.
## Loop through the selection of documents
#foreach( $vDoc in $documentList )
## for each document obtain a list of all upostream relationships
#foreach($h1 in $relDao.getUpstreamDocumentIds($vDoc.document.id))
## Need recursion in here....
## need to keep getting the upstream IDs until the size is zero and then return that ID
#end
#end