我想根據以下標準檢索以下自定義工作流程Contacts
。在自定義工作流的參數中列出<>?
[Input("Retrieve customers whose renewal date is lesser or equal than today + X days")]
public InArgument<int> Days { get; set; }
[Input("For which service?")]
public InArgument<string> Service { get; set; }
而且我希望它返回如下:
[Output("Customers up for renewal")]
public OutArgument<List<Contact>> Customers{ get; set; }
我的想法是,另一個工作流步驟將通過這一工作流程什麼回報(Customers
)循環。
但當我註冊了裝配,上述步驟無法註冊,因爲:
The type OutArgument`1 of the property Customers is not supported
支持哪些類型的參數呢? MSDN沒有告訴我多少,是我返回一個列表錯誤的概念還是一個工作流程一次只能處理一條記錄?
謝謝。
您可以返回包含聯繫人的新靜態營銷列表。也許不是最佳的,不知道你的整個情況,但沒有工作 – 2014-11-05 16:45:42
@GuidoPreite你可以詳細解釋一個答案嗎?我在上面發佈的MSDN鏈接中看不到這種類型。謝謝。 – 2014-11-05 16:51:00