The properties
element
The properties
element is a container
for property
elements, which define the user interface
of the plug-in step.
Each plug-in step has a properties
element. A properties
element can contain any number of property
child elements.
property
elements can be grouped
under property-group
elements. The property-group
element can be used for mapping. The property-group
element supports these attributes:name
title
description
type
type
attribute must be set to mappingBox.<property>
tag has a mandatory name
attribute and a child property-ui
element, which
is defined in the following table. A property tag can also have an
optional depends
attribute, which identifies when
a field depends on the values of other fields. If a field depends
on the values of other fields, the field is not displayed until all
the prerequisite fields are set. For example, the following text shows
a depends
attribute:depends="oslcSecret,oslcKey,oslcUrl"
<property> Child elements |
Description |
---|---|
<property-ui> |
Defines how the property is presented to users in IBM® UrbanCode™
Release. This element has several attributes:
|
<value> |
Used to specify values for a checkedMultiSelectBox type. Each value has a mandatory label attribute, which is displayed to users, and a value that is used
by the property when it is selected. Values are displayed in the order
that they are defined. |
A sample <property>
definition follows:
<property name="oslcUrl" >
<property-ui type="textBox" label="OSLC server URL" description="An OSLC server URL" />
</property>
A sample <property-group>
definition follows.
The parent
attributes of the child properties must
match the name
attribute of the parent <property-group>
element.
<property-group depends="oslcUrl,oslcKey,oslcSecret,projectArea,query" name="mappingRelease" title="Release Mapping" description="Select a release and planned-for items" type="mappingBox" >
<property parent="mappingRelease" name="timelines">
<property-ui description="Timelines from Rational Team Concert" label="Timelines" type="scriptedCheckedMultiSelectBox"/>
<scripted-prop-info source="Timelines" labelPath="label" valuePath="value" basePath="" dataFormat="JSON" dataSourceType="COMMAND" />
</property>
<property parent="mappingRelease" name="releases">
<property-ui description="UrbanCode Releases" label="Releases" type="httpCheckedMultiSelectBox"/>
<http-prop-info username="${releaseUser}" password="${releasePassword}" url="${releaseUrl}/releases?format=list" labelPath="name" valuePath="id" basePath="" dataFormat="JSON" />
</property>
</property-group>
The http-prop-info
element
http-prop-info
element defines the information
that is required to connect to the REST endpoint and to parse the
response in order to build the list of options. For example, the following
text is a sample http-prop-info
element: <http-prop-info username="${oslcKey}" password="${oslcSecret}"
url="${oslcUrl}oslc/types/${projectArea}" labelPath="dc:title" valuePath="dc:title"
basePath="/oslc_cm:Collection/rtc_cm:Type" dataFormat="XML" authType="OAUTH" />
The user name and password are required for authentication
with the REST endpoint. The URL is the address of the REST endpoint.
The authType can be BASIC, which is the default type, or OAUTH. The basepath
attribute is used to determine the list of values
in the XML or JSON response. For XML responses, use an XPath string;
for example, //xml/node. For JSON responses,
use a dot-notation path to an array that contains each element; for
example, json.nodes.