The CodeWorkflows are pieces of VB.NET code, stored into the database as CDATA section of the xml configuration file. Like the old WindowsWorkflows, the CodeWorkflows are always executed on server.
The VB.NET code is read from the database, compiled runtime and cached on server the first time it is executed. The next times it is executed, the compiled workflows are read directly from the server cache.
Note that, from the application’s point of view, the old GN4 WindowsWorkflow and the new GN4 CodeWorkflow are interchangeable. This means that you can write a Code workflow which does the same things than an old WindowsWorkflow and then replace the old <wfRes:workflow> tag and all its content with the new <codeWorkflow> tag’s contents (into, for example, a workflow configuration file, into a data source template, etc…)
You can also call a CodeWorkflow from a WindowsWorkflow and vice-versa (using the ExecuteSequentialWorkflow activity).
The CodeWorkflow classes are defined in the Server.dll.