Workflows from Apps
Workflows are automated sequences: trigger โ tasks โ actions. Apps can trigger and interact with workflows.
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.