Using Registration Parameters
Transaction and file registration parameters are parameters consisting of key-value string pairs designed to provide additional user information (for example, client name, document type, and file source information). They are passed for processing along the transaction or the transaction documents. These parameters are available to all workers and can be used in various production scenarios:- A program that uses ABBYY Vantage signs every transaction using an end-client attribute for the purposes of compiling reports and creating custom processing procedures (e.g. filtering counterparty data catalogs by client).
- A Scanning Station client (or a different origin for transactions) can pass the registration parameters of a document batch (such as an external correlation ID).
- When creating an empty transaction or when initializing a transaction using the
launchmethod. To do so, send a POST request to thetransactionsresource like in the example below:
- When uploading files to a transaction or a document. To do so, send a POST request to the
transactions/<transaction-id>/filesresource like in the example below:
Important! There can be a maximum of 10 key-value type parameters, with the key parameter containing up to 128 characters and the value parameter containing up to 256 characters. The values of these parameters cannot be changed once they have been set.Registration parameter values can be read:
- in Custom activity scripts,
- in External Export scripts in Output activity,
- in business rules.
- By calling the
registrationParametersmethod for thetransactions/<transaction-id>/registrationParametersresource:
- By using a
downloadmethod call for thetransactions/<transaction-id>/files/<file-id>/downloadresource to get the values in JSON format alongside the file being uploaded:
Using Skill Parameters
In addition to registration parameters, you can pass skill parameters when creating or launching transactions. Skill parameters are key-value string pairs that configure how a skill processes the transaction. Skill parameters can be set when creating a transaction or when using thelaunch method:
Important! There can be a maximum of 10 skill parameters per transaction.You can retrieve skill parameter values using the Vantage API by calling the
skillParameters method:
The response will look like the following:
