Interface DmnDecisionResult

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> java.util.List<T> collectEntries​(java.lang.String outputName)
      Collects the entries for a output name.
      DmnDecisionResultEntries getFirstResult()
      Returns the first DmnDecisionResultEntries.
      java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getResultList()
      Returns the entries of all decision results.
      <T> T getSingleEntry()
      Returns the value of the single entry of the decision result.
      <T extends TypedValue>
      T
      getSingleEntryTyped()
      Returns the typed value of the single entry of the decision result.
      DmnDecisionResultEntries getSingleResult()
      Returns the single DmnDecisionResultEntries of the result.
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
    • Method Detail

      • collectEntries

        <T> java.util.List<T> collectEntries​(java.lang.String outputName)
        Collects the entries for a output name. The list will contain entries for the output name of every DmnDecisionResultEntries. Note that the list may contains less entries than decision results if an output does not contain a value for the output name.
        Type Parameters:
        T - the type of the result entry
        Parameters:
        outputName - the name of the output to collect
        Returns:
        the list of collected output values
      • getResultList

        java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> getResultList()
        Returns the entries of all decision results. For every decision result a map of the output names and corresponding entries is returned.
        Returns:
        the list of all entry maps
        See Also:
        DmnDecisionResultEntries.getEntryMap()
      • getSingleEntry

        <T> T getSingleEntry()
        Returns the value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.
        Type Parameters:
        T - the type of the result entry
        Returns:
        the value of the single result entry or null if none exists
        Throws:
        DmnEngineException - if more than one decision result or more than one result entry exists
        See Also:
        getSingleEntryTyped()
      • getSingleEntryTyped

        <T extends TypedValue> T getSingleEntryTyped()
        Returns the typed value of the single entry of the decision result. Asserts that only one decision result with a single entry exist.
        Type Parameters:
        T - the type of the result entry
        Returns:
        the typed value of the single result entry or null if none exists
        Throws:
        DmnEngineException - if more than one decision result or more than one result entry exists
        See Also:
        getSingleEntry()