cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

export functions in workflow

henk_stobbe
DynaMight Leader
DynaMight Leader

Good morning,

Could I use a workflow element like this:

export default async function

( . . . )

export one async function

( . . . )

export two async function

( . . . )

export three async function

 

KR Henk

( . . . )

 

KR Henk

3 REPLIES 3

henk_stobbe
DynaMight Leader
DynaMight Leader

Reading the documentation, this it not possible.  It would be nice to add your own functions and be able to get a more "functional structure" (my opinion). But for this you need to use an app, where you have more freedom (-l

 

 

christian_kreuz
Dynatrace Advisor
Dynatrace Advisor

There are a couple of ways to achieve what you want.

1. You could use config-as-code (Monaco, Terraform) and put your JavaScript functions in .js files, and re-use those files. It's not going to be perfect though, and generally the config-as-code approach with Workflows is a bit tricky (but once you know how it works, it's super easy).

2. You could create your own Dynatrace App, and extend it with Custom Workflow Actions. This is the way to go once you are looking into a more functional structure, and most likely also wanting to share those actions across multiple Workflows, or potentially multiple Dynatrace environments.

Cool answer, need some time to digest (-; thanks!

Featured Posts