Exemplo n.º 1
0
		public override bool Evaluate (State state) {
			string value = LoadValue(_input, _inputSource, state);
			string key = LoadValue(_control, _controlSource, state);

			state.Output[key] = value;
			
			return (true);
		}
Exemplo n.º 2
0
		public bool Evaluate (State state) {
			bool result = _conditions.Evaluate(state);
			
			if (result)
				RunActions(_successActions, state);
			else
				RunActions(_failureActions, state);

			return (result);
		}
Exemplo n.º 3
0
		public void Run (State state, string ruleId) {
			_ruleSet.Evaluate(state, ruleId);
		}
Exemplo n.º 4
0
		public void Run (State state) {
			_ruleSet.Evaluate(state);
		}
Exemplo n.º 5
0
		private void RunActions (List<IEvaluator> actions, State state) {
			foreach (IEvaluator action in actions)
				action.Evaluate(state);
		}