示例#1
0
        public WFRule <Ctx> Build()
        {
            var rule = new WFRule <Ctx>();

            rule.Name        = _name;
            rule.Priority    = _priority;
            rule.Enabled     = _enabled;
            rule.IfCondition = _ifCondition;
            rule.ThenAction  = _thenAction;
            rule.ElseAction  = _elseAction;

            return(rule);
        }
示例#2
0
 public void Add(WFRule <Ctx> rule)
 {
     Add((IWFRule <Ctx>)rule);
 }