23.1.16. 3010 Create Your Own Blueprint to Repond to Triggers

23.1.16.1. Overview

  • Id: 3010

  • Time: 10 Minutes

  • Enabled: Yes

  • Difficulty: advanced

  • Tags: core

  • Concepts: blueprints, triggers, events

23.1.16.2. Objective

Create reusable automation bundles that can be applied to user, event, or time-based activity from the existing task library

In this lab, the User will create, modify, and run a Blueprint.

Business ROI: Consistent care and feeding of key infrastructure that can be shared, validated, and audited

23.1.16.3. Prerequisites

Required Labs:

  • 1005

23.1.16.3.1. Summary

23.1.16.3.1.1. Add the Dev Library Content Pack

  1. Navigate to the Catalog

  2. Find the `dev-library <https://portal.rackn.io/#/e/0.0.0.0/catalog/dev-library>`__ using the search bar

  3. Install or Update dev-library if not loaded, by clicking the green download button

23.1.16.3.1.2. Create a Blueprint

  1. Navigate to Blueprints

  2. Click Create

    Set Name to lab3010

    Click Continue

  3. Click Add Task, then search for and add wait-time

  4. Navigate to the Activity Tab

  5. Select the DRP Machine in the table

  6. Click Apply lab3010

  7. Watch the icon on the self runner cycle

23.1.16.3.1.3. Create a Trigger to run the Blueprint

  1. Navigate to Triggers

  2. Click Create

    Set Name to lab3010

    Set Trigger Provider to event-trigger

    Set Blueprint to lab3010

    Set Filter to Local Self Runner from the Common Filters dropdown

    Set event-trigger/event-match parameter to ux.button.lab3010

    Click Save

    Refresh the browser to make the button appear in the Trigger Buttons list

23.1.16.3.1.4. Invoke the Trigger / Blueprint Pair

  1. Navigate to Work Orders

  2. Click the lab3010 trigger button in the upper right button list

  3. Observe a Work Order being created and run by the self-runner

  4. Click the uuid of the Work Order

  5. Watch the task run

23.1.16.3.1.5. Define Parameters on the Blueprint

  1. Navigate to the lab3010 Blueprint Params

  2. Click Add Params and select dev/wait-icons and dev/wait-time

  3. Edit dev/wait-icons

    Set the value to:

    ["heart", "lab", "cat", "dog"]
    

    Click the little save icon

  4. Edit dev/wait-time

    Set the value to 10

    Click the little save icon

    This is the number of seconds this task is going to run.

23.1.16.3.1.6. Invoke the Trigger / Blueprint Pair to See the Changes to the Blueprint

  1. Navigate to Machines

  2. Click the lab3010 trigger button in the upper right button list

  3. Observer the icon on the DRP Endpoint machine cycle

  4. Watch the task run