Run Task or Workflow on a Remote Universal Controller
Universal Task to launch, monitor, and return results from a task defined in a remote Universal Controller.
For customers who would like to manage tasks in one Universal Controller from another Universal Controller. Simply supply the target Universal Controller URL, valid credentials, and the name of a task defined to the target Universal Controller. Using the web service API's, the Universal Task launches the requested task by name, captures the new instance sysid, and uses this to track the status of the task. After completion, the output is retrieved if the task type supports this, the Universal Task complete with the same exit code as the launched task.
Requires Universal Controller version 126.96.36.199 (or higher) on the target Universal Controller, and UC 188.8.131.52 or Higher on the Source Universal Controller.
Running remote Universal Controller workflows is partially supported with the following limitations:
Tasks within the workflow are not individually tracked.
No output is returned.
Workflow status is returned, however workflows do not set a return code so you will need to define the Universal Task's exit code processing to handle the status returned in the stderr appropriately.
Both stdout and stderr from the remote task are returned to the Universal Task's stdout. Stderr is used for messages from the Universal Task itself.
Requires Python 3.6 or higher with the requests module installed. Tested with the Universal Agent bundled Python distribution.
You can set different log-levels for the Universal task, providing you more or less information to suit your needs.
We are also delivering a Python script for customers who would like to run Universal Controller tasks externally from a command line or other Job Scheduling tool.