3010 Create Your Own Blueprint to Repond to Triggers¶
10 Minutes advanced
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¶
Additional Labs:
Concepts¶
- blueprints
- triggers
- events
Summary¶
Add the Dev Library Content Pack¶
- Navigate to the Catalog
- Find the
dev-libraryusing the search bar - Install or Update
dev-libraryif not loaded, by clicking the green download button
Create a Blueprint¶
- Navigate to Blueprints
-
Click
CreateSetNametolab3010Click `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
CreateSetNametolab3010Set `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
Invoke the Trigger / Blueprint Pair¶
- Navigate to Work Orders
- Click the
lab3010trigger button in the upper right button list - Observe a Work Order being created and run by the self-runner
- Click the
uuidof the Work Order - Watch the task run
Define Parameters on the Blueprint¶
- Navigate to the lab3010 Blueprint Params
- Click
Add Paramsand selectdev/wait-iconsanddev/wait-time -
Edit
dev/wait-iconsSet the value to:```json ["heart", "lab", "cat", "dog"] ``` Click the little `save` icon -
Edit
dev/wait-timeSet the value to 10Click the little `save` icon This 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
lab3010trigger button in the upper right button list - Observer the icon on the DRP Endpoint machine cycle
- Watch the task run