コード例 #1
0
ファイル: WfOperation.cs プロジェクト: ounata/AK47-2016Source
        public void AdjustBranches(WfAdjustBranchesParams adjustParams)
        {
            lock (this)
            {
                WfBranchProcessInfoCollection deletedBranchProcesses;

                AddBranchProcess(adjustParams.User, adjustParams.AddedBranchesParamsCollection);

                deletedBranchProcesses = DeleteBranchProcesses(adjustParams.DeletedBranchIDs);

                UpdateBranchesSort(adjustParams.SortBranchParamsList);

                FinalInitBranches();

                this.OpState = State.Modified;

                WorkflowSettings.GetConfig().EnqueueWorkItemExecutor.EnqueueAdjustBranchesWorkItem(this, deletedBranchProcesses);
            }
        }
コード例 #2
0
        public void AdjustBranches(WfAdjustBranchesParams adjustParams)
        {
			lock (this)
			{
				WfBranchProcessInfoCollection deletedBranchProcesses;

				AddBranchProcess(adjustParams.User, adjustParams.AddedBranchesParamsCollection);

				deletedBranchProcesses = DeleteBranchProcesses(adjustParams.DeletedBranchIDs);

				UpdateBranchesSort(adjustParams.SortBranchParamsList);

				FinalInitBranches();

				this.OpState = State.Modified;

				WorkflowSettings.GetConfig().EnqueueWorkItemExecutor.EnqueueAdjustBranchesWorkItem(this, deletedBranchProcesses);
			}
        }