Database Application Federation

Abstract
A database federation mechanism permits one or more applications external to the database to be registered. Applications so registered may be automatically invoked in response to database queries—where such invocation utilizes data from specific database entries.
Description

BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows, in flowchart form, a method in accordance with one embodiment of the invention.



FIG. 2 shows, in block diagram form, configuration management database objects in accordance with one embodiment of the invention.



FIG. 3 shows, in block diagram form, configuration management database objects in accordance with another embodiment of the invention.



FIG. 4 shows, in block diagram form, configuration management database objects in accordance with another embodiment of the invention.



FIGS. 5A and 5B show, in flowchart form, an external application federation method in accordance with one embodiment of the invention.





DETAILED DESCRIPTION

The following description is presented to enable any person skilled in the art to make and use the invention as claimed and is provided in the context of the particular examples discussed below, variations of which will be readily apparent to those skilled in the art. Accordingly, the claims appended hereto are not intended to be limited by the disclosed embodiments, but are to be accorded their widest scope consistent with the principles and features disclosed herein.


In the context of an object-oriented configuration management database, a federation mechanism in accordance with the invention uses one or more execution definitions for each product, application or execution module to be federated. One illustrative product in which the inventive concept has been embodied is the BMC Atrium™ CMDB configuration management database system. (BMC ATRIUM is a trademark of BMC Software, Inc. of Houston, Tex.) Each execution definition identifies a method of execution (e.g., command line, URL or web service), a mode of execution (e.g., interactive or stand-alone), zero or more invocation arguments, and the ability to specify data from a class of database entries, a specific database instance or a relationship associated with the instance.


Referring to FIG. 1, federation process 100 in accordance with the invention includes identifying the product, application or execution module that is to be federated (block 105). For example, it may be desired to associate a configuration item with an action request system so that the status of any help desk tickets (“action requests”) related to the configuration item may be determined or modified. The means (block 110) and mode (block 115) may then specified. Illustrative invocation means include command line, URL and web service. Illustrative invocation modes include interactive and stand-alone. In an interactive mode, the targeted application (i.e., the application specified in accordance with block 105) may return data to the configuration management database. In a stand-alone mode, the targeted application may simply be invoked with a specified command string and, thereafter, run independently of the configuration management database. Finally, the invocation command for the targeted application is specified (block 120). In one embodiment, the invocation command is a character string that is used to actually invoke or execute the targeted application (e.g., a command line or URL string).


In accordance with the invention, the invocation command may include zero or more parameters, some of which may be static (i.e., fixed at the time the command is specified) and some of which may be dynamic (i.e., obtained from a configuration item at the time of invocation). For example, if the command invocation string is: http://www.bmc.com/info/?name=$Name$, the variable $Name$ may be obtained from the configuration item associated with the command string. Thus, if the value of the configuration item's ‘Name’ attribute was ‘GreenMonster’, the value GreenMonster would be substituted into the invocation command at the time of execution to yield http://www.bmc.com/info/?name=‘GreenMonster’.


In one embodiment, an application may also be federated with a class of configuration items. If a federated application is to be invoked based on a class relationship, one or more attributes of the class may be filtered prior to performing the above-described parameter substitution and invocation operations. For example, if application A is to be invoked every time a configuration item of class ‘Monitor’ is retrieved, one or more attribute values in the retrieved instance may be filtered to determine whether the application is actually invoked. Thus, if only ABC brand monitors associated with computer systems in the XYZ workgroup should be processed by application A, the “BrandName” and “Workgroup” attribute values of the specific instance associated with the current operation are checked. If they match (i.e., have values equal to ABC and XYZ, respectively), the application will be automatically invoked. Conversely, if the specific instance's attribute values do not match, the application is not invoked. In another embodiment, one or more attribute values may be used to specify which of two or more possible command string substitutions to perform.


Referring to FIG. 2, system 200 in accordance with one embodiment of the invention includes configuration management database 205 and external application 210. Configuration management database 205 includes configuration item 215, federated interface object 220, federated product object 225, federated interface link object 230 and federated product link object 235. One of ordinary skill in the art will recognize that a configuration management database may include thousands or millions of configuration items, each of which may have zero or more relationships with other objects such as, for example, other configuration items. Furthermore, in accordance with the invention a single configuration item may be associated with more than one federated interface and a single federated product may be associated with a plurality of federated interface objects. (This latter case is useful when a single external application can be invoked for several different purposes.) Accordingly, system 200 presents a simplified structure for the purposes of describing the relevant details of the claimed invention and not as a representation of a fully functional implementation.


