Skip to main content

Nozioni di base su Plans

Un piano consente l'esecuzione di una sequenza di attività discrete in Alteryx Analytics Cloud (AAC). Queste attività possono essere processi di flusso, processi di flusso di lavoro, richieste HTTP ad altre piattaforme e molto altro. La sequenza delle attività può essere interrotta in base a criteri di successo o di errore e può essere riavviata, se necessario, in caso di errore del Plan.

Un piano consente l'esecuzione di una sequenza di attività discrete in Alteryx Analytics Cloud (AAC). Queste attività possono essere processi di flusso, processi di flusso di lavoro, richieste HTTP ad altre piattaforme e molto altro. La sequenza delle attività può essere interrotta in base a criteri di successo o di errore e può essere riavviata, se necessario, in caso di errore del Plan.

Panoramica

In molti scenari, le pipeline di dati presentano dipendenze. I dati provenienti da un set di dati devono essere puliti e consegnati per poterli utilizzare in un'altra pipeline di dati. Quando si crea una pipeline, è necessario pianificarne l'esecuzione periodica. Idealmente, una volta completata l'esecuzione, è opportuno informare le parti interessate a valle in merito alla riuscita o meno dell'esecuzione della pipeline.

In AAC, i piani forniscono il meccanismo per creare queste solide pipeline di dati all'interno dell'applicazione, in cui è possibile eseguire le sequenze delle attività per fornire set di dati più diversificati. Come risultato dell'esito positivo o negativo di queste esecuzioni, AAC può consegnare messaggi alle applicazioni riceventi, come Slack.

Terms

Term

Description

plan

A plan is a sequence of tasks that are executed from the platform or on assets to which you have access. To orchestrate tasks, you build a plan. A plan can be scheduled for execution, triggered manually, or invoked via API.

trigger

A task is executed based on a trigger. A trigger is a condition under which a task is executed. In many cases, the trigger for a task is based on the schedule for the plan.

task

A task is a unit of execution in the platform.

snapshot

A snapshot of the plan is captured, and the plan is executed against this snapshot. For more information on snapshots, see "Plan execution" below.

Suggerimento

Come attività del piano, puoi configurare un messaggio HTTP, che consente di attivare gli endpoint nella stessa AAC. In questo modo, è possibile configurare le esecuzioni del piano per attivare un'ampia gamma di attività all'interno del prodotto stesso.

Esempio

Nell'esempio seguente viene illustrato come creare un piano che esegue le seguenti attività:

  1. Esegui l'attività di pulizia iniziale dei dati. I dati dei risultati vengono salvati in una posizione nota.

  2. Esegui l'attività che trasforma i dati puliti per gli usi a valle.

  3. In base al risultato del passaggio 2:

    1. In caso di successo: viene inviato invia un messaggio di operazione riuscita a un canale Slack.

    2. In caso di errore: viene inviato un messaggio di errore a un canale Slack.

In Visualizzazione piano, il piano potrebbe essere simile al seguente:

Plans-CS-Plans-ExamplePlan.png

Figura: piano con una sequenza di attività

Dopo aver creato il piano precedente, puoi eseguire i test.

Se i test hanno esito positivo, puoi pianificare il piano per l'esecuzione periodica.

Task Types

The following tasks are available:

Scambio di dati tra le attività

In Piani, puoi interagire con le attività utilizzando direttamente l'output di un'attività del flusso di lavoro a monte come input di un'attività a valle ed eseguire le sostituzioni senza interruzioni.

Scambi supportati:

  • Designer Cloud → Modello predittivo machine learning

  • HTTP → Attività flusso di lavoro

  • Attività flusso di lavoro → HTTP

  • Attività flusso di lavoro → Attività flusso di lavoro

Lo schema dell'output di sovrascrittura deve essere lo stesso dell'input che devi sovrascrivere.

Limitazioni:

Per lo scambio da Attività flusso di lavoro ad Attività flusso di lavoro, l'output a monte deve essere in formato CSV, mentre l'input a valle può essere in qualsiasi formato.

Unione di attività

Per creare una logica di esecuzione delle attività aggiuntive, collega l'output di più attività upstream all'input di un'attività singola. L'attività risultante da un'unione attende il completamento di tutte le attività a monte connesse prima dell'esecuzione. Inoltre, l'unione passa gli output del flusso di lavoro o i metadati delle attività pertinenti da tutte le attività a monte unite. Ad esempio, se si collegano 2 attività di flusso di lavoro a un'attività Slack, puoi utilizzare i metadati (come durata del flusso di lavoro o ora di fine) da entrambi i flussi di lavoro nel messaggio Slack.

Per informazioni su come creare e gestire i piani, consulta Attività dei piani.

Overview of Orchestration

Orchestration is a set of functionalities that supports the scheduled execution of task sequences in the Alteryx Analytics Cloud. These tasks could be external processes, data transformation jobs, HTTP requests, and more.

In the following sections, you can review short summaries of specific features and explore more detailed information on them.

Limitations

  • You cannot specify parameter overrides to be applied to plans specifically.

    • Plans inherit parameter values from the objects referenced in the plan's tasks.

    • If overrides are applied to parameters inside of assets in a plan, those overrides are passed to the plan at the time of task execution.

Supporto di parametrizzazione limitato

Plans al momento supporta solo la parametrizzazione per i flussi Trifacta Classic.

Basic Task

You create a plan and schedule it using the following basic tasks.

  1. Create the plan. A plan is a container for definition of the tasks, triggers, and other objects. See Pagina Plans.

  2. In Plan View, you specify the objects that are part of your plan. See Build Plans.

    1. Schedule: The schedule defines the set of triggers that queue the plan for execution.

      1. Trigger: A trigger defines the schedule and frequency at which the plan is executed. A plan can have multiple triggers (e.g. monthly versus weekly executions).

    2. Task(s): Next, you specify the tasks that are executed in order.

  3. As needed, you can apply override values to any flow parameters. These overrides are applied during a plan run. For more information, see Manage Plans Parameters.

    Supporto di parametrizzazione limitato

    Plans al momento supporta solo la parametrizzazione per i flussi Trifacta Classic.

  4. To test:

    1. Select Run now.

    2. To track progress, select the Runs link.

    3. In the Run Details page, you can track the progress.

    4. The first task is executed and completes, before the second task is started.

    5. Individual tasks are executed as separate jobs, which you can track through the Job History page. See Job History Page.

    6. When the plan has completed, you can verify the results through the Job details page. See Job Details Page.

  5. If you are satisfied with the plan definition and your test run, the plan will execute according to the scheduled trigger.

Plan Scheduling

Through the Plan View page, you can configure the scheduled executions of the plan. Plan schedules are defined using triggers.

  • These schedules are independent of schedules for other asset types.

  • You cannot create schedules for individual tasks.

For more information, go to Programmazioni.

Plan Execution

When a plan is triggered for execution, a snapshot of the plan is taken. This snapshot is used to execute the plan. Tasks are executed in the sequence listed in Plan View.

Important notes:

At the flow level, you can define webhooks and email notifications that are triggered based on the successful generation of outputs. When you execute a plan containing an output with one of these messages, the message is triggered and delivered to stakeholders.

Nota

Webhook messages and email notifications cannot be directly triggered based on a plan's execution. However, you can create HTTP-based tasks to send messages based on a plan task's execution.

Suggerimento

When a flow email notification is triggered through a plan, the internal identifier for the plan is included in the email.

Enable

Enable the following setting:

Plans feature

Plan sharing, import, and export must also be enabled.

Logging

For more information on debugging plans, see Diagnose Failed Plan Runs.