Containments help you populate groups as well as structure Distributed Applications (DAs). I.e. One containment could be “Application (DA) contains Websites” and you would compliment this with another containment “Websites contains Website”. This would give you something similar to
The logic is the same for any object, computers, Databases, disks, etc etc.
You can setup Containments using a blank management pack fragment. To add these to an existing solution, you will need to
<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<TypeDefinitions>
<EntityTypes>
<RelationshipTypes>
<RelationshipType ID="Kofax.Capture.ApplicationContainsDatabases" Base="System!System.Containment" Abstract="false" Accessibility="Public">
<Source ID="Source" Type="Kofax.Capture.Application"/>
<Target ID="Target" Type="Kofax.Capture.Databases"/>
</RelationshipType>
<RelationshipType ID="Kofax.Capture.DatabasesContainsDatabase" Base="System!System.Containment" Abstract="false" Accessibility="Public">
<Source ID="Source" Type="Kofax.Capture.Databases"/>
<Target ID="Target" Type="MSL!Microsoft.SQLServer.Database"/>
</RelationshipType>
</RelationshipTypes>
</EntityTypes>
</TypeDefinitions>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="Kofax.Capture.ApplicationContainsDatabases">
<Name>Application Contains Databases</Name>
<Description></Description>
</DisplayString>
<DisplayString ElementID="Kofax.Capture.DatabasesContainsDatabase">
<Name>Application Contains Databases</Name>
<Description></Description>
</DisplayString>
</DisplayStrings>
</LanguagePack>
</LanguagePacks>
</ManagementPackFragment>
The above Shows the Kofax Application contains Databases, which in turn contains Database. The important bits are the Relationship Type, Source and Target IDs.
RelationshipType ID This is used when to refer to this relationship in any group discovery
Source This is the type of object you are containing in your group. i.e. a windows Computer, Database, Website, local disk etc.
Target This is the group that holds the objects i.e. Kofax.Databases.
Like other fragments, you need to have display strings for the relationships, but they just work as normal