Wie können wir Ihnen helfen?
< Zurück
Drucken

FirstWithResult

The FirstWithResult node forwards the result of the first incoming node that returns a result.

 

Attributes:

AttributeRequiredDescription
IdYesUnique Id in the query tree
DependsOnYesDependency on two or more query nodes. These are considered in the specified order and the first one that returns a result is forwarded.
ResultFiltersNoList of result processing

 

Example

In this example, 3 input nodes with 3 ClientQueries are simulated.

  • Node A returns no result and is thus ignored.
  • Node B returns a result and is thus also the result of the node Sink.
  • Node C (or the entire incoming subtree) is no longer evaluated, since B has already delivered a result.

 

--- !ClientQuery
Id: A
Statement: Select "x" as Value Where 1 = 2
 
--- !ClientQuery
Id: B
Statement: Select "y" as Value
 
--- !ClientQuery
Id: C
Statement: Select "z" as Value
 
--- !FirstWithResult
Id: Sink
DependsOn: [A, B, C]

Result:

Value
y
Inhaltsverzeichnis