中的活动条件我在我的代码中构建工作流,但我不知道如何添加简单(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