Introduction to CodeWorkflows

Build 1501 on 14/Nov/2017  This topic last edited on: 15/Oct/2014, at 15:23

The GN4 CodeWorkflows are XML files containing the definition of activities to be executed in sequential (SequentialWorkflow) or interactively (NavigatorWorkflow). The xml files are stored into the GN4 database as configuration files.

The old GN4 workflows (WindowsWorkflow) were written entirely in XAML and based on WWF (Windows Workflow Foundation). The standard .NET classes (System.Workflow.Runtime namespace and others) take charge of loading, parsing and executing the activities.

This approach has some inconveniences, as it is not easy to write if-else conditions in XAML or to store values into global variables, etc…

The new GN4 CodeWorkflows allow you to write workflows in VB.NET taking advantages of all the .NET features like variable declarations, errors management (try-catch), loops (For Each) and so on. Moreover, it can be debugged using the testing environment (see below).

The following documentation assumes that the reader is familiar with VB.NET and GN4 workflows.

Note

GN4 version 1.6 supports only sequential CodeWorkflows. Support to the navigational CodeWorkflows is available since the version 2.0.