Skip to main content

Build Plans

In Plan View, you design your plan, which includes the building and sequencing of tasks and the triggers that execute your sequence of tasks.

When a plan is triggered Alteryx One captures a snapshot of the objects in the plan. This snapshot defines the set of tasks that are executed as part of a plan run. Snapshots don’t include the assets behind tasks, so later changes to those assets may affect task outcomes during plan execution.

  • The set of tasks in the plan is triggered in the order listed in the plan.

  • All of the dependencies for any task are also executed.

  • If one task fails to execute, the other tasks are not executed.

开始之前

开始之前,请进行以下验证:

  • 您可以访问您希望在规划中使用的所有资产。

创建规划

首先,您必须创建一个规划对象。

  1. Alteryx One 登录页面中,从应用程序切换选择 Plans

  2. 在“规划”页面上,选择新建。此时将创建一个名为无标题规划 - X 的新规划,其中 X 是数字。

  3. 选择无标题规划 - X 以输入规划名称和描述。

  4. 您的规划将被保存并显示在规划视图中。

在规划视图中,您可以创建属于规划的对象。这些对象包括:

  • 规划计划:计划由一个或多个确定规划何时执行的触发器组成。

    • 触发器:计划对象,决定规划执行的条件。

    • 一个计划可以包含一个或多个触发器。

  • 任务:触发时执行的操作。

    • 您可以在规划中构建由一个或多个任务组成的序列。

Drag and drop a task from the left side panel of tasks. Configuration window for the task should pop up on the right.

创建任务

  1. 确定要执行的任务。

    注意

    您必须有权访问您希望作为任务执行的任何资产。

  2. 在“规划视图”页面中,将任务类型拖放到规划画布中。任务详细信息和配置选项显示在右侧。

  3. 选择任务并根据需要进行配置。

  4. 根据需要添加其他任务。

  5. 要测试您的规划,请选择运行。该规划会立即加入待执行队列。

  6. 编辑规划并重复上述步骤,直到规划准备好进行生产运行。

    提示

    当规划研制期间,您可能希望禁用其计划,这样会阻止按照计划执行。您仍然可以使用运行按钮执行测试。

  7. 要创建计划,请选择计划

    1. 为计划指定一个或多个触发器。当触发发生时,规划将加入队列以等待执行。

  8. 准备就绪后,规划将以触发器中计划的时间运行。

任务类型

For a complete overview of the tasks and their specific details, visit Plan Tasks.

View for Tasks

When you create or select a task, you can modify its settings through the context panel on the right.

Task context menu options:

Some options may not be available for specific task types.

  • Edit name: Modify the name of the task.

  • Delete: Delete the task from your plan.

To cancel a plan that is currently running, click Cancel plan run.

Task Execution Rule

Next to the task you created, you'll find a set of icons on the right. These symbols represent the possible outcomes—whether the task succeeds, fails, or can lead to either result.

Icon

Description

Plans-SuccessIcon.png

Success

Plans-FailureIcon.png

Failure

Plans-OnExecutionAnyStatus.png

Any status

Plans-OutputAnchor.png

Input Anchor

提示

您可以将新任务添加到您的规划中,并将它们关联到其中一个路径中的第一个任务。

You can gate the execution of a task based on the completion status of its previous task. To execute the task, click and join the required icons to the output anchor of another task. You can also drag the required icon to the output anchor of any task. See the icons above.

  • On success: Runs if the previous task is successful.

  • On failure: Runs if the previous task is failed.

  • On execution (any status): Runs the task in the canvas irrespective of the previous task's status (success or failure).

创建规划分支

在某些情况下,您可能需要根据规划中某项任务的结果对规划执行步骤创建分支。例如,您可能需要使用 HTTP 任务发送单独的消息,具体取决于前一个任务执行状态是成功还是失败。您可以通过添加任务执行规则和并行节点在规划图中创建分支,这些规则和节点根据规划运行的成功和失败状态运行。

要开始这个简单示例,请执行以下操作:

  1. 创建您的第一个任务。

  2. 完成以下部分。

示例 - 规划中状态为成功或失败的任务

Plans-TaskExecutionRules.png

图:规划的条件任务执行

应用参数覆盖项

如果您的规划任务包括已定义参数的资产,您可以查看并覆盖这些参数值。当任务作为规划运行的一部分被触发时,将应用覆盖项。

