Creating new objects and relationships through custom server extensions

You can create new objects and relationships through custom server extensions.

To create new objects and relationships, call the addExtendedResult() method on the result object handed to the script. The addExtendedResult() method call takes a ModelObject as the parameter. It can be called repeatedly if you want to create more than one new object. At least one of the naming rules, defined by the Common Data Model, must be set on any new ModelObjects that are added to the ExtendedResult for storage. Failure to do so causes the sensor to fail with a Storage Error because the TADDM reconciliation engine was unable to generate a Globally Unique Identifier (GUID) for the given ModelObject. For more information, see the Common Data Model documentation, located in the dist/sdk/doc/model/CDMWebsite.zip file of your TADDM installation DVD.

Custom server extensions are started when the CustomComputerSystemSensor or CustomAppServerSensor runs. If the sensor does not run, the custom server extension does not start, and the new objects and relationships are not created.