Creating enumeration classes for context ID location information and consumer ID location information
You can simplify the creation of SLDs by creating enumeration classes for context ID location information and consumer ID location information, and specifying a number of possible values for these classes.
You use Studio to create the enumeration classes. See the Studio documentation for detailed instructions on using the tool.
To create and populate the enumeration classes, complete the following steps:
- In Studio, create a WSRR GEP 8.5 or SMP 8.5.5 project, or work with one you are already using.
- Edit the GEP63ArchitectureModel (found in .
- Create an enumeration class for consumerIdentifierLocationInfo and another one for contextIdentifierLocationInfo and name them, for example, contextIdentifier and consumerIdentifier.
- In each enumeration class, open the properties window and go to the Literals tab. Add all the option values for consumerIdentifierLocationInfo and contextIdentifierLocationInfo that you can later select when creating an SLD. For examples of the required format, see Service level definition.
- Open the ServiceLevelDefinition class Properties window, Attributes tab and change the contextIdentifierLocationInfo Type from string to the class you created to hold the contextId values (in this example, contextIdentifier).
- Change the consumerIdentifierLocationInfo Type from string to the class you created to hold the consumerId values (in this example, consumerIdentifier).
- Save the changes, right-click the project name, and select Generate All WSRR Artifacts
- Export the updated profile by completing one of the following
actions:
- Export the updated WSRR configuration profile to one of your defined WSRR Locations by right-clicking on the WSRR location in the WSRR Locations window and selecting Export WSRR Configuration Profile.
- Synchronize your changes with an existing WSRR configuration profile by right-clicking on the project name and selecting Synchronize profile with WSRR.
When users add SLDs in the dashboard, or by using the WSRR Web UI, they can select one of the predefined values from drop-down lists for both context ID location information and consumer ID location information.
