Пример #1
0
        public void Execute()
        {
            if (DecisionState == State.BeforeQuery)
            {
                DecisionState = State.AfterQuery;
                _decision.ExecuteQuery();
            }

            DecisionState = State.Completed;
            _decision.SaveAndProcessResults();
        }
Пример #2
0
        public void Execute()
        {
            if (DecisionState == State.BeforeQuery)
            {
                DecisionState = State.AfterQuery;

                if (_decision.ShouldExecuteQuery == false)
                {
                    DecisionState = State.Completed;
                    return;
                }

                _decision.ExecuteQuery();
            }

            DecisionState = State.Completed;
            _decision.ProcessResults();
        }