A workflow can be imported to a space as a new custom workflow by copying and pasting the JSON code from a workflow template in another space or site to the code editor in the space document management dashboard.
Importing a workflow
In the space settings Document Management dashboard, you can open the code editor using the toggle button option in the workflow builder visual editor.
In the source space document management dashboard
choose the </> icon in the Actions options to open the code editor for a selected custom workflow
In the workflow schema box in the code editor
select and copy the JSON code to the clipboard
Navigate to the space settings Document Management dashboard in the destination space.
choose Create New Workflow button
In the visual editor add a new workflow name if required.