Procedure.XML Modifier - Usage Example: Set Attribute
This example demonstrates one of the simplest operations: updating a report definition by changing an element's Class attribute value.
In the image above, we see a report definition on the left, the attributes for its Label element in the center (note that there is no Class attribute value), and the resulting output on the right.
And now we see the Process Task with Procedure.XML Modifier and Set Attribute elements above on the left. The Procedure.XML Modifier element's Filename attribute (not shown) has been set to:
The Set Attribute element attributes are shown above in the center (note that the Label element's ID is used for the Xml Modifier ID value), and the resulting output is on the right.
If we refresh the report definition in Studio, we can see that it's been updated with the new Class attribute value, shown highlighted above. To change multiple attributes for the same element, use multiple child Set Attribute elements in the Process Task.