You can find the example of how to download content in IBM BPM coach view.
- Copy button from UI Toolkit to your project
- Add 2 configuration options. fileName and fileContents
- Add JavaScript below to Inline JavaScript (Do not delete the code. append it)
- Add this Button to your Coach
- In configuration tab provide File Name and File Content
- OnClick event call download method (this.download();)