How to start with DWKIT

Working with DWKIT is starting with deployment an empty solution or an existing project. This article about how to start an empty project based on DWKIT.

To get installation scripts and initial metadata get DWKITInstall.zip

1. Prepere a database

1.1 Create empty database on MS SQL Server 1.2 Execute script DWKitScript.sql (for drop all objects use DWKitDropScript.sql) 1.3 Execute script CreatePersistenceObjects.sql for workflow (for drop DropPersistenceObjects.sql)

2. Prepare Admin

2.1 Open AdminPanel.sln 2.2 Check connection string in AdminPanel\Admin\Configuration\ConnectionString.config (you can use a few values) 2.3 Check referenses for each project in the solution 2.4 Set as StartUp Project - Admin and Run (F5) 2.5 In Language-field you can chose current language. In Server-field you can chose current database. 2.6 Enter login&password (if you use empty database then use admin as login and 1 as password) 2.7 Click on "Upload metadata" and choose file simple_metadata.xml. 2.8 Register your license keys in Application_Start method of Global.asax.cs file:

OptimaJet.DynamicEntities.DynamicEntitiesSettings.RegisterLicense("YOUR KEY FOR DWKIT");
OptimaJet.Workflow.Core.Runtime.WorkflowRuntime.RegisterLicense("YOUR KEY FOR WORKFLOWENGINE.NET");

3. Prepare Workspace

3.1 Open SimpleProject.sln 3.2 Check connection string in SimpleProject\Workspaces\Configuration\ConnectionString.config 3.3 Check referenses for each project in the solution 3.4 Register Workflow Engine Key in Application_Start method in Global.asax.cs 3.5 Set as StartUp Project - Workspaces and Run (F5) 3.6 Enter login&password (if you use empty database then use admin as login and 1 as password) 3.7 Register your license keys in Application_Start method of Global.asax.cs file:

OptimaJet.DynamicEntities.DynamicEntitiesSettings.RegisterLicense("YOUR KEY FOR DWKIT");
OptimaJet.Workflow.Core.Runtime.WorkflowRuntime.RegisterLicense("YOUR KEY FOR WORKFLOWENGINE.NET");