I have batch documents (anywhere from 1 to 2500 pages) being brought in via Import Agent. I need to split each page into it's own document and file them appropriately. The metadata needs to come from another system. I'm curious of how to best use Workflow without creating any issues with performance or unnecessary duration.
The way I see it, there are two options:
1. Purely use Workflow Activities:
This would use a repeat activity to remove pages from the batch document apply pattern matching on the text to find the identifier. Then I'd use the batch number obtained from the document, as well as the page identifier to do a database query to retrieve the metadata. I could then apply it to the template and file the document.
2. Use an SDK Script Activity
This would mean creating an SDK Script that would load all of the data for the batch from a web service, and then iterate through each page, creating documents as I go. I'd populate their template from the data that I'd previously loaded. From here I would likely allow another workflow to actually file it, to reduce the scope of the script.
Any thoughts?