Generation method and device of digital platform, storage medium and electronic equipment
By building an initial digital platform, using communication, routing, rendering and resource mechanisms to transform application modules, aggregating to form a target digital platform, solving the problem of low task execution efficiency and achieving efficient task execution.
Patent Information
- Application Number
- CN202410172005.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2025-08-12
AI Technical Summary
In the prior art, multiple digital platforms need to be frequently jumped to when executing tasks, resulting in low task execution efficiency.
By building an initial digital platform, using communication mechanisms, routing mechanisms, rendering mechanisms and resource mechanisms, we judge and transform application modules, aggregate target application modules to form target digital platform, and avoid frequent jumps.
Improve task execution efficiency, reduce jumps between multiple application platforms, and support the deployment and development of different application modules separately.
Smart Images

Figure CN120469738A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and device for generating a digital platform, a storage medium, and an electronic device. Background Art
[0002] With the development of digital platforms (i.e. workbenches), more and more customers want to build their own brand awareness and customize their workbenches. Since each customer's task scenarios are different, different solutions are needed to deal with them. Many tasks often require the collaboration of multiple applications. However, the task systems corresponding to the applications are very large, the cost of multi-person collaboration is high, the development / build time is long, the dependency upgrade and regression costs are high, and the task system background is relatively scattered. When executing related tasks, frequent jumps are required, which affects the operational efficiency of the tasks and leads to low operational efficiency.
[0003] Currently, no effective solution has been proposed to the problem that in the above-mentioned related technologies, when executing tasks, it is necessary to frequently jump between digital platforms corresponding to multiple applications, resulting in relatively low task execution efficiency. Summary of the Invention
[0004] The embodiments of the present application provide a method and device for generating a digital platform, a storage medium, and an electronic device to at least solve the technical problem in related technologies that when executing tasks, it is necessary to frequently jump between digital platforms corresponding to multiple applications, resulting in relatively low task execution efficiency.
[0005] According to one aspect of an embodiment of the present application, a method for generating a digital platform is provided, comprising: constructing an initial digital platform based on a target mechanism according to a target task to be executed, wherein the target mechanism includes at least a communication mechanism, a routing mechanism, a rendering mechanism, and a resource mechanism; judging whether an initial application module corresponding to the functional requirement exists in a first database according to the functional requirement corresponding to the target task; if the initial application module exists in the first database, modifying the initial application module according to a preset protocol specification to obtain the target application module, wherein the target application module is used to implement the functional requirement; aggregating the target application module through the initial digital platform based on the target mechanism to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
[0006] Furthermore, the initial application module is modified according to the preset protocol specification to obtain the target application module, including: determining whether the initial application module has a global identifier; if the initial application module does not have the global identifier, constructing the global identifier of the initial application module according to the global identifier protocol specification in the preset protocol specification; modifying the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain a modified initial application module; and obtaining the target application module based on the modified initial application module and the global identifier.
[0007] Furthermore, after determining whether there is an initial application module corresponding to the functional requirement in the first database, the method also includes: determining a target functional requirement for which no initial application module exists in the first database; dividing the target functional requirement to obtain multiple functional sub-requirements; constructing a target sub-application module based on the functional sub-requirements, wherein the target sub-application module is used to implement the functional sub-requirements; and determining a target application module corresponding to the target functional requirement based on the target sub-application module.
[0008] Furthermore, determining the target application module corresponding to the target functional requirement based on the target sub-application module includes: combining the target sub-application modules according to the setting instructions of the target object to obtain a sub-application matrix; and determining the target application module corresponding to the target functional requirement based on the sub-application matrix.
[0009] Furthermore, based on the functional sub-requirement, constructing the target sub-application module includes: determining whether there is a target component of the interface element required by the user interface corresponding to the functional sub-requirement in the second database; if the target component exists in the second database, constructing the target sub-application module based on the target component.
[0010] Furthermore, the target application module is aggregated by the initial digitization platform based on the target mechanism to obtain the target digitization platform, including: loading the target application module based on the hypertext protocol by the initial digitization platform to obtain the target application module; judging whether the target application module has a global identifier based on the target mechanism by the initial digitization platform; if the target application module has a global identifier, rendering the target application module based on the target mechanism by the initial digitization platform to obtain the target digitization platform.
[0011] Furthermore, after the target application modules are aggregated based on the target mechanism through the initial digital platform to obtain the target digital platform, the method also includes: determining multiple operation nodes based on the life cycle of the target digital platform; configuring an event mechanism at the multiple operation nodes to set target events at the multiple operation nodes through the event mechanism, wherein the target events are used to manage the target digital platform.
[0012] Furthermore, after the target application modules are aggregated based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: deploying the target digital platform in the target device; running the target digital platform in the target device to perform the target task through the target digital platform.
[0013] Furthermore, after the target application modules are aggregated based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: determining a digital platform template based on the target digital platform, and storing the digital platform template in a third database; if a generation request for a multi-tenant digital platform is received, obtaining the target digital platform template from the third database based on the functional requirements in the generation request; cloning and fissioning the target digital platform template to obtain multiple digital platforms.
[0014] According to another aspect of an embodiment of the present application, a device for generating a digital platform is also provided, including: a first construction unit, used to construct an initial digital platform based on a target mechanism according to a target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism and a resource mechanism; a judgment unit, used to judge whether there is an initial application module corresponding to the functional requirement in the first database based on the functional requirement corresponding to the target task; a transformation unit, used to transform the initial application module according to a preset protocol specification if the initial application module exists in the first database, to obtain the target application module, wherein the target application module is used to implement the functional requirement; an aggregation unit, used to aggregate the target application module based on the target mechanism through the initial digital platform, to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
[0015] Furthermore, the transformation unit includes: a first judgment module, used to determine whether the initial application module has a global identifier; a construction module, used to construct a global identifier of the initial application module according to the global identifier protocol specification in the preset protocol specification if the initial application module does not have the global identifier; a transformation module, used to transform the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain a transformed initial application module; a processing module, used to obtain the target application module based on the transformed initial application module and the global identifier.
[0016] Furthermore, the device also includes: a first determination unit, used to determine the target functional requirement for which the initial application module does not exist in the first database after judging whether the initial application module corresponding to the functional requirement exists in the first database; a segmentation unit, used to segment the target functional requirement to obtain multiple functional sub-requirements; a second construction unit, used to construct a target sub-application module based on the functional sub-requirements, wherein the target sub-application module is used to implement the functional sub-requirements; and a second determination unit, used to determine the target application module corresponding to the target functional requirement based on the target sub-application module.
[0017] Furthermore, the second determination unit includes: a combination module for combining the target sub-application modules according to the setting instructions of the target object to obtain a sub-application matrix; a determination module for determining the target application module corresponding to the target functional requirement according to the sub-application matrix.
[0018] Furthermore, the second construction unit includes: a second judgment module, used to determine whether there is a target component of the interface elements required by the user interface corresponding to the functional sub-requirement in the second database; a construction module, used to construct the target sub-application module based on the target component if the target component exists in the second database.
[0019] Furthermore, the aggregation unit includes: a loading module, which is used to load the target application module based on the hypertext protocol through the initial digitization platform to obtain the target application module; a third judgment module, which is used to judge whether the target application module has a global identifier based on the target mechanism through the initial digitization platform. If the target application module has a global identifier, the target application module is rendered based on the target mechanism through the initial digitization platform to obtain the target digitization platform.
[0020] Furthermore, the device also includes: a second determination unit, used to determine multiple operation nodes based on the life cycle of the target digital platform after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform; a configuration unit, used to configure an event mechanism at the multiple operation nodes to set target events at the multiple operation nodes through the event mechanism, wherein the target events are used to manage the target digital platform.
[0021] Furthermore, the device includes: a deployment unit, which is used to aggregate the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, and then deploy the target digital platform in the target device; and an operation unit, which is used to run the target digital platform in the target device to perform the target task through the target digital platform.
[0022] Furthermore, the device includes: a third determination unit, which is used to determine the digital platform template based on the target digital platform after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, and store the digital platform template in a third database; an acquisition unit, which is used to obtain the target digital platform template from the third database based on the functional requirements in the generation request if a generation request for a multi-tenant digital platform is received; and clone and fission the target digital platform template to obtain multiple digital platforms.
[0023] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein when the program is running, the device where the storage medium is located is controlled to execute any one of the above-mentioned methods for generating a digital platform.
[0024] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a memory storing an executable program; and a processor for running the program, wherein the program executes any one of the above-mentioned methods for generating a digital platform when running.
[0025] In an embodiment of the present application, an initial digital platform is constructed based on a target mechanism according to a target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism and a resource mechanism; based on the functional requirements corresponding to the target task, it is determined whether there is an initial application module corresponding to the functional requirements in the first database; if the initial application module exists in the first database, the initial application module is modified according to a preset protocol specification to obtain a target application module, wherein the target application module is used to implement the functional requirements, and the preset protocol specification is determined based on the target mechanism; the target application modules are aggregated through the initial digital platform based on the target mechanism to obtain a target digital platform, wherein the target digital platform is used to execute the target task, which solves the technical problem in the related art that when executing a task, frequent jumps between digital platforms corresponding to multiple applications are required, resulting in relatively low execution efficiency of the task. In this solution, after clarifying the target task to be executed, an initial digital platform is constructed based on mechanisms such as communication mechanism, routing mechanism, rendering mechanism and resource mechanism. The initial digital platform can aggregate different application modules according to the functional requirements corresponding to the target task. After obtaining the initial digital platform, it is determined whether there is an initial application module corresponding to the functional requirements in the first database. If the initial application module exists in the first database, the initial application module needs to be modified according to the preset protocol specification so that the initial digital platform can aggregate these application modules. Finally, the target application module is aggregated through the initial digital platform to obtain the above-mentioned target digital platform. The preset protocol specification allows the existing application modules to be simply adapted and modified, and these applications can be aggregated through the initial digital platform, avoiding the need to frequently jump to digital platforms corresponding to multiple applications when executing tasks, and different target application modules can be deployed and developed separately, thereby achieving the technical effect of improving the efficiency of task execution. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 is a schematic diagram of a computer terminal provided according to Embodiment 1 of the present application;
[0028] Figure 2 This is a flowchart of a method for generating a digital platform according to the first embodiment of the present application;
[0029] Figure 3 This is a schematic diagram of a digital platform generated according to the first embodiment of the present application. Figure 1 ;
[0030] Figure 4 This is a schematic diagram of a digital platform generated according to the first embodiment of the present application. Figure 2 ;
[0031] Figure 5 is a schematic diagram of a device for generating a digital platform according to the second embodiment of the present application;
[0032] Figure 6 This is a schematic diagram of an electronic device provided according to Example 2 of the present application. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:
[0036] Aggregation: refers to combining multiple independently delivered front-end applications into a whole, so that the whole still appears to the user as a cohesive single product.
[0037] Resources: Also called application resources, the workbench integration protocol requires applications to provide corresponding element information. "Resources" are the carriers of this element information. The current main resources include:
[0038] Menu pages and ordinary pages need to provide front-end JS, CSS static resource link information, version number and other information to provide page materials for workbench navigation.
[0039] Cards require the front-end JS (JavaScript), CSS (Cascading Style Sheets) static resource link information, version number, and other information to provide card materials for the workbench homepage card integration.
[0040] Buttons need to be bound to permission points for permission control of operating buttons.
[0041] The directory provides the functional structure of application pages and buttons, which facilitates user authorization and is clear at a glance (for example: granting permissions for certain operations on a certain page to someone).
[0042] CSS: Cascading Style Sheets (CSS; also known as Cascading Style Sheets, Cascading Style Sheets, Cascading Style Sheets) is a computer language used to add styles (fonts, spacing, colors, etc.) to structured documents (such as HTML documents or XML applications). It is defined and maintained by W3C.
[0043] The workbench: Often used as the app's homepage, it serves as a convenient hub for users. It provides a portal to frequently used information, navigating to the app's various functional modules in a hub-and-spoke fashion. It presents the information users need to focus on, shortening the path to critical information. It also allows users to perform frequently used tasks directly on the workbench.
[0044] Single-page tab: When accessing an application's switching pages, only one page is accessed at a time. Opening or activating a new page will inevitably close the currently accessed page. This is a page interaction method that retains one page session at a time.
[0045] Multi-tab: This allows you to maintain multiple page interactions using tabs when accessing an application. This allows you to open and switch between pages using tabs, with access to the corresponding page ending only when the tab is closed. Because it allows you to maintain multiple page sessions simultaneously, it's ideal for scenarios where you need to handle related transactions without having to repeatedly jump between different pages.
[0046] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0047] Example 1
[0048] According to an embodiment of the present application, a method for generating a digital platform is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0049] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing a method for generating a digital platform is shown. Figure 1 As shown, the computer terminal (or mobile device) 10 may include a processor set 102 (the processor set 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, and the processor set 102 may include a processor set, Figure 1 102a, 102b, ..., 102n are used to illustrate), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which can be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0050] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuitry may be a single independent processing module, or may be incorporated in whole or in part into any of the other components of the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuitry serves as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0051] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method for generating a digital platform in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the above-mentioned method for generating a digital platform. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0052] The transmission device 106 is configured to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by the communications provider of the computer terminal 10. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.
[0053] The display may be a touch screen liquid crystal display that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0054] Under the above operating environment, this application provides Figure 2 The method for generating the digital platform shown. Figure 2 Flowchart of a method for generating a digital platform according to the first embodiment of the present application. The generating method includes:
[0055] Step S201: constructing an initial digital platform based on a target mechanism according to a target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism, and a resource mechanism;
[0056] Optionally, clarify the target tasks that need to be performed, for example, the target tasks are content related to procurement and sales. Construct the initial digital platform based on the above-mentioned target tasks and the communication mechanism, routing mechanism, rendering mechanism and resource mechanism. It should be noted that the initial digital platform provides an operating environment for the application modules that need to be aggregated later, and realizes the dynamic operation of the application modules. It should be noted that the communication between application modules and application modules, and between the initial digital platform and application modules are realized through the above-mentioned communication mechanism, the jump between application modules and application modules is realized through the above-mentioned routing mechanism, the rendering display of application modules is realized through the above-mentioned rendering mechanism, and the loading of resources corresponding to application modules is realized through the above-mentioned resource mechanism.
[0057] Step S202: Based on the functional requirements corresponding to the target task, it is determined whether there is an initial application module corresponding to the functional requirements in the first database;
[0058] Optionally, after constructing the aforementioned initial digital platform, based on the functional requirements corresponding to the target task, it is determined whether an initial application module corresponding to the functional requirements currently exists. For example, functional requirements may include user management and authorization management. For example, if a workbench (i.e., a digital platform) corresponding to the procurement and sales field is to be constructed, the functional requirements may also include finding business opportunities, finding companies, and requesting quotes.
[0059] Step S203: If the initial application module exists in the first database, the initial application module is modified according to the preset protocol specification to obtain a target application module, wherein the target application module is used to implement the functional requirements, and the preset protocol specification is determined based on the target mechanism;
[0060] Optionally, if the original initial application module already exists in the first database, the initial application module is modified according to the preset protocol specification to obtain the target application module. Modifying the initial application module according to the preset protocol specification can enable the initial digital platform to aggregate and render the target application module. It should be noted that the preset protocol specification can be determined based on the above-mentioned target mechanism. For example, the corresponding resource specification and rendering specification can be determined according to the rendering mechanism and resource mechanism. Based on these specifications, the main application (i.e., the above-mentioned initial digital platform) can load and unload the target application module on demand, and can render and display the application through a unified rendering layer; based on the above-mentioned target mechanism, the access path of the application can also be managed; at the same time, a secure communication mechanism is provided to ensure information transmission between the main application and the target application module.
[0061] It should be noted that if the initial application module corresponding to the functional requirement does not exist in the first database, a corresponding target application module can be constructed according to the functional requirement.
[0062] It should be noted that the above-mentioned first database may be a relational database for storing application modules.
[0063] Step S204 : aggregating target application modules based on a target mechanism through the initial digital platform to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
[0064] Optionally, after obtaining the above-mentioned target application modules, the target application modules are aggregated based on the target mechanism through the initial digital platform to obtain the above-mentioned target digital platform.
[0065] To sum up, after clarifying the target task to be executed, the initial digital platform is constructed according to the communication mechanism, routing mechanism, rendering mechanism and resource mechanism. The initial digital platform can aggregate different application modules according to the functional requirements corresponding to the target task. After obtaining the initial digital platform, it is determined whether there is an initial application module corresponding to the functional requirements in the first database. If the initial application module exists in the first database, the initial application module needs to be modified according to the preset protocol specification so that the initial digital platform can aggregate these application modules. Finally, the target application module is aggregated through the initial digital platform to obtain the above-mentioned target digital platform. The preset protocol specification allows the existing application modules to be simply adapted and modified, and these applications can be aggregated through the initial digital platform, avoiding the need to frequently jump to the digital platforms corresponding to multiple applications when executing tasks, and different target application modules can be deployed and developed separately, thereby achieving the technical effect of improving the efficiency of task execution.
[0066] In order to ensure that the initial digital platform can load application modules on demand, in the digital platform generation method provided in the first embodiment of the application, the initial application module is modified according to the preset protocol specification to obtain the target application module, including: determining whether the initial application module has a global identifier; if the initial application module does not have a global identifier, constructing a global identifier of the initial application module according to the global identifier protocol specification in the preset protocol specification; modifying the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain a modified initial application module; and obtaining the target application module based on the modified initial application module and the global identifier.
[0067] Optionally, the following steps are used to transform the initial application module. First, it is determined whether the initial application module has a global identifier. It should be noted that the initial digitalization platform can accurately identify the initial application module through the global identifier. Therefore, it is necessary to first determine whether the initial application module has a global identifier. If the initial application module does not have a global identifier, it is necessary to construct a global identifier of the initial application module based on the global identifier protocol specification in the preset protocol specification, and add the global identifier to the initial application module. Then, based on the rendering protocol specification in the preset protocol specification, the rendering code of the initial application module is transformed to obtain the transformed initial application module. Finally, based on the transformed initial application module and the global identifier, the target application module is obtained.
[0068] The above steps ensure that the initial digital platform can load application modules on demand and can also render and display the target application modules based on the rendering mechanism.
[0069] Optionally, after determining whether there is an initial application module corresponding to the functional requirement in the first database, in the method for generating a digital platform provided in the first embodiment of the application, the method further includes: determining a target functional requirement for which no initial application module exists in the first database; dividing the target functional requirement to obtain multiple functional sub-requirements; constructing a target sub-application module based on the functional sub-requirements, wherein the target sub-application module is used to implement the functional sub-requirements; and determining a target application module corresponding to the target functional requirement based on the target sub-application module.
[0070] Alternatively, if the initial application module does not exist in the first database, the target functional requirement for the non-existent initial application module is identified. The target functional requirement is then segmented to obtain multiple functional sub-requirements. For example, the functional requirement for user access control can be segmented into a third-party login requirement and an account rights management requirement. Target sub-application modules corresponding to the functional sub-requirements are then constructed. Finally, based on the target sub-application modules, the target application module corresponding to the target functional requirement is determined.
[0071] By dividing functional requirements into modules, the development and integration of each module are facilitated, and rich product solutions can be formed.
[0072] In order to improve the flexibility of constructing application modules, in the method for generating a digital platform provided in the first embodiment of the application, determining the target application module corresponding to the target functional requirements based on the target sub-application module includes: combining the target sub-application modules according to the setting instructions of the target object to obtain a sub-application matrix; and determining the target application module corresponding to the target functional requirements based on the sub-application matrix.
[0073] Optionally, the user (i.e., the target object mentioned above) can flexibly combine the target sub-application modules according to their actual needs to obtain a corresponding sub-application matrix, build an application matrix suitable for different task scenarios, and form a rich product solution.
[0074] In order to improve the efficiency of constructing the target sub-application module, in the method for generating the digital platform provided in the first embodiment of the application, constructing the target sub-application module based on the functional sub-requirements includes: determining whether there is a target component of the interface element required by the user interface corresponding to the functional sub-requirements in the second database; if the target component exists in the second database, constructing the target sub-application module based on the target component.
[0075] Optionally, when constructing the target sub-application module, it is determined whether the target component of the interface element required by the user interface corresponding to the functional sub-requirement exists in the second database. If so, the target sub-application module is directly constructed according to the target component.
[0076] It should be noted that the user interface primarily includes the login page, homepage, front page, and system settings page. By componentizing and abstractly modeling user interface elements, the page elements are digitized. Controlling the page configuration data allows for personalized control. If the target component for the interface element required by the user interface corresponding to the functional sub-requirement does not exist in the second database, a corresponding component can be constructed based on the actual interface element requirements.
[0077] It should be noted that the above-mentioned second database may be an in-memory database for storing various components in the user interface.
[0078] How to aggregate the target application module based on the target mechanism through the initial digital platform to obtain the target digital platform is crucial. Therefore, the method for generating the digital platform provided in the first embodiment of the application also includes the following steps: loading the target application module based on the hypertext protocol through the initial digital platform to obtain the target application module; judging whether the target application module has a global identifier based on the target mechanism through the initial digital platform; if the target application module has a global identifier, rendering the target application module based on the target mechanism through the initial digital platform to obtain the target digital platform.
[0079] Optionally, the initial digitization platform loads the target application module based on the hypertext protocol. After loading the target application module, the initial digitization platform identifies the target application module based on the target mechanism and the global identifier, that is, determines whether the target application module has a global identifier. If the target application module does not have a global identifier, the corresponding target application module cannot be accurately identified by the initial digitization platform, and the loading fails.
[0080] If the target application module has a global identifier, the initial digital platform renders the target application module based on the target mechanism to obtain the target digital platform.
[0081] The target application modules are loaded on demand through the initial digital platform, avoiding frequent jumps between multiple workbenches, thereby improving the effectiveness of task execution.
[0082] In an optional embodiment, the above-mentioned target digital platform can be configured with access modes, such as single-page tab access mode and multi-page tab access mode, to provide different usage experiences for users in different scenarios. For example, users of a simple management backend can use a single-page access mode to process one task at a time, and the backend system for complex tasks can choose a multi-page tab access mode, which allows users to keep multiple tasks in progress at the same time.
[0083] In order to facilitate the management of the above-mentioned target digital platform, in the digital platform generation method provided in the first embodiment of the application, after the target application modules are aggregated based on the target mechanism through the initial digital platform to obtain the target digital platform, the method also includes: determining multiple operation nodes based on the life cycle of the target digital platform; configuring an event mechanism at multiple operation nodes to set target events at multiple operation nodes through the event mechanism, wherein the target events are used to manage the target digital platform.
[0084] Optionally, based on the life cycle of the target digital platform, multiple key nodes (i.e., the above-mentioned operation nodes) are determined, and then an event mechanism is configured for these key nodes to set target events at multiple operation nodes through the event mechanism, and then various customized task extensions are performed based on these events, such as reporting and monitoring when the application rendering fails, or performing some task processing when the application switches.
[0085] The above-mentioned event mechanism can realize flexible management of the target data platform.
[0086] In the method for generating a digital platform provided in the first embodiment of the application, after the target application modules are aggregated based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: deploying the target digital platform in the target device; running the target digital platform in the target device to execute the target task through the target digital platform.
[0087] Optionally, after obtaining the above-mentioned target digital platform, the target digital platform is deployed in the target device. It should be noted that the target device can be a browser or a server. The target digital platform is run in the target device, and the user can flexibly perform the target task through the target digital platform.
[0088] In order to solve the problem of similar task scenarios encountered in the prior art and the need to re-develop a new digital platform, in the digital platform generation method provided in the first embodiment of the application, after the target application modules are aggregated based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: determining the digital platform template based on the target digital platform, and storing the digital platform template in a third database; if a generation request for a multi-tenant digital platform is received, obtaining the target digital platform template from the third database based on the functional requirements in the generation request; cloning and fissioning the target digital platform template to obtain multiple digital platforms.
[0089] Optionally, after obtaining the target digital platform, the target digital platform can be templated to obtain a corresponding digital platform template and stored in a corresponding database (i.e., the third database mentioned above). If a request to generate a multi-tenant digital platform is detected, the corresponding target digital platform template is directly obtained from the third database based on the functional requirements in the generation request, and then the target digital platform template is cloned and fissioned to obtain multiple digital platforms.
[0090] By cloning and fissioning model houses on the digital platform, the multi-tenant digital platform can be quickly scaled up.
[0091] In an alternative embodiment, the Figure 3 The schematic diagram shown realizes the construction of the above-mentioned target digital platform: based on the communication mechanism, routing mechanism, rendering mechanism and resource mechanism of the core architecture, different applications are aggregated to obtain different workbenches. Figure 3 The protocol layer in the package includes the above-mentioned preset protocol specifications. The original application is transformed through the protocol layer and can then be aggregated by the main application. Figure 3 It also includes an extension layer, which includes a renderer and a routing tool. The renderer can render multiple applications, and the routing tool can manage the routes of multiple applications.
[0092] In an alternative embodiment, the Figure 4 The diagram shown here implements the construction of multiple target digital platforms: A workbench factory is constructed based on the target mechanism. It should be noted that the workbench factory can include some built-in basic applications, such as user identity management and permissions management. The workbench factory aggregates the target application modules to create a prototype home. This prototype home is then cloned to create prototype homes for customer-specific solutions and non-specific solutions. Finally, cloning these prototype homes enables scalable multi-tenant sites.
[0093] In the method for generating a digital platform provided in the first embodiment of the application, an initial digital platform is constructed based on a target mechanism according to a target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism and a resource mechanism; based on the functional requirements corresponding to the target task, it is determined whether there is an initial application module corresponding to the functional requirements in the first database; if the initial application module exists in the first database, the initial application module is modified and processed according to the preset protocol specification to obtain a target application module, wherein the target application module is used to implement the functional requirements; the target application module is aggregated through the initial digital platform based on the target mechanism to obtain a target digital platform, wherein the target digital platform is used to execute the target task, which solves the technical problem in the related technology that when executing a task, frequent jumps between digital platforms corresponding to multiple applications are required, resulting in relatively low execution efficiency of the task. In this solution, after clarifying the target task to be executed, an initial digital platform is constructed based on mechanisms such as communication mechanism, routing mechanism, rendering mechanism and resource mechanism. The initial digital platform can aggregate different application modules according to the functional requirements corresponding to the target task. After obtaining the initial digital platform, it is determined whether there is an initial application module corresponding to the functional requirements in the first database. If the initial application module exists in the first database, the initial application module needs to be modified according to the preset protocol specification so that the initial digital platform can aggregate these application modules. Finally, the target application module is aggregated through the initial digital platform to obtain the above-mentioned target digital platform. The preset protocol specification allows the existing application modules to be simply adapted and modified, and these applications can be aggregated through the initial digital platform, avoiding the need to frequently jump to digital platforms corresponding to multiple applications when executing tasks, and different target application modules can be deployed and developed separately, thereby achieving the technical effect of improving the efficiency of task execution.
[0094] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0096] Example 2
[0097] According to an embodiment of the present application, a device for generating a digital platform for implementing the above-mentioned method for generating a digital platform is also provided. Figure 5 As shown, the device includes: a first construction unit 501, a judgment unit 502, a transformation unit 503 and an aggregation unit 504.
[0098] The first construction unit 501 is configured to construct an initial digital platform based on a target mechanism according to a target task to be performed, wherein the target mechanism includes at least a communication mechanism, a routing mechanism, a rendering mechanism, and a resource mechanism;
[0099] A determination unit 502 is configured to determine, based on the functional requirements corresponding to the target task, whether there is an initial application module corresponding to the functional requirements in the first database;
[0100] a transformation unit 503 configured to, if an initial application module exists in the first database, transform the initial application module according to a preset protocol specification to obtain a target application module, wherein the target application module is configured to implement the functional requirement, and the preset protocol specification is determined based on the target mechanism;
[0101] The aggregation unit 504 is configured to aggregate the target application modules based on the target mechanism through the initial digital platform to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
[0102] In the digital platform generation device provided in the second embodiment of the application, the first construction unit 501 constructs an initial digital platform based on the target mechanism according to the target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism and a resource mechanism; the judgment unit 502 judges whether there is an initial application module corresponding to the functional requirement in the first database based on the functional requirement corresponding to the target task; the transformation unit 503 transforms the initial application module according to the preset protocol specification if the initial application module exists in the first database to obtain the target application module, wherein the target application module is used to realize the functional requirement; the aggregation unit 504 aggregates the target application module based on the target mechanism through the initial digital platform to obtain the target digital platform, wherein the target digital platform is used to execute the target task, which solves the technical problem in the related technology that when executing a task, it is necessary to frequently jump to the digital platforms corresponding to multiple applications, resulting in relatively low execution efficiency of the task. In this solution, after clarifying the target task to be executed, an initial digital platform is constructed based on mechanisms such as communication mechanism, routing mechanism, rendering mechanism and resource mechanism. The initial digital platform can aggregate different application modules according to the functional requirements corresponding to the target task. After obtaining the initial digital platform, it is determined whether there is an initial application module corresponding to the functional requirements in the first database. If the initial application module exists in the first database, the initial application module needs to be modified according to the preset protocol specification so that the initial digital platform can aggregate these application modules. Finally, the target application module is aggregated through the initial digital platform to obtain the above-mentioned target digital platform. The preset protocol specification allows the existing application modules to be simply adapted and modified, and these applications can be aggregated through the initial digital platform, avoiding the need to frequently jump to digital platforms corresponding to multiple applications when executing tasks, and different target application modules can be deployed and developed separately, thereby achieving the technical effect of improving the efficiency of task execution.
[0103] Optionally, in the generation device of the digital platform provided in the second embodiment of the application, the transformation unit includes: a first judgment module, used to determine whether the initial application module has a global identifier; a construction module, used to construct the global identifier of the initial application module according to the global identifier protocol specification in the preset protocol specification if the initial application module does not have a global identifier; a transformation module, used to transform the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain a transformed initial application module; and a processing module, used to obtain the target application module based on the transformed initial application module and the global identifier.
[0104] Optionally, in the generation device of the digital platform provided in the second embodiment of the application, the device also includes: a first determination unit, for determining the target functional requirement for which the initial application module does not exist in the first database after determining whether there is an initial application module corresponding to the functional requirement in the first database; a segmentation unit, for segmenting the target functional requirement to obtain multiple functional sub-requirements; a second construction unit, for constructing a target sub-application module based on the functional sub-requirements, wherein the target sub-application module is used to implement the functional sub-requirements; and a second determination unit, for determining the target application module corresponding to the target functional requirement based on the target sub-application module.
[0105] Optionally, in the generation device of the digital platform provided in the second embodiment of the application, the second determination unit includes: a combination module, used to combine the target sub-application modules according to the setting instructions of the target object to obtain a sub-application matrix; and a determination module, used to determine the target application module corresponding to the target functional requirements based on the sub-application matrix.
[0106] Optionally, in the generation device of the digital platform provided in the second embodiment of the application, the second construction unit includes: a second judgment module, used to determine whether there is a target component of the interface element required for the user interface corresponding to the functional sub-requirement in the second database; and a construction module, used to construct a target sub-application module based on the target component if the target component exists in the second database.
[0107] Optionally, in the generation device of the digital platform provided in the second embodiment of the application, the aggregation unit includes: a loading module, which is used to load the target application module based on the hypertext protocol through the initial digital platform to obtain the target application module; a third judgment module, which is used to judge whether the target application module has a global identifier based on the target mechanism through the initial digital platform. If the target application module has a global identifier, the target application module is rendered based on the target mechanism through the initial digital platform to obtain the target digital platform.
[0108] Optionally, in the digital platform generation device provided in the second embodiment of the application, the device also includes: a second determination unit, which is used to determine multiple operation nodes based on the life cycle of the target digital platform after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform; a configuration unit, which is used to configure the event mechanism at multiple operation nodes to set target events at multiple operation nodes through the event mechanism, wherein the target events are used to manage the target digital platform.
[0109] Optionally, in the digital platform generation device provided in the second embodiment of the application, the device includes: a deployment unit, which is used to aggregate the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, and then deploy the target digital platform in the target device; and an operation unit, which is used to operate the target digital platform in the target device to perform the target task through the target digital platform.
[0110] Optionally, in the digital platform generation device provided in the second embodiment of the application, the device includes: a third determination unit, which is used to aggregate the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, and then determine the digital platform template based on the target digital platform, and store the digital platform template in a third database; an acquisition unit, which is used to obtain the target digital platform template from the third database based on the functional requirements in the generation request if a generation request for a multi-tenant digital platform is received; and clone and fission the target digital platform template to obtain multiple digital platforms.
[0111] It should be noted that the first construction unit 501, judgment unit 502, transformation unit 503, and aggregation unit 504 described above correspond to steps S201 to S204 in Example 1. The examples and application scenarios implemented by these four units and the corresponding steps are the same, but are not limited to those disclosed in Example 1. It should be noted that the above modules, as part of the apparatus, can be run in the computer terminal 10 provided in Example 1.
[0112] It should be noted that the preferred implementation scheme involved in the above embodiments of this application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0113] Example 3
[0114] The embodiment of the present application can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be replaced by a terminal device such as a mobile terminal.
[0115] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of a computer network.
[0116] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: constructing an initial digital platform based on a target mechanism according to the target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism and a resource mechanism; judging whether there is an initial application module corresponding to the functional requirement in the first database according to the functional requirement corresponding to the target task; if the initial application module exists in the first database, the initial application module is transformed according to the preset protocol specification to obtain a target application module, wherein the target application module is used to realize the functional requirement, and the preset protocol specification is determined based on the target mechanism; aggregating the target application module based on the target mechanism through the initial digital platform to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
[0117] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: the initial application module is modified according to the preset protocol specification to obtain the target application module, including: determining whether the initial application module has a global identifier; if the initial application module does not have a global identifier, constructing the global identifier of the initial application module according to the global identifier protocol specification in the preset protocol specification; modifying the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain the modified initial application module; obtaining the target application module based on the modified initial application module and the global identifier.
[0118] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: after determining whether there is an initial application module corresponding to the functional requirement in the first database, the method also includes: determining the target functional requirement for which the initial application module does not exist in the first database; dividing the target functional requirement to obtain multiple functional sub-requirements; constructing a target sub-application module based on the functional sub-requirements, wherein the target sub-application module is used to implement the functional sub-requirements; and determining the target application module corresponding to the target functional requirement based on the target sub-application module.
[0119] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: determining the target application module corresponding to the target functional requirements based on the target sub-application module, including: combining the target sub-application modules according to the setting instructions of the target object to obtain a sub-application matrix; determining the target application module corresponding to the target functional requirements based on the sub-application matrix.
[0120] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: constructing a target sub-application module based on the functional sub-requirements, including: determining whether there is a target component of the interface element required by the user interface corresponding to the functional sub-requirements in the second database; if the target component exists in the second database, constructing the target sub-application module based on the target component.
[0121] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: aggregating the target application module based on the target mechanism through the initial digital platform to obtain the target digital platform, including: loading the target application module based on the hypertext protocol through the initial digital platform to obtain the target application module; judging whether the target application module has a global identifier based on the target mechanism through the initial digital platform; if the target application module has a global identifier, rendering the target application module based on the target mechanism through the initial digital platform to obtain the target digital platform.
[0122] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method also includes: determining multiple operation nodes based on the life cycle of the target digital platform; configuring an event mechanism at multiple operation nodes to set target events at multiple operation nodes through the event mechanism, wherein the target events are used to manage the target digital platform.
[0123] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: deploying the target digital platform in the target device; running the target digital platform in the target device to perform the target task through the target digital platform.
[0124] The above-mentioned computer terminal can execute the program code of the following steps in the method for generating a digital platform: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: determining the digital platform template based on the target digital platform, and storing the digital platform template in a third database; if a generation request for a multi-tenant digital platform is received, obtaining the target digital platform template from the third database based on the functional requirements in the generation request; cloning and fissioning the target digital platform template to obtain multiple digital platforms.
[0125] Optionally, Figure 6 This is a structural block diagram of a computer terminal according to an embodiment of the present application. Figure 6As shown, the computer terminal 10 may include: one or more ( Figure 6 (only one is shown) processor 102, memory 104. The computing terminal 10 may also include a storage controller to control and manage the memory 104; the computing terminal 10 may also include a peripheral interface to connect to a radio frequency module, an audio module, and a display screen, etc.
[0126] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for generating a digital platform in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method for generating a digital platform. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely located relative to the processor, and these remote memories may be connected to the terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0127] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: construct an initial digital platform based on the target mechanism according to the target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism and a resource mechanism; based on the functional requirements corresponding to the target task, determine whether there is an initial application module corresponding to the functional requirements in the first database; if the initial application module exists in the first database, transform the initial application module according to the preset protocol specification to obtain the target application module, wherein the target application module is used to realize the functional requirements, and the preset protocol specification is determined based on the target mechanism; aggregate the target application module based on the target mechanism through the initial digital platform to obtain the target digital platform, wherein the target digital platform is used to execute the target task.
[0128] Optionally, the processor may also execute the program code of the following steps: modifying the initial application module according to the preset protocol specification to obtain the target application module, including: determining whether the initial application module has a global identifier; if the initial application module does not have a global identifier, constructing the global identifier of the initial application module according to the global identifier protocol specification in the preset protocol specification; modifying the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain the modified initial application module; obtaining the target application module based on the modified initial application module and the global identifier.
[0129] Optionally, the processor may also execute the program code of the following steps: after determining whether there is an initial application module corresponding to the functional requirement in the first database, the method further includes: determining a target functional requirement for which no initial application module exists in the first database; dividing the target functional requirement to obtain multiple functional sub-requirements; constructing a target sub-application module based on the functional sub-requirements, wherein the target sub-application module is used to implement the functional sub-requirements; and determining a target application module corresponding to the target functional requirement based on the target sub-application module.
[0130] Optionally, the above-mentioned processor can also execute the program code of the following steps: determining the target application module corresponding to the target functional requirements based on the target sub-application module, including: combining the target sub-application modules according to the setting instructions of the target object to obtain a sub-application matrix; determining the target application module corresponding to the target functional requirements based on the sub-application matrix.
[0131] Optionally, the above-mentioned processor can also execute the program code of the following steps: constructing a target sub-application module based on the functional sub-requirement, including: determining whether there is a target component of the interface element required by the user interface corresponding to the functional sub-requirement in the second database; if the target component exists in the second database, constructing the target sub-application module based on the target component.
[0132] Optionally, the processor may also execute the program code of the following steps: aggregating the target application module based on the target mechanism through the initial digitization platform to obtain the target digitization platform, including: loading the target application module based on the hypertext protocol through the initial digitization platform to obtain the target application module; determining whether the target application module has a global identifier based on the target mechanism through the initial digitization platform; if the target application module has a global identifier, rendering the target application module based on the target mechanism through the initial digitization platform to obtain the target digitization platform.
[0133] Optionally, the above-mentioned processor can also execute the program code of the following steps: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method also includes: determining multiple operation nodes based on the life cycle of the target digital platform; configuring an event mechanism at multiple operation nodes to set target events at multiple operation nodes through the event mechanism, wherein the target event is used to manage the target digital platform.
[0134] Optionally, the above-mentioned processor can also execute the program code of the following steps: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: deploying the target digital platform in the target device; running the target digital platform in the target device to perform the target task through the target digital platform.
[0135] Optionally, the above-mentioned processor can also execute the program code of the following steps: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: determining the digital platform template based on the target digital platform, and storing the digital platform template in a third database; if a generation request for a multi-tenant digital platform is received, obtaining the target digital platform template from the third database based on the functional requirements in the generation request; cloning and fissioning the target digital platform template to obtain multiple digital platforms.
[0136] It can be understood by those skilled in the art that Figure 6 The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 6 It does not limit the structure of the above electronic device. For example, the computer terminal 10 may also include Figure 6 More or fewer components (such as network interfaces, display devices, etc.) shown in, or with Figure 6 Different configurations shown.
[0137] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0138] Example 4
[0139] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the method for generating a digital platform provided in the first embodiment.
[0140] Optionally, in this embodiment, the above-mentioned storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0141] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: constructing an initial digital platform based on a target mechanism according to a target task to be executed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism, and a resource mechanism; judging whether there is an initial application module corresponding to the functional requirement in the first database according to the functional requirement corresponding to the target task; if the initial application module exists in the first database, transforming the initial application module according to a preset protocol specification to obtain a target application module, wherein the target application module is used to implement the functional requirement, and the preset protocol specification is determined based on the target mechanism; aggregating the target application module based on the target mechanism through the initial digital platform to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
[0142] The above-mentioned storage medium is configured to store program code for executing the following steps: modifying the initial application module according to the preset protocol specification to obtain the target application module, including: determining whether the initial application module has a global identifier; if the initial application module does not have a global identifier, constructing the global identifier of the initial application module according to the global identifier protocol specification in the preset protocol specification; modifying the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain the modified initial application module; obtaining the target application module based on the modified initial application module and the global identifier.
[0143] The above-mentioned storage medium is configured to store program codes for executing the following steps: after determining whether there is an initial application module corresponding to the functional requirement in the first database, the method also includes: determining a target functional requirement for which no initial application module exists in the first database; dividing the target functional requirement to obtain multiple functional sub-requirements; constructing a target sub-application module based on the functional sub-requirements, wherein the target sub-application module is used to implement the functional sub-requirements; and determining a target application module corresponding to the target functional requirement based on the target sub-application module.
[0144] The above-mentioned storage medium is configured to store program code for executing the following steps: determining the target application module corresponding to the target functional requirements based on the target sub-application module, including: combining the target sub-application modules according to the setting instructions of the target object to obtain a sub-application matrix; determining the target application module corresponding to the target functional requirements based on the sub-application matrix.
[0145] The above-mentioned storage medium is configured to store program code for executing the following steps: constructing a target sub-application module based on the functional sub-requirement, including: determining whether there is a target component of the interface element required by the user interface corresponding to the functional sub-requirement in the second database; if the target component exists in the second database, constructing the target sub-application module based on the target component.
[0146] The above-mentioned storage medium is configured to store program codes for executing the following steps: aggregating the target application module based on the target mechanism through the initial digitization platform to obtain the target digitization platform, including: loading the target application module based on the hypertext protocol through the initial digitization platform to obtain the target application module; judging whether the target application module has a global identifier based on the target mechanism through the initial digitization platform; if the target application module has a global identifier, rendering the target application module based on the target mechanism through the initial digitization platform to obtain the target digitization platform.
[0147] The above-mentioned storage medium is configured to store program codes for executing the following steps: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method also includes: determining multiple operation nodes based on the life cycle of the target digital platform; configuring an event mechanism at multiple operation nodes to set target events at multiple operation nodes through the event mechanism, wherein the target events are used to manage the target digital platform.
[0148] The above-mentioned storage medium is configured to store program code for executing the following steps: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: deploying the target digital platform in the target device; running the target digital platform in the target device to perform the target task through the target digital platform.
[0149] The above-mentioned storage medium is configured to store program code for executing the following steps: after aggregating the target application modules based on the target mechanism through the initial digital platform to obtain the target digital platform, the method includes: determining the digital platform template based on the target digital platform, and storing the digital platform template in a third database; if a generation request for a multi-tenant digital platform is received, obtaining the target digital platform template from the third database based on the functional requirements in the generation request; cloning and fissioning the target digital platform template to obtain multiple digital platforms.
[0150] An embodiment of the present application further provides a computer program product, which includes a stored computer program. When the computer program is executed by a processor, the method for generating a digital platform described in any one of the above is implemented.
[0151] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0152] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0153] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0154] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0155] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0157] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for generating a digital platform, characterized in that: include: According to the target task to be performed, an initial digital platform is constructed based on a target mechanism, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism, and a resource mechanism; According to the functional requirements corresponding to the target task, determining whether there is an initial application module corresponding to the functional requirements in the first database; If the initial application module exists in the first database, modifying the initial application module according to a preset protocol specification to obtain a target application module, wherein the target application module is used to implement the functional requirement, and the preset protocol specification is determined based on the target mechanism; The target application modules are aggregated through the initial digital platform based on the target mechanism to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
2. The method according to claim 1, characterized in that The initial application module is modified according to the preset protocol specification to obtain the target application module including: Determining whether the initial application module has a global identifier; If the initial application module does not have the global identifier, constructing a global identifier for the initial application module according to the global identifier protocol specification in the preset protocol specification; Modifying the rendering code of the initial application module according to the rendering protocol specification in the preset protocol specification to obtain a modified initial application module; The target application module is obtained according to the transformed initial application module and the global identifier.
3. The method according to claim 1, characterized in that After determining whether the initial application module corresponding to the functional requirement exists in the first database, the method further includes: determining that the target functional requirement of the initial application module does not exist in the first database; Dividing the target functional requirement into multiple functional sub-requirements; Constructing a target sub-application module according to the functional sub-requirement, wherein the target sub-application module is used to implement the functional sub-requirement; Based on the target sub-application module, a target application module corresponding to the target functional requirement is determined.
4. The method according to claim 3, characterized in that Determining the target application module corresponding to the target functional requirement based on the target sub-application module includes: According to the setting instruction of the target object, the target sub-application modules are combined to obtain a sub-application matrix; According to the sub-application matrix, a target application module corresponding to the target functional requirement is determined.
5. The method according to claim 3, characterized in that Based on the functional sub-requirements, the target sub-application module is constructed including: Determine whether a target component of an interface element required by the user interface corresponding to the functional sub-requirement exists in the second database; If the target component exists in the second database, the target sub-application module is constructed according to the target component.
6. The method according to claim 1, characterized in that Aggregating the target application modules based on the target mechanism through the initial digital platform to obtain a target digital platform includes: Loading the target application module through the initial digital platform based on the hypertext protocol to obtain the target application module; The initial digitization platform determines whether the target application module has a global identifier based on the target mechanism. If the target application module has a global identifier, the target application module is rendered based on the target mechanism by the initial digitization platform to obtain the target digitization platform.
7. The method according to claim 1, characterized in that After aggregating the target application modules based on the target mechanism through the initial digital platform to obtain a target digital platform, the method further includes: Determining a plurality of operation nodes based on the life cycle of the target digital platform; An event mechanism is configured at the plurality of operation nodes to set target events at the plurality of operation nodes through the event mechanism, wherein the target events are used to manage the target digital platform.
8. The method according to claim 1, characterized in that After the target application modules are aggregated based on the target mechanism via the initial digital platform to obtain a target digital platform, the method includes: Deploying the target digital platform in a target device; The target digital platform is run in the target device to execute a target task through the target digital platform.
9. The method according to claim 1, characterized in that After the target application modules are aggregated based on the target mechanism via the initial digital platform to obtain a target digital platform, the method includes: Determining a digital platform template based on the target digital platform, and storing the digital platform template in a third database; If a request for generating a multi-tenant digital platform is received, obtaining a target digital platform template from the third database according to the functional requirements in the request; The target digital platform template is cloned and fissioned to obtain multiple digital platforms.
10. A device for generating a digital platform, characterized in that: include: A first construction unit is configured to construct an initial digital platform based on a target mechanism according to a target task to be performed, wherein the target mechanism includes at least: a communication mechanism, a routing mechanism, a rendering mechanism, and a resource mechanism; A judging unit, configured to judge, based on the functional requirements corresponding to the target task, whether an initial application module corresponding to the functional requirements exists in the first database; a transformation unit, configured to, if the initial application module exists in the first database, transform the initial application module according to a preset protocol specification to obtain a target application module, wherein the target application module is used to implement the functional requirement; An aggregation unit is used to aggregate the target application modules based on the target mechanism through the initial digital platform to obtain a target digital platform, wherein the target digital platform is used to execute the target task.
11. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the method for generating a digital platform according to any one of claims 1 to 9.
12. An electronic device, characterized in that: include: a memory storing an executable program; A processor, configured to run the program, wherein the program, when running, executes the method for generating a digital platform according to any one of claims 1 to 9.
13. A computer program product, characterized in that The computer program product includes a stored computer program, and when the computer program is executed by a processor, the method for generating a digital platform according to any one of claims 1 to 9 is implemented.