Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The method then calls TM1Parser.get_rule to splice the rule by calling convert method of each object in the parse tree and get the text representation of the modified parse tree. This string will be used to patch the cube rule in TM1. Before it is attempted, the method will first check if there are any changes by comparing original rule with a rule retrieved from the modified parse tree. If the rules are not identical, it will save the string into a proposed file in the proposed rule folder (configured from command line, default location is rule), otherwise it will skip further steps and the method will return without errors signalling to the caller to continue with a following cube rule.

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 be set to Error in the cubes_status store and rollback of changes will be provided, otherwise the method returns without errors signalling to the caller to continue with a following cube rule.