欢迎来到天天文库
浏览记录
ID:30439436
大小:93.83 KB
页数:24页
时间:2018-12-29
《用vs2008制作sharepoint的状态机审批工》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、用vs2008制作sharepoint的状态机审批工己正在学工作流,找到这篇文章,感觉不错,所以边学就边翻译了,与大家分享。水平有限,如有错误,请指正.2008年12月16日译Appliesto:2007MicrosoftOfficeSystem,MicrosoftOfficeSharePointServer2007,MicrosoftVisualStudio2008MikeRand,3SharpJune2008Statemachineworkflowsenableyoutomodelreal-worldeven
2、tsandbusinessprocessesinwaysthatarenotavailabletosequentialworkflows.Bymodelingaworkflowonstatesandtransitions,astatemachineworkflowgivesyoutheabilitytocreatepowerfulbusinesstools.MicrosoftVisualStudio2008includestemplatesthatprovideagreatstartingpointforcrea
3、tingstatemachineworkflows.ThisMicrosoftOfficeVisualHowTodescribeshowtouseVisualStudio2008tocreateastatemachinedocumentapprovalworkflowforMicrosoftOfficeSharePointServer2007.ThescenariointhisOfficeVisualHowToisasimpleexpensereportapprovalprocess.Anexpenserepor
4、thasbeensubmittedandmustbeapprovedorrejected.Youcanmanagethisprocessbyusingstates.Table1showsabreakdownofthestatesandtransitions.Table1.State/TransitionsStateEventStateReportInitialStateeventInitWorkflowReportSubmittedStateReportSubmittedStateeventReviewRepor
5、tReportApprovedStateReportSubmittedStateeventReviewReportReportRejectedStateReportApprovedStatestateInitApprovedStateReportCompleteStateReportRejectedStatestateInitReportRejectedStateReportCompleteStateThisexampleusestheMicrosoftOfficeInfoPath2007ExpenseRepor
6、tforminamodifiedversion.Formoreinformationabouthowtomodifythisform,seeCreatingaCustomApprovalWorkflowforSharePointServer2007UsingSharePointDesigner2007.YouwillalsouseacustomtaskformthatiscreatedbyfollowingthestepsinBuildinganExpenseReportApprovalWorkflowforSh
7、arePointServer2007UsingVisualStudio2008.CreatingaVisualStudio2008StateMachineWorkflowProjectFirst,youcreateaVisualStudioprojecttobuildyourworkflow.TocreateaVisualStudio2008StateMachineWorkflowproject建立一个sharepoint2007状态机工作流项目OpenVisualStudio2008.打开vs2008Onthe
8、Filemenu,pointtoNew,andthenclickProject.打开文件--新建--项目UndertheOfficeProjecttype,selecttheSharePoint2007StateMachineWorkflowprojecttemplate.选择Office里面的sharepoint2007状态机工作流IntheNametextbox,ty
此文档下载收益归作者所有