A workflow definition or one of its versions can be exported as a YAML file in the following ways:
To export a workflow definition from the Workflow Manager:
To export a workflow definition from the code editor: