What's new Download Reportworq
⬇ Guide PDF

Turbo Integrator, Workato, and Task Scheduler#

The automation API is the substrate under three ready-made ways to launch a job from outside Reportworq: an IBM Planning Analytics Turbo Integrator (TI) process, a Workato recipe, and a Windows Task Scheduler task. This page covers each, and the one PowerShell setting that keeps a script-launched job from appearing to hang.

When to use it. Launch a job this way when the trigger is another system's event rather than a clock, for example a TI process that has just finished loading actuals and should regenerate the reporting pack on data-ready. If you previously used Cube Monitoring to launch jobs from Planning Analytics, note that Cube Monitoring has been removed in this release, and the REST-API Turbo Integrator described here is its replacement, it now also reaches IBM Planning Analytics Cloud through the Cloud Connector relay.

Before you begin#

Launch a job from IBM Planning Analytics Turbo Integrator#

Reportworq ships sample TI processes you adapt rather than write from scratch. There are four "Run Job" samples, one for each way you run Planning Analytics:

If your instance cannot yet be upgraded to the release that carries the latest version of a sample, the Downloads page offers the current .pro and .json for each one as a plain file.

The two v11 samples make their HTTP call with PowerShell, launched from the TI ExecuteCommand function (the Cloud sample carries its PowerShell prolog with it). The two v12 samples use no PowerShell at all: each posts the job request with the native TI function ExecuteHttpRequest, so it needs no shell and no files on disk. Use the v12 sample for hosted PA v12 Cloud or PAaaS, and the v12 On-Prem sample for an on-premises PA v12 / PA-Engine model. See Which sample for PA v12 / PAaaS below.

To use one:

  1. In the connection editor, click Install REST API TI Process. Reportworq opens a chooser that lists the available samples. Check only the samples you need (nothing is selected for you), then click Install Selected. Only the processes you checked are created in your Planning Analytics model, so an older server is never handed a sample it cannot compile.
  2. Set the Reportworq server address (or the CloudHub base URL), the token, and the target job name.
  3. For a Cloud call on a multi-workspace instance, set the ?workspace={name} querystring.
  4. Call the process where your model's data load finishes, so the reporting pack regenerates on data-ready.

The TI process calls the REST run command described in Run a job by API, so the same parameter and distribution overrides are available from TI.

Which sample for PA v12 / PAaaS#

The Planning Analytics v12 / PA-Engine runs in a container with no operating-system shell, whether you run it in the cloud or on-premises, so the ExecuteCommand TI function is not available there. Because both v11 samples rely on ExecuteCommand to launch PowerShell for their HTTP call, neither can run on PA v12. The two v12 samples make the same call the native way, with ExecuteHttpRequest, so they work on the containerized engine with no PowerShell, no shell, and no scaffolding on disk. Pick by where your v12 model runs.

Hosted PA v12 Cloud or PAaaS: use the Rest API Run Job Sample - v12. It reaches your Reportworq instance through the Cloud Connector relay, authenticates with the Cloud API key (pCloudConnectorApiKey), and takes a pWorkspaceName for a multi-workspace instance. It takes the same parameters as the v11 Cloud sample, with two differences:

On-premises PA v12 / PA-Engine: use the Rest API Run Job Sample - v12 On-Prem. This is the on-premises analog of the v12 sample. It makes the same native ExecuteHttpRequest call, but talks to the Local API on the same machine rather than the cloud, so its parameters differ:

Launch a job from Workato#

The Reportworq Workato connector wraps the same command set as recipe actions:

The connector authenticates with the Cloud API token. Its Parameters and Notification inputs are semicolon-delimited. A typical recipe runs a job synchronously, waits for completion, then routes the result downstream to an approval, a ticket, or a notification.

Launch a job from Windows Task Scheduler#

An OS task can issue a REST run on a schedule the native scheduler does not cover, most simply by having the task run a small PowerShell script that calls the API. If you script it in PowerShell, apply the fix below.

The PowerShell and TI hang fix#

A job launched from a PowerShell script (including a Turbo Integrator PowerShell prolog) delivers its reports correctly, but the script itself never returns, it stalls after a successful run. The reports are never the problem, only the script's completion is. The cause is Windows Invoke-WebRequest trying to parse the server's HTML response.

Add this line near the top of the script:

$PSDefaultParameterValues['Invoke-WebRequest:UseBasicParsing'] = $true

This is now shipped by default in the generated Cloud TI PowerShell prolog, so newer generated scripts are already immune. It remains the fix for hand-rolled or older PowerShell scripts and older self-hosted run scripts. If a script-launched job delivers output but the launching script hangs, this is the setting to add.

This applies only to the PowerShell-based v11 samples (on-premises and Cloud) and to your own PowerShell scripts. The two v12 samples (Rest API Run Job Sample - v12 and Rest API Run Job Sample - v12 On-Prem) use the native ExecuteHttpRequest function with no PowerShell, so this hang cannot occur there and no prolog setting is needed.

Notes and limits#

Going deeper. For the command surface these integrations call, parameter overrides, and filtering a run to a specific output type and destination, see Run a job by API. For choosing an authentication type when connecting to Planning Analytics, see Connect IBM Planning Analytics.

Feedback on this page

Comments, questions, requests, or something missing or unclear? Email us - the page you are on is filled in for you.

Email feedback on this page

Or write to support@reportworq.com directly.