This Content Extended Operations example illustrates using Process Designer to create a workflow to verify the content of a document.
The workflow makes use of operations to check out the latest attachment, find out how many documents of a particular content type are in the attachment, then get the content of one of those documents for verification purposes. When the document content has been verified, the checkout operation for the attachment is then cancelled.
The entire workflow example looks like this:
This example uses the operation getContentWithIndex, which retrieves the document (within a set of documents) referenced by an index argument. The operation getContent is similar, but returns only the first document within the set of documents in the attachment.