public virtual bool Evaluate(IDelegateCaseExecution caseExecution) { IDecisionService decisionService = caseExecution.ProcessEngineServices.DecisionService; IDmnDecisionTableResult result = EvaluateDecision(decisionService, caseExecution); IDmnDecisionRuleResult singleResult = result.GetSingleResult(); return((bool)singleResult.getFirstEntry <bool>()); }
protected internal virtual void AssertThatDecisionHasResult(IDmnDecisionTableResult decisionResult, object expectedValue) { //Assert.That(decisionResult, Is.EqualTo(notNullValue())); Assert.NotNull(decisionResult); Assert.That(decisionResult.Count, Is.EqualTo(1)); //string value = decisionResult.SingleResult.FirstEntry; string value = decisionResult.GetSingleResult().getFirstEntry <string>(); Assert.That(value, Is.EqualTo(expectedValue)); }