Integrating the Limits Module with the Atoti+ Java API

This section walks you through integrating the Limits Module with the Atoti+ Java API (ActivePivot).

Configurations in the Limits Module

In, configure the following properties:

Accelerator Parameters

Some Accelerator parameters are needed in order to allow the Limits module to discover and communicate with the connected Accelerators.

Property Description Mapping of Accelerator name to the URL of its /pivot/rest/vX/cube.
vX should be replaced with the corresponding version identifier for your ActivePivot version. Mapping of the Accelerator’s AsOfDate dimension, hierachy and level. “Level@Hierarchy@Dimension” Mapping of the Accelerator’s Credentials to use to create new KPIs and read Cube structures such as Dimensions and Measures. This is a Base64 encoded “User:Password” string. The URL where Limit’s REST APIs are located, Ex: http://localhost:3090/limits/rest/v1/.
limits.auth The authentication to use in REST requests to the Limits server from the connected Servers.
content.server.url The URL of the remote Content Server. Ex: http://localhost:8080/frtb-starter/content
content.server.auth The encoded authentication to use in REST requests to the Content Server.
Accelerator Authentication

The encoded authentication is needed for Limits to be able to communicate with the connected Accelerator. This encoded string can easily be created using Java’s java.util.Base64 utility. The format of the encoded authentication is “user:password”. This encoded string will be used in the REST request header when communicating between different components remotely.

Here’s an example of how to generate the string using Java:

String encodedAuth = Base64.getEncoder().encodeToString(("user:password").getBytes())
// Value of encoded auth:
encodedAuth = "dXNlcjpwYXNzd29yZA=="

Here’s an example snippet of what these properties look like in the file:{'MRA': 'http://localhost:10010/risk-activepivot/pivot/rest/v5/cube', 'FRTB': 'http://localhost:8080/frtb-starter/pivot/rest/v5/cube'}{'FRTB': 'configuration/kpis'}{'MRA': 'AsOfDate@Date@Dates', 'FRTB': 'AsOfDate@Date@Dates'}{'MRA': `dXNlcjpwYXNzd29yZA==`, 'FRTB': `dXNlcjpwYXNzd29yZA==`}


Path to the directory alerts written to


The path needs to be part of the as the CSV source picks up the alert file real time and saves the alert to the datastore.${}/data/alert

Intraday Observation Frequency

Alert task is automatically scheduled based on the following settings:

  • sample-rate-minutes=*
  • sample-rate-seconds=0

Parent-Child hierarchies

For Scopes of Parent-Child hierarchies, the hierarchy name can optionally be provided. However, if there are multiple hierarchies that contain the same level name, then the hierarchy will need to be specified with the level name. The format for this is: @=. Example: Level 5@BookHierarchy=IR_TRADING.

Testing properties

Target directory for Export


Test file’s path for Upload



For testing Uploading and Exporting Limits, the following properties must be set either in properties file or as Spring arguments.

Reference Data

  • limits_approve_mra.csv is for the Market Risk Accelerator. By default, it is located under limits-starter/src/test/resources/data-samples/data/2018-09-28 and loaded during startup.
  • limits_approve_frtb.csv is for the FRTB Accelerator, located in limits-starter/src/test/resources/data-samples/data/. Please relocate it to the “date” folder if you run Limits with FRTB.

Changes in ActivePivot

In order for ActivePivot to work with Limits, Accelerators need to add the following:

Include the dependencies in the pom.xml

For the LevelPath restful endpoint:



Depending on the AP version your ActivePivot, import the appropriate artifact according. For AP 5.9, AP 5.10 and AP 5.11:

            <version>{LIMIT MODULE VERSION}</version>
            <version>{LIMIT MODULE VERSION}</version>
            <version>{LIMIT MODULE VERSION}</version>

Register the LookUpPostProcessor

The LookUpPostProcessor needs to be registered within ActivePivot inorder for ActivePivot to be able to use it. You can register the LookUpPostProcessor statically anywhere in your ActivePivot configuration with the following:


Add the LevelPathRestServiceConfig


@Import(value = {


Ensure that within the ActivePivotConfig of your connected accelerator, the contextValueManager method is not setting the ActivePivotContentService to null. If the ActivePivotContentService is null, KPIs will not appear in the UI.


Startup Sequence Matters

As the Limits Module creates the KPI in the business cubes automatically, it is important to start up the business AP instances fully before starting up Limits.