# Assisted Workflow

## Requirements

Linux Control Center = 2.10.X or higher

## Overview

Assisted Workflow is ideal for delegating specific tasks to specific users. It allows a user to access only one or more workflows previously configured by the administrator, ensuring that they only have permission to perform the designated task.

## Objective

The objective of this document is to demonstrate step by step how to configure Assisted Workflow for a Console user.

## Create a Console Access User

* The first step is to create a user with limited permissions to access the LCC Console.

1. Access the LCC and click **Config** in the left side menu.

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

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

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-de6634050d293c696689b5caaed6a551d9657ee5%2Fbotao_create.png?alt=media)
4. Fill in the fields as instructed below;

* **Username:** User to log in to the Console.<br>
* **Password:** User password.<br>
* **Confirm Password:** Field to confirm password.<br>
* **Email:** Email to receive notifications.<br>
* **First Name:** First display name.<br>
* **Last Name:** Last display name.<br>

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

### User Permissions

1. Click **Configure Permissions**

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-b442ab4bc31a9cff081c6b38a1e9599843bb5c1a%2Fbotao_configure_permissions.png?alt=media)
2. Enable the following screens with *read-only* or *read and write* permissions.

**Dashboard:** Mandatory in all cases. **Host:** Mandatory in all cases.**Queue:** To track the status of the Action in the queue.**AssistedWorkflow:** Access to the Assisted Workflow screen.**WorkflowRun:** Permission to run the Workflow.

1. Click **Save** to save the permissions.

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

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

## Create the Workflow

1. Create the Workflow according to your needs.
2. 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)
3. Click **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)
4. Enter a 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)
5. 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)
6. 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)
7. 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)
8. You can also execute the action in a group, 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)
9. 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)
10. 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 **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*.<br>
* **Success**: Executes the *Sub Action* only in case of *Success* of the previous *Action*.<br>
* **Error**: Executes the *Sub Action* only in case of *Error* of the previous *Action*.<br>
* **Regex**: Executes the *Sub Action* only if the defined *Regular Expression* is the result of the previous *Action*.<br>

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

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)

## Create the Assisted Workflow

* With the User and the Workflow created, now is the final step to create the Assisted Workflow

1. Access the **Assisted Workflow** screen in the left side menu.

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

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-bf2c9044a638628fc605f069a6215a282e3bd7a4%2Fbotao_create_assisted_workflow.png?alt=media)
3. Enter a name to identify the Assisted Workflow in **Name** and choose which Workflow will be executed in the **Workflow** field.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-eeb047917578a33991540e88fe1425930edaa599%2Fpreenchendo_assisted_workflow.png?alt=media)
4. Define which l Console user or which Console User Group will have access to this Assisted Workflow.

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

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

## Running the Assisted Workflow

1. To run the Assisted Workflow, access the LCC with the user it was created as.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-2f03e056cc0a980274628d45f415baa57bde0299%2Flogin_support.png?alt=media)
2. Access the **Assisted Workflow** screen in the left side menu.

   ![](https://1620115297-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtZm19HsLxuDm2GumYKEz%2Fuploads%2Fgit-blob-abc3ce47a5d1f885e2bed548102c5400e77aa855%2Fbotao_assisted_workflow_menu.png?alt=media)
3. Click on **Actions** of the desired Assisted Workflow and click on **Run**. This will execute the pre-configured workflow.

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