1. Prerequisites for using this sample
======================================
Microsoft SQL Server 2005 Express Edition or better
Microsoft Visual Studio 2005 Professional or Team Editions
.NET Framework 3.0 Runtime Components: http://www.microsoft.com/downloads/details.aspx?FamilyId=10CC340B-F857-4A14-83F5-25634C3BF043&displaylang=en
Visual Studio 2005 Extensions for Windows Workflow Foundation: http://www.microsoft.com/downloads/details.aspx?FamilyId=5D61409E-1FA3-48CF-8023-E8F38E709BA6&displaylang=en
2. Deploying the sample
=======================
Before running the solution you will need to set up the Tracking and Persistance objects which are being used by Windows Workflow Foundation. You will need to set up a new database to host the objects before you execute the scripts in step 2.
For our solution, it is suggested that you set up 1 database for tracking named WorkflowTracking, and 1 database for persistance named WorkflowPersistance
1. Browse to the Windows Workflow Foundation installation directory, and locate the SQL folder. By default this will be installed to C:\Windows\Microsoft.NET\Framework\v3.0\Windows Workflow Foundation\SQL\EN
2. Connect to your SQL Server instance and use your created database. Execute the scripts in the following order:
- SqlPersistenceService_Schema.sql
- SqlPersistenceService_Logic.sql
- Tracking_Logic.sql
- Tracking_Schema.sql
2. Update the connection strings in the app.config file for the ExpenseHost application.
- Search for the following configuration block:
<WorkflowRuntimeConfig>
<Services>
<add type="System.Workflow.Runtime.Hosting.SqlWorkflowPersistenceService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ConnectionString="Initial Catalog=WorkflowPersistence;Data Source=.;Integrated Security=SSPI;"/>
<add type="System.Workflow.Runtime.Tracking.SqlTrackingService, System.Workflow.Runtime, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" ConnectionString="Initial Catalog=WorkflowTracking;Data Source=.;Integrated Security=SSPI;" IsTransactional="false" UseDefaultProfile="true" TrackXomlDocument="True"/>
</Services>
</WorkflowRuntimeConfig>
- Update the ConnectionString under the ConnectionString attribute of each Service node.
没有合适的资源?快使用搜索试试~ 我知道了~
WF与WCF集成 ExpenseReporting
共98个文件
cs:51个
csproj:10个
config:9个
3星 · 超过75%的资源 需积分: 9 31 下载量 66 浏览量
2010-01-26
22:09:07
上传
评论
收藏 105KB RAR 举报
温馨提示
随着 Windows Workflow Foundation (WF) 的问世,Microsoft 逐步将各种工作流功能引入了 .NET 开发人员平台。这些功能使开发人员能够构建用于满足各种应用需求的工作流,从简单的顺序工作流到需要复杂的人员交互的复杂状态机工作流。 与此同时,业务能力越来越多地通过封装的服务端点展现出来,这样就可以重用和组合业务功能和业务流程,使面向服务的体系架构更加完善。Windows Communication Foundation (WCF) 提供了统一的开发人员 API、稳健的托管运行时和灵活的配置驱动解决方案来帮助进行部署,进而帮助开发人员通过各种功能来轻松开发互联系统。
资源推荐
资源详情
资源评论
收起资源包目录
ExpenseReporting v2.rar (98个子文件)
ExpenseReporting v2
ExpenseWorkflows
SequentialWorkflow.xoml.cs 2KB
StateMachineWorkflow.xoml 372B
ExpenseWorkflows.csproj 5KB
SequentialWorkflow.xoml 3KB
Properties
Settings.cs 2KB
Settings.settings 203B
AssemblyInfo.cs 1KB
ExpenseWorkflows.csproj.user 587B
StateMachineWorkflow.xoml.cs 155B
SequentialWorkflow.rules 5KB
EULA.txt 7KB
ExpenseContracts
Data
ExpenseReportReview.cs 968B
ExpenseReport.cs 1KB
StatusEnum.cs 918B
Properties
AssemblyInfo.cs 1KB
Messages
ExpenseReportSubmitted.cs 563B
SubmitExpenseReport.cs 1005B
SubmitReviewedExpenseReport.cs 1KB
ExpenseReportReviewed.cs 561B
GetExpenseReports.cs 615B
GetExpenseReport.cs 1KB
Interfaces
IExpenseServiceClient.cs 1KB
IExpenseServiceManagerApplication.cs 1KB
IExpenseService.cs 1KB
IExpenseServiceClientCallback.cs 1019B
IExpenseServiceManager.cs 1KB
ExpenseContracts.csproj 5KB
ExpenseActivities
ManagerApprovalDesigner.cs 1KB
ManagerApproval.rules 2KB
GetManager.Designer.cs 1KB
Resources
AskForManagerApproval.png 1KB
AskForManagerApproval.bmp 822B
FindManager.png 1KB
FindManager.bmp 822B
Properties
Settings.settings 203B
Settings.Designer.cs 2KB
AssemblyInfo.cs 1KB
ExpenseActivities.csproj 10KB
GetManagerDesigner.cs 4KB
ManagerApproval.xoml.cs 3KB
ManagerApproval.xoml 4KB
GetManager.cs 3KB
bin
ExpenseHost.vshost.exe.config 2KB
ExpenseApplication.vshost.exe.config 595B
ManagerApplication.vshost.exe.config 640B
ExpenseHost.exe.config 2KB
ManagerApplication.exe.config 640B
ExpenseApplication.exe.config 595B
WCFExtensions
WfWcfExtension.cs 3KB
WcfExtensions.csproj 5KB
Properties
AssemblyInfo.cs 1KB
ExpenseHost
Properties
AssemblyInfo.cs 1KB
Program.cs 2KB
App.config 2KB
ExpenseHost.csproj 5KB
ManagerApplication
ManagerApplicationService.cs 675B
Properties
Resources.Designer.cs 3KB
Settings.settings 249B
Resources.resx 5KB
Settings.Designer.cs 2KB
AssemblyInfo.cs 1KB
Program.cs 1KB
ManagerForm.resx 6KB
ManagerApplication.csproj 6KB
App.config 640B
ManagerForm.Designer.cs 9KB
ManagerForm.cs 6KB
ExpenseReporting.sln 12KB
Start.bat 93B
ExpenseLocalServices
ExpenseLocalService.cs 7KB
IExpenseLocalService.cs 3KB
Properties
AssemblyInfo.cs 1KB
ExpenseLocalServices.csproj 5KB
SQL Database Scripts
Create WorkflowPersistence Database.cmd 571B
Create WorkflowTracking Database.cmd 527B
Create_WorkflowPersistence.sql 262B
Create_WorkflowTracking.sql 252B
ExpenseReporting.suo 215KB
README.txt 2KB
ConsoleTracking
Properties
AssemblyInfo.cs 1KB
ConsoleTracking.csproj 4KB
ConsoleTrackingService.cs 7KB
ExpenseReport Changes since V1.txt 167B
ExpenseApplication
ClientForm.Designer.cs 10KB
Properties
Resources.Designer.cs 3KB
Settings.settings 249B
Resources.resx 5KB
Settings.Designer.cs 2KB
AssemblyInfo.cs 1KB
Program.cs 1KB
CallbackHandler.cs 724B
ClientForm.cs 6KB
App.config 595B
ClientForm.resx 6KB
ExpenseApplication.csproj 6KB
ExpenseService
Properties
AssemblyInfo.cs 1KB
ExpenseService.csproj 5KB
ExpenseService.cs 11KB
共 98 条
- 1
资源评论
- Noyaxl2013-11-28我最终还是没有看懂
- lvjian20002012-08-03一般,太简单了,没有使用性
wqy2008
- 粉丝: 0
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功