Configuring Built in Integrations¶
Atfinity allows to send data to and get data from the outside by using its built-in integrations. This is useful if a case needs relevant information from external systems. What are Integrations? lists the systems Atfinity connects to.
Using Atfinity's integrations includes three parts:
- Define when the integration should be executed in a rule.
- Defining the information sent to the system in an input assignment.
- Defining what happens with the received result in an output assignment.
1. Define when the integration should be executed in a rule¶
Execution of an integration is always triggered by a rule, or rather when the rule's condition evaluates to true. In order to use an integration in Atfinity's one has to create a rule and define its condition.
2. Defining the information sent to the system in an input assignment.¶
The information to be sent needs to be assigned to pre defined parameters of the integration. This input assignment happens in the rule's action. An input assignment could look like this:
On the left side of the assignment operator := is a predefined parameters of the respective integration.
API_REQUEST is a reserved word in Atfinity indicating an integration input and, in this example, name is a
predefined placeholder which this integration can send to the outside system.
On the right side of the := operator is the value which name should take.
This value is collected during the case in the case manager.
Inputs with fields¶
Info
New in Atfinity 18.
Some inputs are an object or a list of objects, such as the addresses of a party. The rule action lists their fields nested under the input, with which of them are required. You can assign such an input whole, or one field at a time:
API_REQUEST.person.first_name := p.first_name
API_REQUEST.addresses[0].street := p.domicile_street
API_REQUEST.addresses[1] := {'street': p.postal_street, 'city': p.postal_city}
List entries are added in order, starting at 0, so assigning addresses[1] before addresses[0] is reported as an
error.
A field can be assigned at most two levels below the input, and the rule reports a deeper path such as
API_REQUEST.person.contact.email as an error.
For anything deeper, build the object or list in the rule and assign it to the input whole.
When the value of such an input does not match its fields, because a required field is missing, a field has the wrong
type or the value has a field the input does not list, the integration is not run and the error names the field, as
in addresses[1].street.
3. Defining what happens with the received result in an output assignment.¶
Output assignments are similar to input assignments. They are also defined in the rule's action, however, the other way around, since this time values received from the outside system need to be assigned to information in the case manager. So an output assignment would look like this:
Here, the instance's information needs to be assigned a value and is therefore on the left side of the := operator,
while the returned result is on the right side.
The word API_RESULT indicates a returned result and, in this case, number_of_hits is the specific information
returned from the system.
Once assigned, the information p.number_of_hits is available in the case manager.
Example: World-Check¶
Word-Check is a product offered by the company Refinitiv. It's a database of Politically Exposed Persons and heightened risk individuals. In the case that a person needs to be screened, the world-check integration can be used. It sends data about the individual to World-Check which screens for possible hits and returns the result to Atfinity.
A rule for an that would execute the World-Check integration could have a condition like this:
This means that once yes is selected for the information 'perform_worldcheck' the rule's condition evaluates to true and its action (i.e. the integration) will be executed.
The input assignment in the rule's action would be as follows:
API_REQUEST.name := UPPER(p.full_name)
API_REQUEST.gender := UPPER(p.gender)
API_REQUEST.date_of_birth := FORMAT_DATE(p.date_of_birth, "YYYY-MM-DD")
API_REQUEST.country_of_residence := UPPER(p.domicile_country)
API_REQUEST.place_of_birth := UPPER(p.country_of_birth)
API_REQUEST.nationality := UPPER(p.first_nationality)
In this integration run, a person's (referenced as p) name and gender as well as other pieces of information are
provided.
The receiving system uses this information and screens for whether it contains a person that matches this information.
The result of this screen is then sent back to Atfinity and received as follows:
p.worldcheck_has_hits := API_RESULT.has_hits
p.worldcheck_number_of_hits := API_RESULT.number_of_hits
p.worldcheck_check_date := API_RESULT.check_date
Here, the result includes if the screen led to any hits, how many hits there were and the date on which the world check was performed. These three values are assigned to information that the user has defined in Atfinity. These values can then further be used in the case.