protected void CreateButtonClick(object sender, EventArgs e) { var workflowName = string.Format("{0} - {1}", TheGlobalisationService.GetString("new_workflow"), DateTime.Now); Log.Info(string.Format("Creating new workflow '{0}' of type '{1}'", workflowName, WorkflowConfigsDropDownList.SelectedValue)); TheWorkflowConfigurationService.CreateWorkflowConfiguration(workflowName, WorkflowConfigsDropDownList.SelectedValue); }
protected void CreateButtonClick(object sender, EventArgs e) { //if (Validator.IsTrial() || Validator.IsInvalid()) //{ // var numConfigs = TheWorkflowConfigurationService.ListConfigurations().Count; // if(numConfigs > 0) // { // throw new Exception(TheGlobalisationService.GetString("only_one_config_in_trial")); // } //} var workflowName = string.Format("{0} - {1}", TheGlobalisationService.GetString("new_workflow"), DateTime.Now); Log.Info(string.Format("Creating new workflow '{0}' of type '{1}'", workflowName, WorkflowConfigsDropDownList.SelectedValue)); TheWorkflowConfigurationService.CreateWorkflowConfiguration(workflowName, WorkflowConfigsDropDownList.SelectedValue); }