Try it free

Run workflow action for Workflows

  • Latest Dynatrace
  • Reference
  • 3-min read

The Run workflow action allows you to modularize workflow usage by running a workflow as a task in another workflow. You can think of this type of workflow as a sub-workflow. This approach enhances flexibility and maintainability, allowing workflow to function independently, and you can integrate it as a sub-workflow based on your needs.

Here are some examples:

  • A workflow that sends a notification via various communication channels, for example, a Slack message or an email.
  • The channel selected could depend on the severity of the problem and the time of day or day of the week.
  • A workflow with a set of tasks you want to iterate over, such as a list of entities: retrieve details of an entity, look up ownership information, and create a ticket.

Restrictions

  • The list of available workflows displays only the ones you can access. It also doesn't contain any simple workflows or draft only workflows.

  • For the execution to be successful, the actor on the current workflow needs permission to run workflow automation:workflow:run and access to the selected workflow in the action.

  • The Run workflow action always runs the live version of a selected workflow. If a workflow is undeployed and available only as a draft, the task will fail with the respective error message.

    Make sure you have the proper access and permission configuration for the actor to run all workflows you plan to use. For more details, refer to Manage workflow permissions.

    If you don't have access to a workflow that has already been selected, this is displayed in Workflows Workflows. However, you can still edit and adjust the task input and any other task in the workflow.

  • Direct or indirect recursions of workflow executions are not allowed.

Input

  • Run Workflow: Select from the drop-down list which workflow to run as a sub-workflow.
  • Input: The input for the workflow.
    • It can be accessed via the input() expression in the sub-workflow.
    • The task input will be merged with the sub-workflow's default input. For more details, see Run a workflow with inputs.
    • The workflow input defaults of the selected workflow are displayed.
    • Use Edit this workflow to open the selected sub-workflow for editing in a new tab.

Result

The action result is the one defined in the sub-workflow result. For details, see Workflow results.

Workflow executions

The Run Workflow action creates a separate workflow execution for the selected workflow. For monitoring, navigation, and cancellation behavior, see Monitor sub-workflow executions.

Related tags
Dynatrace Platform