> For the complete documentation index, see [llms.txt](https://docs.linuxcontrolcenter.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.linuxcontrolcenter.com.br/en/workflow/create-workflow.md).

# Create Workflow

## Requirements

* Linux Control Center = 2.10.X or higher

## Overview

* The Linux Control Center Workflow allows you to create workflows with decision making and chaining of actions. With an intuitive interface, it allows total control in a simple and fast way.

## Objective

* This document aims to demonstrate the step by step and demonstrate how to use the Linux Control Center Workflow.

## Workflow Steps

* See an example of how a workflow with decision making works.

  ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-f1cea985a053feb08c8cf9baa7aece50d45773ef%2Ffluxo_workflow.png?alt=media)

## Create a Workflow

1. Click on **Workflow** on the left sidebar.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-f301dfe8ab8a954bc747fe46be1a9c99c65a5d78%2Fworkflow_dashboard.png?alt=media)
2. Click on **Create**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-7dc013a82c79b272a620e40863eb88613c3e143e%2Fbotao_create.png?alt=media)
3. Enter the name for the Workflow in the **Name** field.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-0c85429a0c02587b7b7b0c8b77e38a5a276291d5%2Fcampo_name_workflow.png?alt=media)
4. Click **Start New Workflow**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-a76a256c531e3dd82747715ba3f703fd06c73b81%2Fbotao_start_new_workflow.png?alt=media)
5. Choose the desired *Action* in the **Action** field

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-064d0fffd9461a9d71350b81b128e60ca50e241e%2Fcampo_action_workflow.png?alt=media)
6. Choose the **Host** on which you want to execute the action in the **Host** field.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-e256660a7a00ba638cfd41da35810064e76302f2%2Fcampo_host_workflow.png?alt=media)
7. You can also execute the action in a group by selecting it in the **Group** field.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-a6d6db579b7cea18673a6e167af7a95439789a44%2Fcampo_group_workflow.png?alt=media)
8. Click **Create**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-fa98f12d3d0ec425e0706f65d51acd40e913bbeb%2Fbotao_create_workflow.png?alt=media)
9. Click **Save** to create the *Workflow*.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-239f9b81dbe972555efee3ed8a5aa6e7375c85aa%2Fbotao_save_workflow.png?alt=media)

## Create Sub Action

1. Open the Workflow in which you want to add an *Action* with decision making and click **Add Subaction** for the desired action.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-a0eaf356ccc04de179d959339175f7c80a1dc17d%2Fadd_subaction.png?alt=media)
2. Click on **Action** and choose the *Sub Action*

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-8a99557e88975bcbbd12218ed01ea4fa9a00464f%2Fcampo_action_subaction.png?alt=media)
3. Choose which result will be responsible for executing the *Sub Action*.

**Always**: Executes the *Sub Action* regardless of the result of the previous *Action*.\
**Success**: Executes the *Sub Action* only in case of *Success* of the previous *Action*.\
**Error**: Executes the *Sub Action* only in case of *Error* of the previous *Action*.\
**Regex**: Executes the *Sub Action* only if the defined *Regular Expression* is the result of the previous *Action*.<br>

```
![](/pt-br/images/workflow/create_workflow/condicao.png)
```

1. Click **Create** to create the *Sub Action*.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-5b044b36c97f1a6e852ca4d36576fe9de59760d2%2Fbotao_cretate_subaction.png?alt=media)
2. Click **Save** to save the *Sub Action*

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-0797c25eaf864541287dc12725b5d05e36e89353%2Fbotao_save_subaction.png?alt=media)

## Executing the Workflow

1. Click **Workflow** on the left sidebar.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-f301dfe8ab8a954bc747fe46be1a9c99c65a5d78%2Fworkflow_dashboard.png?alt=media)
2. Click **Actions** in the *Workflow* line and click **Run**.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-e58cbd04a55db762c2420fb0ae8a006d6cf0ea2c%2Frun_workflow.png?alt=media)
3. It is also possible to run within the *Workflow* page

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-7717f481e2ed4873cac7ec2350b6c2f0251b27bd%2Frun_tela_interna.png?alt=media)
4. Click **Agree** to run the *Workflow*

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-f32dbf5fb87e7b42fef000798286a7591cfc3847%2Fconfirma_execucao.png?alt=media)
5. See the example of [Workflow Steps](#workflow-steps).

   ![](https://gitlab.com/7dev-doc/linux-control-center/-/blob/main/pt-br/images/workflow/create_workflow/lcc_workflow_flow.png)
