Method and system comprising a device for linking a software application to a server, in particular a database server

The method and system address the challenge of version management and undoing changes by using a coupling device to intercept and process requests, enabling software applications to access services without native versioning or undo functions, thereby simplifying version management and ensuring consistent access across different client versions.

WO2024200020A1PCT designated stage expired Publication Date: 2024-10-03SIEMENS AG
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2024/056770
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-14
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Software applications, particularly those integrated with automation systems, face challenges in version management and undoing changes when accessing services that do not offer versioning or undo functions, leading to complex implementation requirements, especially when dealing with multiple clients with different versions.

Method used

A method and system that involve receiving and storing information about a second request that undoes the first activity related to a service's resource, allowing for easy undoing and versioning of changes, even if the service does not offer these features, by using a coupling device that intercepts and processes requests as an intermediary between the software application and the service.

Benefits of technology

This approach simplifies version management and undo functions, enabling seamless access to services without native versioning or undo capabilities, and allows for easy restoration of earlier versions, thereby reducing complexity and maintaining consistency across different client versions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024056770_03102024_PF_FP_ABST
    Figure EP2024056770_03102024_PF_FP_ABST
Patent Text Reader

Abstract

In a method for coupling a software application (2) to a server (5), in particular a database server, the software application (2) accesses resources of the server (2) by means of requests (POST / X), wherein each of the requests (POST / X) defines an activity with respect to the resource. According to the invention, the method has the following steps: - receiving a first request (POST / X) for the server (5), said first request (POST / X) defining a first activity with respect to a resource of the server, - ascertaining a second request (POST / Y) for the server (5), said second request (POST / Y) defining a second activity which cancels the first activity with respect to the resource, and - storing information relating to the second request (POST / Y). In this manner, a software application with versioning and / or canceling functions can be provided with a simple option to access resources which do not offer such versioning or canceling functions with respect to the resources.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Description

[0002] Method and system with a device for coupling a software application with a service, in particular a database service

[0003] The invention relates to a method for coupling a software application to a service, in particular a database service, according to patent claim 1. The invention also relates to a system with a device for coupling a software application to a service according to patent claim 14.

[0004] Software applications, especially cloud-based software applications, are increasingly integrating external services, especially external web-based database services. This applies particularly to cloud-based software applications in conjunction with automation systems, such as for asset management, condition monitoring, operational analysis, engineering, cybersecurity, or simulation of automation devices, automation systems, or the equipment, machines, or industrial plants controlled and / or regulated by them.

[0005] Automation systems are used, for example, in the areas of production, energy generation and distribution, building management, logistics, drive technology, etc. The actual industry-specific process, e.g., the production or energy generation process, is controlled and / or regulated by the automation system.

[0006] An industrial plant can, for example, be a plant in the process industry such as a chemical, pharmaceutical or petrochemical plant, a plant in the food and beverages industry, a paper factory, a steelworks or a thermal power plant. It also includes any plants from the discrete or hybrid manufacturing industry (e.g. for the manufacture of vehicles, batteries or semiconductors). Other plants such as those for controlling a municipal drinking water supply or wastewater disposal or plants for generating energy such as wind turbines or solar panels are also included in the term industrial plant.

[0007] Typical web-based database services are document management systems that provide documents (e.g., data sheets, operating manuals, maintenance documents), certificates, or other information (e.g., manufacturer information on hardware or software versions, order numbers, digital product passports) on automation devices or plant components. However, they can also be databases with engineering documents, automation software, or digital simulation models (digital twins) for automation devices or plant components.

[0008] Changes can occur in the life cycle of an automation system or a plant controlled / regulated by it. For example, the plant or automation system is enlarged, reduced in size, or rebuilt. Automation devices are replaced by others, or new software versions with new functionalities are used. Such changes must also be reflected in a software application that is linked to the automation system. For this purpose, the changes are documented by different versions of the software application. Therefore, particularly with automation systems and the underlying automation projects and the associated software applications, there are strict requirements for (project) version management. This is sometimes referred to as strict "versioning" or "project versioning."

[0009] Such versioning must also be possible for services accessed by a software application. Access to a service is often achieved via requests that define an activity related to a resource of the service.

