Step 1 - Datastore Modifications
Before this new column can be loaded into the cube, the datastore must have a field that can accept this column. The Adding and Populating a New Store example can be followed to create a new store or modify an existing store.Step 2 - Define column calculator
This step defines the logic of the column calculator. The example below is a simple column calculator. It returns a value of Negative when the Custom Projected value is less than 0, and Non-Negative otherwise. The custom column calculator is defined inside:/frtb-application/src/main/java/com/activeviam/frtb/application/config/
Step 3 - DLC Config
For this step, the Data Load Controller is used. In the example below, the topic description configured here is overridden. The existing topic description is wired in and a column calculator is added into the channel. Since the topic description is given a lower order, it will fully replace any existing topic description with the same unique identifier (name and topic type). Alternatively, a named Custom Field Description can be created and added to the channel via YAML.Step 4 - Ensure FrtbApplicationConfig picks up the modifications
For the customizations to be picked up, all added Spring@Configuration classes must be included in FrtbApplicationConfig located in /frtb-application/src/main/java/com/activeviam/frtb/application/config/.