Exemplo n.º 1
0
        public void AddPredecessor(PhaseExecutionHost predecessor)
        {
            if (_hostedPhase.Equals(predecessor))
            {
                MessageEngine.Trace(Severity.Error, Resources.ErrorAttemptedWorkflowSelfLoop, _workflowUniqueName);
                return;
            }

            if (_predecessors.Contains(predecessor))
            {
                MessageEngine.Trace(Severity.Error, Resources.ErrorAttemptedWorkflowDuplicateIRFlowVector, predecessor._workflowUniqueName, _workflowUniqueName);
                return;
            }

            _predecessors.Add(predecessor);
        }