To configure the new application
1. Go to the Skelta Installation folder.
2. Open the WorkflowNET.Config.xml file in a Text Editor.
3. Add the <Application> tag to the configuration file.
4. Specify the name of the application using the name attribute (use the name assigned earlier when setting the Process Designer properties.)
5. Configure the data source type and connection string to be used for the application, through the datasource element.
6. Select the workflow engine host, to be used to execute the workflows of the application. Specify the server host and port through the ‘source’ and ‘port’ attribute respectively, of the server element.
7. Each application can use source elements specific to the application. The source elements consist of images, HTML templates with place holders, CSS, configuration for actions used in the application etc. Specify the path of the source elements as inner text for the <sourceelements> tag.
8. Configure an email address to be used to send emails from Workflow.NET, using the <fromemail> tag.
9. Workflows in an application can use a resource handler specific to the application. All the resource handlers inherit the IResource abstract class. Workflow.NET provides the database resource handler, which can be used in most of the cases. Custom resource handlers can be developed depending on the needs of the application, by inheriting the IResource abstract class and implementing the methods. For Workflow.NET to use the custom resource handler, it needs to be configured, using the <resourcehandler> tag. Specify the name, assembly, class name and the XML file using the name, assembly, class and param attributes respectively.
10. Workflow.NET calculates timeouts based on the business hours of the resource and organization, captured by the resource and organization calendar. Workflow.NET can also make use of the calendars that the application is already using. An implementation of the ICalendar interface has to be configured, for Workflow.NET to make use of an existing calendar. The class implementing the ICalendar interface and its assembly can be configured using the class and assembly attributes of the <businesshoursdetails> tag.
11. The activity list can display information specific to an application through the custom document view control. A class implementing the IActivityWebUIHandler can be configured to display the information specific to the application, in the activity list. The class name and the assembly can be configured using the <documentwebviewcontrol> tag.
12. Add the <Workflow> tag and name it appropriately using the name attribute. A number of workflows can be defined for an application by adding the workflow tag for each workflow.
13. Save the configuration file and close it.
The Workflow.NET.Config.xml file is shown below with a typical application configuration.
<?xml version="1.0" encoding="utf-8" ?> |