Esempio n. 1
0
        public override void BusinessFlowEnd(uint eventTime, BusinessFlow businessFlow, bool offlineMode = false)
        {
            mContext.BusinessFlow = businessFlow;
            Object BFR = null;

            try
            {
                BFR = mExecutionLogger.SetReportBusinessFlow(mContext, offlineMode, ExecutedFrom, this.Configuration.ExecutionLoggerConfigurationIsEnabled);
                if (this.Configuration.ExecutionLoggerConfigurationIsEnabled)
                {
                    if (this.ExecutedFrom == Amdocs.Ginger.Common.eExecutedFrom.Automation)
                    {
                        this.ExecutionLogBusinessFlowsCounter             = 0;
                        mExecutionLogger.ExecutionLogBusinessFlowsCounter = 0;
                        this.BFCounter = 0;
                    }
                }
            }
            finally
            {
                if (!offlineMode && BFR != null)
                {
                    ExecutionProgressReporterListener.AddExecutionDetailsToLog(ExecutionProgressReporterListener.eExecutionPhase.End, GingerDicser.GetTermResValue(eTermResKey.BusinessFlow), string.Format("{0} (ID:{1}, ParentID:{2})", businessFlow.Name, businessFlow.InstanceGuid, businessFlow.ExecutionParentGuid), BFR);
                }
            }
        }
Esempio n. 2
0
        public override void BusinessFlowEnd(uint eventTime, BusinessFlow businessFlow, bool offlineMode = false)
        {
            Object BFR = mExecutionLogger.SetReportBusinessFlow(mContext, offlineMode, ExecutedFrom, this.Configuration.ExecutionLoggerConfigurationIsEnabled);

            if (this.Configuration.ExecutionLoggerConfigurationIsEnabled)
            {
                if (this.ExecutedFrom == Amdocs.Ginger.Common.eExecutedFrom.Automation)
                {
                    this.ExecutionLogBusinessFlowsCounter             = 0;
                    mExecutionLogger.ExecutionLogBusinessFlowsCounter = 0;
                    this.BFCounter = 0;
                }
            }

            if (!offlineMode)
            {
                ExecutionProgressReporterListener.AddExecutionDetailsToLog(ExecutionProgressReporterListener.eExecutionPhase.End, GingerDicser.GetTermResValue(eTermResKey.BusinessFlow), businessFlow.Name, BFR);
            }
        }