Question
Is it possible to set the Documents matched with one of the Document Definitions to not be exported and moved directly to the Processed stage?
Answer
In order not to export Documents matched with a certain Document Definition, you can skip the unnecessary workflow stages using scripting:
- In Project Properties choose the Advanced workflow schema and edit a Recognition stage:
- Go to the Exit Routes tab of the Recognition stage properties and add a new route to the Processed stage to it:
- Add a new Rule to this stage, choose Script as a condition type, and use the following script.
* Please change the "Unknown Document" in the provided script to your actual Document Definition name.
if (Document.DefinitionName == "Unknown Document") {
Result.CheckSucceeded = true;
} - Save the changes and test them. The batch with the documents should go straight to the Processed stage after the Recognition, skipping the rest of the stages, including Export:
Comments
1 comment
Abegail Yap
What if there's 2 documents in 1 batch? 1 matched with one of the Document definitions which should be moved to processed, and the other 1 should go through the stages
Please sign in to leave a comment.