Community

Vantage Process Flow - Two classifications in single process skill

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?

Was this article helpful?

0 out of 0 found this helpful

Comments

1 comment

Please sign in to leave a comment.