Skip to main content

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).
Registration parameters can be set using the Vantage API:
  1. When creating an empty transaction or when initializing a transaction using the launch method. To do so, send a POST request to the transactions resource like in the example below:
or In the request body, specify the registration parameters and run the following command:
  1. When uploading files to a transaction or a document. To do so, send a POST request to the transactions/<transaction-id>/files resource like in the example below:
In the request body, specify the registration parameters and run the following command:
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.
You can get registration parameter values using the Vantage API as follows:
  1. By calling the registrationParameters method for the transactions/<transaction-id>/registrationParameters resource:
The response will look like the following:
[
  {
    "key": "key1",
    "value": "value1"
  }
]
  1. By using a download method call for the transactions/<transaction-id>/files/<file-id>/download resource 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 the launch 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:
[
  {
    "key": "parameterName",
    "value": "parameterValue",
    "type": "string"
  }
]