Trading Networks 10.7 | Administering and Monitoring B2B Transactions | Service Development Help | Working with Elements | Refactoring Elements
 
Refactoring Elements
You can change field names in all the dependents of elements. Refactoring ensures that changes are applied to all the applicable references of elements.
*To refactor elements
1. In Package Navigator view, double-click the element to open it.
Ensure that you have write access to the element.
2. Right-click the variable you want to refactor.
3. Select Refactor > Rename.
4. In the Refactor variable wizard, type the new name in the text box and click Next.
All the occurrences of the variable are displayed in the Changes to be performed list.
5. Select the check boxes corresponding to the appropriate variables to define the scope of refactoring. By default, all the variable occurrences are selected.
Note: 
*If you clear the selection of a variable occurrence from the Changes to be performed list, that occurrence is unlinked from the source element. Then you must manually edit the particular variable occurrence.
*Do not clear the selection of the source element from the list.
The IS Asset Compare view displays the changes between the original asset and the refactored asset. This view is only available for IS document types and Flow services.
6. Click Finish. The Refactor Log tab displays the refactor status of each occurrence.
Note: 
*For variable occurrences that are not refactored, the refactor log displays the reason along with the status. Then you must manually edit these occurrences.
*For an element that has more than one input variable with the same name, refactoring any one of those variables results in Designer displaying an extra variable. This is an issue with the manner in which Designer displays variables with the same name after refactoring. The issue does not impact the results of the refactoring operation.