::: {.index} pair: Create Your Own Blueprint to Repond to Triggers; Labs :::
3010 Create Your Own Blueprint to Repond to Triggers¶
Overview¶
- Id: 3010
- Time: 10 Minutes
- Enabled: Yes
- Difficulty: advanced
- Tags: core
- Concepts: blueprints, triggers, events
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
Prerequisites¶
Required Labs:
- 1005
Summary¶
Add the Dev Library Content Pack¶
- Navigate to the Catalog
- Find the
`dev-library
\<https://portal.rackn.io/#/e/0.0.0.0/catalog/dev-library>`__ using the search bar- Install or Update
dev-library
if not loaded, by clicking the green download button
Create a Blueprint¶
- Navigate to Blueprints
Click
Create
Set
Name
tolab3010
Click
Continue
Click
Add Task
, then search for and addwait-time
- Navigate to the Activity Tab
- Select the DRP Machine in the table
- Click
Apply lab3010
- Watch the icon on the self runner cycle
Create a Trigger to run the Blueprint¶
- Navigate to Triggers
Click
Create
Set
Name
tolab3010
Set
Trigger Provider
toevent-trigger
Set
Blueprint
tolab3010
Set
Filter
toLocal Self Runner
from theCommon Filters
dropdownSet
event-trigger/event-match
parameter toux.button.lab3010
Click
Save
Refresh the browser to make the button appear in the Trigger Buttons list
Invoke the Trigger / Blueprint Pair¶
- Navigate to Work Orders
- Click the
lab3010
trigger button in the upper right button list- Observe a Work Order being created and run by the self-runner
- Click the
uuid
of the Work Order- Watch the task run
Define Parameters on the Blueprint¶
- Navigate to the lab3010 Blueprint Params
- Click
Add Params
and selectdev/wait-icons
anddev/wait-time
Edit
dev/wait-icons
Set the value to:
Click the little
save
iconEdit
dev/wait-time
Set the value to 10
Click the little
save
iconThis is the number of seconds this task is going to run.
Invoke the Trigger / Blueprint Pair to See the Changes to the Blueprint¶
- Navigate to Machines
- Click the
lab3010
trigger button in the upper right button list- Observer the icon on the DRP Endpoint machine cycle
- Watch the task run