...
Then the method will establish a list of cubes for splicing. The list can be either all cubes as configured in fpm.json in Cubes object (--all
option), or a list supplied from command line (--cubes
option) or a list of cubes containing supplied list of dimensions to a command line (--dimension
option) within their directives.
...
After the loop is finished, the method will determine and call TI processes to run after splicing. The list of processes is configured in kpi_template.json
in postprocess_TI::Splice
object.
...
After the changes are saved in the proposed file, the method will patch the cube with updated rule and will run check of the rule on the TM1 server. An exception will be generated if the check fails, the cube status will not be updated in cubes_status
store (initial value was already set to False
to indicate failure) and rollback of changes will be run. Otherwise 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.
...
Desplicing Cubes (method desplice_cube_rules
)
Desplicing is a reversal of splicing and is implemented very similarly as above described splicing method. The steps are following.
First, the method will determine and call TI processes to be run before commencing desplicing. The list of processes is configurable and might be added if required to kpi_template.json
configuration file to preprocess_TI::Desplice
object. The list is retrieved from TM1SpliceConfigContainer
instance associated with the TM1SpliceExecutor
.
Then the method will establish a list of cubes for desplicing. The list can be either all cubes as configured in fpm.json
in Cubes
object (--all
option), or a list supplied from command line (--cubes
option). Option to desplice cubes containing supplied list of dimensions to a command line (--dimension
option) is not yet implemented.
Then it will loop all the cubes in the list and will call individual cube desplicing for each cube.
After the loop is finished, the method will determine and call TI processes to run after desplicing. The list of processes is configured in kpi_template.json
in postprocess_TI::Desplice
object.
Finally the method will check status of each cube that was spliced to see if any errors have occurred during desplicing. If an error was detected during desplicing, the changes that have been committed by Splicer will be rolled back.