The SortAFP workflow identifies the documents in a single indexed AFP file and sorts them to print in the specified order. If the input AFP is not indexed, you can include a step based on the IndexAFP step template before the IdentifyDocuments step.
The SortAFP workflow does not include the WriteDocumentsToDatabase step, so the sheet counts for documents are not displayed in the Documents table. The EnableRepositioning step is included in the workflow twice. The first execution is needed so that the IdentifyDocuments step can access the starting sheet location of each document when it runs. The second execution is needed after the BuildAFPFromDocuments step because it rearranged the pages in the AFP file based on the sorting criteria.
Phases and stepsThe illustration shows the steps in each phase of the sample workflow.