Referring to FIG. 3, system 300 in accordance with another embodiment of the invention includes configuration management database 305 and external application 210. Configuration management database 305 includes configuration item 215, federated interface objects 310, 315 and 320, federated product object 225, federated interface link object 325 and federated product link objects 330, 335 and 340. As shown, configuration item 215 is federated to product object 225 rather than to an interface object as shown in FIG. 2. In this configuration, configuration item 215 may cause external application 210 to be invoked through any of the interface objects (e.g., 310, 315 and 320) linked to product object 225 (e.g., through federated product link object 330, 335 and 340).


As previously noted, configuration item object 215 may represent substantially any resource—physical entities such as software, hardware, documentation, facilities and personnel as well as logical entities such as business processes or services. Further, in an object-oriented implementation, configuration item 215 may represent a specific instance of a resource (e.g., the laptop computer system assigned to person A) or a class of resources (e.g., all laptop computer systems in an organization). Federated interface object 220 includes the information necessary to invoke external application 210 for the particular configuration item to which it is linked (i.e., via federated interface link object 230). Table ZZ defines federated interface object 220 in accordance with one embodiment.









TABLE ZZ







Illustrative Federated Interface Object Attributes








Attribute
Description





AccessMethod
Indicates the manner in which the target application is to be



launched (e.g., a command line, a URL or a web service).


AccessMode
Indicates whether the target application is expected to return data



(i.e., is interactive) or is to run independently (i.e., as a stand-alone



application).


AccessString
The command line or URL string that is to be used to actually launch



the target application. This string may include zero or more fixed



parameters and zero or more variables, where variable values may



be obtained from the specific configuration item, an attribute on a



relationship to that specific item, or attributes of other configuration



items that are associated with the specific item through following



relationships between the items.


Result Field(s)
One or more fields used to accept return data from the target



application (if the access mode is interactive). Thus, result fields



permit the configuration management database to act as a conduit



from the target application to the user (e.g., another application) of



the configuration management database.


Security Field(s)
One or more fields that may be used to control which individuals (or



user groups) may access the target application.









Federated product object 225 includes the information necessary to identify the specific external application to be launched. Table YY defines federated product object 225 in accordance with one embodiment. Separating the information retained in federated interface 220 and federated product 225 objects, permits a single product (e.g., external application 210) to be invoked in a number of different ways (i.e., through multiple federated interface objects such as object 220) without duplicating much of the external product's information.









TABLE YY







Illustrative Federated Product Object Attributes










Attribute
Description







ProductCode
Unique identifier for the product.



Name
Generic (human readable) product name.










As shown in FIG. 2, configuration item 215 and federated interface object 220 are associated through federated interface link object 230. Similarly, federated interface object 220 and federated product object 225 are associated through federated product link object 235. In the parlance of object-oriented database technology, link objects 230 and 235 may be referred to as relationship objects or, more simply, relationships. Because a federated product (e.g., external product 210) might offer several types of federated data, each federated product object may be associated with a plurality of federated interface objects. Table XX defines federated interface link object 230 in accordance with one embodiment. Table WW defines federated product link object 235 in accordance with one embodiment.









TABLE XX







Illustrative Federated Interface Link Object Attributes








Attribute
Description





LinkMethod
Indicates whether the link (i.e., relationship object) is associated



with an instance of a configuration item object or a class of



configuration items.


Query Field(s)
One or more fields through which a user can identify attributes and



values on which to filter prior to invoking the associated external



application. This field is applies when the LinkMethod attribute



indicates the relationship is associated with a class object. Query



fields provide a means to filter out or block activation of an external



application when the associated configuration item instance's



attribute values do not match that specified in a query field. For



example, if the query field contained $SiteName$ != U.S., only those



configuration item instances whose ‘SiteName’ attribute value was



not ‘U.S.’ would cause the external application to be automatically



invoked.


Source Fields
Identifies the associated configuration item (class and/or instance).


Destination Fields
Identifies the associated federated interface object (class and/or



instance).
















TABLE WW







Illustrative Federated Product Link Object Attributes










Attribute
Description







Source Fields
One or more fields that identify the associated




external product object.



Destination
One or more fields that identify the associated



Fields
federated interface object (class and/or instance).










Because some federated applications do not store configuration item attributes that also exist in the configuration management database (e.g., configuration management database 205), it may not be possible to use attribute substitution to match a configuration item to federated data. In these cases, a foreign key may be used to “tie” a configuration management database's configuration item (an instance or class object) to information stored in an external application. As used herein, a foreign key is a unique identifier in the federated product/application that maps to or identifies a specific configuration item in the configuration management database. To accommodate these cases, a foreign key relationship may be used to form an association between a configuration item (an instance or class object) and a federated product—where the foreign key relationship includes the foreign key value that uniquely ties a configuration item to an external product.


Referring to FIG. 4, in one embodiment the foreign key relationship may be implemented through federated key link object 400. As shown, federated key link object 400 logically couples configuration item 215 and federated product object 225 (via source and destination field references, see Table W). In this way, the foreign key value (retained in federated key link object 400) may be substituted into the information in a federated interface object (e.g., the AccessString field) to permit each configuration item to uniquely identify an external product. Table W defines federated key link object 400 in accordance with one embodiment.









