2008-08-18 108 views
4

我正嘗試使用輸出參數爲錯誤處理創建自定義工作流程操作。從各種示例工作,我無法獲得參數方向=「出」工作。一切似乎都正確,但是當我嘗試將輸出分配給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> 

回答

0

您確定問題在於參數而不是SPD中的變量嗎?當然,你的XML沒有任何問題。

我總是討厭SPD和工作流程讓你在工作流程內創建一個變量,在頁面內創建另一個變量,以分配與工作流程變量相同的值。

1

我想你可能想的方向=「的InOut」從結合

0

你這個隨時隨地的長相?我懷疑這個問題更可能在你的邏輯代碼中,而不是這個xml(.actions)文件中。它看起來完全可以接受我。

+0

沒有。無法在我分配給這種方法的時間內工作,因此必須繼續前進。這是問題,它看起來完全可以接受,但不起作用。 – 2009-02-18 16:18:11

相關問題