> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up the default context values

> Guide to setting up default context values in Atoti Market Risk, covering reusable patterns for configuring cube context values with minimal changes to the application, extendable for any use case.

Default context values in Atoti Market Risk define the initial state passed to cube queries. The patterns in this guide are generic and can be extended for any use case with minimal changes to the application.

| Cube | Bean name | Class (where applicable) |
| - | - | - |
| Var-ES Cube | contextValueVaRESCube | VarESCubeContextValueConfig |
| VaR-ES Summary Cube | contextValueVaRESSummaryCube | VarESSummaryCubeContextValueConfig |
| Sensitivity Cube | contextValueSensitivityCube | SensiCubeContextValueConfig |
| Sensitivity Summary Cube | contextValueSensitivitySummaryCube | SensiSummaryCubeContextValueConfig |
| PLCube | contextValuePLCube | PnlCubeContextValueConfig |
| PL Summary Cube | contextValuePLSummaryCube | N/A in Atoti Market Risk. |
| Combined Cube | contextValueMRCombinedCube | MRCombinedCubeContextValueConfig |

The context values are defined in the specific mr-\*- a specific configuration class `ContextValueConfig` within
`/mr-application/src/main/java/com/activeviam/risk/starter/cfg/pivot/impl`:

```
    @Bean
    public List<IContextValue> contextValuePLCube() {
        return List.of(
                QueriesTimeLimit.of(queriesTimeLimit, TimeUnit.SECONDS),
                [...]
        );
    }
```