[0010] For such requests or access to resources of such services, the Hypertext Transfer Protocol (http) is used, for example, preferably in combination with the REST architecture (i.e. a REST Application Programming Interface (REST API) is used on the service side).

[0011] The HTTP protocol also offers the possibility of sending information about a resource's version in the payload of a request. In the event that the versioning differs on the side of a software application sending an HTTP request and on the side of the service receiving the request, a solution has already been disclosed in US 2018 / 0288189 A1, in which a device connected between the sender and receiver converts a version number received from the sender into a version number of the receiver.

[0012] Document EP 0 621 528 A1 discloses providing a multi-level undo / redo mechanism in an operating system running an application program. To this end, the operating system provides a mechanism for maintaining a log of user commands and providing a cursor at a position within the log. Each command can be encapsulated in an object that supports an interface for performing undo / redo operations. Similarly, the log can be encapsulated in an object that supports operations that enable multi-level undo / redo. A user can perform a single undo / redo operation, multiple consecutive undo / redo operations, or complete undo / redo operations.Based on this, the object of the present invention is to provide further possibilities for coupling a software application with a service.

[0013] This object is achieved by a method for coupling a software application to a service according to patent claim 1 and by a system with a device for coupling a software application to a service according to patent claim 14. Advantageous embodiments are the subject of the dependent claims.

[0014] In the method according to the invention for coupling a software application with a service, in particular a database service, the software application accesses resources of the service by means of requests, each request defining an activity with respect to the resource. The method according to the invention is further characterized by the following steps:

[0015] - Receiving a first request to the service, the first request defining a first activity with respect to a resource of the service,

[0016] - Determining a second request to the service, the second request defining a second activity that undoes the first activity with respect to the resource,

[0017] - Saving information about the second request.

[0018] The invention is based on the realization that some services offer no versioning at all. It's not even possible to undo changes to the service's resources.

[0019] However, if a service doesn't offer rollback or versioning options, then either the service can't be used, or special functionality must be implemented on the software application side. This is generally complex to maintain, especially if multiple clients on the software application side access the service, each with different versions.

[0020] The invention solves this problem by determining a second request to the service which defines a second activity which undoes the first activity with regard to the resource, and storing information about the second request. The stored information about the second request makes it possible to undo the first activity at a later time. Using this simple option for undoing activities, it is also particularly easy to restore an earlier version of the service or its resources. This therefore provides a simple way for a software application with versioning and / or undo functions to access resources from services which do not offer such versioning or undo functions with regard to these resources.

[0021] The method is particularly easy to implement if the service implements its resources symmetrically, i.e. if an activity relating to a resource of the service is in turn defined by another activity which reverses the first activity relating to the resource. This is the case, for example, with the REST architecture based on the HTTP protocol according to RFC 7321 § 4.3. Here, for example, a DELETE method restores the original state after a PUT method, i.e. the DELETE method reverses the activity of the PUT method relating to the resource.

[0022] The method particularly advantageously runs in a coupling device connected between the software application and the service, i.e., a device that couples the software application to the service. The device can intercept and process requests from the software application in the sense of an "interceptor." The method, or rather the coupling device on which the method runs, can then itself be used as a separate "service" by the software application.

[0023] On the software application side, no distinction is then necessary as to whether a service is accessed with or without undo functions or versioning. As soon as the service does not offer such functions, the method according to the invention or the coupling device is simply inserted between the software application and the service. The requests from the software application to the services are then the same in all cases.

[0024] The first request can then be sent to the service, either by forwarding the first request or by regenerating the first request. This preferably occurs only after the second request has been successfully determined and the information about the second request has been saved, so that no changes are made to the service's resources until then.

[0025] The first request to the service is then preferably sent by the coupling device or the interceptor, but in principle it can also be sent by the software application itself after the software application has been notified accordingly.

[0026] If the first action is later undone, the second request can be sent to the service based on the stored information for the second request. The second request is then preferably sent to the service by the coupling device (or the interceptor), but in principle, it can also be sent by the software application itself after the corresponding notification to the application.

[0027] According to an advantageous embodiment, the second request is sent after receiving a request from the software application to undo the first activity with respect to the resource. According to a further advantageous embodiment, the first request is associated with an internal state of the software application, in particular with a version of the software application. This makes it particularly easy to synchronize the state (e.g., version) of the software application with a state (e.g., version) of the service.

[0028] This is particularly easy to achieve if the first request includes status information about the internal state of the software application, and the status information is also saved. If the service includes multiple clients, each with its own versioning, then logging the status information and assigning it to one of the clients at a central location can also enable individually customized version synchronization with the service for each client.

[0029] Alternatively, it is also possible for each request that changes or deletes a resource on the service side to be accompanied by a state change (e.g. version change) on the software application side. The software application can then determine the number of such requests and derive information about its state (e.g. version) from this. The person receiving such requests can also count the number of such requests and thereby derive the state (e.g. version) of the software application, assign it to the first request, and save it. With these process steps, it is not necessary to transmit state information about the internal state of the software application with the first request.

[0030] The second request is then preferably sent after receipt of a first request from the software application, which relates to an earlier state of the software application, in particular an earlier version of the software application. If several first requests are received one after the other in a chronological order, the second requests determined for each of these are advantageously sent to the service one after the other in reverse chronological order. This enables a timely reversal of the respectively assigned first activities.

[0031] This can be implemented particularly easily by determining and storing the time at which the first request was received.

[0032] In the event that the first request results in a modification or deletion of a resource of the service, a request is preferably sent to the service requesting the service to communicate the content of the resource to be modified or deleted, wherein a content received with a response from the service to this request is stored.

[0033] According to a particularly advantageous embodiment, the Hypertext Transfer Protocol (http) is used for the requests or access to the resources of the service, preferably in combination with the REST architecture.

[0034] According to a further advantageous embodiment, the method is used for undoing changes or deletions of resources of the service and / or for versioning with regard to the resources of the service.

[0035] A system according to the invention comprises a software application, a service, in particular a database service, and a device for coupling the software application to the service, wherein the system is designed such that the software application accesses resources of the service by means of requests, wherein the requests each define an activity with respect to the resource. The device for coupling the software application to the service comprises an interface, a processing unit and a memory, wherein the interface is designed to

[0036] - receiving a first request to the service , wherein the first request defines a first activity with respect to a resource of the service , and wherein the processing unit is designed to

[0037] - Determining a second request to the service, the second request defining a second activity that undoes the first activity with respect to the resource,

[0038] - Storing information about the second request in the memory .

[0039] According to an advantageous embodiment, the interface is also designed to send the first request to the service.

[0040] According to a further advantageous embodiment, the processing unit is designed to generate the second request, wherein the second request is based on the stored information about the second request, and the interface is designed to send the second request to the service.

[0041] The advantages of the method according to the invention and the system according to the invention are particularly evident when the software application, the service, and / or the coupling device are cloud-based. The service is advantageously a web-based service.

[0042] According to a further advantageous embodiment, the software application is connected to an automation system of an industrial plant, in particular it is a component of such an automation system.

[0043] The effects and advantages mentioned for the method according to the invention and its advantageous embodiments apply accordingly to the system according to the invention and its advantageous embodiments. The invention and further advantageous embodiments of the invention according to the features of the subclaims are explained in more detail below using exemplary embodiments in the figures. Corresponding parts are provided with the same reference numerals. They show:

[0044] FIG 1: a system according to the invention comprising a software application, several services and a coupling device for coupling the software application with one of the services,

[0045] FIG 2: a detailed view of the coupling device of FIG 1,

[0046] FIG 3: a method sequence according to the invention on the coupling device of FIGS 1 and 2 and

[0047] FIG 4: an illustration of the communication of the coupling device within the process flow of FIG 3.

[0048] FIG. 1 shows a simplified representation of a system 1 according to the invention, comprising a software application 2 and a plurality of web-based services 3, 4, 5. The software application 2 is, for example, a cloud-based software application of an automation system 40 of an industrial plant, e.g., a process control system, which is subject to strict version management. The software application can be used, for example, for asset management, condition monitoring, operational analysis, engineering, cybersecurity, or simulation of automation devices or the automation system or an industrial plant controlled and / or regulated by it.

