下面是我写的代码。我需要修改这是RR如何修改RuleAction中的内容
可用的内容。例如:我需要进行修改,以
"rr.ThenAction = "this.MacroLoop.Current.Strategy.SubStrategy.Current.Block.AIN.HLOP = 1"
if (!ruleSet.Validate(rv))
{
List<System.Workflow.Activities.Rules.Rule> rulesList = new List<System.Workflow.Activities.Rules.Rule>();
rulesList = ruleSet.Rules.ToList();
foreach (System.Workflow.Activities.Rules.Rule rr in rulesList)
{
// I need to modify the content in rr
}
}
帮助深表感谢
if rr.ThenAction = "this.MacroLoop.Current.Strategy.SubStrategy.Current.Block.AIN.HLOP = 0"
。
你需要检查循环中的每个rr吗? – 2014-09-26 09:46:12
每个rr都需要修改。但内容将改变 – 2014-09-26 09:49:14