sharepoint:一步一步SharePoint 2007的 4十 3:实现自定义Workflow(2)——设置配置文件

  摘要

  本篇文章将介绍实现自定义Workflow第 2部分——设置配置文件

  正文

  下面将记录每操作过程

  1、首先采用Reflector等工具找到上篇文章编译后DLLAssembly信息

<img src='/icons/86050yi.gif' />步<img src='/icons/86050yi.gif' />步SharePo<img src='/icons/86050int.gif' /> 2007的 4十 3:实现自定义Workflow(2)——设置配置文件

  2、找到并打开C:InetpubwwwrootwssVirtualDirectories9001web.config文件.Workflow.ComponentModel.WorkflowCompiler节点下authorizedTypes中加入个新authorizedType如下:

1    <authorizedType Assembly="Eallies.Workflow.Demo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2b73eeea223c0615" Namespace="Eallies.Workflow.Demo" TypeName="*" Authorized="True" />

<img src='/icons/86050yi.gif' />步<img src='/icons/86050yi.gif' />步SharePo<img src='/icons/86050int.gif' /> 2007的 4十 3:实现自定义Workflow(2)——设置配置文件

  3、然后再找到并打开C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12TEMPLATE1033WorkflowWSS.ACTIONS文件这里1033表示英文在您机器上也可能是2052等

<img src='/icons/86050yi.gif' />步<img src='/icons/86050yi.gif' />步SharePo<img src='/icons/86050int.gif' /> 2007的 4十 3:实现自定义Workflow(2)——设置配置文件

  4、找到这个文件Actions节并在最后个Action后添加个新Action如下

  请注意这里ClassName为“命名空间+类名”形式%1对应于后面Id="1"ParameterName为我们在Workflow中定义属性名

  1   <Action Name="Write a File"
  2    ClassName="Eallies.Workflow.Demo.WriteFile"
  3    Assembly="Eallies.Workflow.Demo, Version=1.0.0.0, Culture=neutral, PublicKeyToken=2b73eeea223c0615"
  4    Category="Eallies"
  5    AppliesTo="all">
  6    <RuleDesigner Sentence="Write %1 to the file">
  7     <FieldBind Field="Text" Text="this text" DesignerType="TextArea" Id="1"/>
  8    </RuleDesigner>
  9    <Parameters>
 10     <Parameter Name="Text" Type=".String, mscorlib" Direction="In" />
 11    </Parameters>
 12   </Action>


<img src='/icons/86050yi.gif' />步<img src='/icons/86050yi.gif' />步SharePo<img src='/icons/86050int.gif' /> 2007的 4十 3:实现自定义Workflow(2)——设置配置文件

  5、改完保存后我们需要重启下IIS

<img src='/icons/86050yi.gif' />步<img src='/icons/86050yi.gif' />步SharePo<img src='/icons/86050int.gif' /> 2007的 4十 3:实现自定义Workflow(2)——设置配置文件

  至此第 2部分设置配置文件工作就完成了

  下篇文章我将记录如何实现自定义Workflow第 3部分——在Designer中创建个Workflow过程

Tags:  sharepoint教程 什么是sharepoint sharepoint2007 sharepoint

延伸阅读

最新评论

发表评论