我正嘗試使用輸出參數爲錯誤處理創建自定義工作流程操作。從各種示例工作,我無法獲得參數方向=「出」工作。一切似乎都正確,但是當我嘗試將輸出分配給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>
沒有。無法在我分配給這種方法的時間內工作,因此必須繼續前進。這是問題,它看起來完全可以接受,但不起作用。 – 2009-02-18 16:18:11