There can be several documents in the transactions. How to get the classification result class for all documents in the transaction via a Custom Activity of a Process Skill?
- Open a Process Skill in the editor.
- Add a Custom Activity (it should be somewhere after a Classify Activity).
- The sample code is the following:
var classes = "";
for (var i = 0; i < Context.Transaction.Documents.length; i++)
var currDocument = Context.Transaction.Documents[i];
var currDocClass = currDocument.ResultClass;
classes += currDocClass + ";";
Please sign in to leave a comment.