private Process CreatePublicProcessContainer(ProjectItem projectItem) { StepDataHolder data = MapToStepDataHolder(StepType.Process, projectItem, ((Activity)projectItem).Template); data.Accessibility = "Public"; data.Save(); return(Process.Parse(data.UID)); }
private Step CreateProcessStep(Process process, ProjectItem projectItem, int position) { StepDataHolder data = MapToStepDataHolder(GetStepType(projectItem), projectItem, ((Activity)projectItem).Template); data.BaseStepId = process.Id; data.ParentStepId = projectItem.Parent.Id; data.StepPosition = position; data.Save(); return(Step.Parse(data.UID)); }