Beispiel #1
0
        public void CreateNewBF(string BizFlowName, string fileName = null, RepositoryFolder <BusinessFlow> targetFolder = null)
        {
            if (GherkinTextEditor.FileName == null && fileName != null)
            {
                GherkinTextEditor.FileName = fileName;
            }


            if (targetFolder == null)
            {
                targetFolder = targetBFFolder;
            }

            mBizFlow            = App.GetNewBusinessFlow(BizFlowName);
            mBizFlow.Source     = BusinessFlow.eSource.Gherkin;
            mBizFlow.ExternalID = GherkinTextEditor.FileName.Replace(WorkSpace.UserProfile.Solution.Folder, "~");
            mBizFlow.Name       = BizFlowName;
            mBizFlow.Activities.Clear();

            mBizFlow.ContainingFolder         = targetFolder.FolderFullPath.Replace(WorkSpace.UserProfile.Solution.Folder, "~");
            mBizFlow.ContainingFolderFullPath = targetFolder.FolderFullPath;
            targetFolder.AddRepositoryItem(mBizFlow);
            targetFolder.RefreshFolderAndChildElementsSourceControlStatus();
        }