To setup the testing environment for CodeWorkflows do:
1.Copy the CodeWorkflowTest_64.zip archive from the daily build folder to your PC: it is the 64bit version of the testing environment. If your PC is 32bit, then copy the CodeWorkflowTest.zip.
The zip archive contains:
•The solution to open in Visual Studio Express (Src\CodeWorkflowTest\CodeWorkflowTestExpress.sln)
•The GN4 dlls needed to run the CodeWorkflows (into the bin64 or bin folder) - but not the parsers, therefore if one wants to use the Parse activity or the TransformData activity has to add them. You may want to copy in there all the DLLs found in \TERA\BIN for the designated platform.
•This document.
•Example code workflows (into the Samples folder). They are used for daily unit testing of the code activities, so they are not ‘real production’ workflows. However they are syntax examples of how to call the activities and set their properties. You can find example of real production workflows into the GN4Config.zip archive in daily build folder.
2.Extract all the files on your PC.
3.Run Visual Studio Express as administrator - this is important!
4.Open the solution (Src\CodeWorkflowTest\CodeWorkflowTestExpress.sln).
5.Try to compile the solution.
6.Copy the appSettings.xml file of your GN4 installation into the CodeWorkflowTest_64 (or CodeWorkflowTest) folder. It is the same folder where you have found this .docx document after having extracted the files from the CodeWorkflowTest_64.zip archive.
The appSettings.xml file is mandatory, because the testing environment needs the data (database name, username, password, etc…) to login to the GN4 database.
If you need to change the path of your appSettings.xml file, you have to modify the <appSettings file="..\appSettings.xml"> tag in the app.config configuration file of the VB.NET project.
Note that, in order to use the GN4 plugins in your code workflow (using Parse, TransformData and Extract activities) into the testing environment, you need the parser dlls; so, you have to copy the content of the Parsers_64.zip daily archive into the bin64 folder of your CodeWorkflowTestExpress installation.