我正在生成速度报告。我目前遍历一组文档 (ID),对于其中的每一个,我都可以获得一个关系列表。
我想做的是为每个这些 ID 调用相同的函数以查看是否有任何进一步的关系:
我考虑了一个while循环,但后来发现不支持。
## 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