TABLE VV







Illustrative Federated Key Link Object Attributes








Attribute
Description





Key
The key value in the specified external product for



specified configuration items.


Source Fields
One or more fields to identify an associated



configuration item (instance or class).


Destination
One or more fields that identify the associated


Fields
external product.









In summary, a federation mechanism in accordance with the invention permits one or more applications external to the database to be registered. Applications so registered may be automatically invoked in response to database queries—where such invocation utilizes data from specific database entries or instances.


In general then, and as shown in FIG. 5A, federation operation 500 in accordance with the invention begins when a query is received by a federated database (block 505). Once received, the query is applied to the database (block 510) and a result is obtained (block 515). If the result is not associated with an external product in accordance with the invention (the “No” prong of block 520), the result is returned as in the prior art (block 525) and processing completes. If the result is associated with an external application in accordance with the invention (the “Yes” prong of block 520), a check is made to determine if the retrieved entity is federated to a class (block 530). If the result is not federated to a class of database entries (the “No” prong of block 530), processing continues at block 540. If the result is federated to a class of database entries (the “Yes” prong of block 530), one or more values associated with the retrieved entity are compared against a user-specified pattern as discussed above (block 535), where after one or more values from the returned entity are substituted into the entities associated invocation string such as the AccessString attribute of a federated interface object (block 540). For convenience, once instance values have been substituted into the invocation string, the resulting quantity will be referred to as a command string. It is significant that filter operations in accordance with block 535 may include any combination of values or attributes of the retrieved entity (e.g., through logical operations such as AND, OR and NOT operations)—including values integral to the retrieved entity or any of the entities parent objects (i.e., values obtained through inheritance). Following the acts of block 240, processing continues as shown in FIG. 5B.


Referring to FIG. 5B, following the acts of block 540 of FIG. 5A, the external application is invoked (block 545) and the command string is passed to it for execution (block 550). One of ordinary skill in the art will recognize that the acts of blocks 545 and 550 may often be combined into a single operation such as, for example, when an external application is invoked via a command line.


If the external application was not invoked as an interactive application (the “No” prong of block 555), the result is returned (block 565) where after database processing completes. In the non-interactive or stand-alone mode of operation, it will be recognized that the external application may continue to execute. If the external application was invoked as an interactive application (the “Yes” prong of block 555), results are received from the external application (block 560) and passed to the entity making the original database query such as, for example, another application (block 565).


By way of example, consider an object-oriented database that includes a class of ‘company’ objects (e.g., one entry for company ABC, one entry for company DEF and so forth), where one attribute of the company class is ‘StockSymbol’—the stock market symbol used to uniquely identify the company. In accordance with the above described registration method (see FIG. 1), a federated product object can be instantiated that identifies the target external application (e.g., a web browser application). In addition, a federated interface object can be instantiated that specifies the means of invocation as ‘URL’ (e.g., via the AccessMehtod attribute), the mode of activation as ‘stand-alone’ (e.g., via the AccessMode attribute) and the invocation string as ‘http://www.StockTickerInfo.com/?symbol=$StockSymbol$’. Finally, the relationships functionally coupling the company object class with the federated interface and product objects can be created. In accordance with federation operation 500, when any instance of a company object is retrieved (e.g., the instance associated with company ABC), the value of that instance's StockSymbol attribute retrieved from the instance itself will be substituted into the associated federated interface object's invocation or access string to create an application command string (e.g., http://www.StockTickerInfo.com/?symbol=ABC). The web browser application identified in the federated product object is then invoked (through, for example, known application programming interface or scripting techniques) and the command sting is passed to the browser for interpretation or execution. Finally, the browser application will display the company's associated stock market information (e.g., share price over a specified time period).


Various changes in the components as well as in the details of the illustrated operational methods are possible without departing from the scope of the following claims. For example, while the illustrative embodiments have been described in terms of a configuration management database using object-oriented technology, the claimed invention is not so limited. Specifically, the application registration and invocation techniques described herein may be used in conjunction with substantially any database (e.g., relational databases). In addition, illustrative objects (e.g., federated interface object 220, federated product object 225, federated interface link object 230, federated product link object 235 and federated key link object 400) have been described in terms of a number of specific attributes. It will be understood, however, that such objects may include more attributes than listed in tables ZZ-W (e.g., class and instance identifiers). Further, some of the attributes listed in the above tables may be inherited from parent objects rather than being intrinsic to the federation objects themselves (e.g., source and destination references in the link objects 230 and 235). Also, in the above description federation has been described as it is applied to configuration items. However, this limitation is not required. For example, in an object-oriented environment as described herein relationships are themselves objects and, as such, may be federated just like any other item. That is, a relationship may be linked to an external product via a link object.


