US8635253B2 - Decorated model architecture for efficient model-driven application development - Google Patents
Decorated model architecture for efficient model-driven application development Download PDFInfo
- Publication number
- US8635253B2 US8635253B2 US13/605,217 US201213605217A US8635253B2 US 8635253 B2 US8635253 B2 US 8635253B2 US 201213605217 A US201213605217 A US 201213605217A US 8635253 B2 US8635253 B2 US 8635253B2
- Authority
- US
- United States
- Prior art keywords
- model
- decoration
- decoration model
- thread
- principal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/10—Requirements analysis; Specification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
Definitions
- the present invention relates to model-driven application development.
- the present invention provides a decorated model architecture for efficient model-driven application development that allows for a model to be changed in some instances without need for regenerating application resources.
- a method for implementing a model-driven architecture, the method including defining a principal model having a plurality of classes, references, attributes, and associations between any of the classes, where the model is configured to facilitate the automatic generation of at least one resource for use by a computer-executable application, and where a change to the principal model subsequent to performing the automatic generation requires that the automatic generation be performed again in order to effect the change for use by the application, defining a decoration model having a class, reference, and attribute for any corresponding one of the primary model classes, references, and attributes, where a change to the decoration model subsequent to performing the automatic generation does not require that the automatic generation be performed again in order to effect the change for use by the application, mapping the decoration model to the principal model, and storing both of the models on a computer-readable medium.
- the method further includes defining in the principal model a class representing a package of any of the classes, references, and attributes of the decoration model.
- a method for using a decoration model in an application environment including providing a computer-executable application with access to resources generated using a principal model, instantiating a decoration model associated with the principal model for use by the application, and providing the application with access to an object of the decoration model responsive to a request by the application to access an object of the principal model where the decoration model object corresponds to the principal model object.
- the method further includes receiving a call from the application to a method defined in the principal model object, and passing the call from the decoration model object to the principal model object.
- the method further includes receiving a call from the application to a method defined in the decoration model object, and servicing the call at the decoration model object.
- the method further includes making the instantiated decoration model globally accessible to a plurality of the applications, for each request by any of the applications to access an object associated with either the principal model or the decoration model creating a new thread to handle the request, assigning the decoration model to a thread-local variable in the new thread, and servicing any thread-internal code function calls to access the decoration model object via the thread-local variable of its thread, making a change to the decoration model available to new threads by starting a new thread that reads the changed decoration model, instantiating the changed decoration model, and deserializing the changed decoration model into its own thread-local variable, and replacing the globally accessible decoration model with the changed decoration model while any of the applications are executed.
- the method further includes forcing any new incoming requests from the applications to wait until the globally accessible decoration model is replaced by the changed model, and assigning the changed decoration model to thread-local variables of the new requests after the changed decoration model is instantiated.
- the method further includes checking for pointer equality between any of the thread-local variables and the globally accessible decoration model during the post-processing of any of the requests, and displaying a message if the pointers are not the same.
- a system for implementing a model-driven architecture, the system including a model builder configured to facilitate the definition of a principal model having a plurality of classes, references, attributes, and associations between any of the classes, where the model is configured to facilitate the automatic generation of at least one resource for use by a computer-executable application, and where a change to the principal model subsequent to performing the automatic generation requires that the automatic generation be performed again in order to effect the change for use by the application, a decoration model having a class, reference, and attribute for any corresponding one of the primary model classes, references, and attributes, where a change to the decoration model subsequent to performing the automatic generation does not require that the automatic generation be performed again in order to effect the change for use by the application, and a mapping of the decoration model to the principal model, and means for storing both of the models on a computer-readable medium.
- model builder is configured to facilitate the definition in the principal model a class representing a package of any of the classes, references, and attributes of the decoration model.
- a system for using a decoration model in an application environment, the system including a principal model stored on a computer-readable medium, a decoration model stored on a computer-readable medium, and a computer configured to host a computer-executable application with access to resources generated using the principal model, instantiate the decoration model associated with the principal model for use by the application, and provide the application with access to an object of the decoration model responsive to a request by the application to access an object of the principal model where the decoration model object corresponds to the principal model object.
- the computer is configured to receive a call from the application to a system defined in the principal model object, and pass the call from the decoration model object to the principal model object.
- the computer is configured to receive a call from the application to a system defined in the decoration model object, and service the call at the decoration model object.
- the computer is configured to make the instantiated decoration model globally accessible to a plurality of the applications, for each request by any of the applications to access an object associated with either the principal model or the decoration model create a new thread to handle the request, assign the decoration model to a thread-local variable in the new thread, and service any thread-internal code function calls to access the decoration model object via the thread-local variable of its thread, make a change to the decoration model available to new threads by starting a new thread that reads the changed decoration model, instantiating the changed decoration model, and deserializing the changed decoration model into its own thread-local variable, and replace the globally accessible decoration model with the changed decoration model while any of the applications are executed.
- the computer is configured to force any new incoming requests from the applications to wait until the globally accessible decoration model is replaced by the changed model, and assign the changed decoration model to thread-local variables of the new requests after the changed decoration model is instantiated.
- the computer is configured to check for pointer equality between any of the thread-local variables and the globally accessible decoration model during the post-processing of any of the requests, and display a message if the pointers are not the same.
- FIG. 1 is a simplified conceptual illustration of system for model-driven application development, constructed and operative in accordance with an embodiment of the present invention
- FIG. 2 which is a simplified illustration of an exemplary implementation of model 100 of FIG. 1 , constructed and operative in accordance with an embodiment of the present invention
- FIG. 3 which is a simplified illustration of an exemplary implementation of decoration model 106 of FIG. 1 , constructed and operative in accordance with an embodiment of the present invention
- FIG. 4 is a simplified flowchart of an exemplary method of using a decoration model in an application environment, operative in accordance with an embodiment of the present invention.
- FIG. 5 is a simplified flowchart of an exemplary method of hot-deploying decoration model changes, operative in accordance with an embodiment of the present invention.
- Model 100 is typically constructed using a model builder 102 employing any known modeling technology, such as the Unified Modeling Language (UML), that supports classes, such as of an enterprise IT infrastructure or other system, and associations between the classes.
- Model 100 is configured to facilitate the automatic generation of one or more resources, such as by a resource generator 110 , for use by one or more computer-executable applications.
- UML Unified Modeling Language
- Model 100 is divided into a principal model 104 , a decoration model 106 , and a model map 108 that maps between principal model 104 and decoration model 106 .
- Principal model 104 is configured to include anything that, when added to, deleted from, or modified within principal model 104 subsequent to automatically generating the resources, would again require the automatic generation of the resources in order to effect the change for use by an application.
- decoration model 106 is configured to include anything that, when added to, deleted from, or modified within decoration model 106 subsequent to automatically generating the resources, would not require the automatic generation of the resources in order to effect the change for use by an application.
- Model 100 is preferably stored in a model storage 112 , which may be computer memory, magnetic storage, or any other suitable information storage medium. Model 100 may be stored in storage 112 in any suitable format, such as in a relational database (RDB) or object-oriented database (OODB). Any of the elements shown in FIG. 1 are preferably executed by or otherwise accessible to a computer 114 .
- a model storage 112 may be computer memory, magnetic storage, or any other suitable information storage medium.
- Model 100 may be stored in storage 112 in any suitable format, such as in a relational database (RDB) or object-oriented database (OODB). Any of the elements shown in FIG. 1 are preferably executed by or otherwise accessible to a computer 114 .
- RDB relational database
- OODB object-oriented database
- Principal model 104 preferably includes elements for storing decoration model 106 , such as a via “DecorationModel” class representing a package of the items in decoration model 106 . There is preferably one model partition per package, and each decoration model is preferably serialized, such as an XML document.
- FIG. 2 is a simplified illustration of an exemplary implementation of model 100 of FIG. 1 , constructed and operative in accordance with an embodiment of the present invention.
- a principal model 200 is shown having various modeled items.
- a corresponding item is created in a decoration model 202 for one or more of the items in principal model 200 .
- One or more items may then be attached to any of the items in decoration model 202 , rather than in principal model 200 , where their addition to, modification in, and/or subsequent deletion from decoration model 202 will not require that resources that were previously automatically generated using principal model 200 be subsequently regenerated due to the addition, modification, and/or deletion.
- Direct association links are preferably used for navigating from items in decoration model 202 to items in principal model 200
- a model map 206 is preferably used for navigating in the opposite direction.
- FIG. 3 is a simplified illustration of an exemplary implementation of decoration model 106 of FIG. 1 , constructed and operative in accordance with an embodiment of the present invention.
- a decoration model is shown for aspects of a GUI interface in which classes and associations/attributes are decorated by detailed GUI presentation definitions, such as where there is one per user role, application/service-level constraints, and analysis logic definitions.
- DPackage and DPackageGuiDef are not shown.
- DClass and DStructuralFeature are shown having been generated for each corresponding EClass/EStructuralFeature of a corresponding principal model.
- Instantiation of various concepts may be optional in a given decoration model, such as where a DClass has no DClassGuiDef for a certain UserRole and will therefore be invisible in the GUI layer for a user with that role.
- Items in the decoration model of FIG. 3 may be created, edited and deleted without affecting a related principal model and without requiring regeneration of resources defined by the principal model. For example, a user may set a different display name for a class or attribute in the decoration model, although DClass and DStructuralFeature items in the decoration model that correspond to EClass/EStructuralFeature items in the principal model ought not be deleted.
- Model items that generally have, and should have, impact on resources that are generated based on a model should be included in a principal model, whereas model items that generally do not, or should not, have impact on resources that are generated based on a model should be included in a decoration model.
- Model builder 102 FIG. 1
- These guidelines may be understood by way of example with regard to the persistence layer of an application environment in which database schema and an O/R mapping are generated using a model.
- model items that do not impact the generation of these resources include annotations that control display and business logic, and thus these items may be included within a decoration model.
- Model items that do impact the generation of these resources include classes, references, attributes, and annotations that control aspects of the persistence layer, such as indexes.
- Some model items may be included within a decoration model although they would otherwise impact resource generation, such as classes, references and attributes whose instances or values can be derived from other data.
- the attribute Person.fullName can be derived from Person.firstName and Person.lastName
- the derived attribute may be included within a principal model, such as where the attribute values for Person.fullName are meant to be stored in a database.
- Person.fullName The responsibility to insert and update the values for Person.fullName would lie with the applications that populate Person data. Although including Person.fullName in a principal model may be convenient for authors of reporting applications, doing so results in data redundancy, performance costs owing to insertion time and table size, as well as the need to regenerate the schema and upgrade instances when the name or type of Person.fullName is changed. Alternatively, by placing Person.fullName in a decoration model, the responsibility for calculating the values for Person.fullName lies with applications that retrieve Person data.
- FIG. 4 is a simplified flowchart of an exemplary method of using a decoration model in an application environment, operative in accordance with an embodiment of the present invention.
- the decoration model is read from where it is stored and is instantiated for use by one or more computer-executable applications (steps 402 , 404 , 406 ), such as may be hosted by computer 114 .
- step 408 When an application wishes to access an instance “EObject” of an item of the principal model (step 408 ), if the item has a corresponding item in the decoration model (step 410 ), the application accesses the corresponding instance “DObject” of the decoration model (step 414 ) instead of the “EObject” (step 412 ).
- EObject Calls to methods that are defined in EObject (step 416 ) are passed through to EObject (step 418 ), while calls to methods that are defined in DObject are handled by DObject (step 420 ). For example, getRepresentationQ:String will return a representation based on which attribute is defined as “representation attribute” of the corresponding DObject's class in the decoration model.
- FIG. 5 is a simplified flowchart of an exemplary method of hot-deploying decoration model changes, operative in accordance with an embodiment of the present invention.
- the decoration model is read from where it is stored and is instantiated for use by one or more computer-executable applications (step 502 ), such as may be hosted by computer 114 .
- the instantiated decoration model is preferably made globally accessible (step 504 ). For each request by an application to access an object associated with either the principal model or the decoration model (step 506 ), a new thread is preferably created to handle the request (step 508 ).
- the decoration model is preferably assigned to a thread-local variable in the new thread (step 510 ), and all thread-internal code function calls to access the decoration model do so via the thread-local variable of its thread (step 512 ).
- Changes may be made to the decoration model (step 514 ) while applications that use the model are executed.
- the decoration model changes may be committed without impacting currently-running applications, since the previously-instantiated decoration model was globally accessible and was reused by all request threads prior to the changes being made.
- the changed decoration model may be made available to new threads by starting a new thread that reads the changed decoration model, instantiates the changed decoration model, and deserializes it into its own thread-local variable (step 516 ). This may be done without affecting other currently-running threads.
- the globally accessible decoration model may then be replaced by the changed model (step 518 ). This is preferably done using synchronization and isolation techniques, where new incoming requests are forced to wait until the globally accessible decoration model is replaced. Thereafter, all new requests will have the new decoration model assigned to their thread-local variable. Older requests that are still running using the old decoration model need not be disrupted, and may return and present results according to the older decoration model in their thread-local variable. Users may be warned when a model change occurs by checking for pointer equality between a thread-local variable and the globally accessible decoration model during the post-processing of a request. If the pointers are not the same, a warning may be displayed recommending that the user resubmit the request. If the server hosting the applications is restarted at any point after the decoration model is changed, the changed decoration model will preferably be in effect for all new and restarted applications.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
A computer-executable application is provided with access to resources generated using a principal model. A decoration model associated with the principal model is instantiated for use by the application. The application is provided with access to an object of the decoration model responsive to a request by the application to access an object of the principal model. The decoration model object corresponds to the principal model object.
Description
This application is a continuation of and claims priority to and claims the benefit of U.S. patent application Ser. No. 13/286,655, titled “DECORATED MODEL ARCHITECTURE FOR EFFICIENT MODEL-DRIVEN APPLICATION DEVELOPMENT,” which was filed in the U.S. Patent and Trademark Office on Nov. 1, 2011, and which has a current status of “Allowed;” and this application claims priority to and claims the benefit of U.S. patent application Ser. No. 11/945,015, titled “DECORATED MODEL ARCHITECTURE FOR EFFICIENT MODEL-DRIVEN APPLICATION DEVELOPMENT,” which was filed in the U.S. Patent and Trademark Office on Nov. 26, 2007, and which issued as U.S. Pat. No. 8,095,570 on Jan. 10, 2012; both of which are incorporated herein by reference in their entirety. This application is further related to U.S. patent application Ser. No. 11/945,046, titled “MODEL AUGMENTATION IN A MODEL-DRIVEN APPLICATION DEVELOPMENT ENVIRONMENT,” which was filed in the U.S. Patent and Trademark Office on Nov. 26, 2007, and which is also incorporated herein by reference in its entirety.
The present invention relates to model-driven application development.
With the advent of modeling methodologies such as the Unified Modeling Language (UML), developers of computer-based applications have been able to create system models and then employ tools that use the models to automatically generate application resources such as application programming interface (API) software for creating, accessing and modifying instances of model classes, as well as aspects of the persistence layer of an application, such as database structures. Unfortunately, after generating these resources using a model, any changes to the model requires that the resources be generated once again in order to effect the changes within the computer-based application.
The present invention provides a decorated model architecture for efficient model-driven application development that allows for a model to be changed in some instances without need for regenerating application resources.
In one aspect of the present invention a method is provided for implementing a model-driven architecture, the method including defining a principal model having a plurality of classes, references, attributes, and associations between any of the classes, where the model is configured to facilitate the automatic generation of at least one resource for use by a computer-executable application, and where a change to the principal model subsequent to performing the automatic generation requires that the automatic generation be performed again in order to effect the change for use by the application, defining a decoration model having a class, reference, and attribute for any corresponding one of the primary model classes, references, and attributes, where a change to the decoration model subsequent to performing the automatic generation does not require that the automatic generation be performed again in order to effect the change for use by the application, mapping the decoration model to the principal model, and storing both of the models on a computer-readable medium.
In another aspect of the present invention the method further includes defining in the principal model a class representing a package of any of the classes, references, and attributes of the decoration model.
In another aspect of the present invention a method is provided for using a decoration model in an application environment, the method including providing a computer-executable application with access to resources generated using a principal model, instantiating a decoration model associated with the principal model for use by the application, and providing the application with access to an object of the decoration model responsive to a request by the application to access an object of the principal model where the decoration model object corresponds to the principal model object.
In another aspect of the present invention the method further includes receiving a call from the application to a method defined in the principal model object, and passing the call from the decoration model object to the principal model object.
In another aspect of the present invention the method further includes receiving a call from the application to a method defined in the decoration model object, and servicing the call at the decoration model object.
In another aspect of the present invention the method further includes making the instantiated decoration model globally accessible to a plurality of the applications, for each request by any of the applications to access an object associated with either the principal model or the decoration model creating a new thread to handle the request, assigning the decoration model to a thread-local variable in the new thread, and servicing any thread-internal code function calls to access the decoration model object via the thread-local variable of its thread, making a change to the decoration model available to new threads by starting a new thread that reads the changed decoration model, instantiating the changed decoration model, and deserializing the changed decoration model into its own thread-local variable, and replacing the globally accessible decoration model with the changed decoration model while any of the applications are executed.
In another aspect of the present invention the method further includes forcing any new incoming requests from the applications to wait until the globally accessible decoration model is replaced by the changed model, and assigning the changed decoration model to thread-local variables of the new requests after the changed decoration model is instantiated.
In another aspect of the present invention the method further includes checking for pointer equality between any of the thread-local variables and the globally accessible decoration model during the post-processing of any of the requests, and displaying a message if the pointers are not the same.
In another aspect of the present invention a system is provided for implementing a model-driven architecture, the system including a model builder configured to facilitate the definition of a principal model having a plurality of classes, references, attributes, and associations between any of the classes, where the model is configured to facilitate the automatic generation of at least one resource for use by a computer-executable application, and where a change to the principal model subsequent to performing the automatic generation requires that the automatic generation be performed again in order to effect the change for use by the application, a decoration model having a class, reference, and attribute for any corresponding one of the primary model classes, references, and attributes, where a change to the decoration model subsequent to performing the automatic generation does not require that the automatic generation be performed again in order to effect the change for use by the application, and a mapping of the decoration model to the principal model, and means for storing both of the models on a computer-readable medium.
In another aspect of the present invention the model builder is configured to facilitate the definition in the principal model a class representing a package of any of the classes, references, and attributes of the decoration model.
In another aspect of the present invention a system is provided for using a decoration model in an application environment, the system including a principal model stored on a computer-readable medium, a decoration model stored on a computer-readable medium, and a computer configured to host a computer-executable application with access to resources generated using the principal model, instantiate the decoration model associated with the principal model for use by the application, and provide the application with access to an object of the decoration model responsive to a request by the application to access an object of the principal model where the decoration model object corresponds to the principal model object.
In another aspect of the present invention the computer is configured to receive a call from the application to a system defined in the principal model object, and pass the call from the decoration model object to the principal model object.
In another aspect of the present invention the computer is configured to receive a call from the application to a system defined in the decoration model object, and service the call at the decoration model object.
In another aspect of the present invention the computer is configured to make the instantiated decoration model globally accessible to a plurality of the applications, for each request by any of the applications to access an object associated with either the principal model or the decoration model create a new thread to handle the request, assign the decoration model to a thread-local variable in the new thread, and service any thread-internal code function calls to access the decoration model object via the thread-local variable of its thread, make a change to the decoration model available to new threads by starting a new thread that reads the changed decoration model, instantiating the changed decoration model, and deserializing the changed decoration model into its own thread-local variable, and replace the globally accessible decoration model with the changed decoration model while any of the applications are executed.
In another aspect of the present invention the computer is configured to force any new incoming requests from the applications to wait until the globally accessible decoration model is replaced by the changed model, and assign the changed decoration model to thread-local variables of the new requests after the changed decoration model is instantiated.
In another aspect of the present invention the computer is configured to check for pointer equality between any of the thread-local variables and the globally accessible decoration model during the post-processing of any of the requests, and display a message if the pointers are not the same.
The present invention will be understood and appreciated more fully from the following detailed description taken in conjunction with the appended drawings in which:
Reference is now made to FIG. 1 which is a simplified conceptual illustration of system for model-driven application development, constructed and operative in accordance with an embodiment of the present invention. In the system of FIG. 1 , a model, generally designated 100 and bounded by dashed lines, is shown. Model 100 is typically constructed using a model builder 102 employing any known modeling technology, such as the Unified Modeling Language (UML), that supports classes, such as of an enterprise IT infrastructure or other system, and associations between the classes. Model 100 is configured to facilitate the automatic generation of one or more resources, such as by a resource generator 110, for use by one or more computer-executable applications. Such resources may be associated with what is referred to in modeling as the persistence layer, which includes schema elements including tables, columns, foreign keys, and indexes, or may be associated with the API, as is known in the art. Model 100 is divided into a principal model 104, a decoration model 106, and a model map 108 that maps between principal model 104 and decoration model 106. Principal model 104 is configured to include anything that, when added to, deleted from, or modified within principal model 104 subsequent to automatically generating the resources, would again require the automatic generation of the resources in order to effect the change for use by an application. Conversely, decoration model 106 is configured to include anything that, when added to, deleted from, or modified within decoration model 106 subsequent to automatically generating the resources, would not require the automatic generation of the resources in order to effect the change for use by an application.
Reference is now made to FIG. 2 , which is a simplified illustration of an exemplary implementation of model 100 of FIG. 1 , constructed and operative in accordance with an embodiment of the present invention. In FIG. 2 , a principal model 200 is shown having various modeled items. A corresponding item is created in a decoration model 202 for one or more of the items in principal model 200. One or more items may then be attached to any of the items in decoration model 202, rather than in principal model 200, where their addition to, modification in, and/or subsequent deletion from decoration model 202 will not require that resources that were previously automatically generated using principal model 200 be subsequently regenerated due to the addition, modification, and/or deletion. Direct association links are preferably used for navigating from items in decoration model 202 to items in principal model 200, whereas a model map 206 is preferably used for navigating in the opposite direction.
Reference is now made to FIG. 3 , which is a simplified illustration of an exemplary implementation of decoration model 106 of FIG. 1 , constructed and operative in accordance with an embodiment of the present invention. In FIG. 3 a decoration model is shown for aspects of a GUI interface in which classes and associations/attributes are decorated by detailed GUI presentation definitions, such as where there is one per user role, application/service-level constraints, and analysis logic definitions. For the sake of clarity, DPackage and DPackageGuiDef are not shown. DClass and DStructuralFeature are shown having been generated for each corresponding EClass/EStructuralFeature of a corresponding principal model. Instantiation of various concepts may be optional in a given decoration model, such as where a DClass has no DClassGuiDef for a certain UserRole and will therefore be invisible in the GUI layer for a user with that role.
Items in the decoration model of FIG. 3 may be created, edited and deleted without affecting a related principal model and without requiring regeneration of resources defined by the principal model. For example, a user may set a different display name for a class or attribute in the decoration model, although DClass and DStructuralFeature items in the decoration model that correspond to EClass/EStructuralFeature items in the principal model ought not be deleted.
The following guidelines may be employed when deciding what model items should be included in a principal model and what model items should be included in a decoration model. Model items that generally have, and should have, impact on resources that are generated based on a model should be included in a principal model, whereas model items that generally do not, or should not, have impact on resources that are generated based on a model should be included in a decoration model. Model builder 102 (FIG. 1 ) may be configured to recognize model items that do not impact generated resources and automatically place such items into a decoration model. These guidelines may be understood by way of example with regard to the persistence layer of an application environment in which database schema and an O/R mapping are generated using a model. In this example, model items that do not impact the generation of these resources include annotations that control display and business logic, and thus these items may be included within a decoration model. Model items that do impact the generation of these resources include classes, references, attributes, and annotations that control aspects of the persistence layer, such as indexes. Some model items may be included within a decoration model although they would otherwise impact resource generation, such as classes, references and attributes whose instances or values can be derived from other data. Thus, for example, where the attribute Person.fullName can be derived from Person.firstName and Person.lastName, the derived attribute may be included within a principal model, such as where the attribute values for Person.fullName are meant to be stored in a database. The responsibility to insert and update the values for Person.fullName would lie with the applications that populate Person data. Although including Person.fullName in a principal model may be convenient for authors of reporting applications, doing so results in data redundancy, performance costs owing to insertion time and table size, as well as the need to regenerate the schema and upgrade instances when the name or type of Person.fullName is changed. Alternatively, by placing Person.fullName in a decoration model, the responsibility for calculating the values for Person.fullName lies with applications that retrieve Person data.
Reference is now made to FIG. 4 , which is a simplified flowchart of an exemplary method of using a decoration model in an application environment, operative in accordance with an embodiment of the present invention. In the method of FIG. 4 , once model 100 of FIG. 1 has been prepared, and its principal model used to generate resources as described hereinabove, the decoration model is read from where it is stored and is instantiated for use by one or more computer-executable applications ( steps 402, 404, 406), such as may be hosted by computer 114. When an application wishes to access an instance “EObject” of an item of the principal model (step 408), if the item has a corresponding item in the decoration model (step 410), the application accesses the corresponding instance “DObject” of the decoration model (step 414) instead of the “EObject” (step 412). Calls to methods that are defined in EObject (step 416) are passed through to EObject (step 418), while calls to methods that are defined in DObject are handled by DObject (step 420). For example, getRepresentationQ:String will return a representation based on which attribute is defined as “representation attribute” of the corresponding DObject's class in the decoration model.
Reference is now made to FIG. 5 , which is a simplified flowchart of an exemplary method of hot-deploying decoration model changes, operative in accordance with an embodiment of the present invention. In the method of FIG. 5 , once model 100 of FIG. 1 has been prepared, and its principal model has been used to generate resources as described hereinabove, the decoration model is read from where it is stored and is instantiated for use by one or more computer-executable applications (step 502), such as may be hosted by computer 114. The instantiated decoration model is preferably made globally accessible (step 504). For each request by an application to access an object associated with either the principal model or the decoration model (step 506), a new thread is preferably created to handle the request (step 508). The decoration model is preferably assigned to a thread-local variable in the new thread (step 510), and all thread-internal code function calls to access the decoration model do so via the thread-local variable of its thread (step 512). Changes may be made to the decoration model (step 514) while applications that use the model are executed. The decoration model changes may be committed without impacting currently-running applications, since the previously-instantiated decoration model was globally accessible and was reused by all request threads prior to the changes being made. The changed decoration model may be made available to new threads by starting a new thread that reads the changed decoration model, instantiates the changed decoration model, and deserializes it into its own thread-local variable (step 516). This may be done without affecting other currently-running threads. The globally accessible decoration model may then be replaced by the changed model (step 518). This is preferably done using synchronization and isolation techniques, where new incoming requests are forced to wait until the globally accessible decoration model is replaced. Thereafter, all new requests will have the new decoration model assigned to their thread-local variable. Older requests that are still running using the old decoration model need not be disrupted, and may return and present results according to the older decoration model in their thread-local variable. Users may be warned when a model change occurs by checking for pointer equality between a thread-local variable and the globally accessible decoration model during the post-processing of a request. If the pointers are not the same, a warning may be displayed recommending that the user resubmit the request. If the server hosting the applications is restarted at any point after the decoration model is changed, the changed decoration model will preferably be in effect for all new and restarted applications.
Any of the elements and steps described hereinabove are preferably executed by or otherwise accessible to computer 114 (FIG. 1 ) having been configured for such purpose.
It is appreciated that one or more of the steps of any of the methods described herein may be omitted or carried out in a different order than that shown, without departing from the true spirit and scope of the invention.
While the methods and apparatus disclosed herein may or may not have been described with reference to specific computer hardware or software, it is appreciated that the methods and apparatus described herein may be readily implemented in computer hardware or software using conventional techniques.
While the present invention has been described with reference to one or more specific embodiments, the description is intended to be illustrative of the invention as a whole and is not to be construed as limiting the invention to the embodiments shown. It is appreciated that various modifications may occur to those skilled in the art that, while not specifically shown herein, are nevertheless within the true spirit and scope of the invention.
Claims (18)
1. A method for using a decoration model in an application environment, the method comprising:
providing a computer-executable application with access to resources generated using a principal model;
instantiating a decoration model associated with the principal model for use by the application; and
providing the application with access to an object of the decoration model responsive to a request by the application to access an object of the principal model where the decoration model object corresponds to the principal model object.
2. The method according to claim 1 , further comprising:
passing a call from the application that references a method defined in the principal model object from the decoration model object to the principal model object.
3. The method according to claim 1 , further comprising:
receiving a call from the application to a method defined in the decoration model object; and
servicing the call at the decoration model object.
4. The method according to claim 1 , further comprising:
making the instantiated decoration model globally accessible to a plurality of applications;
for each request by any of the applications to access an object associated with either the principal model or the decoration model:
creating a new thread to handle the request;
assigning the decoration model to a thread-local variable in the new thread; and
servicing any thread-internal code function calls to access the decoration model object via the thread-local variable of its thread; and
making a change to the decoration model available to new threads by starting a new thread that reads the changed decoration model, instantiating the changed decoration model, and deserializing the changed decoration model into its own thread-local variable.
5. The method according to claim 4 , further comprising:
assigning the changed decoration model to thread-local variables of the new requests after the changed decoration model is instantiated.
6. The method according to claim 4 , further comprising:
checking for pointer equality between any pointers of the thread-local variables and the globally accessible decoration model during the post-processing of any of the requests; and
displaying a message if the pointers are not the same.
7. A system for using a decoration model in an application environment, the system comprising:
a principal model stored on a computer-readable medium;
a decoration model stored on a computer-readable medium; and
a computer configured to:
host a computer-executable application with access to resources generated using the principal model;
instantiate the decoration model associated with the principal model for use by the application; and
provide the application with access to an object of the decoration model responsive to a request by the application to access an object of the principal model where the decoration model object corresponds to the principal model object.
8. The system according to claim 7 , where the computer is configured to:
pass a call from the application that references a method defined in the principal model object from the decoration model object to the principal model object.
9. The system according to claim 7 , where the computer is configured to:
receive a call from the application to a system defined in the decoration model object; and
service the call at the decoration model object.
10. The system according to claim 7 , where the computer is configured to:
make the instantiated decoration model globally accessible to a plurality of applications;
for each request by any of the applications to access an object associated with either the principal model or the decoration model:
create a new thread to handle the request;
assign the decoration model to a thread-local variable in the new thread; and
service any thread-internal code function calls to access the decoration model object via the thread-local variable of its thread; and
make a change to the decoration model available to new threads by starting a new thread that reads the changed decoration model, instantiating the changed decoration model, and deserializing the changed decoration model into its own thread-local variable.
11. The system according to claim 10 , where the computer is configured to:
assign the changed decoration model to thread-local variables of the new requests after the changed decoration model is instantiated.
12. The system according to claim 10 , where the computer is configured to:
check for pointer equality between any pointers of the thread-local variables and the globally accessible decoration model during the post-processing of any of the requests; and
display a message if the pointers are not the same.
13. A computer program product embodied on a computer-readable storage medium, where the computer program when executed on a computer causes the computer to operate according to code segments of the computer program, the computer program comprising:
a first code segment operative to provide a computer-executable application with access to resources generated using a principal model;
a second code segment operative to instantiate a decoration model associated with the principal model for use by the application; and
a third code segment operative to provide the application with access to an object of the decoration model responsive to a request by the application to access an object of the principal model where the decoration model object corresponds to the principal model object.
14. The computer program product according to claim 13 , further comprising:
a fourth code segment operative to pass a call from the application that references a method defined in the principal model object from the decoration model object to the principal model object.
15. The computer program product according to claim 13 , further comprising:
a fourth code segment operative to receive a call from the application to a computer program defined in the decoration model object; and
a fifth code segment operative to service the call at the decoration model object.
16. The computer program product according to claim 13 , further comprising:
a fourth code segment operative to make the instantiated decoration model globally accessible to a plurality of the applications;
a fifth code segment operative, for each request by any of the applications to access an object associated with either the principal model or the decoration model, to:
create a new thread to handle the request;
assign the decoration model to a thread-local variable in the new thread; and
service any thread-internal code function calls to access the decoration model object via the thread-local variable of its thread; and
a sixth code segment operative to make a change to the decoration model available to new threads by starting a new thread that reads the changed decoration model, instantiating the changed decoration model, and deserializing the changed decoration model into its own thread-local variable.
17. The computer program product according to claim 16 , further comprising:
a seventh code segment operative to assign the changed decoration model to thread-local variables of the new requests after the changed decoration model is instantiated.
18. The computer program product according to claim 16 , further comprising:
a seventh code segment operative to check for pointer equality between any pointers of the thread-local variables and the globally accessible decoration model during the post-processing of any of the requests; and
an eighth code segment operative to display a message if the pointers are not the same.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US13/605,217 US8635253B2 (en) | 2007-11-26 | 2012-09-06 | Decorated model architecture for efficient model-driven application development |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US11/945,015 US8095570B2 (en) | 2007-11-26 | 2007-11-26 | Decorated model architecture for efficient model-driven application development |
US13/286,655 US8307015B2 (en) | 2007-11-26 | 2011-11-01 | Decorated model architecture for efficient model-driven application development |
US13/605,217 US8635253B2 (en) | 2007-11-26 | 2012-09-06 | Decorated model architecture for efficient model-driven application development |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US13/286,655 Continuation US8307015B2 (en) | 2007-11-26 | 2011-11-01 | Decorated model architecture for efficient model-driven application development |
Publications (2)
Publication Number | Publication Date |
---|---|
US20120331012A1 US20120331012A1 (en) | 2012-12-27 |
US8635253B2 true US8635253B2 (en) | 2014-01-21 |
Family
ID=40670829
Family Applications (3)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/945,015 Active 2030-10-11 US8095570B2 (en) | 2007-11-26 | 2007-11-26 | Decorated model architecture for efficient model-driven application development |
US13/286,655 Expired - Fee Related US8307015B2 (en) | 2007-11-26 | 2011-11-01 | Decorated model architecture for efficient model-driven application development |
US13/605,217 Expired - Fee Related US8635253B2 (en) | 2007-11-26 | 2012-09-06 | Decorated model architecture for efficient model-driven application development |
Family Applications Before (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US11/945,015 Active 2030-10-11 US8095570B2 (en) | 2007-11-26 | 2007-11-26 | Decorated model architecture for efficient model-driven application development |
US13/286,655 Expired - Fee Related US8307015B2 (en) | 2007-11-26 | 2011-11-01 | Decorated model architecture for efficient model-driven application development |
Country Status (1)
Country | Link |
---|---|
US (3) | US8095570B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10509632B2 (en) | 2007-11-26 | 2019-12-17 | International Business Machines Corporation | Model augmentation in a model-driven application development environment |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8924335B1 (en) | 2006-03-30 | 2014-12-30 | Pegasystems Inc. | Rule-based user interface conformance methods |
US8095570B2 (en) * | 2007-11-26 | 2012-01-10 | International Business Machines Corporation | Decorated model architecture for efficient model-driven application development |
US7970778B2 (en) * | 2008-01-14 | 2011-06-28 | International Business Machines Corporation | Automatically persisting data from a model to a database |
US8255875B2 (en) | 2008-09-30 | 2012-08-28 | Rockwell Automation Technologies, Inc. | Application builder for industrial automation |
US8843435B1 (en) | 2009-03-12 | 2014-09-23 | Pegasystems Inc. | Techniques for dynamic data processing |
US8468492B1 (en) | 2009-03-30 | 2013-06-18 | Pegasystems, Inc. | System and method for creation and modification of software applications |
US8880487B1 (en) | 2011-02-18 | 2014-11-04 | Pegasystems Inc. | Systems and methods for distributed rules processing |
US9195936B1 (en) | 2011-12-30 | 2015-11-24 | Pegasystems Inc. | System and method for updating or modifying an application without manual coding |
US10469396B2 (en) | 2014-10-10 | 2019-11-05 | Pegasystems, Inc. | Event processing with enhanced throughput |
CN105786925B (en) * | 2014-12-26 | 2021-02-26 | 远光软件股份有限公司 | Method and device for dynamic data modeling based on reference model |
US10698599B2 (en) | 2016-06-03 | 2020-06-30 | Pegasystems, Inc. | Connecting graphical shapes using gestures |
US10698647B2 (en) | 2016-07-11 | 2020-06-30 | Pegasystems Inc. | Selective sharing for collaborative application usage |
US11048488B2 (en) | 2018-08-14 | 2021-06-29 | Pegasystems, Inc. | Software code optimizer and method |
US11567945B1 (en) | 2020-08-27 | 2023-01-31 | Pegasystems Inc. | Customized digital content generation systems and methods |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030097545A1 (en) | 2001-07-13 | 2003-05-22 | Rajesh Vadavia | Adaptive data architecture for information management systems |
US20040015542A1 (en) | 2002-07-22 | 2004-01-22 | Anonsen Steven P. | Hypermedia management system |
US6772393B1 (en) * | 2000-01-04 | 2004-08-03 | International Business Machines Corporation | System and method for room decoration and inheritance |
US20040181538A1 (en) | 2003-03-12 | 2004-09-16 | Microsoft Corporation | Model definition schema |
EP1577755A2 (en) | 2004-03-15 | 2005-09-21 | Ramco Systems Limited | Model driven software |
US7000219B2 (en) | 2000-11-03 | 2006-02-14 | Wilde Technologies Limited | Software development process |
US20060136865A1 (en) | 2004-12-22 | 2006-06-22 | International Business Machines Corporation | Managing visual renderings of typing classes in a model driven development environment |
US20080046456A1 (en) | 2006-08-21 | 2008-02-21 | Microsoft Corporation | Syntax for members added through object protocol systems and methods |
US8307015B2 (en) * | 2007-11-26 | 2012-11-06 | International Business Machines Corporation | Decorated model architecture for efficient model-driven application development |
-
2007
- 2007-11-26 US US11/945,015 patent/US8095570B2/en active Active
-
2011
- 2011-11-01 US US13/286,655 patent/US8307015B2/en not_active Expired - Fee Related
-
2012
- 2012-09-06 US US13/605,217 patent/US8635253B2/en not_active Expired - Fee Related
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6772393B1 (en) * | 2000-01-04 | 2004-08-03 | International Business Machines Corporation | System and method for room decoration and inheritance |
US7000219B2 (en) | 2000-11-03 | 2006-02-14 | Wilde Technologies Limited | Software development process |
US20030097545A1 (en) | 2001-07-13 | 2003-05-22 | Rajesh Vadavia | Adaptive data architecture for information management systems |
US20040015542A1 (en) | 2002-07-22 | 2004-01-22 | Anonsen Steven P. | Hypermedia management system |
US20040181538A1 (en) | 2003-03-12 | 2004-09-16 | Microsoft Corporation | Model definition schema |
EP1577755A2 (en) | 2004-03-15 | 2005-09-21 | Ramco Systems Limited | Model driven software |
US20060136865A1 (en) | 2004-12-22 | 2006-06-22 | International Business Machines Corporation | Managing visual renderings of typing classes in a model driven development environment |
US20080046456A1 (en) | 2006-08-21 | 2008-02-21 | Microsoft Corporation | Syntax for members added through object protocol systems and methods |
US8307015B2 (en) * | 2007-11-26 | 2012-11-06 | International Business Machines Corporation | Decorated model architecture for efficient model-driven application development |
Non-Patent Citations (13)
Title |
---|
Etienne P. Leroux, Examiner, United States Patent and Trademark Office, Notice of Allowance for U.S. Appl. No. 11/945,015, Sep. 8, 2011, pp. 1-9, Alexandria, VA, USA. |
Etienne P. Leroux, Examiner, United States Patent and Trademark Office, Notice of Allowance for U.S. Appl. No. 13/286,655, Jun. 27, 2012, pp. 1-16, Alexandria, VA, USA. |
Etienne P. Leroux, Examiner, United States Patent and Trademark Office, Office Action for U.S. Appl. No. 11/945,015, Apr. 4, 2011, pp. 1-10, Alexandria, VA, USA. |
Etienne P. Leroux, Examiner, United States Patent and Trademark Office, Office Action for U.S. Appl. No. 13/286,655, Feb. 6, 2012, pp. 1-14, Alexandria, VA, USA. |
Florida Estrella, et al., Meta-Data Objects as the Basis for System Evolution, 2001 Proceedings of the Second International Conference on Advances in Web-Age Information Management, Book chapter: Lecture Notes in Computer Science, Jul. 2001, pp. 390-399 (numbered as pp. 1-10 in attached reference, plus 1 citation page), Springer-Verlag London, United Kingdom. |
G. Voulalas, et al. , A framework for the development and deployment of evolving applications: elaborating on the model driven architecture towards a change-resistant development framework, ICSOFT 2006, Proceedings of the First International Conference on Software and Data Technologies, 2006, p. 1 (Abstract only),The Institute for Systems and Technologies of Information, Control and Communication (INSTICC). |
Marcin R. Filipczyk, Examiner, United States Patent and Trademark Office, Office Action for U.S. Appl. No. 11/945,046, Jul. 24, 2013, pp. 1-25, Alexandria, VA, USA. |
Marcin R. Filipczyk, Examiner, United States Patent and Trademark Office, Office Action for U.S. Appl. No. 11/945,046, Mar. 7, 2013, pp. 1-34, Alexandria, VA, USA. |
Patrick A. Darno, Examiner, United States Patent and Trademark Office, Office Action for U.S. Appl. No. 11/945,046, Apr. 26, 2011, pp. 1-18, Alexandria, VA, USA. |
Patrick A. Darno, Examiner, United States Patent and Trademark Office, Office Action for U.S. Appl. No. 11/945,046, Dec. 9, 2010, pp. 1-11, Alexandria, VA, USA. |
R. Heckel, et al, Relating functional requirements and software architecture: separation and consistency of concerns, Journal of Software Maintenance and Evolution Research and Practice, Sep.-Oct. 2002, pp. 371-388, vol. 14, No. 5, John Wiley & Sons, Ltd. |
United States Patent and Trademark Office, Notice of Allowance for U.S. Appl. No. 11/945,046, Oct. 2, 2013, pp. 1-14, Alexandria, VA, USA. |
V. Englebert, et al., Attribute-Based Refinement of Software Architectures, 2004 Proceedings of Fourth Working IEEE/IFIP Conference on Software Architecture, Jun. 12-15, 2004, pp. 301-304 (plus 1 citation page), IEEE, Published on the World Wide Web. |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10509632B2 (en) | 2007-11-26 | 2019-12-17 | International Business Machines Corporation | Model augmentation in a model-driven application development environment |
Also Published As
Publication number | Publication date |
---|---|
US20120047484A1 (en) | 2012-02-23 |
US20090138844A1 (en) | 2009-05-28 |
US8095570B2 (en) | 2012-01-10 |
US20120331012A1 (en) | 2012-12-27 |
US8307015B2 (en) | 2012-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8635253B2 (en) | Decorated model architecture for efficient model-driven application development | |
US6343265B1 (en) | System and method for mapping a design model to a common repository with context preservation | |
US9465590B2 (en) | Code generation framework for application program interface for model | |
US7694272B2 (en) | Method, a language and a system for the definition and implementation of software solutions by using a visualizable computer executable modeling language | |
US9208212B2 (en) | Field extensibility in a multi-tenant environment with columnar database support | |
US9870202B2 (en) | Business object model layer interface | |
US8261248B2 (en) | System and method of executing a dynamic program in a structured environment | |
US20140172827A1 (en) | In-memory, columnar database multidimensional analytical view integration | |
US20090077091A1 (en) | System for development and hosting of network applications | |
US20080126409A1 (en) | Systems and methods for providing a decoupled simulation for business objects | |
US8881127B2 (en) | Systems and methods to automatically generate classes from API source code | |
US10509632B2 (en) | Model augmentation in a model-driven application development environment | |
WO2007089350A1 (en) | Displaying game asset relationships in a game development environment | |
US20170351506A1 (en) | Automating feature graduation | |
US20120124550A1 (en) | Facilitating database application code translation from a first application language to a second application language | |
CN110489401B (en) | Method and device for deploying database objects | |
Keith et al. | Pro JPA 2 | |
CN108228762B (en) | Method and system for configuring master database universal templates | |
CN110162299A (en) | Web program and its Quick Development Framework, development approach and relevant device | |
US20120005645A1 (en) | Metaobject enhancement objects | |
EP2343658A1 (en) | Federation as a process | |
CN100485687C (en) | Method and device for set-up disconnection data programmed model and its application | |
US8433729B2 (en) | Method and system for automatically generating a communication interface | |
CN112527773B (en) | Data model based on DBVC framework, view standardization method and system | |
US8930960B2 (en) | Methods and systems for object interpretation within a shared object space |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
FEPP | Fee payment procedure |
Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
LAPS | Lapse for failure to pay maintenance fees |
Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
STCH | Information on status: patent discontinuation |
Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362 |
|
FP | Lapsed due to failure to pay maintenance fee |
Effective date: 20220121 |