Hi,
as Get Next Completed Batch does not work reliably I would like to build my own query for getting batches ready for export from Decipher. Studying this
https://digitalexchange.blueprism.com/dx/entry/3439/solution/decipher-get-batch-status it shed some light on how this can be achieved, however, it is not possible to differentiate among batches which have been already exported and the ones which are still waiting for export. As the batch statuses are following (copied from the process).
But status 6 is the same for batch which has been exported and the batch waiting for export. Furthermore, there is a column Flag which seems as the solution but that is the same for exported/waiting for export batches. How the BP action Get Next Completed Batch knows which one to pick?
Status field values: • 0 – Invalid
• 1 – UserCreating – The batch is being created by user
• 2 – UserSending – The batch is being sent by user
• 3 – UserReceiving – The batch is being received by user
• 4 – UserProcessing – The batch is being processed by user
• 5 – ReadyForProcessing – The batch is ready to be processed by next role
• 6 – Finished – The batch has finished the processing by all defined roles and is exported
• 7 – Closed – The batch has been manually closed. It stops appearing in the list of active batches, but all data about its documents and pages is stored, so it can be opened again in the future.
• 8 – AutoClosed – The batch has been automatically closed. The system automatically closes a batch if all its documents have been closed manually (for now only in Admin station). If one of the documents is opened by an admin, its batch will be automatically opened.
• 9 – Deleted – The batch has been explicitly deleted – it cannot be recovered anymore because the deletion removes its image data. The object metadata is still in the system and can be seen during Reporting (information about which batches are deleted, why, when etc.)
• 10 – UserUploading – The batch is currently being uploaded (directly using files) by the user application
• 11 – WaitingForImageProcessing – The batch created from file(s) upload is waiting for image processing
• 12 – InImageProcessing – The batch created from file(s) upload is in image processing. The input files of the batch are sent simultaneously to the available Image Processing clients
• 100 – Exception – The batch has been classified as an exception