[0049] Services 3, 4, and 5 are external cloud-based database services, such as document management systems, that provide documents for automation devices of the process control system. Each of services 3, 4, and 5 is therefore based on a database 3', 4', and 5', respectively. Software application 2 communicates with services 3, 4, and 5 and accesses resources from databases 3', 4', and 5' using the HTTP protocol according to RFC 7321 in conjunction with the REST architecture (symbolized by arrows 6).

[0050] The services 3, 4 support versioning and offer various functions for undoing changes to the resources of the databases 3', 4', whereas the service 5 does not offer such options. So that the software application 2 can communicate with all services 3, 4, 5 in the same way using functions for undoing changes and for versioning, a coupling device 10 for coupling the software application 2 with the service 5 is connected into the communication between the software application 2 and the service 5. This acts as a so-called "interceptor" that intercepts and processes requests from the software application 2 in order to enable functions for undoing changes and for versioning with regard to the service 5.

[0051] According to a detailed illustration of the coupling device 10 of FIG. 1 shown in FIG. 2, it comprises an interface 11, a processing unit 12 and a data memory 14.

[0052] The interface 11 is designed to receive requests from the software application 2 to the service 5 and to send requests to the service 5. The interface 11 is thus designed to communicate both with the software application 2 and with the service 5, which is symbolized by the two arrows provided with the reference number 6. However, it is also possible for the interface 11 to comprise two separate interfaces, one of which is used to communicate with the software application 2 and the other to communicate with the service 5. In particular, the interface 11 is designed to receive a first request to the service 5, wherein the first request defines a first activity with respect to a resource of the service 5, and to subsequently send the first request to the service 5.

[0053] The processing unit 12 is designed to determine a second request to the service 5, wherein the second request defines a second activity that reverses the first activity with respect to the resource of the service 5 or the database 5'.

[0054] The data memory 14 serves to store information about the second request.

[0055] The processing unit 12 is further configured to generate the second request, wherein the second request is based on the stored information about the second request, and the interface 11 is configured to send the second request to the service 5.

[0056] Further details of the functioning of the coupling device 10 will now be explained in conjunction with FIGS. 3 and 4.

[0057] FIG. 3, in conjunction with FIG. 4, shows a method sequence 20 according to the invention on the coupling device 10 of FIGS. 1 and 2. It is assumed as a starting point that the service 5 or the database 5' has a status corresponding to a version with a version designation "VI" of the software application 2.

[0058] In a first step 21, the coupling device 10 receives a first request for an activity relating to a resource in the database 5' via the interface 11 from the software application 2. In the case of REST / http, for example, this is a request of the method POST / sensors / 2 { name : "S ITRANS2", temp : 80}, abbreviated to POST / X in FIG 4. The request means that in the database 5' the content of the resource with the URI for "sensors / 2" is to be changed, here a name of a sensor is to be changed to "S ITRANS2" and a value for a maximum permitted ambient temperature temp of the sensor is to be changed to "80" (i.e. 80 °C).

[0059] The coupling device 10 receives from the software application 2 via the interface 11 in the payload of the POST / X request, or as a separate message, information about a newer version of the software application 2, here a version designation “V2”.

[0060] In a second step 22, the coupling device 10 or its processing unit 12 determines a time T of receipt of the request POST / X.

[0061] In a third step 23, the processing unit 12 determines a second request to the service 5, wherein the second request defines a second activity that reverses the first activity with respect to the resource. In the aforementioned case, this is also a request of the POST method, for example, although it should be noted that this request would require the entry in the database 5' under the URI for "sensors / 2" to be changed to the currently existing entry.

