CN118466942A - Business processing system, electronic equipment and server for industrial management - Google Patents
Business processing system, electronic equipment and server for industrial management Download PDFInfo
- Publication number
- CN118466942A CN118466942A CN202410718259.3A CN202410718259A CN118466942A CN 118466942 A CN118466942 A CN 118466942A CN 202410718259 A CN202410718259 A CN 202410718259A CN 118466942 A CN118466942 A CN 118466942A
- Authority
- CN
- China
- Prior art keywords
- logic
- background
- code
- business
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Stored Programmes (AREA)
Abstract
本申请提供一种工业软件的业务处理系统、电子设备及服务器,系统中,标准组件库具有若干个标准组件以适配目标业务处理逻辑前端接口用于接收业务执行请求并对其进行解析以得到业务逻辑配置参数,以使得后台核心控制层基于业务逻辑配置参数,调用数据接口获取运行目标业务逻辑的代码并对其进行封装形成可执行脚本文件;后台逻辑应用层通过运行可执行脚本文件,触发代码解释器接口客户端与代码解释器接口服务端之间的交互,以使得后台核心控制层调用数据接口从后台数据存储层获取运行可执行脚本文件所需的业务逻辑数据,并通过代码解释器接口服务端与代码解释器接口客户端的交互将业务逻辑数据返回给可执行脚本文件。
The present application provides a business processing system, electronic device and server for industrial software. In the system, a standard component library has several standard components to adapt to the target business processing logic. The front-end interface is used to receive business execution requests and parse them to obtain business logic configuration parameters, so that the background core control layer calls the data interface to obtain the code for running the target business logic based on the business logic configuration parameters and encapsulates it to form an executable script file; the background logic application layer triggers the interaction between the code interpreter interface client and the code interpreter interface server by running the executable script file, so that the background core control layer calls the data interface to obtain the business logic data required for running the executable script file from the background data storage layer, and returns the business logic data to the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client.
Description
技术领域Technical Field
本发明涉及工业管理软件技术领域,具体涉及一种工业管理的业务处理系统、电子设备及服务器。The present invention relates to the technical field of industrial management software, and in particular to a business processing system, electronic equipment and server for industrial management.
背景技术Background Art
在工业管理软件行业目前面临的问题是:1、业务差异较大,定制化程度高;2、生产制造过程工艺复杂繁多,所产生的数据量巨大;3、财务月结对高性能的数据处理有很强的需求。The current problems faced by the industrial management software industry are: 1. Large business differences and a high degree of customization; 2. The production and manufacturing process is complex and the amount of data generated is huge; 3. The monthly financial settlement has a strong demand for high-performance data processing.
目前工业管理软件基本都是按照特定的业务场景进行定制开发来支持不同的差异,比如PLM、OA、MES、SAP等系统,不支持分布式,因此,在大规模数据处理上单机成为瓶颈,并且容易由于内存耗尽出现崩溃,系统有任何问题需要等软件提供商来修改。其中SAP软件虽然提供了ABAP脚本语言,允许用户针对自己的业务场景进行二次开发,但是由于ABAP脚本语言非大众语言,从业人员少且开发门槛很高,加上ABAP相对封闭,提供的功能有限,有些场景很难满足;再者,这种代码的定制开发中,代码复用程度较低,开发和实施周期很长,一个项目从立项到验收至少6个月以上。最后,执行效率靠硬件支撑,正式环境内存600G以上,硬件成本非常昂贵。At present, industrial management software is basically customized and developed according to specific business scenarios to support different differences. For example, PLM, OA, MES, SAP and other systems do not support distributed systems. Therefore, single machines become bottlenecks in large-scale data processing, and are prone to crashes due to memory exhaustion. If there are any problems with the system, the software provider needs to modify it. Among them, although SAP software provides ABAP scripting language, allowing users to perform secondary development for their own business scenarios, ABAP scripting language is not a popular language, there are few practitioners and the development threshold is very high. In addition, ABAP is relatively closed and provides limited functions, which makes it difficult to meet some scenarios; in addition, in the customized development of this code, the degree of code reuse is low, and the development and implementation cycle is very long. A project takes at least 6 months from project establishment to acceptance. Finally, the execution efficiency depends on hardware support. The formal environment memory is more than 600G, and the hardware cost is very expensive.
另外,目前的工业管理软件换了场景后重头开发一套软件,对于上线后的软件如果需要调整,需要软件供应商修改代码后重新上线。除此之外也包括但不限于还存在诸多缺点:In addition, the current industrial management software has to be redeveloped after the scene is changed. If the software needs to be adjusted after it is launched, the software supplier needs to modify the code and launch it again. In addition, there are many other disadvantages, including but not limited to:
1、没有通用的架构设计,代码复用度不高,开发和实施周期长;1. There is no universal architecture design, the code reuse is low, and the development and implementation cycle is long;
2、所有功能都是代码里写死,不支持用户二次开发;2. All functions are hardcoded in the code and do not support secondary development by users;
3、实现技术比较传统,不支持分布式,靠单个服务器支撑,当数据量达到一定规模后容易出问题;3. The implementation technology is relatively traditional, does not support distribution, and relies on a single server for support. When the amount of data reaches a certain scale, problems are likely to occur;
4、性能优化基本没有,完全靠服务器硬件去支撑。4. There is basically no performance optimization, and it relies entirely on server hardware.
发明内容Summary of the invention
为了解决上述技术问题,本申请提供了一种工业软件的业务处理系统、电子设备及服务器,以至少解决或缓解上述现有技术中存在的问题。In order to solve the above technical problems, the present application provides a business processing system, electronic device and server for industrial software to at least solve or alleviate the problems existing in the above-mentioned prior art.
为了实现上述目的,根据本申请的一个方面,提供了一种工业管理的业务处理系统,其包括:前端低代码层、基于C++搭建的后台核心控制层、基于Python搭建的后台逻辑应用层、后台数据存储层,所述前端低代码层部署在前端电子设备上,所述后台核心控制层、后台逻辑应用层、后台数据存储层部署在后台服务器上;In order to achieve the above purpose, according to one aspect of the present application, a business processing system for industrial management is provided, which includes: a front-end low-code layer, a back-end core control layer built based on C++, a back-end logic application layer built based on Python, and a back-end data storage layer. The front-end low-code layer is deployed on the front-end electronic device, and the back-end core control layer, the back-end logic application layer, and the back-end data storage layer are deployed on the back-end server;
所述前端代码层上具有标准组件库,所述后台核心控制层上部署有与所述前端低代码层进行交互的前端接口、与所述后台逻辑应用层交互的代码解释器接口服务端以及与所述后台数据存储层进行交互的数据接口,所述后台逻辑应用层上部署有与所述后台核心控制层交互的代码解释器接口客户端;The front-end code layer has a standard component library, the back-end core control layer is deployed with a front-end interface that interacts with the front-end low-code layer, a code interpreter interface server that interacts with the back-end logic application layer, and a data interface that interacts with the back-end data storage layer, and the back-end logic application layer is deployed with a code interpreter interface client that interacts with the back-end core control layer;
其中,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成业务执行请求;The standard component library has a number of standard components to adapt to the target business processing logic, each standard component has a static attribute configuration and a dynamic attribute configuration, the static attribute configuration at least includes a business data definition matching the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that a business execution request can be generated based on the dynamic attribute configuration;
所述前端接口用于接收所述业务执行请求并对其进行解析以得到业务逻辑配置参数,以使得所述后台核心控制层基于所述业务逻辑配置参数,调用所述数据接口获取运行所述目标业务逻辑的代码并对其进行封装形成可执行脚本文件;The front-end interface is used to receive the business execution request and parse it to obtain business logic configuration parameters, so that the background core control layer calls the data interface based on the business logic configuration parameters to obtain the code for running the target business logic and encapsulates it to form an executable script file;
所述后台逻辑应用层通过运行所述可执行脚本文件,触发所述代码解释器接口客户端与所述代码解释器接口服务端之间的交互,以使得所述后台核心控制层调用所述数据接口从所述后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并通过所述代码解释器接口服务端与所述代码解释器接口客户端的交互将所述业务逻辑数据返回给所述可执行脚本文件。The background logic application layer triggers the interaction between the code interpreter interface client and the code interpreter interface server by running the executable script file, so that the background core control layer calls the data interface to obtain the business logic data required for running the executable script file from the background data storage layer, and returns the business logic data to the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client.
一种电子设备,其上部署有前端低代码层,所述前端代码层上具有标准组件库,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成业务执行请求以触发后台核心控制层和后台逻辑应用层执行如下处理:An electronic device is deployed with a front-end low-code layer, the front-end code layer has a standard component library, the standard component library has a number of standard components to adapt to the target business processing logic, each standard component has a static attribute configuration and a dynamic attribute configuration, the static attribute configuration at least includes a business data definition matching the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that a business execution request can be generated based on the dynamic attribute configuration to trigger the background core control layer and the background logic application layer to perform the following processing:
所述后台核心控制层上的前端接口接收所述业务执行请求并对其进行解析以得到业务逻辑配置参数,以使得所述后台核心控制层基于所述业务逻辑配置参数,调用所述后台核心控制层的数据接口获取运行所述目标业务逻辑的代码并对其进行封装形成可执行脚本文件;The front-end interface on the background core control layer receives the service execution request and parses it to obtain the service logic configuration parameters, so that the background core control layer calls the data interface of the background core control layer based on the service logic configuration parameters to obtain the code for running the target service logic and encapsulates it to form an executable script file;
所述后台逻辑应用层通过运行所述可执行脚本文件,触发所述后台逻辑应用层上的代码解释器接口客户端与所述后台核心控制层上的代码解释器接口服务端之间的交互,以使得所述后台核心控制层调用所述数据接口从后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并通过所述代码解释器接口服务端与所述代码解释器接口客户端的交互将所述业务逻辑数据返回给所述可执行脚本文件。The background logic application layer triggers the interaction between the code interpreter interface client on the background logic application layer and the code interpreter interface server on the background core control layer by running the executable script file, so that the background core control layer calls the data interface to obtain the business logic data required for running the executable script file from the background data storage layer, and returns the business logic data to the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client.
一种服务器,其上部署有后台核心控制层和后台逻辑应用层,以与部署在前端电子设备上的前端低代码层配合执行如下交互:A server on which a backend core control layer and a backend logic application layer are deployed to cooperate with a frontend low-code layer deployed on a frontend electronic device to perform the following interactions:
所述后台核心控制层上的前端接口接收业务执行请求并对其进行解析以得到业务逻辑配置参数,以使得所述后台核心控制层基于所述业务逻辑配置参数,调用所述后台核心控制层的数据接口获取运行目标业务逻辑的代码并对其进行封装形成可执行脚本文件;The front-end interface on the background core control layer receives the service execution request and parses it to obtain the service logic configuration parameters, so that the background core control layer calls the data interface of the background core control layer based on the service logic configuration parameters to obtain the code for running the target service logic and encapsulates it to form an executable script file;
所述后台逻辑应用层通过运行所述可执行脚本文件,触发所述后台逻辑应用层上的代码解释器接口客户端与所述后台核心控制层上的代码解释器接口服务端之间的交互,以使得所述后台核心控制层调用所述数据接口从后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并通过所述代码解释器接口服务端与所述代码解释器接口客户端的交互将所述业务逻辑数据返回给所述可执行脚本文件;The background logic application layer triggers the interaction between the code interpreter interface client on the background logic application layer and the code interpreter interface server on the background core control layer by running the executable script file, so that the background core control layer calls the data interface to obtain the business logic data required for running the executable script file from the background data storage layer, and returns the business logic data to the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client;
其中,所述前端代码层上具有标准组件库,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成所述业务执行请求。Among them, the front-end code layer has a standard component library, which has several standard components to adapt to the target business processing logic, each standard component has static attribute configuration and dynamic attribute configuration, the static attribute configuration at least includes a business data definition that matches the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that the business execution request can be generated based on the dynamic attribute configuration.
一种工业管理的业务处理系统,其包括:前端低代码层、后台核心控制层、后台逻辑应用层、后台数据存储层;A business processing system for industrial management, comprising: a front-end low-code layer, a back-end core control layer, a back-end logic application layer, and a back-end data storage layer;
所述前端代码层上具有标准组件库,其中,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成业务执行请求;The front-end code layer has a standard component library, wherein the standard component library has a number of standard components to adapt to the target business processing logic, each standard component has a static attribute configuration and a dynamic attribute configuration, the static attribute configuration at least includes a business data definition matching the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that a business execution request can be generated based on the dynamic attribute configuration;
所述后台核心控制层用于接收所述业务执行请求并对其进行解析以得到业务逻辑配置参数,以基于所述业务逻辑配置参数,从所述后台数据存储层获取运行所述目标业务逻辑的代码并对其进行封装形成可执行脚本文件;The backend core control layer is used to receive the service execution request and parse it to obtain the service logic configuration parameters, so as to obtain the code for running the target service logic from the backend data storage layer based on the service logic configuration parameters and encapsulate it to form an executable script file;
所述后台逻辑应用层通过运行所述可执行脚本文件,以使得所述后台核心控制层调用所述数据接口从所述后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并将所述业务逻辑数据返回给所述可执行脚本文件。The background logic application layer runs the executable script file so that the background core control layer calls the data interface to obtain the business logic data required for running the executable script file from the background data storage layer, and returns the business logic data to the executable script file.
为此,基于本申请的上述实施例,具有如下技术好处:To this end, based on the above embodiments of the present application, the following technical benefits are achieved:
(1)通过前端代码层上部署有标准组件库,通过标准组件库,这些组件可以根据业务需求进行配置和组合,快速构建业务逻辑,从而缩短了开发和实施周期。另外,还可以基于后台逻辑应用层构建通用的业务逻辑处理框架,使得不同业务场景下的代码模块可以重用,提高了代码复用度。(1) By deploying a standard component library on the front-end code layer, these components can be configured and combined according to business needs to quickly build business logic, thereby shortening the development and implementation cycle. In addition, a general business logic processing framework can be built based on the back-end logic application layer, so that code modules in different business scenarios can be reused, improving code reuse.
(2)前端低代码层和后台逻辑应用层的分离,降低了业务逻辑与前端界面的耦合度,使得前端界面可以更加灵活地适应不同的业务场景,提高了系统的灵活性和可扩展性。(2) The separation of the front-end low-code layer and the back-end logic application layer reduces the coupling between the business logic and the front-end interface, allowing the front-end interface to adapt to different business scenarios more flexibly and improving the flexibility and scalability of the system.
(3)通过前端低代码层和后台逻辑应用层的分离,使得用户可以更加方便地进行二次开发。用户可以通过配置和定制前端组件,实现不同的业务逻辑和交互效果,而不需要修改底层代码。(3) By separating the front-end low-code layer and the back-end logic application layer, users can conduct secondary development more conveniently. Users can configure and customize front-end components to achieve different business logic and interaction effects without modifying the underlying code.
(4)该业务处理系统采用前端代码层上部署有标准组件库台,使得用户可以基于已有模板和组件快速构建和测试自己的业务逻辑,降低了用户试错成本。(4) The business processing system uses a standard component library deployed on the front-end code layer, allowing users to quickly build and test their own business logic based on existing templates and components, reducing the user's trial and error costs.
(5)该业务处理系统采用C++搭建的后台核心控制层、基于Python搭建的后台逻辑应用层的配合,允许用户根据实际需求对系统进行二次开发。用户可以通过修改配置、添加自定义组件或编写自定义脚本来实现特定业务逻辑。(5) The business processing system uses a backend core control layer built in C++ and a backend logic application layer built based on Python, allowing users to perform secondary development of the system based on actual needs. Users can implement specific business logic by modifying configurations, adding custom components, or writing custom scripts.
(6)由于可以基于后台核心控制层和后台逻辑应用层布局多个分布式节点,支持分布式部署和弹性伸缩,可以根据数据量和业务需求自动调整资源分配,应对大规模数据的需求场景。(6) Since multiple distributed nodes can be deployed based on the background core control layer and the background logic application layer, it supports distributed deployment and elastic scaling, and can automatically adjust resource allocation according to data volume and business needs to cope with large-scale data demand scenarios.
(7)该业务处理系统基于前端低代码层、基于C++搭建的后台核心控制层、基于Python搭建的后台逻辑应用层、后台数据存储层在处理具体业务逻辑时的技术交互配合,在进行性能优化时,只需要从软件层面进行优化即可,降低了对服务器硬件的依赖。(7) The business processing system is based on the technical interaction and cooperation of the front-end low-code layer, the back-end core control layer built based on C++, the back-end logic application layer built based on Python, and the back-end data storage layer when processing specific business logic. When optimizing performance, it only needs to be optimized at the software level, reducing the dependence on server hardware.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
构成本申请的一部分的附图用来提供对本申请的进一步理解,使得本申请的其他特征、目的和优点变得更明显。本申请的示意性实施例附图及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The schematic embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
图1为本申请实施例一种工业管理的业务处理系统的架构示意图。FIG1 is a schematic diagram of the architecture of a business processing system for industrial management according to an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整的描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
本申请下述实施例提供的方案具有如下技术好处:The solution provided by the following embodiments of the present application has the following technical advantages:
(1)通过前端代码层上部署有标准组件库,通过标准组件库,这些组件可以根据业务需求进行配置和组合,快速构建业务逻辑,从而缩短了开发和实施周期。另外,还可以基于后台逻辑应用层构建通用的业务逻辑处理框架,使得不同业务场景下的代码模块可以重用,提高了代码复用度。(1) By deploying a standard component library on the front-end code layer, these components can be configured and combined according to business needs to quickly build business logic, thereby shortening the development and implementation cycle. In addition, a general business logic processing framework can be built based on the back-end logic application layer, so that code modules in different business scenarios can be reused, improving code reuse.
(2)前端低代码层和后台逻辑应用层的分离,降低了业务逻辑与前端界面的耦合度,使得前端界面可以更加灵活地适应不同的业务场景,提高了系统的灵活性和可扩展性。(2) The separation of the front-end low-code layer and the back-end logic application layer reduces the coupling between the business logic and the front-end interface, allowing the front-end interface to adapt to different business scenarios more flexibly and improving the flexibility and scalability of the system.
(3)通过前端低代码层和后台逻辑应用层的分离,使得用户可以更加方便地进行二次开发。用户可以通过配置和定制前端组件,实现不同的业务逻辑和交互效果,而不需要修改底层代码。(3) By separating the front-end low-code layer and the back-end logic application layer, users can conduct secondary development more conveniently. Users can configure and customize front-end components to achieve different business logic and interaction effects without modifying the underlying code.
(4)该业务处理系统采用前端代码层上部署有标准组件库台,使得用户可以基于已有模板和组件快速构建和测试自己的业务逻辑,降低了用户试错成本。(4) The business processing system uses a standard component library deployed on the front-end code layer, allowing users to quickly build and test their own business logic based on existing templates and components, reducing the user's trial and error costs.
(5)该业务处理系统采用C++搭建的后台核心控制层、基于Python搭建的后台逻辑应用层的配合,允许用户根据实际需求对系统进行二次开发。用户可以通过修改配置、添加自定义组件或编写自定义脚本来实现特定业务逻辑。(5) The business processing system uses a backend core control layer built in C++ and a backend logic application layer built based on Python, allowing users to perform secondary development of the system based on actual needs. Users can implement specific business logic by modifying configurations, adding custom components, or writing custom scripts.
(6)由于可以基于后台核心控制层和后台逻辑应用层布局多个分布式节点,支持分布式部署和弹性伸缩,可以根据数据量和业务需求自动调整资源分配,应对大规模数据的需求场景。(6) Since multiple distributed nodes can be deployed based on the background core control layer and the background logic application layer, it supports distributed deployment and elastic scaling, and can automatically adjust resource allocation according to data volume and business needs to cope with large-scale data demand scenarios.
(7)该业务处理系统基于前端低代码层、基于C++搭建的后台核心控制层、基于Python搭建的后台逻辑应用层、后台数据存储层在处理具体业务逻辑时的技术交互配合,在进行性能优化时,只需要从软件层面进行优化即可,降低了对服务器硬件的依赖。(7) The business processing system is based on the technical interaction and cooperation of the front-end low-code layer, the back-end core control layer built based on C++, the back-end logic application layer built based on Python, and the back-end data storage layer when processing specific business logic. When optimizing performance, it only needs to be optimized at the software level, reducing the dependence on server hardware.
图1为本申请实施例提供的一种工业管理的业务处理系统的结构示意图。如图1所示,其包括:前端低代码层、基于C++搭建的后台核心控制层、基于Python搭建的后台逻辑应用层、后台数据存储层,所述前端低代码层部署在前端电子设备上,所述后台核心控制层、后台逻辑应用层、后台数据存储层部署在后台服务器上;Figure 1 is a schematic diagram of the structure of an industrial management business processing system provided by an embodiment of the present application. As shown in Figure 1, it includes: a front-end low-code layer, a back-end core control layer built based on C++, a back-end logic application layer built based on Python, and a back-end data storage layer. The front-end low-code layer is deployed on the front-end electronic device, and the back-end core control layer, back-end logic application layer, and back-end data storage layer are deployed on the back-end server;
所述前端代码层上具有标准组件库,所述后台核心控制层上部署有与所述前端低代码层进行交互的前端接口、与所述后台逻辑应用层交互的代码解释器接口服务端以及与所述后台数据存储层进行交互的数据接口,所述后台逻辑应用层上部署有与所述后台核心控制层交互的代码解释器接口客户端;The front-end code layer has a standard component library, the back-end core control layer is deployed with a front-end interface that interacts with the front-end low-code layer, a code interpreter interface server that interacts with the back-end logic application layer, and a data interface that interacts with the back-end data storage layer, and the back-end logic application layer is deployed with a code interpreter interface client that interacts with the back-end core control layer;
其中,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成业务执行请求;The standard component library has a number of standard components to adapt to the target business processing logic, each standard component has a static attribute configuration and a dynamic attribute configuration, the static attribute configuration at least includes a business data definition matching the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that a business execution request can be generated based on the dynamic attribute configuration;
所述前端接口用于接收所述业务执行请求并对其进行解析以得到业务逻辑配置参数,以使得所述后台核心控制层基于所述业务逻辑配置参数,调用所述数据接口获取运行所述目标业务逻辑的代码并对其进行封装形成可执行脚本文件;The front-end interface is used to receive the business execution request and parse it to obtain business logic configuration parameters, so that the background core control layer calls the data interface based on the business logic configuration parameters to obtain the code for running the target business logic and encapsulates it to form an executable script file;
所述后台逻辑应用层通过运行所述可执行脚本文件,触发所述代码解释器接口客户端与所述代码解释器接口服务端之间的交互,以使得所述后台核心控制层调用所述数据接口从所述后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并通过所述代码解释器接口服务端与所述代码解释器接口客户端的交互将所述业务逻辑数据返回给所述可执行脚本文件。The background logic application layer triggers the interaction between the code interpreter interface client and the code interpreter interface server by running the executable script file, so that the background core control layer calls the data interface to obtain the business logic data required for running the executable script file from the background data storage layer, and returns the business logic data to the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client.
可选地,所述代码解释器接口客户端上配置有业务逻辑处理类,以在所述后台逻辑应用层运行所述可执行脚本文件时对所述业务逻辑处理类进行实例化,以获取所述业务逻辑配置参数,以基于所述业务逻辑配置参数触发所述代码解释器接口客户端与所述代码解释器接口服务端之间进行交互。Optionally, a business logic processing class is configured on the code interpreter interface client to instantiate the business logic processing class when the executable script file is run in the background logic application layer to obtain the business logic configuration parameters to trigger the interaction between the code interpreter interface client and the code interpreter interface server based on the business logic configuration parameters.
可选地,针对所述静态属性配置进行数据源配置,以分配所述业务执行请求的请求地址、所述业务请求中包括的请求参数以得到所述动态属性配置,所述请求参数包括:所述目标业务逻辑对应代码的名称,所述目标业务逻辑在所述代码中触发的业务处理方法。Optionally, a data source configuration is performed for the static attribute configuration to assign the request address of the business execution request and the request parameters included in the business request to obtain the dynamic attribute configuration, wherein the request parameters include: the name of the code corresponding to the target business logic, and the business processing method triggered by the target business logic in the code.
为此,针对静态属性配置进行数据源配置,以分配业务执行请求的请求地址和请求参数,进而得到动态属性配置,具有如下技术好处:To this end, data source configuration is performed for static attribute configuration to allocate the request address and request parameters of the business execution request, thereby obtaining dynamic attribute configuration, which has the following technical benefits:
(1)通过静态属性配置进行数据源配置,业务执行请求的请求地址被明确指定,确保了业务逻辑在处理过程中能够准确、高效地找到对应的后端服务接口。(1) The data source is configured through static attribute configuration. The request address of the business execution request is clearly specified, ensuring that the business logic can accurately and efficiently find the corresponding backend service interface during the processing.
(2)请求参数包括目标业务逻辑对应代码的名称和触发的业务处理方法,这种参数化配置方式使得系统能够根据不同的业务逻辑动态调整请求参数,提高了系统的灵活性和可配置性。(2) The request parameters include the name of the code corresponding to the target business logic and the triggered business processing method. This parameterized configuration method enables the system to dynamically adjust the request parameters according to different business logics, thereby improving the flexibility and configurability of the system.
(3)通过数据源配置来分配请求地址和请求参数,而不是硬编码在代码中,使得代码更加清晰、易于维护。当业务逻辑发生变化时,只需要修改配置信息,而不需要修改和重新编译代码。(3) The request address and request parameters are assigned through data source configuration instead of hard coding in the code, making the code clearer and easier to maintain. When the business logic changes, only the configuration information needs to be modified without modifying and recompiling the code.
(4)由于请求地址和请求参数已经通过静态属性配置进行了预定义和分配,当业务执行请求到达时,系统可以迅速解析请求并调用相应的业务逻辑处理方法,提高了业务逻辑处理的效率。(4) Since the request address and request parameters have been predefined and assigned through static attribute configuration, when a business execution request arrives, the system can quickly parse the request and call the corresponding business logic processing method, thereby improving the efficiency of business logic processing.
(5)通过数据源配置,系统可以方便地添加新的业务逻辑和处理方法,只需要在配置文件中添加相应的条目即可,无需对系统架构进行大规模的修改。这种设计使得系统具有更强的可扩展性,能够适应业务需求的不断变化。(5) Through data source configuration, the system can easily add new business logic and processing methods by simply adding corresponding entries in the configuration file, without making large-scale modifications to the system architecture. This design makes the system more scalable and able to adapt to the ever-changing business needs.
(6)由于请求地址和请求参数的配置是静态的,系统可以在启动时进行预加载和缓存,减少了运行时的动态解析和查找时间,从而优化了系统的性能。(6) Since the configuration of the request address and request parameters is static, the system can preload and cache them at startup, reducing the dynamic parsing and search time at runtime, thereby optimizing the system performance.
可选地,所述后台数据存储层存储有Python代码列表以及Python代码内容列表,每个代码在所述Python代码维护列表中对应有一个唯一性ID,所述Python代码内容列表包括每个代码的唯一性ID以及代码的内容字符串表示,所述后台核心控制层基于所述业务逻辑配置参数,通过所述数据接口访问所述Python代码维护列表并确定出代码的唯一性ID,基于所述唯一性ID在所述Python代码内容列表中获取所述代码对应的内容字符串,并对所述内容字符串进行封装形成所述可执行脚本文件。Optionally, the background data storage layer stores a Python code list and a Python code content list, each code in the Python code maintenance list corresponds to a unique ID, and the Python code content list includes the unique ID of each code and the content string representation of the code. The background core control layer accesses the Python code maintenance list through the data interface based on the business logic configuration parameters and determines the unique ID of the code, obtains the content string corresponding to the code in the Python code content list based on the unique ID, and encapsulates the content string to form the executable script file.
为此,当后台数据存储层存储有Python代码列表及其内容,并通过唯一性ID进行关联时,具有如下技术好处:To this end, when the backend data storage layer stores the Python code list and its contents and associates them through a unique ID, it has the following technical benefits:
(1)通过为每个Python代码分配一个唯一性ID,并在代码维护列表中进行管理,系统可以高效地追踪、管理和维护这些代码。这种管理方式使得代码的增删改查操作变得简单而迅速。(1) By assigning a unique ID to each Python code and managing it in a code maintenance list, the system can efficiently track, manage, and maintain the code. This management method makes code addition, deletion, modification, and query operations simple and fast.
(2)基于业务逻辑配置参数,后台核心控制层可以快速通过数据接口访问Python代码维护列表,并根据唯一性ID直接定位到相应的代码内容。这种快速的检索机制大大减少了代码查找和加载的时间,提高了系统的响应速度。(2) Based on the business logic configuration parameters, the backend core control layer can quickly access the Python code maintenance list through the data interface and directly locate the corresponding code content based on the unique ID. This fast retrieval mechanism greatly reduces the time for code search and loading, and improves the system's response speed.
(3)Python代码内容列表存储了每个代码的唯一性ID以及对应的内容字符串表示。这保证了后台核心控制层在获取到代码的唯一性ID后,能够准确地获取到对应的代码内容,避免了因代码内容不匹配而导致的错误。(3) The Python code content list stores the unique ID of each code and the corresponding content string representation. This ensures that the backend core control layer can accurately obtain the corresponding code content after obtaining the unique ID of the code, avoiding errors caused by code content mismatch.
(4)后台核心控制层在获取到代码内容后,可以对其进行封装形成可执行脚本文件。这种动态封装的方式使得系统可以根据不同的业务逻辑配置参数动态生成和执行相应的脚本文件,提高了系统的灵活性和可扩展性。(4) After obtaining the code content, the backend core control layer can encapsulate it into an executable script file. This dynamic encapsulation method enables the system to dynamically generate and execute corresponding script files according to different business logic configuration parameters, thereby improving the flexibility and scalability of the system.
(5)通过将Python代码存储在后台数据存储层中,并通过数据接口进行访问和封装,可以有效保护代码的安全性。只有经过授权和验证的请求才能访问到代码内容,减少了代码泄露和被恶意利用的风险。(5) By storing Python code in the background data storage layer and accessing and encapsulating it through the data interface, the security of the code can be effectively protected. Only authorized and verified requests can access the code content, reducing the risk of code leakage and malicious exploitation.
(6)由于每个代码都有一个唯一性ID,系统可以方便地实现版本控制。当需要回滚到之前的代码版本时,只需要根据唯一性ID找到对应的代码内容即可。这种版本控制机制使得系统更加健壮和可靠。(6) Since each code has a unique ID, the system can easily implement version control. When you need to roll back to the previous code version, you only need to find the corresponding code content based on the unique ID. This version control mechanism makes the system more robust and reliable.
可选地,所述后台核心控制层还用于确定运行所述可执行脚本文件所需的环境变量、配置文件路径、初始化数据库连接、输入参数以创建所述可执行脚本文件的执行上下文,基于所述执行上下文创建启动代码,以通过运行所述启动代码,触发所述可执行脚本文件的运行。Optionally, the background core control layer is also used to determine the environment variables, configuration file path, initialize database connection, and input parameters required to run the executable script file to create an execution context for the executable script file, and create a startup code based on the execution context to trigger the running of the executable script file by running the startup code.
后台核心控制层在确定运行可执行脚本文件所需的环境变量、配置文件路径、初始化数据库连接、输入参数,并创建执行上下文以触发脚本运行的过程中,具有如下技术好处:The backend core control layer has the following technical benefits in the process of determining the environment variables, configuration file paths, initializing database connections, input parameters, and creating an execution context to trigger script execution required to run the executable script file:
(1)通过明确设置环境变量和配置文件路径,可以确保可执行脚本文件在相同的、一致的环境中运行,从而减少了因环境差异导致的运行错误和不确定性。(1) By explicitly setting environment variables and configuration file paths, you can ensure that executable script files run in the same, consistent environment, thereby reducing operational errors and uncertainties caused by environmental differences.
(2)初始化数据库连接可以确保脚本在运行时能够顺利访问数据库资源,同时也提供了数据库连接的复用和管理功能,提升了数据访问效率和安全性。(2) Initializing the database connection ensures that the script can successfully access database resources during runtime. It also provides database connection reuse and management functions, improving data access efficiency and security.
(3)输入参数的设定使得脚本可以根据不同的业务场景和需求进行灵活的配置和调用,提高了脚本的复用性和可配置性。(3) The setting of input parameters allows the script to be flexibly configured and called according to different business scenarios and requirements, improving the reusability and configurability of the script.
(4)通过创建和执行上下文,后台核心控制层可以统一管理脚本的运行环境,包括环境变量、配置文件、数据库连接和输入参数等,使得脚本的执行过程更加清晰和可控。(4) By creating and executing contexts, the backend core control layer can uniformly manage the script's running environment, including environment variables, configuration files, database connections, and input parameters, making the script execution process clearer and more controllable.
(5)基于执行上下文创建启动代码,并通过运行启动代码来触发脚本的运行,这种动态启动机制使得系统可以根据需要动态地加载和执行脚本,提高了系统的灵活性和响应速度。(5) Create startup code based on the execution context, and trigger the execution of the script by running the startup code. This dynamic startup mechanism allows the system to dynamically load and execute scripts as needed, improving the flexibility and responsiveness of the system.
(6)在执行上下文的管理过程中,可以方便地添加错误处理和日志记录机制,以便在脚本运行出现问题时能够及时发现并定位问题,提高系统的健壮性和可维护性。(6) In the process of managing the execution context, error handling and logging mechanisms can be easily added so that problems can be discovered and located in a timely manner when they occur during script execution, thereby improving the robustness and maintainability of the system.
(7)通过管理执行上下文,后台核心控制层可以更有效地利用系统资源,如内存、CPU和IO等,提高系统的整体性能和吞吐量。(7) By managing the execution context, the background core control layer can more efficiently utilize system resources such as memory, CPU, and IO, thereby improving the overall performance and throughput of the system.
(8)通过管理数据库连接和输入参数等敏感信息,后台核心控制层可以提供更安全的数据访问控制和权限管理功能,防止未经授权的访问和数据泄露。(8) By managing sensitive information such as database connections and input parameters, the backend core control layer can provide more secure data access control and permission management functions to prevent unauthorized access and data leakage.
可选地,所述后台逻辑应用层生成SQL语句,并通过所述解释器接口客户端将所述SQL语句发送给后台核心控制层的解释器接口服务端,以使得所述解释器接口服务端调用所述数据接口执行所述SQL语句以从所述后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据。Optionally, the background logic application layer generates an SQL statement and sends the SQL statement to the interpreter interface server of the background core control layer through the interpreter interface client, so that the interpreter interface server calls the data interface to execute the SQL statement to obtain the business logic data required to run the executable script file from the background data storage layer.
为此,后台逻辑应用层通过解释器接口客户端发送SQL语句到后台核心控制层的解释器接口服务端,进而执行SQL语句从后台数据存储层获取运行可执行脚本文件所需的业务逻辑数据,具有如下技术好处:To this end, the backend logic application layer sends SQL statements to the interpreter interface server of the backend core control layer through the interpreter interface client, and then executes the SQL statements to obtain the business logic data required to run the executable script file from the backend data storage layer, which has the following technical benefits:
(1)使用SQL作为数据访问的标准语言,确保了数据访问的一致性和可维护性。不同的业务逻辑应用层可以通过统一的SQL接口访问后台数据存储层,降低了系统集成的复杂性。(1) Using SQL as the standard language for data access ensures the consistency and maintainability of data access. Different business logic application layers can access the backend data storage layer through a unified SQL interface, reducing the complexity of system integration.
(2)SQL语句是专为数据库查询设计的语言,使用它可以高效地从后台数据存储层中检索、更新和删除数据。这种高效的数据访问机制使得业务逻辑处理更加迅速和准确。(2) SQL statements are a language designed specifically for database queries. They can be used to efficiently retrieve, update, and delete data from the backend data storage layer. This efficient data access mechanism makes business logic processing faster and more accurate.
(3)通过解释器接口服务端执行SQL语句,可以在服务器端对数据访问进行控制和过滤,从而增强了数据的安全性。服务器端可以验证SQL语句的合法性,防止恶意SQL注入等安全攻击。(3) By executing SQL statements on the server side through the interpreter interface, data access can be controlled and filtered on the server side, thereby enhancing data security. The server side can verify the legitimacy of SQL statements and prevent security attacks such as malicious SQL injection.
(4)后台逻辑应用层与后台核心控制层之间通过解释器接口进行通信,实现了两个层次之间的松耦合。这种松耦合架构使得系统更加灵活,易于扩展和维护。当业务逻辑发生变化时,只需要修改后台逻辑应用层的代码,而不需要修改后台核心控制层的代码。(4) The backend logic application layer and the backend core control layer communicate through the interpreter interface, achieving loose coupling between the two layers. This loosely coupled architecture makes the system more flexible, easy to expand and maintain. When the business logic changes, only the code of the backend logic application layer needs to be modified, without modifying the code of the backend core control layer.
(5)由于使用了标准的SQL接口进行数据访问,后台数据存储层可以轻松地替换为其他支持SQL的数据库系统。这种可移植性使得系统能够灵活地适应不同的业务需求和技术环境。(5) Since the standard SQL interface is used for data access, the backend data storage layer can be easily replaced with other SQL-supported database systems. This portability enables the system to flexibly adapt to different business needs and technical environments.
(6)通过后台核心控制层的解释器接口服务端执行SQL语句,可以优化系统资源的利用。服务器端可以对SQL语句进行解析和优化,减少不必要的数据库操作,提高系统的整体性能。(6) By executing SQL statements on the server side through the interpreter interface of the backend core control layer, the utilization of system resources can be optimized. The server side can parse and optimize SQL statements, reduce unnecessary database operations, and improve the overall performance of the system.
(7)后台逻辑应用层负责生成SQL语句并发送请求,而后台核心控制层负责执行SQL语句并返回结果。这种清晰的职责划分使得系统的开发和维护更加容易进行,降低了开发成本和维护成本。(7) The backend logic application layer is responsible for generating SQL statements and sending requests, while the backend core control layer is responsible for executing SQL statements and returning results. This clear division of responsibilities makes system development and maintenance easier and reduces development and maintenance costs.
可选地,所述的业务处理系统还包括:标准算子层或者标准业务逻辑流层中至少其一,所述标准算子层包括封装好的标准业务处理算子,所述标准业务逻辑流层包括封装好的标准业务逻辑流;Optionally, the business processing system further comprises: at least one of a standard operator layer or a standard business logic flow layer, wherein the standard operator layer comprises encapsulated standard business processing operators, and the standard business logic flow layer comprises encapsulated standard business logic flows;
对应地,所述运行所述启动代码,触发所述可执行脚本文件的运行时,所述后台逻辑应用层通过所述代码解释器接口客户端与所述代码解释器接口服务端之间的交互,将适配所述目标业务逻辑的标准业务参数传入所述标准业务处理算子和/或所述标准业务逻辑流中以触发所述业务逻辑数据和/或所述标准业务处理算子、所述标准业务逻辑流的执行并得到执行结果,再通过所述代码解释器接口客户端与所述代码解释器接口服务端之间的交互,将执行结果返回给所述可执行脚本文件,所述标准业务参数从所述业务执行请求获取,或者,通过构建SQL语句的方式从所述后台数据存储层获取,或者从后台核心控制层的缓存获取。Correspondingly, when the startup code is run to trigger the runtime of the executable script file, the background logic application layer, through the interaction between the code interpreter interface client and the code interpreter interface server, passes the standard business parameters adapted to the target business logic into the standard business processing operator and/or the standard business logic flow to trigger the execution of the business logic data and/or the standard business processing operator and the standard business logic flow and obtain the execution result, and then returns the execution result to the executable script file through the interaction between the code interpreter interface client and the code interpreter interface server. The standard business parameters are obtained from the business execution request, or obtained from the background data storage layer by constructing SQL statements, or obtained from the cache of the background core control layer.
为此,在业务处理系统中引入标准算子层或标准业务逻辑流层,并在执行可执行脚本文件时通过代码解释器接口传递适配的标准业务参数,具有如下技术好处:To this end, a standard operator layer or a standard business logic flow layer is introduced into the business processing system, and adapted standard business parameters are passed through the code interpreter interface when executing the executable script file. This has the following technical benefits:
(1)标准算子层封装了通用的、重复使用的业务处理算子,而标准业务逻辑流层封装了常见的业务处理流程。这种封装使得业务逻辑可以在不同的脚本和场景中被复用,提高了代码的复用性和开发效率。(1) The standard operator layer encapsulates common, reusable business processing operators, while the standard business logic flow layer encapsulates common business processing flows. This encapsulation allows business logic to be reused in different scripts and scenarios, improving code reusability and development efficiency.
(2)通过向标准业务处理算子或标准业务逻辑流传递适配的标准业务参数,可以灵活地配置业务逻辑的执行方式和参数值。这使得系统能够根据不同的业务需求和场景快速调整业务逻辑,提高了系统的灵活性和适应性。(2) By passing adapted standard business parameters to standard business processing operators or standard business logic flows, the execution mode and parameter values of business logic can be flexibly configured. This enables the system to quickly adjust business logic according to different business needs and scenarios, improving the flexibility and adaptability of the system.
(3)通过将业务逻辑拆分为标准的算子和逻辑流,使得业务逻辑的处理过程更加清晰和易于理解。这有助于降低代码的复杂性和维护成本,提高了系统的可维护性和可测试性。(3) By splitting the business logic into standard operators and logic flows, the business logic processing is clearer and easier to understand. This helps reduce code complexity and maintenance costs, and improves the maintainability and testability of the system.
(4)标准算子层和标准业务逻辑流层提供了可扩展的框架,可以方便地添加新的业务处理算子和逻辑流。当业务需求发生变化时,只需要在相应的层次上添加或修改算子或逻辑流,而不需要对整个系统进行大规模的修改。(4) The standard operator layer and standard business logic flow layer provide an extensible framework that allows easy addition of new business processing operators and logic flows. When business requirements change, it is only necessary to add or modify operators or logic flows at the corresponding level without making large-scale modifications to the entire system.
(5)通过将业务逻辑封装在算子或逻辑流中,并将数据访问逻辑通过SQL语句和数据库接口进行分离,实现了业务逻辑与数据访问的解耦。这使得系统可以更加灵活地处理数据,并提高了数据访问的安全性和效率。(5) By encapsulating business logic in operators or logic flows and separating data access logic through SQL statements and database interfaces, the business logic and data access are decoupled. This allows the system to process data more flexibly and improves the security and efficiency of data access.
(6)通过缓存机制,系统可以快速获取常用的标准业务参数,减少了从数据存储层获取数据的时间。同时,由于业务逻辑的复用和配置化,可以减少不必要的计算和逻辑判断,进一步提高系统的执行效率。(6) Through the cache mechanism, the system can quickly obtain commonly used standard business parameters, reducing the time to obtain data from the data storage layer. At the same time, due to the reuse and configuration of business logic, unnecessary calculations and logical judgments can be reduced, further improving the execution efficiency of the system.
(7)由于标准算子层和标准业务逻辑流层的封装和抽象,使得业务逻辑与具体的实现技术(如数据库、编程语言等)相对独立。这使得系统可以更容易地迁移到不同的技术平台或环境中。(7) Due to the encapsulation and abstraction of the standard operator layer and the standard business logic flow layer, the business logic is relatively independent of the specific implementation technology (such as database, programming language, etc.). This makes it easier to migrate the system to different technology platforms or environments.
可选地,所述的业务处理系统还包括:标准算子层或者标准业务逻辑流层中至少其一,所述标准算子层包括封装好的标准业务处理算子,所述标准业务逻辑流层包括封装好的标准业务逻辑流;Optionally, the business processing system further comprises: at least one of a standard operator layer or a standard business logic flow layer, wherein the standard operator layer comprises encapsulated standard business processing operators, and the standard business logic flow layer comprises encapsulated standard business logic flows;
对应地,所述运行所述启动代码,触发所述可执行脚本文件的运行时,所述后台逻辑应用层生成SQL语句,并通过所述代码解释器接口客户端与所述代码解释器接口服务端之间的交互将所述SQL语句发送给代码解释器接口服务端以通过所述数据接口从所述后台数据存储层获取运行所述业务逻辑数据;Correspondingly, the running of the startup code triggers the running of the executable script file, the background logic application layer generates an SQL statement, and sends the SQL statement to the code interpreter interface server through the interaction between the code interpreter interface client and the code interpreter interface server to obtain the business logic data from the background data storage layer through the data interface;
所述后台核心控制层将适配所述目标业务逻辑的标准业务参数传入所述标准业务处理算子和/或所述标准业务逻辑流获取到进行执行得到执行结果,并通过所述代码解释器接口服务端与所述代码解释器接口客户端之间的交互将获取的所述业务逻辑数据和所述执行结果加载到所述可执行脚本文件中以在所述后台逻辑应用层运行所述可执行脚本文件。The background core control layer passes the standard business parameters adapted to the target business logic into the standard business processing operator and/or the standard business logic flow to obtain the execution result, and loads the obtained business logic data and the execution result into the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client to run the executable script file in the background logic application layer.
为此,在业务处理系统中引入标准算子层或标准业务逻辑流层,并在执行可执行脚本文件的过程中,通过代码解释器接口和SQL语句进行数据交互,以及将适配的标准业务参数传递给标准业务处理算子或标准业务逻辑流来执行并获得执行结果,然后将这些结果加载到可执行脚本文件中,具有如下技术好处:To this end, a standard operator layer or a standard business logic flow layer is introduced into the business processing system. In the process of executing the executable script file, data is interacted through the code interpreter interface and SQL statements, and the adapted standard business parameters are passed to the standard business processing operator or the standard business logic flow to execute and obtain the execution results, and then these results are loaded into the executable script file. This has the following technical benefits:
(1)标准算子层和标准业务逻辑流层的引入使得业务逻辑得以复用和标准化。这意味着开发人员可以重用现有的业务逻辑组件,而不必每次都从头开始编写,大大提高了开发效率。(1) The introduction of the standard operator layer and the standard business logic flow layer enables the reuse and standardization of business logic. This means that developers can reuse existing business logic components instead of having to write them from scratch every time, greatly improving development efficiency.
(2)通过SQL语句从后台数据存储层获取业务逻辑数据,业务逻辑与数据存储实现了解耦。这种设计使得系统可以更加灵活地处理不同来源的数据,同时也方便了数据的维护和更新。(2) Business logic data is obtained from the backend data storage layer through SQL statements, and business logic and data storage are decoupled. This design allows the system to process data from different sources more flexibly, and also facilitates data maintenance and updating.
(3)通过适配目标业务逻辑的标准业务参数,系统可以灵活地配置业务逻辑的执行方式和参数值。这使得系统能够根据不同的业务需求和场景进行快速调整,提高了系统的灵活性和适应性。(3) By adapting the standard business parameters of the target business logic, the system can flexibly configure the execution mode and parameter values of the business logic. This enables the system to be quickly adjusted according to different business needs and scenarios, improving the flexibility and adaptability of the system.
(4)由于标准算子层和标准业务逻辑流层的存在,系统可以在运行时选择最优的算法和流程来处理业务逻辑,从而优化系统的性能。此外,通过缓存机制等技术手段,可以进一步减少不必要的计算和数据库访问,提高系统的响应速度。(4) Due to the existence of the standard operator layer and the standard business logic flow layer, the system can select the optimal algorithm and process to process business logic at runtime, thereby optimizing the performance of the system. In addition, through technical means such as caching mechanisms, unnecessary calculations and database access can be further reduced, thereby improving the response speed of the system.
(5)标准算子层和标准业务逻辑流层的封装和抽象使得系统更加易于维护和扩展。当业务需求发生变化时,只需要修改相应的算子或逻辑流,而不需要对整个系统进行大规模的修改。同时,这种设计也使得系统更加易于理解和测试。(5) The encapsulation and abstraction of the standard operator layer and the standard business logic flow layer make the system easier to maintain and expand. When business requirements change, only the corresponding operators or logic flows need to be modified without making large-scale modifications to the entire system. At the same time, this design also makes the system easier to understand and test.
(6)通过代码解释器接口进行数据和指令的交互,可以在服务端对数据进行验证和过滤,防止恶意SQL注入等安全攻击。同时,由于业务逻辑和数据访问的解耦,也使得系统可以更加容易地实现安全控制和权限管理。(6) By interacting with data and instructions through the code interpreter interface, data can be verified and filtered on the server side to prevent security attacks such as malicious SQL injection. At the same time, due to the decoupling of business logic and data access, the system can also more easily implement security control and permission management.
(7)通过标准业务逻辑流的封装,系统可以支持更加复杂的业务逻辑处理流程。这些流程可以通过组合和调用不同的标准业务处理算子来实现,从而满足更加多样化的业务需求。(7) Through the encapsulation of standard business logic flows, the system can support more complex business logic processing flows. These flows can be implemented by combining and calling different standard business processing operators to meet more diverse business needs.
可选地,所述标准算子层或者标准业务逻辑流层基于C++部署在所述后台核心控制层上。Optionally, the standard operator layer or the standard business logic flow layer is deployed on the background core control layer based on C++.
可选地,所述后台数据存储层部署有结构化数据库以及缓存数据库,所述结构化数据库用于业务逻辑数据,所述缓存数据库用于执行目标业务逻辑数据时所述业务逻辑数据中的热点数据进行缓存;Optionally, the background data storage layer is deployed with a structured database and a cache database, the structured database is used for business logic data, and the cache database is used to cache hot data in the business logic data when executing target business logic data;
对应地,所述数据接口包括结构化数据库接口和缓存数据库接口,以在从所述结构化数据库或者所述缓存数据库获取所述业务逻辑数据时屏蔽掉所述目标业务逻辑与所述结构化数据库或者所述缓存数据库的直接交互,以使得所述结构化数据库以及缓存数据库进行类型的切换时可保持所述目标业务逻辑对应的代码不变。Correspondingly, the data interface includes a structured database interface and a cache database interface, so as to shield the direct interaction between the target business logic and the structured database or the cache database when obtaining the business logic data from the structured database or the cache database, so that the code corresponding to the target business logic can be kept unchanged when the structured database and the cache database are switched in type.
为此,在后台数据存储层部署结构化数据库和缓存数据库,并通过数据接口(包括结构化数据库接口和缓存数据库接口)来屏蔽目标业务逻辑与数据库的直接交互,具有如下技术好处:To this end, a structured database and a cache database are deployed in the background data storage layer, and the direct interaction between the target business logic and the database is shielded through data interfaces (including structured database interfaces and cache database interfaces), which has the following technical benefits:
(1)缓存数据库用于存储业务逻辑数据中的热点数据,这些热点数据通常是访问频率高、更新频率低的数据。通过将热点数据存储在缓存数据库中,可以显著减少结构化数据库的访问次数,降低数据库负载,提高系统整体性能。(1) The cache database is used to store hot data in business logic data. These hot data are usually data with high access frequency and low update frequency. By storing hot data in the cache database, the number of accesses to the structured database can be significantly reduced, the database load can be reduced, and the overall system performance can be improved.
(2)通过将数据存储逻辑抽象为数据接口,可以方便地切换底层的数据存储技术,而无需修改业务逻辑代码。这意味着系统可以更加灵活地适应不同的数据存储需求,比如从关系型数据库切换到非关系型数据库,或者引入新的缓存技术等。(2) By abstracting the data storage logic into a data interface, the underlying data storage technology can be easily switched without modifying the business logic code. This means that the system can more flexibly adapt to different data storage requirements, such as switching from a relational database to a non-relational database, or introducing new caching technologies.
(3)通过数据接口进行数据的访问和操作,可以在服务端对数据进行验证和过滤,防止恶意攻击和数据泄露。同时,缓存数据库可以作为结构化数据库的一个备份,当结构化数据库发生故障时,可以从缓存数据库中恢复数据,保证数据的完整性和安全性。(3) By accessing and operating data through the data interface, data can be verified and filtered on the server side to prevent malicious attacks and data leakage. At the same time, the cache database can be used as a backup of the structured database. When the structured database fails, data can be restored from the cache database to ensure data integrity and security.
(4)由于缓存数据库存储了热点数据,当这些数据被频繁访问时,可以直接从缓存数据库中获取,而无需通过网络从结构化数据库中获取。这可以显著减少网络流量,降低网络负载,提高系统的响应速度。(4) Since the cache database stores hot data, when this data is frequently accessed, it can be directly obtained from the cache database without having to go through the network to obtain it from the structured database. This can significantly reduce network traffic, reduce network load, and improve system response speed.
(5)数据接口的抽象使得开发人员可以专注于业务逻辑的实现,而无需关心底层数据存储技术的细节。这可以降低开发难度,提高开发效率,同时也有利于代码的维护和扩展。(5) The abstraction of the data interface allows developers to focus on the implementation of business logic without having to worry about the details of the underlying data storage technology. This can reduce development difficulty, improve development efficiency, and also facilitate code maintenance and expansion.
(6)通过数据接口可以方便地监控和记录数据的访问和操作情况,这对于故障排查和性能监控非常有帮助。同时,由于数据接口与业务逻辑代码相分离,可以更加清晰地定位问题所在,提高故障排查的效率。(6) The data interface can be used to conveniently monitor and record data access and operation conditions, which is very helpful for troubleshooting and performance monitoring. At the same time, since the data interface is separated from the business logic code, the problem can be more clearly located, improving the efficiency of troubleshooting.
可选地,在从所述结构化数据库或者所述缓存数据库获取所述业务逻辑数据时,所述数据接口创建连接器以触发一执行器执行获取业务逻辑数据的SQL语句以从所述结构化数据库获取所述业务逻辑数据,或者执行缓存命令字符串以从所述缓存数据库获取所述业务逻辑数据,并在获取到所述业务逻辑数据后销毁所述连接器。Optionally, when obtaining the business logic data from the structured database or the cache database, the data interface creates a connector to trigger an executor to execute an SQL statement for obtaining business logic data to obtain the business logic data from the structured database, or executes a cache command string to obtain the business logic data from the cache database, and destroys the connector after obtaining the business logic data.
为此,在从结构化数据库或缓存数据库获取业务逻辑数据时,通过数据接口创建连接器(connector)来触发执行器执行SQL语句或缓存命令字符串,并在获取到数据后销毁连接器的做法,具有如下技术好处:To this end, when obtaining business logic data from a structured database or cache database, a connector is created through a data interface to trigger the executor to execute SQL statements or cache command strings, and the connector is destroyed after the data is obtained. This has the following technical benefits:
(1)连接器在获取数据后会被立即销毁,这意味着系统不会长时间占用这些资源。这种“即用即弃”的策略有助于减少系统资源的消耗,提高资源的利用率。(1) The connector will be destroyed immediately after acquiring data, which means that the system will not occupy these resources for a long time. This "use it and forget it" strategy helps reduce the consumption of system resources and improve resource utilization.
(2)由于连接器在获取数据后立即销毁,它不会被恶意用户或程序利用来持续访问数据库。这有助于防止潜在的安全风险,如SQL注入攻击等。(2) Since the connector is destroyed immediately after acquiring data, it cannot be used by malicious users or programs to continue to access the database. This helps prevent potential security risks such as SQL injection attacks.
(3)由于连接器的创建和销毁是动态的,系统可以根据需要动态地调整连接器的数量。在高峰时段,可以创建更多的连接器来处理更多的请求;而在低峰时段,则可以减少连接器的数量以节省资源。这种动态调整的能力使得系统更加灵活和可伸缩。(3) Since the creation and destruction of connectors are dynamic, the system can dynamically adjust the number of connectors as needed. During peak hours, more connectors can be created to handle more requests; during off-peak hours, the number of connectors can be reduced to save resources. This dynamic adjustment capability makes the system more flexible and scalable.
(4)每个连接器都是独立的,如果一个连接器在获取数据时遇到问题(如数据库故障、网络中断等),其他连接器不会受到影响。这种故障隔离的特性有助于保持系统的稳定性和可靠性。(4) Each connector is independent. If one connector encounters a problem when acquiring data (such as database failure, network interruption, etc.), other connectors will not be affected. This fault isolation feature helps maintain the stability and reliability of the system.
(5)对于开发人员来说,他们无需关心连接器的创建、使用和销毁等底层细节,只需通过数据接口发送请求并接收结果即可。这种简化的编程模型降低了开发的复杂度,提高了开发效率。(5) For developers, they do not need to care about the underlying details such as the creation, use and destruction of connectors. They only need to send requests and receive results through the data interface. This simplified programming model reduces the complexity of development and improves development efficiency.
可选地,所述后台核心控制层上建立有连接池,所述连接池中缓存有创建过的连接器,以在获取所述业务逻辑数据时,在所述连接池中查询是否有可用的连接器,如果有,则直接使用所述可用的连接器作为所述创建的连接器,否则,则执行创建连接器的步骤。Optionally, a connection pool is established on the background core control layer, and the connection pool caches the created connectors so that when obtaining the business logic data, the connection pool is queried to see whether there is an available connector. If so, the available connector is directly used as the created connector; otherwise, the step of creating a connector is executed.
为此,在后台核心控制层上建立连接池,并缓存已创建过的连接器,以便在获取业务逻辑数据时能够重用这些连接器,具有以下技术好处:To this end, a connection pool is established on the background core control layer, and the created connectors are cached so that these connectors can be reused when obtaining business logic data. This has the following technical benefits:
(1)通过重用连接器,可以避免频繁地创建和销毁连接,从而减少了连接建立和关闭的开销。这有助于提高系统的响应速度和吞吐量,特别是在高并发场景下。(1) By reusing connectors, you can avoid frequent creation and destruction of connections, thereby reducing the overhead of connection establishment and closing. This helps improve the system's responsiveness and throughput, especially in high-concurrency scenarios.
(2)连接池能够限制并发连接的数量,从而防止过多的连接请求导致系统资源耗尽。同时,通过合理的配置和管理,可以确保系统始终保持一定数量的可用连接,以满足业务需求。(2) The connection pool can limit the number of concurrent connections, thereby preventing excessive connection requests from exhausting system resources. At the same time, through reasonable configuration and management, it can ensure that the system always maintains a certain number of available connections to meet business needs.
(3)连接池中的连接器都是经过验证和初始化的,因此使用它们可以减少因连接问题导致的错误和故障。此外,连接池还可以实现连接的故障转移和负载均衡,进一步提高系统的可靠性和稳定性。(3) The connectors in the connection pool are all verified and initialized, so using them can reduce errors and failures caused by connection problems. In addition, the connection pool can also implement connection failover and load balancing, further improving the reliability and stability of the system.
(4)开发人员无需关心连接器的创建、使用和销毁等底层细节,只需从连接池中获取连接器并发送请求即可。这种简化的编程模型降低了开发的复杂度,提高了开发效率。(4) Developers do not need to worry about the underlying details of connector creation, use, and destruction. They only need to obtain the connector from the connection pool and send a request. This simplified programming model reduces development complexity and improves development efficiency.
(5)连接池中的连接器可以预先建立与数据库的连接,并保持这些连接处于活跃状态。这有助于减少数据库连接的开销,提高数据库访问的效率。(5) Connectors in the connection pool can pre-establish connections with the database and keep these connections active. This helps reduce the overhead of database connections and improve the efficiency of database access.
(6)连接池的设计是模块化的,可以方便地扩展和调整以适应不同的业务场景和需求。同时,由于连接池是集中管理的,因此可以更容易地进行监控和维护。(6) The connection pool is designed to be modular and can be easily expanded and adjusted to suit different business scenarios and needs. At the same time, since the connection pool is centrally managed, it can be more easily monitored and maintained.
可选地,所述连接池对其中缓存的连接器进行空闲的累积时间监控,若所述记录的连接器空闲的累积时间超过设定的累积时间阈值,则销毁所述空闲的连接器以回收连接器资源。Optionally, the connection pool monitors the cumulative idle time of the connectors cached therein, and if the recorded cumulative idle time of the connectors exceeds a set cumulative time threshold, the idle connectors are destroyed to reclaim connector resources.
为此,在连接池中引入对连接器空闲累积时间的监控,并在空闲累积时间超过设定的阈值时销毁连接器以回收资源,具有以下技术好处:To this end, the idle cumulative time of the connector is monitored in the connection pool, and the connector is destroyed to recycle resources when the idle cumulative time exceeds the set threshold. This has the following technical benefits:
(1)通过对连接器空闲累积时间的监控,系统能够识别出长时间未使用的连接器,并销毁这些连接器以释放占用的资源。这有助于避免资源的浪费,提高系统的资源利用率。(1) By monitoring the cumulative idle time of connectors, the system can identify connectors that have not been used for a long time and destroy them to release the occupied resources. This helps to avoid waste of resources and improve the resource utilization of the system.
(2)销毁长时间空闲的连接器可以减少系统中不必要的连接,从而降低系统维护这些连接的开销。这有助于提升系统的整体性能,特别是在高并发场景下,可以减少资源竞争和冲突。(2) Destroying long-idle connectors can reduce unnecessary connections in the system, thereby reducing the system's overhead in maintaining these connections. This helps improve the overall performance of the system, especially in high-concurrency scenarios, by reducing resource competition and conflicts.
(3)长时间空闲的连接器可能存在潜在的安全风险或连接失效问题。通过销毁这些连接器,系统可以降低这些风险,提高系统的稳定性和安全性。(3) Connectors that are idle for a long time may pose potential security risks or connection failure problems. By destroying these connectors, the system can reduce these risks and improve system stability and security.
(4)当系统负载增加时,连接池可以迅速创建新的连接器以满足需求。而当系统负载降低时,通过销毁空闲连接器,连接池可以收缩规模,以适应当前的需求。这种可伸缩性使得系统能够灵活地应对不同的业务场景和需求。(4) When the system load increases, the connection pool can quickly create new connectors to meet demand. When the system load decreases, the connection pool can shrink to meet current demand by destroying idle connectors. This scalability enables the system to flexibly respond to different business scenarios and needs.
(5)通过连接池对连接器进行统一管理和维护,可以简化系统管理员的工作。管理员无需手动管理每个连接器的生命周期,只需配置连接池的参数即可实现自动管理。(5) The unified management and maintenance of connectors through the connection pool can simplify the work of system administrators. Administrators do not need to manually manage the life cycle of each connector, but only need to configure the parameters of the connection pool to achieve automatic management.
(6)开发人员无需关心连接器的创建、销毁等底层细节,只需通过连接池获取连接器即可进行业务逻辑的开发。这降低了开发的复杂度,提高了开发效率。(6) Developers do not need to worry about the underlying details such as the creation and destruction of connectors. They only need to obtain connectors through the connection pool to develop business logic. This reduces the complexity of development and improves development efficiency.
可选地,所述后台核心控制层和所述后台逻辑应用层按照一一对应的方式组成多个分布式节点,在所述目标业务逻辑包括多个目标业务子逻辑时,所述后台逻辑应用层运行所述可执行脚本文件时创建多个目标业务子逻辑对应的多个子任务,并基于所述代码解释器接口客户端与所述代码解释器接口服务端之间的交互,调用所述后台核心控制层上部署的所述数据接口将所述多个子任务缓存到所述后台数据存储层;Optionally, the background core control layer and the background logic application layer form a plurality of distributed nodes in a one-to-one correspondence manner. When the target business logic includes a plurality of target business sub-logics, the background logic application layer creates a plurality of subtasks corresponding to the plurality of target business sub-logics when running the executable script file, and based on the interaction between the code interpreter interface client and the code interpreter interface server, calls the data interface deployed on the background core control layer to cache the plurality of subtasks to the background data storage layer;
对应地,多个所述分布式节点按照下述方式配合以并行执行所述多个目标逻辑子逻辑:在每个分布式节点中的后台核心控制层上创建多个线程,每个分布式节点上的每个线程消费一个子任务,以触发该每个分布式节点的后台逻辑应用层执行一个目标业务子逻辑。Correspondingly, the multiple distributed nodes cooperate in the following manner to execute the multiple target logic sub-logics in parallel: multiple threads are created on the background core control layer in each distributed node, and each thread on each distributed node consumes a subtask to trigger the background logic application layer of each distributed node to execute a target business sub-logic.
为此,将后台核心控制层和后台逻辑应用层按照一一对应的方式组成多个分布式节点,并在执行包含多个目标业务子逻辑的目标业务逻辑时,通过创建子任务、利用数据接口缓存子任务,并在多个分布式节点上并行执行这些子任务,具有以下技术好处:To this end, the backend core control layer and the backend logic application layer are organized into multiple distributed nodes in a one-to-one correspondence. When executing the target business logic containing multiple target business sub-logics, subtasks are created, subtasks are cached using the data interface, and these subtasks are executed in parallel on multiple distributed nodes. This has the following technical benefits:
(1)通过将目标业务逻辑拆分成多个子任务,并在多个分布式节点上并行执行这些子任务,可以显著提高系统的处理能力。每个分布式节点都可以同时处理多个子任务,从而充分利用了系统的硬件资源。(1) By splitting the target business logic into multiple subtasks and executing these subtasks in parallel on multiple distributed nodes, the system's processing capacity can be significantly improved. Each distributed node can process multiple subtasks at the same time, thus making full use of the system's hardware resources.
(2)分布式节点的设计使得系统可以轻松地扩展以应对更高的负载。当业务逻辑变得更为复杂或处理的数据量增加时,可以通过添加更多的分布式节点来增加系统的处理能力。(2) The design of distributed nodes allows the system to be easily expanded to cope with higher loads. When the business logic becomes more complex or the amount of data processed increases, the system's processing capacity can be increased by adding more distributed nodes.
(3)由于每个分布式节点都是独立的,因此一个节点的故障不会影响到其他节点的运行。此外,通过在数据存储层中缓存子任务,即使某个节点出现故障,其他节点也可以继续从数据存储层中获取子任务并执行,从而确保了系统的容错性和可靠性。(3) Since each distributed node is independent, the failure of one node will not affect the operation of other nodes. In addition, by caching subtasks in the data storage layer, even if a node fails, other nodes can continue to obtain subtasks from the data storage layer and execute them, thus ensuring the fault tolerance and reliability of the system.
(4)通过将后台核心控制层和后台逻辑应用层分离,可以更加灵活地配置和管理分布式节点。例如,可以根据不同的业务需求将不同的业务逻辑部署到不同的节点上,或者根据节点的负载情况动态地调整节点的配置。(4) By separating the backend core control layer from the backend logic application layer, distributed nodes can be configured and managed more flexibly. For example, different business logics can be deployed to different nodes according to different business needs, or the node configuration can be dynamically adjusted according to the node load.
(5)通过创建子任务和并行执行这些子任务,可以将复杂的业务逻辑拆分成多个简单的任务。这使得开发人员可以更加专注于单个任务的实现,降低了开发的复杂度。同时,由于每个分布式节点都是独立的,因此可以单独对节点进行升级和维护,而无需影响整个系统的运行。(5) By creating subtasks and executing them in parallel, complex business logic can be split into multiple simple tasks. This allows developers to focus more on the implementation of a single task, reducing the complexity of development. At the same time, since each distributed node is independent, the node can be upgraded and maintained individually without affecting the operation of the entire system.
(6)通过合理地分配和管理分布式节点上的资源(如CPU、内存和磁盘空间),可以确保系统资源的最大化利用。例如,可以根据每个节点的负载情况动态地调整分配给节点的资源量,或者将空闲的资源用于处理其他任务。(6) By properly allocating and managing resources (such as CPU, memory, and disk space) on distributed nodes, it is possible to ensure maximum utilization of system resources. For example, the amount of resources allocated to a node can be dynamically adjusted based on the load of each node, or idle resources can be used to process other tasks.
另外,上述实施例中,以采用C++与Python语言为例进行说明,但是在其他一些可能得应用场景中,也可以是采用其他组合式,如:Java,Go搭配Python或者Lua等。In addition, in the above embodiments, C++ and Python are used as examples for illustration, but in other possible application scenarios, other combinations may also be used, such as Java, Go with Python or Lua, etc.
基于上述任一实施例,本申请实施例还提供一种电子设备,其上部署有前端低代码层,所述前端代码层上具有标准组件库,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成业务执行请求以触发后台核心控制层和后台逻辑应用层执行如下处理:所述后台核心控制层上的前端接口接收所述业务执行请求并对其进行解析以得到业务逻辑配置参数,以使得所述后台核心控制层基于所述业务逻辑配置参数,调用所述后台核心控制层的数据接口获取运行所述目标业务逻辑的代码并对其进行封装形成可执行脚本文件;所述后台逻辑应用层通过运行所述可执行脚本文件,触发所述后台逻辑应用层上的代码解释器接口客户端与所述后台核心控制层上的代码解释器接口服务端之间的交互,以使得所述后台核心控制层调用所述数据接口从后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并通过所述代码解释器接口服务端与所述代码解释器接口客户端的交互将所述业务逻辑数据返回给所述可执行脚本文件。Based on any of the above embodiments, the embodiments of the present application also provide an electronic device, on which a front-end low-code layer is deployed, and the front-end code layer has a standard component library, and the standard component library has several standard components to adapt to the target business processing logic, each standard component has a static attribute configuration and a dynamic attribute configuration, the static attribute configuration at least includes a business data definition that matches the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that a business execution request can be generated based on the dynamic attribute configuration to trigger the background core control layer and the background logic application layer to perform the following processing: the front-end interface on the background core control layer receives the business execution request and parses it to obtain the business logic configuration parameters number, so that the background core control layer calls the data interface of the background core control layer based on the business logic configuration parameters to obtain the code for running the target business logic and encapsulates it to form an executable script file; the background logic application layer triggers the interaction between the code interpreter interface client on the background logic application layer and the code interpreter interface server on the background core control layer by running the executable script file, so that the background core control layer calls the data interface to obtain the business logic data required for running the executable script file from the background data storage layer, and returns the business logic data to the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client.
此处,上述电子设备中各个特征的示例性解释可参见上述针对图1的说明。另外,电子设备的形态不做限定,可以是移动设备,也可以是台式计算机、笔记本计算机等可以实现本申请的任何设备。Here, the exemplary explanation of each feature of the above electronic device can refer to the above description of Figure 1. In addition, the form of the electronic device is not limited, and it can be a mobile device, or a desktop computer, notebook computer, or any other device that can implement the present application.
基于上述任一实施例,本申请实施例还提供一种服务器,其上部署有后台核心控制层和后台逻辑应用层,以与部署在前端电子设备上的前端低代码层配合执行如下交互:所述后台核心控制层上的前端接口接收业务执行请求并对其进行解析以得到业务逻辑配置参数,以使得所述后台核心控制层基于所述业务逻辑配置参数,调用所述后台核心控制层的数据接口获取运行目标业务逻辑的代码并对其进行封装形成可执行脚本文件;所述后台逻辑应用层通过运行所述可执行脚本文件,触发所述后台逻辑应用层上的代码解释器接口客户端与所述后台核心控制层上的代码解释器接口服务端之间的交互,以使得所述后台核心控制层调用所述数据接口从后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并通过所述代码解释器接口服务端与所述代码解释器接口客户端的交互将所述业务逻辑数据返回给所述可执行脚本文件;其中,所述前端代码层上具有标准组件库,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成所述业务执行请求。Based on any of the above embodiments, the embodiments of the present application also provide a server on which a background core control layer and a background logic application layer are deployed to cooperate with the front-end low-code layer deployed on the front-end electronic device to perform the following interaction: the front-end interface on the background core control layer receives the business execution request and parses it to obtain the business logic configuration parameters, so that the background core control layer calls the data interface of the background core control layer based on the business logic configuration parameters to obtain the code for running the target business logic and encapsulates it to form an executable script file; the background logic application layer triggers the interaction between the code interpreter interface client on the background logic application layer and the code interpreter interface server on the background core control layer by running the executable script file. The front-end code layer and the back-end code layer interact with each other, so that the back-end core control layer calls the data interface to obtain the business logic data required for running the executable script file from the back-end data storage layer, and returns the business logic data to the executable script file through the interaction between the code interpreter interface server and the code interpreter interface client; wherein, the front-end code layer has a standard component library, the standard component library has several standard components to adapt to the target business processing logic, each standard component has a static attribute configuration and a dynamic attribute configuration, the static attribute configuration at least includes a business data definition that matches the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that the business execution request can be generated based on the dynamic attribute configuration.
此处,上述服务器中各个特征的示例性解释可参见上述针对图1的说明。另外,服务器的形态不做限定。Here, the exemplary explanation of each feature of the above server can refer to the above description of Figure 1. In addition, the form of the server is not limited.
基于上述任一实施例,本申请实施例还提供一种工业管理的业务处理系统,其包括:前端低代码层、后台核心控制层、后台逻辑应用层、后台数据存储层;所述前端代码层上具有标准组件库,其中,所述标准组件库具有若干个标准组件以适配所述目标业务处理逻辑,每个标准组件具有静态属性配置以及动态属性配置,所述静态属性配置至少包括匹配于所述目标业务逻辑的业务数据定义,所述动态属性配置基于所述目标业务逻辑的行为进行配置,以使得可基于所述动态属性配置生成业务执行请求;所述后台核心控制层用于接收所述业务执行请求并对其进行解析以得到业务逻辑配置参数,以基于所述业务逻辑配置参数,从所述后台数据存储层获取运行所述目标业务逻辑的代码并对其进行封装形成可执行脚本文件;所述后台逻辑应用层通过运行所述可执行脚本文件,以使得所述后台核心控制层调用所述数据接口从所述后台数据存储层获取运行所述可执行脚本文件所需的业务逻辑数据,并将所述业务逻辑数据返回给所述可执行脚本文件。Based on any of the above embodiments, an embodiment of the present application also provides a business processing system for industrial management, which includes: a front-end low-code layer, a back-end core control layer, a back-end logic application layer, and a back-end data storage layer; the front-end code layer has a standard component library, wherein the standard component library has several standard components to adapt the target business processing logic, each standard component has a static attribute configuration and a dynamic attribute configuration, the static attribute configuration at least includes a business data definition that matches the target business logic, and the dynamic attribute configuration is configured based on the behavior of the target business logic, so that a business execution request can be generated based on the dynamic attribute configuration; the back-end core control layer is used to receive the business execution request and parse it to obtain business logic configuration parameters, so as to obtain the code for running the target business logic from the back-end data storage layer based on the business logic configuration parameters and encapsulate it to form an executable script file; the back-end logic application layer runs the executable script file so that the back-end core control layer calls the data interface to obtain the business logic data required to run the executable script file from the back-end data storage layer, and returns the business logic data to the executable script file.
此处,上述业管理的业务处理系统中各个特征的示例性解释可参见上述针对图1的说明。Here, the exemplary explanation of each feature in the business processing system for business management can be found in the above description of FIG. 1 .
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410718259.3A CN118466942A (en) | 2024-06-04 | 2024-06-04 | Business processing system, electronic equipment and server for industrial management |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410718259.3A CN118466942A (en) | 2024-06-04 | 2024-06-04 | Business processing system, electronic equipment and server for industrial management |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118466942A true CN118466942A (en) | 2024-08-09 |
Family
ID=92162020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410718259.3A Pending CN118466942A (en) | 2024-06-04 | 2024-06-04 | Business processing system, electronic equipment and server for industrial management |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118466942A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170168783A1 (en) * | 2015-12-10 | 2017-06-15 | Sap Se | Generating logic with scripting language in software as a service enterprise resource planning |
CN108809971A (en) * | 2018-06-01 | 2018-11-13 | 广州亿图自动控制系统有限公司 | A kind of opened industrial Internet of Things |
CN112363718A (en) * | 2020-11-10 | 2021-02-12 | 杭州和利时自动化有限公司 | Industrial application integration system based on micro-service architecture |
CN113553664A (en) * | 2021-07-23 | 2021-10-26 | 北京中船信息科技有限公司 | Ship factory logistics simulation system and method based on industrial internet platform |
CN114911482A (en) * | 2022-03-24 | 2022-08-16 | 北京邮电大学深圳研究院 | Low code application generation system and method in industrial scene |
CN117850771A (en) * | 2023-11-21 | 2024-04-09 | 中国船舶集团有限公司第七一一研究所 | Business application development platform, method and storage medium for web service |
-
2024
- 2024-06-04 CN CN202410718259.3A patent/CN118466942A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170168783A1 (en) * | 2015-12-10 | 2017-06-15 | Sap Se | Generating logic with scripting language in software as a service enterprise resource planning |
CN108809971A (en) * | 2018-06-01 | 2018-11-13 | 广州亿图自动控制系统有限公司 | A kind of opened industrial Internet of Things |
CN112363718A (en) * | 2020-11-10 | 2021-02-12 | 杭州和利时自动化有限公司 | Industrial application integration system based on micro-service architecture |
CN113553664A (en) * | 2021-07-23 | 2021-10-26 | 北京中船信息科技有限公司 | Ship factory logistics simulation system and method based on industrial internet platform |
CN114911482A (en) * | 2022-03-24 | 2022-08-16 | 北京邮电大学深圳研究院 | Low code application generation system and method in industrial scene |
CN117850771A (en) * | 2023-11-21 | 2024-04-09 | 中国船舶集团有限公司第七一一研究所 | Business application development platform, method and storage medium for web service |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6871223B2 (en) | System and method for agent reporting in to server | |
US9996374B2 (en) | Deployment and installation of updates in a virtual environment | |
WO2022001209A1 (en) | Job execution method, apparatus and system, and computer-readable storage medium | |
US8095823B2 (en) | Server computer component | |
US9207934B2 (en) | Method and system for virtualization of software applications | |
US7774762B2 (en) | System including run-time software to enable a software application to execute on an incompatible computer platform | |
US11385993B2 (en) | Dynamic integration of command line utilities | |
CN109614167B (en) | Method and system for managing plug-ins | |
US20070240171A1 (en) | Device, Method, And Computer Program Product For Accessing A Non-Native Application Executing In Virtual Machine Environment | |
US20090300093A1 (en) | Server computer | |
CN113986449A (en) | Container-oriented Linux kernel virtualization system and method | |
US20090320045A1 (en) | Server computer component | |
CN113312046B (en) | Sub-application page processing method, device and computer equipment | |
US20160020951A1 (en) | Managing target computer using encapsulated file | |
US20220083364A1 (en) | Reconciler sandboxes for secure kubernetes operators | |
CN101771762A (en) | Method and system for dynamically loading services in service system | |
CN108958708A (en) | A kind of software system architecture component-based and software implementation method | |
CN101645020A (en) | Virtual operating system creation method | |
US11294791B2 (en) | Code optimization for connected managed runtime environments | |
CN114595462B (en) | Data processing method and device | |
CN111722853B (en) | Method and equipment for deploying installation script | |
CN118860799B (en) | Method and system for realizing automated operation and maintenance of OpenStack cloud computing | |
US11886326B2 (en) | Configuring test operations on a per-module basis | |
CN119960909A (en) | A node automation management method and device based on cloud native environment | |
US10394610B2 (en) | Managing split packages in a module system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |