开发者

Creating rules programmatically in WFF

开发者 https://www.devze.com 2023-02-17 10:07 出处:网络
i need to create rule in Windows Workflow Foundation without using RuleSet editor. Maybe i didnt search enough on google but i cant find any examle of this.

i need to create rule in Windows Workflow Foundation without using RuleSet editor. Maybe i didnt search enough on google but i cant find any examle of this.

Example of desired result:

var ra = new List<RuleAction>();
ra.Add(new RuleAction());
var rc = new RuleCondition();

var rule开发者_JAVA百科 = new Rule("test", rc, ra, null);

Thanks ahead


I think this blog-post answers your question: Programmatically Create Windows Workflow Rules

0

精彩评论

暂无评论...
验证码 换一张
取 消