Click here to Skip to main content
15,881,812 members
Articles / Web Development / ASP.NET

State Machine Complier And Asp.net

Rate me:
Please Sign up or sign in to vote.
4.56/5 (4 votes)
20 Oct 2008CPOL4 min read 55.5K   307   31  
This article demonstrate the implementation of State Machine Compiler in .NET. This is small proof of concept for developing state machine workflow activity.
��USE [CarAutomation]

GO

/****** Object:  StoredProcedure [dbo].[ssp_CarDashboard]    Script Date: 10/20/2008 18:56:05 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

CREATE PROCEDURE [dbo].[ssp_CarDashboard]

	-- Add the parameters for the stored procedure here

AS

BEGIN

	SELECT Car.Car_ID

      ,Car.Current_State_ID

      ,Car.Previous_State_ID

	  ,CurrentState.State_Name as Current_State

	  ,PreviousState.State_Name as Previous_State

      ,CurrentState.State_Page_URL

	  ,Car.Created_By_ID

  FROM Car ,StateMaster CurrentState,StateMaster PreviousState

    where Car.Current_State_ID = CurrentState.State_ID

and Car.Previous_State_ID = PreviousState.State_ID

order by Car.car_ID asc

END



By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

Comments and Discussions