Homeโ€บโšก Advancedโ€บModule 101 min read ยท 11/15

Multiplayer (Workflows)

Tutorial

Workflows from Apps

Workflows are automated sequences: trigger โ†’ tasks โ†’ actions. Apps can trigger and interact with workflows.

Trigger โ†’ DQL Query โ†’ JavaScript โ†’ Send Email
Trigger              When It Fires                    Use Case
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
On demand            Manual or API call               Testing, ad-hoc
Schedule             Cron, time, or interval           Daily reports
Davis problem        New problem detected              Alert notification
Davis event          Custom event received             Event-driven automation
Task Type            What It Does
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
Run DQL query        Query Grail data
Run JavaScript       Custom logic, formatting, decisions
HTTP request         Call external APIs
Send email           Notify via dynatrace.email connector
Jira / Slack / Teams Create tickets, send messages

๐Ÿ’ก Workflows need a service user as the actor โ€” this controls whose permissions the tasks execute under. Never set the workflow owner to a service user (you'll lose access permanently).

๐Ÿ›  Try it: Open Workflows โ†’ create a workflow with a "Run JavaScript" task โ†’ use fetch to call your app function's API endpoint. Now your app logic can be triggered by Davis problems, schedules, or any workflow event.