The <set-property> tag is used only in the <add-item> and <update-item> test operation tags. It has no child tags.

To set the value of an Array, List, or Set property, use a comma-separated list of values:

<set-property name="interests" value="fishing,fussing,wrassling"/>

To set the value of a Map property, use a comma-separated list of key=value pairs:

<set-property name="homes"
    value="Jefferson=Monticello,Jackson=Hermitage,Madison=Montpelier"/>

To add or remove a value to a multi-valued property, use the Boolean add or remove attributes. For example, to add a value to the preceding example:

<set-property name="homes" value="Buchanan=Wheatland" add="true"/>

To set the value of a property that refers to another repository item, use the ID of the other repository item:

<set-property name="bestBuddy" value="10022349_5"/>

To set a property to null, use this form:

<set-property name="foo" value="__NULL__"/>

set-property attributes

Attribute

Description

Value

Name

The name of the property to set.

Required

Value

The value to assign to the property.

Required

Add

If true, add this value to a multi-valued property.

Optional

Remove

If true, remove this value from a multi-valued property.

Optional

 
loading table of contents...