Welcome to Microsoft .NET Framework 3.0 Community (NetFx3)

The .NET Framework is Microsoft's managed code programming model for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes.

Learn More...

Rules Driven Pageflow

File Details
Downloads: 200 File Size: 218.5kB
Posted By: jamescon Views: 983
Date Added: 26 Mar 2008
 

Resource Description

 

Windows Workflow Foundation (WF) offers rules capabilities to the NetFx developer platform. RuleSets are collection of business rules with conditions and actions and they can be executed on any target object such as a Web application. In this sample we will show the stand alone functionality of rules in driving the page flow for a simple ASP.NET application.

 

Sample Usage

 

  • Run the setup.cmd provided with the ExternalRuleSetToolkit sample here. This setup batch file will create Rules database on SQL Express and setup the Ruleset Table. This is a prerequisite to use this sample.
  • Open the WebSite and publish it to a specified location. For example - C:\inetpub\wwwroot\HelpDeskSupport\. This will create the application dll.
  • Run the provided InsertRulesDrivenPageFlow.cmd which will invoke InsertRulesDrivenPageFlow.sql script. The script file will insert the serialized form of rulesets associated with this sample in the Ruleset Table created in the previous step.
  • Note that script assumes that App_Web_tsypxcth.dll (application dll - The dll name can vary and hence change the SQL script accordingly) is located at C:\Windows Workflow Foundation\bin\ and ExternalRuleSetToolkit validates this location. Please edit the InsertRulesDrivenPageFlow.sql script to include the desired path\name for the application dll before you run it.
  • Run the solution and navigate through the pages by entering appropriate data wherever possible.
  • Run the ExternalRuleSetToolkit sample to view the HelpDeskSample rules stored in the database.
  • The connection to the database is defined in the Logic.cs and InsertRulesDrivenPageFlow.cmd.  If you wish to use a different database server, please change the connection in both places.

Filed under: , , , ,
Comments
No comments exist for this file.

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Copyright © 2007 Microsoft Corporation. All Rights Reserved. | Terms of Use | Privacy Statement | Contact Us