中的活動條件我在我的代碼中構建工作流,但我不知道如何添加簡單(While)條件。試圖找出如何,但沒有運氣,在互聯網上搜索,但也沒有運氣。WF4雖然代碼
這是什麼,我試圖做一個簡化版本:
ActivityBuilder ab = new ActivityBuilder();
ab.Implementation = new Sequence()
{
Variables =
{
new Variable<int>("StepNo", 0)
},
Activities =
{
new While()
{
Condition = <the_condition>
Body =
{
//Some logic here and the StepNo is increased
}
}
}
}
while條件應該是像「StepNo < 10」。任何想法如何做到這一點?
拿起[臨WF:Windows工作流在.NET 4.0(HTTP://www.amazon .COM /臨-WF-Windows的工作流專家/ DP/1430227214)。 – TrueWill