示例#1
0
 protected internal virtual void NotifyTransformListeners(IOutput output, DmnDecisionTableOutputImpl dmnOutput)
 {
     foreach (var transformListener in transformListeners)
     {
         transformListener.transformDecisionTableOutput(output, dmnOutput);
     }
 }
示例#2
0
 public DmnEvaluatedOutputImpl(DmnDecisionTableOutputImpl decisionTableOutput, ITypedValue value)
 {
     id         = decisionTableOutput.Id;
     name       = decisionTableOutput.Name;
     outputName = decisionTableOutput.OutputName;
     this.value = value;
 }
示例#3
0
 public virtual DmnTransformException DecisionTableOutputIdIsMissing(IDmnDecision dmnDecision,
                                                                     DmnDecisionTableOutputImpl dmnDecisionTableOutput)
 {
     return
         (new DmnTransformException(ExceptionMessage("012",
                                                     string.Format("The decision table output '{0}' of decision '{1}' must have a 'id' attribute set.",
                                                                   dmnDecisionTableOutput, dmnDecision))));
 }
示例#4
0
 public virtual DmnTransformException CompoundOutputWithDuplicateName(DmnDecisionTableImpl dmnDecisionTable,
                                                                      DmnDecisionTableOutputImpl dmnOutput)
 {
     return
         (new DmnTransformException(ExceptionMessage("009",
                                                     string.Format(
                                                         "The decision table '{0}' has a compound output but name of output '{1}' is duplicate.",
                                                         dmnDecisionTable, dmnOutput))));
 }
示例#5
0
 public virtual DmnTransformException CompoundOutputsShouldHaveAnOutputName(
     DmnDecisionTableImpl dmnDecisionTable, DmnDecisionTableOutputImpl dmnOutput)
 {
     return
         (new DmnTransformException(ExceptionMessage("008",
                                                     string.Format(
                                                         "The decision table '{0}' has a compound output but output '{1}' does not have an output name.",
                                                         dmnDecisionTable, dmnOutput))));
 }