将VS2005WWF工作流部署到MOSS2007
当我们使用MS直接提供的WORKFLOW DESIGNER OF MOSS2007时,一些配置参数,系统会自动部署到配置文件中。当您在VS2005中的WWF下定制一个工作流时,此工作流需要部署并在MOSS中激活后使用他。关于如何用WWF制作一个工作流,请参考相关的文章。(XOML)
首先查看MOSS的配置:1、工作流必需设置为强名;2、在属性定义文件Feature.xml中增加如下内容:
<Feature Id="guid"
Title="工作流标题"
Description="工作流描述"
Version="1.0.0.0"
Scope="Site"
ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest Location="工作流定义文件workflowfile.xml" />
</ElementManifests>
<Properties>
<Property Key="GloballyAvailable" Value="true" />
<Property Key="RegisterForms" Value="*.xsn" />
</Properties>
</Feature>
在VS2005中新建一个工作流定义文件workflowfile.xml
基本内容如下:
<Elements xmlns=http://schemas.microsoft.com/sharepoint>
<Workflow
Name="workflowname"
Description="descriptionofyourworkflow"
ID="guid"
CodeBesideClass="workflow class"
CodeBesideAssemble="namespace" ,Version=1.0.0.0 , Culture=neutral,PublicKeyToken="public key token"
>
<Categories/>
<MetaData/>
</Workflow>
</Elements>
将在WWF下编译后的文件,assembly 到GAC中
接下来,按MOSS2007的常规方法去激活引用此工作流就OK了.
浙公网安备 33010602011771号