Skip to main content

Plan Basics

A plan enables the execution of a sequence of discrete tasks in Alteryx Analytics Cloud (AAC). These tasks can be flow jobs, workflow jobs, HTTP requests to other platforms, and much more. The sequence of tasks can be gated based on success or failure criteria and can be restarted if needed where the plan failed.

Overview

In many scenarios, data pipelines have dependencies in them. Data sourced from one dataset must be cleaned and delivered for use in another data pipeline. When a pipeline is built, it needs to be scheduled for periodic execution. Ideally, when the execution completes, downstream stakeholders must be informed that the pipeline has succeeded or failed in execution.

In AAC, plans provide the mechanism for building these robust data pipelines within the application, in which sequences of tasks can be executed to deliver more diverse datasets. As a result of the success or failure of these executions, AAC can deliver messages to receiving applications, such as Slack.

A plan is a sequence of tasks.

  • A task is a type of execution in AAC.

  • A trigger is a condition under which a task is executed.

Tip

As one of your plan tasks, you can configure an HTTP message, which allows you to trigger endpoints in AAC itself. So, you can configure your plan executions to trigger a wide range of activities within the product itself.

For more information, go to Overview of Orchestration.

Example

The following example shows how to create a plan that executes the following tasks:

  1. Execute the task that performs the initial cleaning of your data. The results data is saved to a known location.

  2. Execute the task that transforms the cleaned data for downstream uses.

  3. Based on the outcome of step 2:

    1. On success: Send a success message to a Slack channel.

    2. On failure: Send a failure message to a Slack channel.

In Plan View, this plan might look like the following:

Plans-CS-Plans-ExamplePlan.png

Figure: A plan with a sequence of tasks

After creating the above plan, you can perform test runs.

If the tests are successful, you can schedule the plan for periodic execution.

Create a Plan

Prerequisites

  • You must have access to all of the assets that you intend to use it in your plan.

  • Specifying an HTTP task requires knowledge of the target endpoint and the parameters required for the request. HTTP tasks are considered developer-level assets.

Steps

  1. In the Plans page, click Create. A new plan with the name Untitled plan - X is created, where X is a number.

    Tip

    Click the Untitled plan - X to enter a plan name and description.

  2. In the plan canvas, drag and drop the required task from the left pane to the plan canvas. The following tasks are available in the left pane:

    1. Workflow task: Execute one of your Designer Cloud workflows as part of a plan that you create in AAC. Go to Plan View for Workflow Tasks.

    2. Desktop Workflow task: Orchestrate the execution of your Designer Desktop workflows that were uploaded to AAC. Go to Plan View for Desktop Workflow Tasks

    3. Report task: Create and export a report from the data you've prepped and blended in AAC. Go to Plan View for Report Tasks.

    4. Flow task: Generate all of the defined output objects for a flow. Go to Plan View for Flow Tasks.

    5. ML Prediction task: Make predictions on new data with your Machine Learning project. Go to Plan View for ML Predictions Tasks.

    6. ML Upload task: Upload new training data to your Machine Learning project. Go to Plan View for ML Upload Tasks.

    7. HTTP task: Execute a task over HTTP protocol. Go to Plan View for HTTP Tasks.

    8. Slack task: Send a message from AAC to a specified Slack channel. Go to Plan View for Slack Tasks.

    9. Location Intelligence task: Orchestrate your Location Intelligence projects with other tasks. For more information, go to Plan View for Location Intelligence Tasks.

  3. To create a schedule for the plan, click Schedule in the top menu bar.

Data Exchange Between Tasks

You can interact with tasks in Plans by directly using the output of an upstream workflow task as the input for a downstream task, enabling seamless overrides.

Supported Exchanges:

  • Designer Cloud → Machine Learning Predict

  • HTTP → Workflow task

  • Workflow task → HTTP

  • Workflow task → Workflow task

The schema of the override output should be the same as the input you are overriding.

Limitation:

For the Workflow task to Workflow task exchange, the upstream output must be in CSV format, while the downstream input can be in any format.

Schedule a Plan

You can schedule executions of your plan. Go to Schedules.

How To

For more information on how to create and manage your plans, go to Plan Tasks.