...
The method implements reversal of splicing of a cube rule, the algorithm is similar to cube splicing - but differs in metadata used for element names substitution. These come from fpm.json and are based on RollbackQuery
QueryRollback
MDX query definitions for each applicable directive. The desplicing consists of following steps.
...
If the patch action and rule check were successful the method will set the cube status in cubes_status
store to True
and will return without errors signalling to the caller to continue with a following cube rule.
...
TM1SpliceExecutor Properties and Methods
The class defines following attributes:
Attribute | Type | Usage |
---|---|---|
|
| Instance of configuration container to retrieve config data from (Containers (package) ). |
|
| TM1Py connection object to access target TM1 instance. |
|
| Instance of parser (Parser/Grammar (package)) to be used to parse the rule. |
|
| Dictionary of KPI calculation definitions retrieved from |
|
| Logger to use to log into |
The class exposes following methods:
Method | Usage |
---|---|
| Creates a connection with target TM1 instance. |
| A helper method to run a set MDX query, returns a list of elements. |
| A helper method to run a set MDX query stored with each directive in |
| A helper method to run a set MDX query stored with each directive in |
| Recovers a rule from a backup file located in rule subfolder and saves it on TM1 server. |
| Desplices an individual cube rule - see details provided above. |
| Splices an individual cube rule - see details provided above. |
| Returns a parse tree from |
| Returns a spliced rule as string, the rule has been spliced. |
| A helper method to run a TI process, used to run TI processes before and after splicing. |
| A helper method to compile a list of cubes depending on Splicer CLI settings. |
| A helper method to return a list of parents related to a supplied element. |
| A helper method to return a set of immediate descendants of a supplied element. |
| A helper method to clear |
| A helper method to check cube status of all cubes that were processed. If there is an error indicated for any of the cubes, the method will initiate rollback of the rule changes. |
| A helper method to prepare data by running |
| Desplices all cubes depending on Splicer CLI settings. |
| Splices all cubes depending on Splicer CLI settings. |
| A helper method to register results of splicing for a directive and dimension. |
| A method to retrieve a dictionary of KPI calculation definitions from |
| A method to generate content of FPM-KPI region based on |
| Disconnects a TM1 connection session. |