Manual Installation
Last updated
Last updated
The following procedure applies to the setup using the WorkflowGen manual installation pack.
The and requirements must be met before proceeding with the following installation.
Start by extracting the manual installation pack (.zip
) to a temporary folder on the WorkflowGen web server (e.g. DRIVE:\temp
).
The installation pack contains these folders:
Databases
: The database creation scripts for both SQL Server and Oracle
Inetpub
: The WorkflowGen application files
Program Files
: The WorkflowGen Windows services application file
The recommended physical directory structure for WorkflowGen web application files and folders should be under DRIVE:\Inetpub\wwwroot\wfgen
. This folder contains static resources such as images, HTML files and process data, and the applications used by WorkflowGen.
Copy the source \Inetpub
folder to your destination DRIVE:\
(e.g. DRIVE:\Inetpub\wwwroot\wfgen
).
Copy the source Advantys
folder (\Program Files\Advantys
) to your destination DRIVE:\Program Files
(e.g. DRIVE:\Program Files\Advantys\WorkflowGen\Services\bin
).
✏️ Note: If you already have another version of WorkflowGen installed on the same server and you want to keep your previous WorkflowGen services, we suggest you choose another installation folder for version 7 (e.g. DRIVE:\Program Files\Advantys\WorkflowGen v7\Services\bin
).
WorkflowGen does not support case sensitive collation, so you must set up the database to be case insensitive to avoid errors.
Option 1: Using the automated CreateWFGSQLDatabase.vbs
database creation script
Run the DRIVE:\temp\pack\Databases\MsSQLServer\CreateWFGSQLDatabase.vbs
database creation script.
Choose Yes to confirm the database creation.
Enter the MS SQL Server instance name.
Enter a Catalog name (e.g. WFGEN
).
Enter an MS SQL Server administrator account name (e.g. sa
).
Enter the administrator password.
Enter a database data (mdf
) and logging (ldf
) destination folder (e.g. DRIVE:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA
).
Enter a maximum size for the data and log files in megabytes (e.g. 1000
). We suggest changing this later to unrestricted growth for both data and logging files in the MS SQL Server Management Studio tool.
Enter a database connection username (e.g. WFGEN_USER
).
Enter the database connection user password.
Click OK to create the database.
Option 2: Create the database manually using SQL scripts
Open the SQL Server Management Studio tool and connect to your database server with an administrator account (e.g. SA
).
Create a new database (e.g. WFGEN
).
Create a new SQL Server user account (e.g. WFGEN_USER
).
Give this user db_datawriter
and db_datareader
permissions for the WFGEN
database.
Open the DRIVE:\temp\pack\Databases\MsSQLServer
source folder and run the following SQL database creation scripts on the new database instance in the following order:
Create_WFG-V7-0_SQL_Tables.sql
Create_WFG-V7-0_SQL_PKeys.sql
Create_WFG-V7-0_SQL_FKeys.sql
Create_WFG-V7-0_SQL_Indexes.sql
Create_WFG-V7-0_SQL_Triggers.sql
Create_WFG-V7-0_SQL_Const.sql
Option 1: Using the CreateWFGOracleDatabase.vbs
automated database creation script
Run the DRIVE:\temp\pack\Databases\Oracle\CreateWFGOracleDatabase.vbs
database creation script.
Click Yes to confirm the database creation.
Enter the Oracle database instance name you created (e.g. WFGEN
).
Enter the administrator account name you created (e.g. WFGEN_USER
).
Enter the administrator password.
Click OK to create the database.
Option 2: Create the database manually with SQL scripts
Open DBA studio, SQL Plus, or SQL Developer.
Connect to your Oracle database instance with the administrator account you created.
Open the DRIVE:\temp\pack\Databases\Oracle
source folder and run the following database creation SQL scripts on the new database instance in the following order:
Create_WFG-V7-0_Oracle_Crebas.sql
Create_WFG-V7-0_Oracle_Const.sql
WorkflowGen requires a valid Windows NT or Active Directory account. This account will be used by the WorkflowGen Administrator, but it is not necessary to define it as a NT or Active Directory Administrator.
Open and edit the DRIVE:\Inetpub\wwwroot\wfgen\web.config
WorkflowGen web configuration file.
Update the database connection string:
MS SQL Server: <add name="MainDbSource" connectionString="Data Source=localhost;Initial Catalog=WFGEN;User ID=WFGEN_USER;Password=Admin123!;" providerName="System.Data.SqlClient" />
Oracle: <add name="MainDbSource" connectionString="Data Source=WFGEN;User ID=WFGEN_USER;Password=Admin123!;" providerName="System.Data.OracleClient" />
Update the "WorkflowGen Administrator" username to allow access to the configuration panel (e.g. <add key="ApplicationConfigAllowedUsersLogin" value="wfgen_admin" />
).
Set an SMTP server or SMTP gateway name (e.g. <add key="ApplicationSmtpServer" value="smtpservername" />
).
Update the application URL (e.g. <add key="ApplicationUrl" value="http://yoursite/wfgen" />
).
Set a default email sender for the notification (e.g. <add key="EngineNotificationDefaultSender" value="workflowgen@company.com" />
).
Add a 32-character alphanumeric encryption key (e.g. <add key="ApplicationSecurityPasswordSymmetricEncryptionKey" value="XXXXXXXXXXXXXXXXXXX....." />
).
Open and edit the DRIVE:\Program Files\Advantys\WorkflowGen\Services\bin\WfgWorkflowEngineService.exe.config
Engine service configuration file.
Update the WorkflowGen web configuration path (e.g. <add key="WebConfigPath" value="DRIVE:\inetpub\wwwroot\wfgen\web.config" />
).
Open and edit the DRIVE:\Program Files\Advantys\WorkflowGen\Services\bin\WfgDirectoriesSyncService.exe.config
Directory Synchronization service configuration file.
Update the WorkflowGen web configuration path (e.g. <add key="WebConfigPath" value="DRIVE:\inetpub\wwwroot\wfgen\web.config" />
).
✏️ Note: WfgWorkflowEngineService.exe
and WfgDirectoriesSyncService.exe
might be blocked. To check this, right-click on them and choose Properties. If the Security section is displayed at the bottom of the General tab, these executables have been blocked; in this case, click Unblock.
Run DRIVE:\Program Files\Advantys\WorkflowGen\Services\bin\winsvc-install.cmd
as Administrator.
File permission settings can be configured as follows for the WorkflowGen application identity:
DRIVE:\Inetpub\wwwroot\wfgen
: Modify all.
The corresponding Windows users
The ASP.NET or IIS application pool identity
It is recommended that WorkflowGen be isolated from other applications by creating its own application pool and associating all declared applications with the new application pool.
Click Application pools. In the right-hand pane, right-click and select Add application pool, and give it a name (e.g. WorkflowGen
).
Select the .NET Framework 4 version.
Select Integrated pipeline mode.
Click OK.
Launch the IIS Manager and expand the tree structure under the IIS server name where you want to create the new site.
Right-click the Sites icon and select Add Web Site. Enter the name of the site, select its application pool (if other than the default), and enter the physical path of the root (click Browse and select the \wwwroot
folder, usually DRIVE:\inetpub\wwwroot\wfgen
).
Select the binding as being http
or https
(note that https
requires an SSL certificate). Select a port (the default is 80
) and/or a host header. Please contact your IIS administrator to review your options regarding setting up appropriate website settings.
The default.aspx
default document type must be created if it does not exist. By default, this default document should exist on an IIS server running .NET.
To verify this, click the icon of the site, and ensure that the pane on the right-hand side shows the Features view (the tab at the bottom of the pane allows you to switch between Features and Content). Double-click the Default document icon. If default.aspx
is missing from the list, add it to the beginning of the comma-separated list displayed. To improve performance you can move default.aspx
to the beginning of the list if it is not already there.
Click the icon of the site, and ensure that the pane on the right-hand side shows the Features view.
Double-click the Authentication icon.
Right-click on Anonymous authentication and select Disable.
Right-click on wfgen
under the \wwwroot
folder and select Convert to application.
Select the WorkflowGen application pool if it is not the default, then click OK.
wfgen
web appIf you would like your WorkflowGen root website (e.g. https://server
) to auto-redirect to the https://server/wfgen
web app , follow the procedure below.
Create or update the web.config
file in your website's root folder (e.g. DRIVE:\inetpub\wwwroot\web.config
).
⚠️ Warning: This is not the same web.config
file as the main WorkflowGen web.config
file (located in DRIVE:\inetpub\wwroot\wfgen\web.config
).
Define the redirection rule node as shown below (configuration
/ system.webServer
/ <rewrite>
/ <rules>
/ <rule>
):
The \wfgen\ws
and \wfgen\WfApps\WebForms
applications within WorkflowGen must be created. To do this, repeat the same steps you performed for \wfgen
in the previous section.
If you are using IIS 8 and above and your application pool is set to use Classic Managed Pipeline Mode, make sure ASP.NET v4.0.30319 is set to Allowed
in the IIS manager ISAPI and CGI Restrictions list.
To use the optional GraphQL, incoming webhooks, OpenID Connect Auth, and SCIM APIs, you must first install the following requirements:
✏️ Note: This library is required if you encounter the error The specified module could not be found
regarding the edge
and edge-js
libraries when accessing the /wfgen/graphql
, /wfgen/hooks
, or /wfgen/scim
web apps.
In IIS, convert /wfgen/graphql
to an application with a .NET 4 application pool (integrated pipeline).
Configure the GraphQL application authentication mode:
For Windows or Basic authentication: Enable Basic authentication.
For WorkflowGen Applicative authentication:
Make sure the /wfgen
web application already has WorkflowGen Applicative authentication enabled.
Enable Anonymous authentication.
In IIS, convert /wfgen/hooks
to an application with a .NET 4 application pool (integrated pipeline), and configure the hook application in Anonymous authentication mode.
In IIS, convert /wfgen/auth
to an application with a .NET 4 application pool (integrated pipeline), and configure the application in Anonymous authentication mode.
In IIS, convert /wfgen/scim
to an application with a .NET 4 application pool (integrated pipeline), and configure the application in Anonymous authentication mode.
If your WorkflowGen is configured to use WorkflowGen Applicative authentication or a custom authentication, you must remove the authentication module from the /scim/web.config
file:
Azure SQL database needs to be created and configured manually; see the section in the guide for instructions on how to do this.
An Oracle database instance will NOT be created with this script. It is necessary to provide an existing empty Oracle database instance prior to the installation of WorkflowGen. See for Oracle database installation parameters.
Azure SQL Database: See the section in the guide.
If you are installing these services along with previous WorkflowGen services on the same server, you will need to provide a new service name (e.g. WorkflowGenEngineServiceV7
) for both the Engine and Directory services in their configuration files ([WfgWorkflowEngineService.exe].config
: <add key="ServiceName" value="WorkflowGenEngineServiceV7"></add>
) and script files (winsvc-install.cmd
: rename all [WorkflowGenEngineService]
to [WorkflowGenEngineServiceV7]
). (See the section for information and instructions on how to configure multiple WorkflowGen services on the same server.)
According to your authentication method (see ), the WorkflowGen application identity can be:
Right-click on Basic authentication and select Enable. You will be able to change the authentication method by following the instructions in the section.
Make sure the tool is installed on your WorkflowGen server.