コード例 #1
0
        private Process CreatePublicProcessContainer(ProjectItem projectItem)
        {
            StepDataHolder data = MapToStepDataHolder(StepType.Process, projectItem,
                                                      ((Activity)projectItem).Template);

            data.Accessibility = "Public";

            data.Save();

            return(Process.Parse(data.UID));
        }
コード例 #2
0
        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));
        }