pub.ariba.supplier.attachment.iterator:getNextWrapperFromIterator
WmAribaSupplier. Returns the next attachmentWrapper from the iterator.
Input Parameters
collectionIterator | Iterator object. |
Output Parameters
attachmentWrapper | The attachmentWrapper object returned. Empty if the index is invalid or if no attachmentWrapper exists with the id specified. |
Usage Notes
When using pub.ariba.supplier.attachment.collection.iterator:getIterator andpub.ariba.supplier.attachment.collection.iterator:iteratorHasMoreWrappers, you should use pub.ariba.supplier.attachment.iterator:getNextWrapperFromIterator along with a repeat flow element to loop through an attachmentWrapperCollection more efficiently. Your flow code would be similar to the following.:
INVOKE pub.ariba.supplier.attachment.collection.iterator:getIterator
REPEAT (repeat-on SUCCESS)
INVOKE
pub.ariba.supplier.attachment.collection.iterator:iteratorHasMoreWrappers
BRANCH on hasMoreWrappers
SEQUENCE true
INVOKE
pub.ariba.supplier.attachment.collection.iterator:getNextWrapperFromIterator
<do something with the attachment wrapper>
SEQUENCE false
EXIT $loop