Defining Document and Acceptable Types

When defining the type of ID document to be captured during a TrustX flow, it may be required to restrict the type of document while also accepting documents with different parameters. For example, the document type may be restricted to PASSPORT while accepting passport documents from multiple countries.

This document will outline how to configure a Process Definition using the 'Define Document Type' and 'Acceptable Document Type' activities to define and customize the acceptable ID documents required during a document capture flow.

Create a new Process Definition

Create a new Process Definition in the Backoffice by following the instructions below:

  1. Login in to the Backoffice application and navigate to Process Definitions > New Process Definition.
  2. Choose a template or create a new Process Definition from scratch. This example will use a standard Document Capture flow as a base.

Configure the Process Definition

A standard document capture process

A standard document capture process

This section will describe how to configure the activities to configure a defined document type flow.

  1. Before the 'Capture Document Image' activity, add a 'Define Document Type' activity and connect them using the Global Connect Tool.
  1. The 'Define Document Type' activity supports the following input parameters:
NameTypeDescription
Acceptable CountriesList[String]A list of document countries that will be accepted.
Country CodeStringThe two-letter country code of the document
Document KeyStringThe unique key associated with the document type.
Document TypeStringThe accepted document type.
  1. To configure input parameters, click the 'Define Document Type' activity to expand the right-side context menu. In the example below, the Document Type has been set to "PASSPORT".
  1. The 'Acceptable Countries' input parameter will be defined with the following values:
  1. After the document is processed by the 'ID Document Processor' activity, add an 'Acceptable Document Type' activity and connect them using the Global connect tool.
  1. The 'Acceptable Document Type' activity supports the following configurable input parameters:
NameTypeDescription
Document KeyStringThe identifier of the document
Document TypesList[String]The list of accepted document types
Error navigation screenStringThe screen to show when an error occurs.
Exception On Max Attempts ExceededBooleanIf the maxAttempts is exceeded, should exceedFailedLivenessCount exception be thrown
Expiration Check EnabledBooleanIs the expiration check enabled for the document
Expiration Tolerance PeriodStringHow long after a document has expired, the document will be accepted
Lenient CheckBooleanWhether the checks will use a more lenient threshold
Max Age CheckBooleanDetermines if the maximum document age check is applied
Max Age PeriodStringThe maximum age a document may be i.e. the time since issuance
Max AttemptsIntegerThe number of failed attempts of face liveness before the exceedFailedLivenessCount exception is thrown
  1. Click the 'Acceptable Document Type' activity to expand the list of input parameters from the right-side contextual menu. Set the 'Lenient Check' input parameter to ${true}. This field will allow the process to ignore the document type and document country checks when reaching this activity.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard