Windows Server AppFabric / Workflow Services Demo - Contoso HR

This sample demonstrates how you can use a Windows Workflow Foundation (WF4) Workflow Service and Windows Server AppFabric to construct a long running business process.

C# (6.3 MB)
 
 
 
 
 
4.9 Star
(8)
6,153 times
Add to favorites
12/3/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
@echo off

:createStore
SET INSTANCESTORE=WF4Persistence
if not .%1 == . SET INSTANCESTORE=%1
Echo Dropping instance store %INSTANCESTORE%
sqlcmd.exe -S ".\SQLEXPRESS" -Q "drop database %INSTANCESTORE%"
sqlcmd.exe -S ".\SQLEXPRESS" -Q "create database %INSTANCESTORE%"
Echo Creating instance store %INSTANCESTORE%
sqlcmd.exe -S ".\SQLEXPRESS" -d %INSTANCESTORE% -i "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\SQL\en\SqlWorkflowInstanceStoreSchema.sql"
sqlcmd.exe -S ".\SQLEXPRESS" -d %INSTANCESTORE% -i "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\SQL\en\SqlWorkflowInstanceStoreLogic.sql"
echo Workflow Persistence store %INSTANCESTORE% successfully created
:end