Eug*_*atz 5 sharepoint workflow moss
我正在尝试使用输出参数创建自定义工作流操作以进行错误处理.通过各种示例,我无法使用Parameter Direction ="Out"来工作.一切似乎都是正确的,但是当我尝试将输出分配给SharePoint Designer中的"错误"变量时,它会在其周围放置星号并将其标记为工作流错误.以下是XML操作的内容:
<Action Name="Create Folder"
ClassName="ActivityLibrary.CreateFolderActivityTest"
Assembly="ActivityLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxx"
AppliesTo="all"
CreatesInList="ListId"
Category="Custom">
<RuleDesigner Sentence="Create a folder %1 in the %2 base folder. If an error occurs it will be output to %3.">
<FieldBind Field="FolderName" Text="folder name" Id="1" />
<FieldBind Field="BaseFolderPath" Text="folder path" Id="2"/>
<FieldBind Field="OutError" DesignerType="ParameterNames" Text="out error" Id="3"/>
</RuleDesigner>
<Parameters>
<Parameter Name="FolderName" Type="System.String, mscorlib" Direction="In" />
<Parameter Name="BaseFolderPath" Type="System.String, mscorlib" Direction="In" />
<Parameter Name="OutError" Type="System.String, mscorlib" Direction="Out" />
</Parameters>
</Action>
Run Code Online (Sandbox Code Playgroud)
您确定问题出在参数而不是 SPD 中的变量吗?当然,您的 XML 看起来没有任何问题。
我一直讨厌 SPD 和工作流程让您在工作流程中创建一个变量,并在页面中创建另一个变量以分配与工作流程变量相同的值。
归档时间: |
|
查看次数: |
1988 次 |
最近记录: |