コード例 #1
0
        public override void Perform()
        {
            string value = GetValue(GetElement());

            if (!(string.IsNullOrEmpty(value) && FliterEmptyString))
            {
                ActionArrayVariable arr = VariableModel.Find <ActionArrayVariable>(ObjectName);
                if (arr == null)
                {
                    throw new ApplicationException("变量" + ObjectName + "未找到");
                }
                arr.AddItemToArray(value);
            }
        }
コード例 #2
0
        public override void Perform()
        {
            Element element = GetElement();

            if (!element.Exists)
            {
                ActionArrayVariable arr = VariableModel.Find <ActionArrayVariable>(ObjectName);
                if (arr == null)
                {
                    throw new ApplicationException("变量" + ObjectName + "未找到");
                }
                arr.AddItemToArray("");
            }
        }