[0062] In such a case, in which the first activity causes a change to the content of a resource or a deletion of the resource, the processing unit 12 generates and sends a request GET / sensors / 2 (abbreviated to GET / X in FIG. 4) to the service 5, which requests the service 5 to communicate the content I of the resource under the stated URI. The service 5 then receives a response with the content I of the resource via the interface 11, here for example the name "S ITRANS 1" and a value "70" for a maximum permitted ambient temperature temp of 70 ° C.In a fourth step 24, the processing unit 12 stores in the memory 14 information about the second request, here POST / sensors / 2 { name : "S ITRANS 1", temp : 70} (abbreviated to POST / Y in FIG. 2 and FIG. 4), about the associated first request POST / X, the time T of receipt of the associated first request POST / X and the version designation V2 of the software application 2 associated with the first request.

[0063] In a fifth step 25, the coupling device 10, at the request of the processing unit 12, sends the first request POST / X to the service 5 via the interface 11.

[0064] In a sixth step 26, the coupling device 10 receives a request POST / version VI from the software application 2 via the interface 11, which requests the service 5 to return to version VI.

[0065] In a seventh step 27, the processing unit 12 now reads from the memory 14 the information associated with the second version V2 relating to the second POST / Y request for reversing the change in the content of the resource from version V2 to version VI, generates the POST / Y request and sends it to the service 5 via the interface 11. This restores the resource in the database 5' to the version VI status under the URI mentioned.

[0066] In an eighth step 28, the coupling device 10 receives, via the interface 11, from the software application 2, for example, a request GET / sensors / 2 (abbreviated to GET / X in FIG. 4), which requests the service 5 to communicate the content of the resource of the database 5' under the mentioned URI.

[0067] Subsequently, in a ninth step 29, the coupling device 10 sends the GET / X request to the service 5 via the interface 11, requesting the service 5 to communicate the content I of the resource under the specified URI. In a tenth step 30, the coupling device 10 receives a response I from the service 5 via the interface 11, in which the content I of the resource (here name: "S ITRANS 1", temp: 70) is communicated, and forwards it to the software application 2 via the interface 11.

[0068] In an eleventh step 31, the coupling device 10 receives a request POST / version V2 from the software application 2 via the interface 11, which requests the service 5 to return to version V2.

[0069] In a twelfth step 32, the processing unit 12 uses the stored version designation V2 to retrieve from the memory 14 the information relating to the first POST / X request to undo the change in the content of the resource from version V1 to version V2, generates the POST / X request and sends it to the service 5 via the interface 11. This restores the resource in the database 5' to the status of version V2 under the URI mentioned.

[0070] Similarly, upon receiving a first PUT method request (i.e., creating a new resource), the DELETE method (i.e., deleting a resource) can be used as a second request to undo the PUT method activity on the resource. Conversely, a first DELETE method request can be undone by a second PUT method request.

[0071] In the process sequence explained so far, software application 2 sent information about the version (here V2) to coupling device 10 along with a POST request. Alternatively, it is also possible for each request that changes or deletes a resource on the service 5 side (here, for example, the first POST / X request) to be accompanied by a state change (e.g., version change) on the software application 2 side. Software application 2 can then determine the number of such requests and derive information about its current version status from this. The number of these requests can also be counted on the side of the coupling device 10 which receives such requests, thereby deriving the version of the software application 2 and assigning it to a request which changes or deletes a resource on the side of the service 5 (here, for example, the first POST / X request) and storing it.In this way, it is not necessary to transmit version information of the software application 2 to the coupling device 10.

[0072] If several first requests from the software application 2 are received by the coupling device 10 in a chronological sequence via the interface 11 with respect to a respective identical version, here e.g. version V2, then steps 21 to 25 are each carried out separately for these requests.

[0073] If, in the sixth step 26, the coupling device 10 receives the request GET / X (i.e. GET / sensors / 2) from the software application 2 via the interface 11, which request requests the service 5 to communicate the content of the resource in the database 5' under the aforementioned URI, but with reference to the previous version VI of the software application 2, then all of the second requests determined for these in each case and stored in the memory 14 are sent by the coupling device via the interface 11 one after the other in reverse chronological order to the service 5. This makes it possible to reverse the respectively assigned first requests from version V2 to version VI at the correct time.

[0074] The following table shows an example process when requests for several consecutive versions of the software application have to be processed over time:

[0075] To go back from version V4 to version V2, the following requests or activities regarding the resources of database 5 ' are necessary:

