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

  1. Select an organization or application. A page of customizable settings is displayed.
  2. Click Component Labels to scroll to the Component Labels section.

The Component Labels section displays two types of labels:

Creating a Component Label

  1. Select the organization or application in which the component label will be used.
  2. Click Component Labels.
  3. Click the Add a Label button. The New Component Label editor is displayed.
  4. Set the following attributes:
    1. Component Label Name - Enter a name for the component label that is easily identified.
    2. Short Description - Enter a description that provides additional information about the component label.
    3. Color - Select a desired color for the component label.
  5. Click the Create button to add the component label to the selected organization.

A few things to remember:

Editing a Component Label

To edit a component label:

  1. Select the organization or application in which the component label was created.
  2. Click the component label you want to edit. The Edit Component Label dialog is displayed.
  3. In the Edit Component Label dialog, you can change the following attributes:
    1. Component Label Name - Enter a different name for the component label.
    2. Short Description - Enter a description that provides additional information about the component label.
    3. Color - Select a desired color for the component label.
  4. Click the Update button to save the component label.

Deleting a Component Label

To delete a component label:

  1. Select the organization or application in which the component label was created.
  2. Click the component label you want to delete. The Edit Component Label dialog is displayed.
  3. In the Edit Component Label dialog, click the Delete Component Label button. A Delete Label alert dialog is displayed.
  4. In the Delete Label dialog, click Continue to delete the component label or Cancel to keep it.

Using a Component Label in a Policy

  1. Select the organization or application in which to add the new policy.
  2. Click Policies to scroll to the Policies section.
  3. Create a new policy.
  4. 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:

  1. In a Policy Evaluation Report, click on a Component.
  2. Click on Labels.
  3. Click on the Available Labels to apply to the Component.
  4. 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:

  1. Click Repositories under the Root Organization.
  2. Click the desired repository.
  3. Browse or search for the desired component.
  4. Select the desired component.
  5. Click on Labels.
  6. Add Component Labels to the Component.