Пример #1
0
 public DmnDecisionRuleOutputEntry(DmnDecisionRuleResultImpl outerInstance, string key,
                                   ITypedValue typedValue)
 {
     this.outerInstance = outerInstance;
     this.key           = key;
     this.typedValue    = typedValue;
 }
        public static DmnDecisionTableResultImpl Wrap(IDmnDecisionResult decisionResult)
        {
            IList <IDmnDecisionRuleResult> ruleResults = new List <IDmnDecisionRuleResult>();

            foreach (var result in decisionResult)
            {
                var ruleResult = new DmnDecisionRuleResultImpl();
                ruleResult.putAllValues(result.EntryMapTyped);

                ruleResults.Add(ruleResult);
            }

            return(new DmnDecisionTableResultImpl(ruleResults));
        }