In this case, the NWAdmin.exe MoveData command allows the new site collection ID to be provided as part of the command. When data is written into the target database, it can be written with a new site collection ID, allowing the product to find the data when accessed from the restored site collection. The data for each workflow instance is moved one by one. If any fails to move, the tool will display error details and prompts either to retry moving the instance, skip the instance or abort the process, rolling back any changes.
Also of note, anytime a site migration is performed using the stsadm.exe export/import commands, it is necessary to use the NWAdmin.exe PrepareSiteForExport and FixSiteAfterImport commands to realign workflows. The PrepareSiteForExport command adds metadata to the site in the form of a file named SiteMetaData.xml stored in the hidden NintexWorkflows library on the site. This file is used when the site is imported to update the list ids used in the workflow. The FixSiteAfterImport command makes use of metadata in a file named SiteMetaData.xml stored in the hidden NintexWorkflows library on the site, generated with PrepareSiteForExport.