I want to add new hst:parameternames and hst:parametervalues to a hst:containeritemcomponent via a groove script. How can I acheive that?
Hello @Shinoy_Jose, the Groovy script’s doUpdate
will be called for every node that matches your repository path or XPath query, passing in the Node
object which can be manipulated as desired using the provided methods. You probably want to take a look at the Property getProperty(String relPath)
method to fetch the current parameter names and values, manipulate them as needed, and set them back using the setProperty(String name, Value[] values)
method. The script will automatically persist your changes when it finishes.