Context parameters

Context parameters on a LevelDef can be used to pass context sensitive information to subsequent (lower) level definitions. You can use a Query Context to store any name value pair, but a more powerful use is to store context sensitive data via facets.

If we add a String facet to a Query Context where the value of that facet is a tag name, the tag name is evaluated against the results returned by the LevelDef and the value stored in the Query Context. See also, “Query context example.”

 NOTE: When adding facets to a Query Context, the facet values for tag names must be Strings. When comparing a tag value to values from the Query Context, make sure the resulting types are the same. In the “Query context example,” with equipId=hs:id and hs:equipRef={equipId}, the “type” for the values: hs:id and hs:equipRef must be the same (BOrds in this example).