ControlTier Inc. > Open.ControlTier
 
Font size:      

Context

Description

A Context describes a scope within the map. The scope can be described by specifying the unqiue identifier for an object - by its maprefUri - or by its entityName and entityClass.

Context

AttributeDescriptionRequired
maprefuriThe maprefUri specifying the object in the map.Yes, if no name and class.
entityNameName of the object in the map.No, if maprefuri is set
entityClassType name of the object in the map.Yes
directionThe direction constraint can be "internal", "external" and "both". No, internal default
proximityThe proximity constraint is a numeric value that specifies number of degrees away from object in the map. highest proximity that can be specified is 3No, "1" default

Examples

Shows the context data type used within a transform-create task, specifying the target object by maprefuri.

	<transform-create serverurl="${viewdoc.server}" depot="${entity.depot}"
          resultproperty="rs"
          comment="something re this update">
            <context direction="internal" proximity="1" maprefuri="${entity.mapref-uri}"/>
            <document file="haha.txt" dir="/${entity.depot}/publish" type="text-plain"/>
            <template file="${templateFile}" dir="/${entity.depot}/templates" type="simple"/>
        </transform-create>