Sometimes it can be useful to group different objects together. One requirement could be, to group a Computer, a Monitor and a Printer Object together to form a Workplace Object. This could be useful to easily recognize which objects belong to a specific workplace. This example uses an Object Class “Monitor” to group Monitors together with Computers and Printers.
However, Monitor-Objects do not exist out-of-the-box in Service Manager. It is necessary to create a new Class for managing those kind of objects. Details on how to do this can be found here. I’m using an unsealed Management Pack which already contains a “Monitor”-Class. Start the Service Manager Authoring Tool and open the Management Pack.
Next, I’m going to create a new Class called “Workplace”. The Base Class for this is “Configuration Item”.
After the successful creation of the new Class, I’m going to delete the automatically created Key Property.
Now, I create a new property called “Workplace Number” and mark it as key property.
Next, we will add some relations to the new class. I will call this “Monitor_to_Workplace” to link a specific Monitor to a Workplace-Object.
In the Details of the new relation, I define a meaningful name as well as the “the other end” of the relation, means the “Monitor”-Class.
Now, I repeat the steps for relations to other object types. The procedure is exactly the same.
As a last step, I add all needed properties to the Workplace-Class.
For managing objects in the Service Manager Console, generic forms are used. If you want to use specific relations to other objects like we want to use, you have to create a specific form. Such forms can be created directly in the Authoring Tool.
Select the Class that the new form should be used to. Select “Workplace” and define an ID for the new form afterwards.
The Forms Toolbox should be displayed and you can drag the needed Elements directly onto the form. I will use Labels, Textboxes (for attribute values) and Single Instance Pickers (for relations).
After the different fields are placed on the form, the binding have to be configured. This is done through the details pane. Select the Attributes and/or relations for all the fields.
Now it’s time to import the Management Pack. For the management of the Workplace-Objects I create a new view that shows all instantiated objects in the Workplace-Class.
If a new Workplace-Object is created, the new form is automatically loaded. You can now easily configure Workplaces and select the related Objects like Monitors, Computers and Printers by using the object picker.