有限参数化支持

Plans 此时仅支持 Trifacta Classic 流的参数化。

  1. 从“规划视图”上下文菜单中选择参数

  2. 查看规划中所有参数的名称、来源和当前值。

  3. 要应用覆盖项,请选择铅笔图标并输入新值。选择保存

规划的后续运行使用此新值作为参数的覆盖项。

测试规划

创建规划的任务后,您可以执行规划的测试运行。

  1. 要测试,请选择运行

  2. 规划运行已加入队列以等待执行。

监控规划运行

  1. 在“规划视图”的右上角,选择“运行”链接。

  2. 在“规划运行”页面中,您可以跟踪规划运行的进度。

    1. 将显示最近触发的规划运行。

    2. 如果您已经执行了多次运行,则可以使用运行的时间戳旁边的尖括号。

  3. 对于正在进行的任务,您可以选择该任务以在上下文面板中显示信息。

  4. 要查看规划运行的详细信息,请选择“输出”选项卡。然后选择作业详细信息

如需了解详情,请参阅规划运行页面

添加规划计划

您可以添加计划对象来指定规划执行的触发条件。

注意

在启用规划的计划之前,无法执行该计划。如果规划有被禁用的计划,您仍然可以通过“立即运行”按钮执行该计划。

步骤:

  1. 首先,从“规划视图”上下文菜单中选择计划,或在右侧上下文面板中选择创建计划

  2. 在“添加触发器”面板中,您可以指定执行规划时的触发器。您可以指定一个或多个触发器:

    CreateaPlan-AddTrigger.png

    图:添加触发器

  3. 对于每个触发器:

    1. 时区:指定适用于计划时间的时区。如需详细了解时区,请参阅支持的时区值

    2. 频率:您可以指定触发计划的频率。

      1. 对于每个触发器中,您可以指定多个“开启”值(例如周日和周一的同一时间)。

      2. 根据需要,您可以使用修改后的 cron 作业语法形式指定“开启”值。如需了解详情,请参阅 cron 计划语法参考资料

  4. 要添加更多触发器,请选择添加另一个触发器并指定该触发器。

    1. 要删除触发器,请选择其旁边的 X。

  5. 参数覆盖项:

    1. 如果规划中的资产包含参数,您可以对参数值应用覆盖项。

      有限参数化支持

      Plans 此时仅支持 Trifacta Classic 流的参数化。

    2. 此面板中提供的覆盖项仅在执行触发器时应用。

      注意

      规划参数可以有多个值,只要参数值不冲突即可。如果您在包含多个参数值的集合旁边看到一个警告图标,那么必须在原始资产中解决此冲突,否则规划将无法执行。

    3. 您也可以通过规划视图应用覆盖项。

  6. 要保存您的计划,请选择保存

  7. 在上下文面板中,您可以更改计划:

    1. 保存后,计划将自动启用。要禁用计划,请使用滑动条。

      注意

      如果规划的计划已禁用,那么该规划无法执行。

    2. 要更改计划及其触发器,请选择编辑

Top Bar

提示

To rename the plan, select the plan name in the top bar.

  • Run: Run the plan. You can track the progress of your plan run. Go to Run Plans Page.

    提示

    You can apply overrides to parameters through the Parameters tab. Go to Plan Runs Page.

  • Schedule: Create or edit the plan schedule with one or more triggers through the right context panel. Go to Schedule Plans.

  • Share: Share the plan with other users. Go to Share a Plan.Share a Plan

  • Runs: The Runs link tracks the current total number of runs that have been queued or executed for this plan. Click this link to track the progress on your plan run.

Plan context menu (three-dot menu)

  • Rename: Modify the name and description for your plan.

  • Parameters: You can apply overrides to the parameters for your plan tasks during plan job runs. Go to Manage Plans Parameters.

    有限参数化支持

    Plans 此时仅支持 Trifacta Classic 流的参数化。

  • Email notifications: Send email notifications on the plan runs. Go to Manage Plan Notifications.

  • Export: Export the plan from Alteryx One. Go to Export and Import Plan.

  • Transfer ownership: (Available to owner or admin only) Transfer ownership of this asset to another user. Go to Transfer Asset Ownership.

  • Delete: Delete your plan.