This repository collects sample workflows and javascripts snippets for Dynatrace AutomationEngine and the Workflows app.
To get started please have a look into Dynatrace AutomationEngine and Workflows documentation.
You can export and import a workflow via
- JSON via API
- JSON or template YAML via Workflows App UI
- Configuration-as-Code (Monaco / Terraform) -- Be aware, that the files are not compatible, as Monaco JSONs contain escaping and uses another YAML format to fill placeholders.
Within a workflow, click on "new task", select "Run Javascript" and copy/paste the snippet into the Javascript action.
Export your workflow as a template and make sure that you have no secrets in the resulting file. Also make sure you have the proper versions of depending apps referenced within the file. Use generally available versions and no dev version of any app that you used in the environment.
Create a pull request and upload your contribution to /samples/Optional category subfolder/...