I want to use two classification activities in single process skill — one Assemble activity and one Classification activity. Both will classify some specific pages. I have configured the below workflow, in which whatever pages get unidentified will come out from the Assemble activity and it will check the following condition:
// Get all documents in the current transaction
var docs = Context.Transaction.Documents;
// Loop through each document
for (var i = 0; i < docs.length; i++) {
// Check the ResultClass of the specific document we are looping through
if (docs[i].ResultClass === "UnidentifiedDocument" || docs[i].ResultClass === "") {
return true; // Found an unclassified page, return true immediately
}
}
// If the loop finishes and finds no unidentified pages, return false
return false;
Based on this condition, the unidentified pages will go to the Classification activity, from which they will be identified and then proceed to the Extract activity.
However, this flow is not working for bundled documents. If I upload a single unidentified page from the Assemble activity, it goes to the Classification activity, gets classified, and the Extract activity applies the document skill correctly. But if I upload bundled accounts, it is not working as expected.
Could someone please help me with this use case?Vantage Process Flow - Two classifications in single process skill
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています
コメント
1件のコメント
Hi Arunkumar,
For bundled documents the best approach with this is to use a Document Splitter skill. This gives you complete control over how the documents are separated and can be setup and tested using the Advanced Designer for Vantage. In the process skill you then use the splitter skill during the assembly step before adding the classification.
Please see the full documentation on the splitter script activity here:
https://docs.abbyy.com/vantage/documentation/advanced-designer/activities/splitter-script/splitter-script
Splitting documents: https://docs.abbyy.com/vantage/documentation/advanced-designer/use-cases/splitting-pages
Our advanced designer for Vantage can be downloaded here: https://vantage-eu.abbyy.com/ad/latest
Thanks
Nick
サインインしてコメントを残してください。