Device for executing an application
The computer with a software-defined runtime environment addresses the limitations of existing software applications by enabling flexible, platform-independent execution of uncompiled code, allowing lay users to create applications efficiently.
Patent Information
- Application Number
- DE202024104649
- Authority / Receiving Office
- DE · DE
- Patent Type
- Utility models
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-10-17
- Estimated Expiration
- 2034-08-31
AI Technical Summary
Existing software applications are either hardware-specific and require extensive training to develop, or they are uncompiled but lack flexibility and performance, and existing no-code solutions do not offer sufficient flexibility for lay users.
A computer with a software-defined runtime environment that interprets and executes uncompiled program code, using metadata and plug-ins to manage input/output data types and execute functions, allowing lay users to create applications through a building block approach.
Enables lay users to develop and execute software applications flexibly across different platforms, improving portability and performance without the need for extensive training.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The invention relates to a computer for executing a software application. BACKGROUND OF THE INVENTION
[0002] Software applications can be compiled program code and / or non-compiled program code In compiled applications, the source code is completely converted into machine code. This compilation step ensures that the entire program is converted into a format that the computer's CPU can understand directly. However, there is a disadvantage. Compiled programs are specific to the hardware and operating system for which they were compiled, making them less portable. For example, you cannot simply run a Windows executable file on a macOS system. compiled applications are first compiled by a compiler, which represents an additional hurdle for people who want to develop software but do not have the comprehensive training and experience required for a required for a full-fledged software developer.
[0003] In contrast, uncompiled applications are interpreted line by line at runtime. The source code is translated into machine code on the fly by an interpreter. These interpreters are also known as Runtime environments. The interpreter reads, translates, and executes the code statement by statement. This dynamic translation process can lead to slower execution compared to compiled applications Modern interpreters have significantly improved performance and narrowed the gap between compiled and interpreted execution speed. However, the advantages are that non-compiled applications are more portable. The same source code can be executed on different platforms with a suitable interpreter For example, Python scripts can be run without modification on Windows, macOS, or Linux.
[0004] A disadvantage of previous solutions was that the software applications could only be created by trained specialists and / or configured. Although so-called «no-code» approaches are already known, where even laypeople can easily While you can create applications, they often do not offer much flexibility. PRESENTATION OF THE INVENTION
[0005] The object is to provide a computer which has at least one of the prior art Overcomes disadvantage.
[0006] According to the invention, the computer comprises a processor and a data memory, wherein the data memory comprises a software application and a software-defined runtime environment. The software-defined runtime environment is configured to run the software application. The computer is characterized by the fact that the software application uncompiled program code that defines a process model. The process model includes several Process steps. At least one of the process steps includes a function call. The function call defines a one or more input data types and one or more output data types. The software-defined runtime environment is configured to perform some steps when executing the software application, as set out below.
[0007] The steps include receiving a function call of a specific function of the software application, where the function call identifies the function and at least one input value with an input data type The steps include determining whether the input values received are permissible according to predefined metadata associated with the specific function. The metadata defines the input values permissible input data types, permissible value ranges, and / or permissible expressions. The steps include a Transforming the input values that are not allowed to the allowed input values by a data conversion module the software-defined runtime environment. The steps include determining whether the particular function is a function defined in the A plug-in installed in the software-defined runtime environment is required for execution. The steps include deploying the permissible and / or transformed input values for executing the specific function. The steps include executing the function, possibly using the plug-in and receiving one or more Output values of the function. The steps include checking whether the output values correspond to the values specified by the software application defined output data types and transform the output values by means of the Data conversion module, of output values that do not correspond to the defined output data types. The steps include providing the output values to the software application.
[0008] In one embodiment, the software-defined runtime environment is configured to run the software ware application. The software-defined runtime environment checks whether one of the functions of the A software application requires a plug-in to run. The software-defined runtime environment executes the software Application only if the software-defined runtime environment has the plug-in. The software-defined defined runtime environment must be configured to ensure that it has the correct version of the plug-in to run the software to run the application.
[0009] In one embodiment, the non-compiled program code of the software application is provided using JSON and / or XML data structures.
[0010] In one embodiment, the software-defined runtime environment executes the function by calling a Web service, in particular by establishing a data connection to a web server that provides the web service and the use of a REST endpoint of the web service. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Based on the embodiments shown in the following figures and the associated description Aspects of the invention are explained in more detail. Fig. 1 shows a diagram schematically representing the computer and a web server; Fig. 2 shows a block diagram schematically representing the computer; Fig. 3 shows a diagram schematically representing the system architecture; and Fig. 4 shows a flow chart illustrating a procedure. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0012] Fig. 1 shows a computer 1. The computer 1 can, for example, be implemented as a server computer. The computer 1 comprises, as explained in more detail in Fig. 2, a processor 11, a data memory 12 and a communication interface 13.
[0013] The computer 1 is connected to a web server 4 via a data connection V1. The computer 1 can also other computers, such as client computer 5, can be connected via additional data connections V2.
[0014] The client computer 5 can also be referred to as a terminal. Client computer 5 can, for example, be referred to as a additional server computers.
[0015] The data connections V1, V2 can be provided by a communication network. Communication network can include wired as well as wireless communications. Communication network can also include the Internet.
[0016] Depending on the embodiment, the processor 11 comprises a system on a chip (SoC), a central Processing unit (CPU) and / or other more specific processing units such as a graphics processing unit (GPU), application-specific integrated circuits (ASICs), reprogrammable processing units such as field-programmable gate arrays (FPGAs) and processing units specifically designed to accelerate certain Applications are configured, such as AI accelerators (artificial intelligence) to accelerate processes in neural networks and / or machine learning methods.
[0017] The data memory 12 consists of one or more volatile and / or non-volatile memory components 121, 122. The memory components 121, 122 may be replaceable and / or non-replaceable and may also be fully or partially integrated into the processor 11. Examples of memory components are cache memory, RAM (Random Access Memory), flash memory, and / or hard drives.
[0018] The data storage 12 comprises a non-transitory computer-readable medium on which a computer program code, in particular firmware code is stored which is set up to control the processor 11 so that the computer 1 can or performs several steps and / or functions as described here. Depending on the embodiment, the Computer program code means compiled or uncompiled program logic and / or machine code.
[0019] The computer program code defines one or more discrete software applications and / or is part of a Those skilled in the art will understand that the computer program code may also be applied to a variety of software applications In one embodiment, the computer program code further provides interfaces, such as APIs (Application Programming Interfaces), so that software applications, functionality and / or data of the computer 1 can be accessed remotely, especially from the client computer 5.
[0020] In particular, the computer 1 has a software application 2 and a runtime environment 3. As shown in Fig. 3 shown, the software application 2 is executed by means of the software-defined runtime environment 3 on the processor 11 executed by the runtime environment 3 the software application 2 initiated and interprets the non-compiled program code and translates it into machine code at runtime.
[0021] The software application 2 comprises uncompiled program code. The uncompiled program code can for example, in the form of JSON or XML data structures. Such data structures can be represented by common software editors or development environments. The non- Compiled code differs from compiled code in particular in that it is not executed directly by the processor 11, but is executed on the processor 11 using the runtime environment 3.
[0022] The uncompiled program code defines at least one process model 21. A process model 21 is a model which represents a defined process.
[0023] The process can define a business task that is to be performed with the help of a computer. Process model 21 can generally be assigned to one of the following process classes: a Process automation model, a case automation model, and a decision automation model. Other process classes include, for example, forms, service definitions and event models.
[0024] The software application 2 comprises at least one such process model 21, but can also comprise several processes This creates a business process or defines a so-called user journey.
[0025] For example, the software application 2 can define a consulting activity or sales activity, for example the sale of a product or service. Customer data may need to be received, the product(s) be defined, sales conditions are recorded, etc.
[0026] Each process model 21 usually includes several process steps 22. The process steps 22 define individual activities and each include at least one function call with which the process step is carried out For example, when entering an address, a function can directly check whether this address exists and / or is available for delivery of the goods. Furthermore, delivery times could then be determined via another function To execute individual functions, input data must be provided and, if necessary, Output data is then also received by the function.
[0027] Certain functions are not exclusively executed by the software application 2 itself, but certain computational steps or data are carried out or made available externally.
[0028] For example, certain functions can be performed at least partially using a plug-in 33. The Plug-In 33 may also call a Web 4 and use it to execute the function. Data exchanged via data connection V1.
[0029] The functions of the software application 2 can be called with one or more input values and can provide one or more output values. Each input value has a specific input data type and also each output value has a specific output data type.
[0030] It may be advantageous if, for the development of the software application 2, the computer 1, for example, has a development environment, so that even lay users, i.e. users who do not have specific training as software development or the like, who can create, view or edit software application 2. This can be achieved by a building block approach, where the individual process models are created, for example, by drag and Drop and merged. The individual process steps 22 can also, depending on the process model 21, can be individually configured and edited.
[0031] The software-defined runtime environment 3 is a software platform (consisting of program code) that provides the necessary infrastructure for the execution of the software application 2. This runtime environment 3 includes various components and services that enable the execution of the program code of the software application 2. The runtime environment 3 includes, for example, an interpreter that interprets the program code of the software application 2 line reads it line by line and executes it, immediately converting each instruction of the program code into machine code Furthermore, the runtime environment 3 manages the volatile memory, in particular memory allocation and - release and often offers features such as garbage collection to automatically The runtime environment 3 also implements the execution model of the programming language in which the Software Application 3, which manages the call stack, the heap and other necessary program execution of the data structures required. It also manages the passing of parameters between Functions and procedures. Finally, the runtime environment acts as an intermediary between the software application 3 and one on the right ner 1 installed operating system and manages system resources such as processor time, memory and I / O operations.
[0032] The runtime environment 3 is designed to execute the functions of the software application 2. The runtime environment also defines for each function that can be called by the software application 2, Metadata. This metadata 31 defines for each function that can be called with input values the Input values including input data type, valid value range and / or valid expressions.
[0033] The metadata 31 may also contain permissible values for each function that provides output values. Define output values, output data types and / or permissible expressions. This may be especially the case if the Function accesses a plug-in 33 or a web service, so that the function in the runtime environment 3 itself is not necessarily determines or defines only the output values.
[0034] The runtime environment 3 further comprises a data conversion module 32. This module defines for certain Functions permissible data types and / or value ranges and is designed to use these data types and / or Value ranges according to the metadata 31. This allows the software application 2 to be generous with the Parameters provided as part of a function call to a specific function. For example, the data conversion module 32 can be designed to recognize a date, regardless of whether the date is a data type 'String' is provided, as 'UTC Timestamp', or as a specific date data type that has e.g. individual fields for entering the day, month and year.
[0035] The runtime environment 3 further comprises one or more plug-ins 3. Plug-ins 33 are software components, also known as an add-on or extension that adds certain features or Add functionality. This allows the functionality of the software application 2, or the runtime environment 3, be extended without fundamentally adapting the software application 2 or the runtime environment 3 The functionality of a plug-in 33 can be activated, for example, by calling, in the software application 2, certain functions. In particular, such plug-ins can serve as an interface to web services 4, provided by external providers.
[0036] Fig. 4 shows a flowchart illustrating a method 100 for executing a software application. Method 100 is carried out by the computer, or the processor, for example after a user has computer calls the software application. The procedure comprises steps S1 to S8. Not all steps S1 to S8 have to be carried out in in the order shown.
[0037] In step S1, the runtime environment receives from the software application a function call of a specific Function. In other words, the software application is executed using the runtime environment and the functions, which are defined in the software application are interpreted by the runtime environment and at the given The function call identifies the function itself, but also contains at least an input value that has an input data type.
[0038] In step S2, the runtime environment determines whether the input values that are sent together with the function call received are permissible. The runtime environment refers to the stored metadata for this Function. In particular, the metadata includes input data types, permissible value ranges, and / or permissible Expressions. The runtime environment is specifically designed to check whether the input values have the correct data type correspond, lie within a permissible range of values, and / or possibly contain expressions, i.e. for the runtime environment functional commands that are not allowed.
[0039] If the input values are not permissible, the runtime environment transforms the input values in step S3 to permissible input values. This is done by a data conversion module. The data conversion module is, for example, configured to convert data types, format input values differently, fill in missing input values by assumptions or To add standard data or to remove unnecessary parts of the input values.
[0040] In step S4, the runtime environment determines whether a plug-in is required to execute the function or not. In particular, it is checked whether the runtime environment or the computer has an installed plug-in with which the function can be executed.
[0041] In one embodiment, this step may be performed as a first step.
[0042] Furthermore, the runtime environment can also identify, by means of the function call, for example by specifying, which are provided by the software application together with the function call, whether the function has a specific Version of a plug-in required. The runtime environment The application is then configured to check whether a plug-in with the corresponding version is present or available in order to function to perform.
[0043] In step S5, the runtime environment provides the input values for the execution of the specific function. Input values can either be considered as permissible from the outset and / or can include input values that are Step S3 were transformed as explained above.
[0044] In step S6, the runtime environment executes the function. In particular, the function can be converted to machine code and executed by the processor. If a plug-in is required to execute the function, The function can be executed using this plug-in.
[0045] Under certain circumstances, a web service can also be used to execute the function. This can Establish a data connection to a web server. This may involve using a REST endpoint of the web service.
[0046] By executing the function, the runtime environment receives the output values.
[0047] In step S7, the runtime environment checks whether the output values correspond to the values defined by the software application. Output data types that were also passed to the runtime environment when the function was called. If the If output values do not correspond to the defined output data types, the data conversion module is used to transform the output values. This way, the software application will finally convert the output values into the desired Get the format and / or data type back.
[0048] In step S8, the output values are finally provided to the software application. The output values can be displayed on a client computer display, saved and / or be further processed by other functions of the software application.
Claims
1. Computer (1) comprising a processor (11) and a data memory (12), wherein the data memory (12) contains a software Application (2) and a software-defined runtime environment (3) configured to run the software application (2) to execute, characterized in that the software application (2) comprises uncompiled program code which Process model (21) is defined and the process model (21) comprises several process steps (22), each of which has at least one Function call, where the function call includes one or more input data types and one or more Output data types are defined and the software-defined runtime environment (3) when executing the software application (2) is configured to perform the following steps: Receiving (S1) a function call of a specific function of the software application (2), wherein the function call the function is identified and has at least one input value with an input data type; Determining (S2) whether the input values received are permissible according to predefined metadata associated with the specific function, where the metadata for the input values includes permissible input data types, permissible Define value ranges and / or permissible expressions; Transforming (S3) the input values that are not allowed to the allowed input values by a Data conversion module of the software-defined runtime environment; Determining (S4) whether the specific function is a plug-in (33) installed in the software-defined runtime environment (3) required for execution; Providing (S5) the permissible and / or transformed input values for the execution of the specific function; Executing (S6) the function, optionally using the plug-in (33) and receiving one or more Output values of the function; Check (S7) whether the output values correspond to the output data types defined by the software application (2) and transform, by means of the data conversion module (32), the output values that do not meet the defined Output data types; and Providing (S8) the output values to the software application (2).
2. Computer (1) according to claim 1, wherein the software-defined runtime environment (3) is configured to to initialize the application (2), to check whether one of the functions of the software application (2) has a plug-in (33) for execution is required and the software application (2) is only to be executed if the software-defined Runtime environment (3) has the plug-in (33).
3. Computer (1) according to one of claims 1 or 2, wherein the non-compiled program code of the software Application (2) is mapped as a JSON or XML data structure.
4. Computer (1) according to one of claims 1 to 3, wherein the software-defined runtime environment (3) has the function by calling a web service, in particular by establishing a data connection to a web server (4), that provides the web service and the use of a REST endpoint of the web service.