[0076] By using the method according to the invention or the system according to the invention, no distinction is necessary on the part of the software application 2 as to whether one of the services 3, 4 with versioning or the service 5 without versioning is being accessed. If a service, such as service 5 here, does not offer such versioning, the method according to the invention or the coupling device 10 is simply inserted between the software application and the service. The requests from the software application to the services are then the same in all cases.

Claims

Patent claims 1. A method for coupling a software application (2) with a service (5), in particular a database service, characterized in that the software application (2) accesses resources of the service (2) by means of requests (POST / X), wherein the requests (POST / X) each define an activity with respect to the resource, and further characterized by the following steps: - receiving a first request (POST / X) to the service (5), wherein the first request (POST / X) defines a first activity with respect to a resource of the service, - Determining a second request (POST / Y) to the service (5), wherein the second request (POST / Y) defines a second activity that undoes the first activity with respect to the resource, - Store information about the second request (POST / Y) .

2. The method according to claim 1, comprising the further step: - Sending the first request (POST / X) to the service (5) .

3. Method according to one of the preceding claims, with the further step: - sending the second request (POST / Y) to the service (5), wherein the second request (POST / Y) is based on the stored information about the second request.

4. The method according to claim 3, wherein the sending of the second request occurs after receipt of a request from the software application (2) to undo the first activity with respect to the resource.

5. Method according to one of the preceding claims, wherein the first request (POST / X) has an assignment to an internal state of the software application (2), in particular to a version (VI, V2) of the software application (2).

6. The method according to claim 5, wherein the sending of the second request (POST / Y) occurs after receipt of a first request from the software application (2) which relates to an earlier state of the software application (2), in particular an earlier version (VI, V2) of the software application (2).

7. Method according to one of the preceding claims, wherein a plurality of first requests (POST / X) are received one after the other in a chronological order, wherein the second requests (POST / Y) determined for these requests are sent one after the other to the service (5) in reverse chronological order.

8. Method according to one of the preceding claims, wherein a time (T) of receipt of the first request (POST / X) is determined and stored.

9. Method according to one of the preceding claims, wherein, in the event that the first request (POST / X) causes a change or deletion of a resource of the service (5), a request (GET / X) is sent to the service (5) which requests the service (5) to communicate the content of the resource to be changed or deleted, and wherein a content received with a response from the service (5) to this request (I) is stored.

10. Method according to one of the preceding claims, wherein it uses the Hypertext Transfer Protocol (http) for the requests, preferably in combination with the REST architecture.

11. Method according to one of the preceding claims, wherein it is used for undoing changes or deletions of resources of the service (5) and / or for versioning with respect to the resources of the service (5).

12. Method according to one of the preceding claims, wherein it runs in a coupling device (10) connected between a software application and the service (5).

13. Method according to one of the preceding claims, wherein the software application (2) is connected to an automation system (40) of an industrial plant, in particular is a component of such an automation system (40).

14. System (1) comprising a software application (2), a service (5), in particular a database service, and a device (10) for coupling the software application (2) to the service (5), wherein the system is designed such that the software application (2) accesses resources of the service by means of requests, wherein the requests each define an activity in relation to the resource, wherein the device (10) comprises an interface (11), a processing unit (12) and a memory (14), and wherein the interface (11) is designed to - Receiving a first request (POST / X) to the service (5), wherein the first request (POST / X) defines a first activity with respect to a resource of the service (5), and wherein the processing unit (12) is designed to - Determining a second request (POST / Y) to the service (5), wherein the second request (POST / Y) defines a second activity that undoes the first activity with respect to the resource, - storing information about the second request (POST / Y) in the memory (14).

15. System (1) according to claim 14, wherein the interface (11) is configured to send the first request to the service (5).

16. System (1) according to claim 14 or 15, wherein the processing unit (12) is designed to generate the second request (POST / Y), wherein the second request (POST / Y) is based on the stored information relating to the second request, and wherein the interface (11) is designed to send the second request (POST / Y) to the service (5).

Citation Information

Patent Citations

  • Version determination from an HTTP request

    US20180288189A1

  • Multiple level undo / redo mechanism

    EP0621528A1