Pelle TM1 is a full-featured Turbo Integrator Process and Rule Editor for TM1 Planning Analytics built on top of Sublime Text 4
Pelle uses the TM1 REST API for a direct integration with your remote TM1 environment. There are commands to retrieve and push both rule and turbo integrator updates directly to the TM1 server, you can perform all code-intensive updates all from Pelle.
You can also run Turbo Integrator processes right from Pelle, watch its progress, and even view the relevant tm1server.log entries and TM1ProcessError files automatically right from the sidebar.
Pelle comes equipped with the full set of functions used in both Turbo Integrator. They can be easily accessed using Sublime's auto-complete features. Save time by lettings Pele auto-fill the appropriate parameters for a given function, and will even provide a link to the IBM documentation.
Pelle will help you build your complex rule DB() statements, and TI cellget/put/increment functions by populating the appropriate dimensions.
Pelle will leverage the syntax checking features of the TM1 API to let you know on update if there are any issues with your rule or process. It will highlight the relevant row, and provide a message to help you fix errors.
Pelle helps to ensure that all code in your TM1 environment has a consistent look and feel. It will automatically format your Turbo Integrator processes, ensuring they have consistent indentation, case, and whitespace.
Pelle has a bunch of built-in completions for common actions performed within TI processes. This includes:
Easily view the current state of your TM1 server. See all the currently running threads, and even stop a server thread right from Pelle.
First things first, we need to setup a Sublime Project for your TM1 environment.
If everything is correct, you will see a Sidebar with your project name containing a .sublime-project file
To execute a TI process:
The process will execute in the background.
You will see a new folder created in the side bar called 'Turbo Integrator Logs'. With a subfolder created for every TI process execution.
Within these folders, you can access the relevant tm1server.log lines, as well as any TM1ProcessError files that were created during process execution
You can clear all created log files using the command palette.
You can view all of the running threads on a TM1 server using the 'tm1 console' options from the command palette:
You can kill a running thread with the 'kill thread' option in the command palette.
There are a couple ways to auto-format your processes. On demand, or On save. These options can all be accessed in the command palette with the command 'tm1 format'
If you enable auto-formatting. The TI process will be formatted automatically when pulled from the server, as well as when you save the file.
There are a handful of completions automatically built-in.
Completions will automatically be created for all cubes. You can tab through each of the fields to make changes:
Same with EXECUTEPROCESS
You can generate a 'Locals' section for metadata/data sections based on existing cubes
You can generate editable blocks for various types of datasources and other process properties:
All Rule and Turbo Integrator functions should have auto-complete options available. You can also click to be taken directly to the IBM documentation for a given function. Just click the 'Documentation' link in the window.
Multiple snippets have been created for common TI process actions like creating views and iterating elements. You can access these snippets via underscore:
You can see the full list of snippets here
You can tab through each of the relevant fields to make wholesales changes to variable names (and more)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.