Esempio n. 1
0
        public void AddIRFlowVector(string SourceWorkflowUniqueName, string SinkWorkflowUniqueName)
        {
            if (!this._PhaseExecutionHostsByWorkflowUniqueName.ContainsKey(SourceWorkflowUniqueName))
            {
                Message.Trace(Severity.Error, Resources.ErrorInvalidWorkflowPhaseSpecifier, SourceWorkflowUniqueName);
                return;
            }
            if (!this._PhaseExecutionHostsByWorkflowUniqueName.ContainsKey(SinkWorkflowUniqueName))
            {
                Message.Trace(Severity.Error, Resources.ErrorInvalidWorkflowPhaseSpecifier, SinkWorkflowUniqueName);
                return;
            }
            PhaseExecutionHost SourceHost = this._PhaseExecutionHostsByWorkflowUniqueName[SourceWorkflowUniqueName];
            PhaseExecutionHost SinkHost   = this._PhaseExecutionHostsByWorkflowUniqueName[SinkWorkflowUniqueName];

            SourceHost.AddSuccessor(SinkHost);
            SinkHost.AddPredecessor(SourceHost);
        }
Esempio n. 2
0
        public void AddIRFlowVector(string sourceWorkflowUniqueName, string sinkWorkflowUniqueName)
        {
            if (!_phaseExecutionHostsByWorkflowUniqueName.ContainsKey(sourceWorkflowUniqueName))
            {
                MessageEngine.Trace(Severity.Error, Resources.ErrorInvalidWorkflowPhaseSpecifier, sourceWorkflowUniqueName);
                return;
            }

            if (!_phaseExecutionHostsByWorkflowUniqueName.ContainsKey(sinkWorkflowUniqueName))
            {
                MessageEngine.Trace(Severity.Error, Resources.ErrorInvalidWorkflowPhaseSpecifier, sinkWorkflowUniqueName);
                return;
            }

            PhaseExecutionHost sourceHost = _phaseExecutionHostsByWorkflowUniqueName[sourceWorkflowUniqueName];
            PhaseExecutionHost sinkHost   = _phaseExecutionHostsByWorkflowUniqueName[sinkWorkflowUniqueName];

            sourceHost.AddSuccessor(sinkHost);
            sinkHost.AddPredecessor(sourceHost);
        }