public string BuildWebPayLoad()
        {
            var allScalars = WorkflowInputs.All(item => !item.IsRecordset);

            if (allScalars && WorkflowInputs.Count > 0)
            {
                return(WorkflowInputs.Aggregate("", (current, workflowInput) => current + (workflowInput.Field + "=") + workflowInput.Value + "&").TrimEnd('&'));
            }
            return(XElement.Parse(XmlData).ToString(SaveOptions.DisableFormatting));
        }
示例#2
0
        public string BuildWebPayLoad()
        {
            var allScalars = WorkflowInputs.All(item => !item.CanHaveMutipleRows && !item.IsObject);

            if (allScalars && WorkflowInputs.Count > 0)
            {
                return(WorkflowInputs.Aggregate(string.Empty, (current, workflowInput) => current + workflowInput.Field + @"=" + workflowInput.Value + @"&").TrimEnd('&'));
            }
            try
            {
                return(XElement.Parse(XmlData).ToString(SaveOptions.DisableFormatting));
            }
            catch (Exception)
            {
                return(string.Empty);
            }
        }