It will be further recognized that acts in accordance with FIG. 1 may be performed by a programmable control device executing instructions organized into one or more program modules. A programmable control device may be a single computer processor, a special purpose processor (e.g., a digital signal processor, “DSP”), a plurality of processors coupled by a communications link or a custom designed state machine. Custom designed state machines may be embodied in a hardware device such as an integrated circuit including, but not limited to, application specific integrated circuits (“ASICs”) or field programmable gate array (“FPGAs”). Storage devices suitable for tangibly embodying program instructions include, but are not limited to: magnetic disks (fixed, floppy, and removable) and tape; optical media such as CD-ROMs and digital video disks (“DVDs”); and semiconductor memory devices such as Electrically Programmable Read-Only Memory (“EPROM”), Electrically Erasable Programmable Read-Only Memory (“EEPROM”), Programmable Gate Arrays and flash devices.

Claims
  • 1. A database registration method, comprising: identifying an entry in a database;identifying an application external to the database; andassociating a command string with the entry and the application external to the database, the command string configured to cause the application external to the database to be automatically executed, the command string further configured to have information from the entry substituted therein prior to being used to cause the application external to the database to be automatically executed.
  • 2. The database registration method of claim 1, wherein the database comprises a relational database.
  • 3. The database registration method of claim 1, wherein the entry comprises a relationship item.
  • 4. The database registration method of claim 1, wherein the database comprises a configuration management database and the entry comprises a configuration item.
  • 5. The database registration method of claim 1, further comprising associating a foreign key with the entry and the application external to the database, wherein the foreign key is substituted into the command string prior to using the command string to cause the application external to the database to be executed.
  • 6. A program storage device, readable by a programmable control device, comprising instructions stored on the program storage device for causing the programmable control device to perform the method of claim 1.
  • 7. A method to use a federated database, comprising: receiving a query for a database;retrieving an entry from the database in accordance with the query;identifying an external application associated with the entry;identifying an invocation string associated with the entry;substituting one or more values from the entry into the invocation string; andcausing the external application to automatically execute based on the invocation string including the one ore more values substituted therein.
  • 8. The method of claim 7, wherein the database comprises a relational database.
  • 9. The database registration method of claim 7, wherein the entry comprises a relationship item.
  • 10. The method of claim 7, wherein the database comprises a configuration management database and the entry comprises a configuration item object.
  • 11. The method of claim 7, further comprising determining that the identified external application is associated with a class of database entries;comparing one or more values associated with the entry with a specified filter pattern; andperforming the act of causing the external application to automatically execute only if the act of comparing identifies a match between the one or more values associated with the entry and the specified filter pattern,wherein the acts of determining and comparing are performed after the act of substituting.
  • 12. The method of claim 7, further comprising receiving data from the external application.
  • 13. The method of claim 12, further comprising providing the received data to another application.
  • 14. The method of claim 12, further comprising using the received data to modify the retrieved entry.
  • 15. The method of claim 7, further comprising: identifying a foreign key value associated with the entry before the act of substituting; andsubstituting the foreign key value into the invocation string prior to the act of causing the external application to automatically execute.
  • 16. A program storage device, readable by a programmable control device, comprising instructions stored on the program storage device for causing the programmable control device to perform the method of claim 7.
  • 17. A system for assisting a user with configuration management, comprising: a configuration management database having a plurality of configuration items;an application external to the configuration management database;means for associating an invocation string with a first configuration item and the application external to the configuration management database;means for obtaining information from the first configuration item;means for inserting the information from the first configuration item into the invocation string to create an application execution command; andmeans for causing the application external to the configuration management database to execute based on the application execution command.
  • 18. The system of claim 17, wherein the configuration management database comprises a relational configuration management database.
  • 19. The system of claim 18, wherein the means for associating comprises: an interface object for retaining the invocation string;an application object for identifying the application external to the configuration management database;a first relationship object to functionally couple the configuration item and the interface object; anda second relationship object to functionally couple the interface object with the application object.
  • 20. The system of claim 17 further comprising a means for associating a foreign key with the first configuration item and the application external to the configuration management database.
  • 21. The system of claim 20, wherein the means for inserting further comprises means for inserting the foreign key into the invocation string.
  • 22. The system of claim 17, further comprising a means for receiving information from the application external to the configuration management database.
  • 23. The system of claim 22, further comprising a means for modifying information associated with the configuration item based on the received information.
  • 24. The system of claim 22, further comprising a means for updating information associated with a second configuration item stored in the configuration management database based on the received information.
Parent Case Info

This application claims priority to U.S. provisional patent application 60/745,869, entitled “CMDB Federation,” filed 28 Apr. 2006 and which is hereby incorporated by reference.

Provisional Applications (1)
Number Date Country
60745869 Apr 2006 US