TSM Calculations Configuration
Configuration of custom functions for formulas. Currently only the folder, where the custom function files are stored, can be configured.
Configuration Path
Section titled “Configuration Path”HAKOM:TSM:CalculationConfiguration Structure
Section titled “Configuration Structure”Calculation└─ Formulas └─ CustomFunctions └─ PathQuick Start
Section titled “Quick Start”<HAKOM> <TSM> <Calculation> <Formulas> <CustomFunctions> <Path>functions/foo</Path> </CustomFunctions> </Formulas> </Calculation> </TSM></HAKOM>Configuration Elements
Section titled “Configuration Elements”Custom Function Path
Section titled “Custom Function Path”Path: HAKOM:TSM:Calculation:Formulas:CustomFunctions:Path
Custom functions are defined in separate files. This setting specifies the folder they are loaded from.
| Element | Type | Default | Required | Description |
|---|---|---|---|---|
Path |
string |
CustomFunctions |
Folder from which custom function files are loaded. Allowed values: a relative path, resolved against each of the default resource paths of the product, or an absolute path. File types loaded: .dll (precompiled assemblies) and .csx (C# script files, compiled at runtime). |
The folder is read for every calculation, so a function file that is added, replaced or removed takes effect without restarting the product. The folder itself is resolved once at startup: if it does not exist, it is skipped and a message is written to the log, so create the folder before starting the service.
Was this page helpful?Thanks for your feedback!