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
| Attribute | Description | Required |
|---|---|---|
| maprefuri | The maprefUri specifying the object in the map. | Yes, if no name and class. |
| entityName | Name of the object in the map. | No, if maprefuri is set |
| entityClass | Type name of the object in the map. | Yes |
| direction | The direction constraint can be "internal", "external" and "both". | No, internal default |
| proximity | The proximity constraint is a numeric value that specifies number of degrees away from object in the map. highest proximity that can be specified is 3 | No, "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>


