You can load a workflow in database by means of cmd4, or by Visual Studio Express Tools (if configured as explained in Configure tools in Visual Studio Express).
By convention, workflows configuration files are named: wf_workflowname.xml, and are stored in the directory path ..GN4\config\Global\[subdir], e.g., C:\tera\GN4\main\config\global\GN4_Tark4_Common\wf_Upload.xml
To load a workflow in database
Use the command: cmd4 config -in
For the example, the command:
cmd4 config -in ..\GN4\config\Global\Tera\wf_Upload.xml -username xxxx -password yyyy
where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password.
Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples.
creates a workflow object in the database named Upload. That is, the name of the workflow is assumed from the file name, excluding the prefix wf_.
Note that the command:
cmd4 config -in ..\GN4\config\Global\Tera\MyWF.xml -name Upload -username xxxx -password yyyy
where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password.
Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples.
creates exactly the same workflow, whereas the name is not assumed from the file name, but it is explicitly specified.
Click here to see a sample WindowsWorkflow configuration file.
See also
Export a workflow from database
Remove a workflow from database