///<summary> /// This method creates a new flow based on a tamplate flow /// <returns>copy of the template flow</returns> ///</summary> public Flow initializeFlow() { //copy templates Flow newFlow = CloneTemplate(); newFlow.AssignNewGuidIds(); //we created the flow right now... newFlow.inputSurvey.timeCreated = DateTime.Now; //we'll figure out how to add the user later.. newFlow.inputSurvey.user = "******"; //Get from database -- we already have the template from db, so this step probably doesn't need to do anything -MG newFlow.IsATemplate = false; //copy forms //get form paths //return new Flow return(newFlow); //not yet saved to db! }