About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
There are two ways in which scripting uses structured properties for increased clarity when parsing:
- To give structure to the names of properties for complex nodes, such as Type, Filter, or Balance nodes.
- To provide a format for specifying multiple properties at once.
Structuring for complex interfaces
The scripts for nodes with tables and other complex interfaces (for example, the Type, Filter,
and Balance nodes) must follow a particular structure to parse correctly. These properties need a
name that's more complex than the name for a single identifier; this name is called the key. For
example, within a Filter node, each available field (on its upstream side) is switched on or off. To
refer to this information, the Filter node stores one item of information per field (whether each
field is true or false). This property may have (or be given) the value
or
True
. Suppose that a Filter node named False
has (on its
upstream side) a field called mynode
. To switch this to off, set the property
Age
, with the key include
, to the value Age
, as
follows:False
mynode.setKeyedPropertyValue("include", "Age", False)
Structuring to set multiple properties
For many nodes, you can assign more than one node or flow property at a time. This is referred to as the multiset command or set block.
In some cases, a structured property can be quite complex. For example:
sortnode.setPropertyValue("keys", [["K", "Descending"], ["Age", "Ascending"], ["Na", "Descending"]])
Another advantage that structured properties have is their ability to set several properties on a node before the node is stable. By default, a multiset sets all properties in the block before taking any action based on an individual property setting.
Was the topic helpful?
0/1000