Beside Frontend Triggers, which have an individual handling, described here, you can also trigger default workflows.
There are several methods you can use to customize the execution. They are optionally and must be executed before the execute() call.
This function enable/disable redirections you use within your workflow. When set to false, the user won't be redirected to any page and page do not reload when workflow is finished.
When workflow send downloads they are still processed.
Per default the workflow is blocking UI during execution AND reload current page when finished. The background mode disable both results.
When workflow send downloads or redirections they are still processed.
Set the environmental variables of the execution to the parameter you set.