如何退出在SharePoint工作流程中工作的参数
问题描述:
我正尝试使用输出参数为错误处理创建自定义工作流程操作。从各种示例工作,我无法获得参数方向=“出”工作。一切似乎都正确,但是当我尝试将输出分配给SharePoint Designer中的“错误”变量时,它会在其周围放置星号并将其标记为工作流错误。以下是动作XML的样子:如何退出在SharePoint工作流程中工作的参数
<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>
答
您确定问题在于参数而不是SPD中的变量吗?当然,你的XML没有任何问题。
我总是讨厌SPD和工作流程让你在工作流程内创建一个变量,在页面内创建另一个变量,以分配与工作流程变量相同的值。
答
我想你可能想的方向=“的InOut”从结合
答
你这个随时随地的长相?我怀疑这个问题更可能在你的逻辑代码中,而不是这个xml(.actions)文件中。它看起来完全可以接受我。
没有。无法在我分配给这种方法的时间内工作,因此必须继续前进。这是问题,它看起来完全可以接受,但不起作用。 – 2009-02-18 16:18:11