public override StepInput[] GetInputs(IOrchestrationComponent component)
        {
            StepInput dateValue = VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping(((ToShortDateString)component).date, "Date");

            return(new StepInput[1] {
                dateValue
            });
        }
        public override StepInput[] GetInputs(IOrchestrationComponent component)
        {
            StepInput input1 = VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping(((CompareNumbersRule)component).Value1, "value1");
            StepInput input2 = VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping(((CompareNumbersRule)component).Value2, "value2");

            return(new StepInput[] {
                input1, input2
            });
        }
        public override StepInput[] GetInputs(IOrchestrationComponent component)
        {
            StepInput dateFormat = VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping(((ConvertStringToDate)component).ExactDatetimeFormat, "DateFormat");

            return(new StepInput[2] {
                new StepInput()
                {
                    Name = "InputVariableName", MappingType = InputMappingType.SelectValue, SelectValuePathName = ((ConvertStringToDate)component).InputVariableName
                },
                dateFormat
            });
        }
        public override StepInput[] GetInputs(IOrchestrationComponent component)
        {
            string    arrayName  = ((IndexOfItemInCollection)component).ArrayVariableName;
            StepInput itemItself = VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping(((IndexOfItemInCollection)component).Item, "Item");

            return(new StepInput[2] {
                new StepInput()
                {
                    Name = "ArrayVariableName", MappingType = InputMappingType.SelectValue, SelectValuePathName = arrayName
                },
                itemItself
            });
        }
        public override StepInput[] GetInputs(IOrchestrationComponent component)
        {
            //if (((EqualsRule)component).DataType
            StepInput input1 = new StepInput()
            {
                Name = "value1",
                SelectValuePathName = ((EqualsRule)component).VariableName
            };
            VariableOrValueDataType var = ((EqualsRule)component).CompareTo;
            StepInput input2            = VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping(var, "value2");


            return(new StepInput[] {
                input1, input2
            });
        }
        public override StepInput[] GetInputs(IOrchestrationComponent component)
        {
            StepInput fromAddy = VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping(((SendEmailComponent)component).FromAddress, "From");

            StepInput toAddresses = VVDTUtility.ConvertArrayBuilderDataType(((SendEmailComponent)component).ToAddresses);

            toAddresses.Name = "To";

            StepInput subject = VVDTUtility.ConvertAsciiMergeDataTypeToInputMapping(((SendEmailComponent)component).Subject, "Subject");

            StepInput body = VVDTUtility.ConvertHTMLMergeDataTypeToInputMapping(((SendEmailComponent)component).HtmlContent, "Body");

            return(new StepInput[4] {
                fromAddy,
                toAddresses,
                subject,
                body
            });
        }
Beispiel #7
0
        private StepInput[] ConvertInputDataDefault(IOrchestrationComponent component)
        {
            List <StepInput> allInputs = new List <StepInput>();

            try
            {
                PropertyInfo[] pi = component.GetType().GetProperties();
                foreach (PropertyInfo eachProperty in pi)
                {
                    if (eachProperty.PropertyType == typeof(VariableOrValueDataType))
                    {
                        allInputs.Add(VVDTUtility.ConvertVariableOrValueDataTypeToInputMapping((VariableOrValueDataType)eachProperty.GetValue(component), eachProperty.Name));
                    }
                }
            }
            catch (Exception ex) {
                Report("Exception occured reflecting properties");
            }
            return(allInputs.ToArray());
        }