For Models, you just need to move the "/conf/global/settings" directory and then you can open the same workflow and click on SYNC at the top left to have it created under "/var"
Detailed instructions are already provided in the documentation:
Any new or modified Workflow Models must be migrated to /conf/global/workflow/models.
- Deploy the modified Workflow Models into a local AEM 6.4 development instance, such that they exist in the Previous location(/etc/workflow/models).
- Edit the Workflow Model using AEM's Workflow Model Editor at AEM > Tools > Workflow > Models.
- When migrating modified AEM-provided Workflow Models
- With the Workflow Model Editor open, modify the browser's address URL, and replace the path segment /libs/settings/workflow/models with /etc/workflow/models.
- For example, change: http://localhost:4502/editor.html /libs/settings/workflow/models /dam/update_asset.html to http://localhost:4502/editor.html /etc/workflow/models /dam/update_asset.html
- Enable Edit mode in the Workflow Model Editor which will copy the Workflow Model definition to /conf/global/workflow/models.
- Tap the Sync button to sync the changes to the Runtime Workflow Model under /var/workflow/models.
- Export both the Workflow Model (/conf/global/workflow/models/<workflow-model>) and Runtime Workflow Model (/var/workflow/models/<workflow-model>) and integrate into the AEM project.
- For example, export:
- /config/settings/workflow/models/dam/my_workflow_model and
- /var/workflow/models/dam/my_workflow_model