public DataPresentationTemplate elementsRenamed (DataPresentationTemplate oldTemplate, RenamedElements renamedElements, InodeChangeHelper helper, IDomainVersion domainVersion)

This method is called by Aware IM when the user of the Configuration Tool renames some elements in the business space version. The method is supposed to check whether the renamed elements are referenced by tags contained in the document template and change the contents of the tags accordingly so that they reference the new names.

Parameters

oldTemplatethe document template to be checked if it references the renamed elements
renamedElementsa structure that describes the elements that have been renamed by the user. The elements are grouped by categories corresponding to the different concepts supported by the business space version (business objects, processes etc). Each element in each category contains the old name of the element and the new name.
domainVersionthe business space version where the document template is defined
helpera call-back interface containing the useful method checkAttributePath. This method can be used to check whether a particular attribute path referenced by the document template needs to be modified as a result of renaming. If the method returns null the attribute path need not be changed, otherwise the modified path is returned.

Returns

if the document template needs to be modified as a result of renaming the modified template must be returned otherwise null must be returned. Note that the method is not allowed to modify the original template directly – it must copy the original template first using the deepCopy method and then modify the copy.

  • Last modified: 2023/05/08 06:51