/// <summary> /// Gets and bulk updates workflows. Called when the "Get and bulk update workflows" button is pressed. /// Expects the CreateWorkflow method to be run first. /// </summary> private bool GetAndBulkUpdateWorkflows() { // Prepare the parameters string where = "WorkflowName LIKE N'MyNewWorkflow%'"; // Get the data InfoDataSet <WorkflowInfo> workflows = WorkflowInfoProvider.GetWorkflows(where, null, 0, null); if (!DataHelper.DataSourceIsEmpty(workflows)) { // Loop through the individual items foreach (WorkflowInfo modifyWorkflow in workflows) { // Update the properties modifyWorkflow.WorkflowDisplayName = modifyWorkflow.WorkflowDisplayName.ToUpper(); // Save the changes WorkflowInfoProvider.SetWorkflowInfo(modifyWorkflow); } return(true); } return(false); }