Component Labels
Component Labels
Component labels are metadata assigned to components for use when targeting specific attributes with policies. Rather than manually adding component coordinates when targeting specific components, generic component labels are used and applied to the components that meet the criteria.
For example, when the Application Architect wants to discontinue the use of a specific component, they apply a Discontinue-Use label to the component while making a policy to trigger for any components with that label.
Viewing a Component Label
- Select an organization or application. A page of customizable settings is displayed.
- Click Component Labels to scroll to the Component Labels section.
The Component Labels section displays two types of labels:
- Local - Component labels with a scope that’s specific to the selected organization or application.
- Inherited - Component labels derived from an organization that’s higher in the system hierarchy than the currently selected organization or application.
Creating a Component Label
- Select the organization or application in which the component label will be used.
- Click Component Labels.
- Click the Add a Label button. The New Component Label editor is displayed.
- Set the following attributes:
- Component Label Name - Enter a name for the component label that is easily identified.
- Short Description - Enter a description that provides additional information about the component label.
- Color - Select a desired color for the component label.
- Click the Create button to add the component label to the selected organization.
A few things to remember:
- An organization’s component labels can be seen by any of its applications; the reverse is not true.
- Component labels can only be edited (or deleted) at the level they were created.
Editing a Component Label
To edit a component label:
- Select the organization or application in which the component label was created.
- Click the component label you want to edit. The Edit Component Label dialog is displayed.
- In the Edit Component Label dialog, you can change the following attributes:
- Component Label Name - Enter a different name for the component label.
- Short Description - Enter a description that provides additional information about the component label.
- Color - Select a desired color for the component label.
- Click the Update button to save the component label.
Deleting a Component Label
To delete a component label:
- Select the organization or application in which the component label was created.
- Click the component label you want to delete. The Edit Component Label dialog is displayed.
- In the Edit Component Label dialog, click the Delete Component Label button. A Delete Label alert dialog is displayed.
- In the Delete Label dialog, click Continue to delete the component label or Cancel to keep it.
Using a Component Label in a Policy
- Select the organization or application in which to add the new policy.
- Click Policies to scroll to the Policies section.
- Create a new policy.
- In the Constraints section, add a Constraint Condition where your newly created Component Label is selected. For example, if you created a new Component Label named "Do Not Use".
Adding a Component Label from a Policy Evaluation Report
To add a component label to a Component in a Policy Evaluation Report:
- In a Policy Evaluation Report, click on a Component.
- Click on Labels.
- Click on the Available Labels to apply to the Component.
- Select the scope of the label from the dropdown; the scope of the label can be limited to an application, an organization at any level, or the root organization.
Adding a Component Label from a Repository
To add a component label to a Component from a Repository:
- Click Repositories under the Root Organization.
- Click the desired repository.
- Browse or search for the desired component.
- Select the desired component.
- Click on Labels.
- Add Component Labels to the Component.