Package org.camunda.bpm.dmn.engine
Interface DmnDecisionResult
- All Superinterfaces:
- Collection<DmnDecisionResultEntries>,- Iterable<DmnDecisionResultEntries>,- List<DmnDecisionResultEntries>,- Serializable
- All Known Implementing Classes:
- DmnDecisionResultImpl
 The result of one decision evaluation. It can be composed of multiple
 DmnDecisionResultEntriess which represents the output entries (i.e.,
 pairs of output name and value).
 
 In case of a decision with a decision table, the result has one
 DmnDecisionResultEntries for each matched rule that contains the
 output entries of this rule.
 
- 
Method SummaryModifier and TypeMethodDescription<T> List<T>collectEntries(String outputName) Collects the entries for a output name.Returns the firstDmnDecisionResultEntries.Returns the entries of all decision results.<T> TReturns the value of the single entry of the decision result.<T extends TypedValue>
 TReturns the typed value of the single entry of the decision result.Returns the singleDmnDecisionResultEntriesof the result.Methods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Listadd, 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 Details- 
getFirstResultDmnDecisionResultEntries getFirstResult()Returns the firstDmnDecisionResultEntries.- Returns:
- the first decision result or null if none exits
 
- 
getSingleResultDmnDecisionResultEntries getSingleResult()Returns the singleDmnDecisionResultEntriesof the result. Asserts that only one decision result exist.- Returns:
- the single decision result or null if none exists
- Throws:
- DmnEngineException- if more than one decision result exists
 
- 
collectEntriesCollects the entries for a output name. The list will contain entries for the output name of everyDmnDecisionResultEntries. 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
 
- 
getResultListReturns 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:
 
- 
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:
 
- 
getSingleEntryTypedReturns 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:
 
 
-