예제 #1
0
        public static void ExecuteRule()
        {
            Dictionary <string, object> args   = new Dictionary <string, object>();
            ValidationRuleResult        result = new ValidationRuleResult();

            args.Add(PipeRuleSignature.PipeArgument.Name, new object());
            args.Add(PipeRuleSignature.ResultArgument.Name, result);
            RuleManagerInstance.InvokeRulePoint("/PipeRule", args);
        }
예제 #2
0
        protected override void Execute(CodeActivityContext context)
        {
            object pipe = this.Pipe.Get(context);

            // The internal system will use the resultSet, but also return as output for other usage
            ValidationRuleResult results = this.Results.Get(context);

            if (null != results)
            {
                results.AddResult(pipe, this.Type, "Pipe", this.Message.Get(context));
            }
            return;
        }