Business processing method and device
Through the business componentized development model, business components and processing units are obtained and weaved based on flow configuration information, the problems of insufficient code redundancy and adaptability in the traditional development model are solved, and efficient and flexible business processing and dynamic rendering are achieved.
Patent Information
- Application Number
- CN202110522438.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-13
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2041-05-13
AI Technical Summary
In the prior art, the traditional three-layer architecture and MVC model have resulted in large amount of code, logical redundancy and hierarchical coupling in project development, making it difficult to effectively adapt to the needs of various front-end open source frameworks and massive specialized scenarios.
Through a business component-based development model, according to the flow configuration information of the target business scenario, the corresponding components and units are obtained from the business component library and processing unit library, and the business processing flow is weaved to form, supporting dynamic page rendering and automated scenario development configuration.
It improves the reusability and development efficiency of background code, makes the code more robust, and can flexibly adapt to the online needs of massive and dense specialized scenarios.
Smart Images

Figure CN113157271B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a business processing method and device. Background Art
[0002] In project development, it is necessary to develop corresponding business processing frameworks for different businesses. In the prior art, the traditional three-tier architecture (presentation layer, data access layer, logic layer) is often used for development, but the traditional three-tier architecture has a large amount of code and is prone to a large amount of logical redundancy and hierarchical coupling. The prior art also uses the MVMM (Model-View-ViewModel) mode and the MVC (Model View Controller) mode with front-end and back-end separation for development, but the MVC mode actually only involves the presentation layer in the three-tier architecture. For the entire back-end code framework, it still cannot change the current situation of logical redundancy. Summary of the invention
[0003] In view of this, the embodiments of the present invention provide a method and device for business processing, which can support dynamic rendering of pages and better adapt to various front-end open source frameworks; can improve the reusability of background codes, improve development efficiency, and make the code more robust; can form an automated scenario development configuration, so that various sub-businesses can be better characterized and derived, and flexibly adapt to the needs of massive and intensive online characteristic scenarios.
[0004] To achieve the above object, according to one aspect of an embodiment of the present invention, a service processing method is provided, including:
[0005] According to the flow configuration information of the target business scenario, the target business component is obtained from the business component library, and the corresponding target processing unit is obtained from the processing unit library;
[0006] Weaving each of the target processing units and the target business components to form a business processing flow, and obtaining a business processing result;
[0007] The business processing result is returned to the front end of the page.
[0008] Optionally, the stream configuration information includes a target scene identifier;
[0009] Acquiring a target business component from a business component library includes: acquiring a business component corresponding to the target scenario identifier from the business component library as the target business component;
[0010] Acquiring a corresponding target processing unit from a processing unit library includes: acquiring a processing unit corresponding to the target scene identifier from the processing unit library as the target processing unit.
[0011] Optionally, the flow configuration information includes a call logic identifier;
[0012] Weaving each of the target processing units and the target business components to form a business processing flow includes: determining the calling logic of the target business scenario according to the calling logic identifier, driving each of the target processing units according to the calling logic, and making each of the target processing units perform data processing according to the corresponding target business component.
[0013] Optionally, the flow configuration information further includes a data source identifier; each of the service components includes: one or more service fields;
[0014] The target processing unit performs data processing according to the corresponding target business component, including: determining the data source of each business field in the target business component according to the data source identifier, obtaining the field value of the corresponding business field from the data source of each business field, obtaining the input parameter data of the target processing unit, and performing data processing using the input parameter data as the input parameter of the target processing unit.
[0015] Optionally, determining the calling logic of the target business scenario according to the calling logic identifier includes:
[0016] Determine whether the call logic of the target business scenario exists in the local cache; if so, obtain the call logic of the target business scenario from the local cache; otherwise, obtain the call logic of the target business scenario from the database server, and save the obtained call logic to the local cache.
[0017] Optionally, obtaining the calling logic of the target business scenario from the database server includes: obtaining the calling logic of the target business scenario from the database server based on DMA technology.
[0018] Optionally, acquiring a field value of a corresponding business field from a data source of each business field includes:
[0019] A data access model corresponding to the data source is selected at the DAO layer, and a field value of a corresponding business field is acquired from a database server corresponding to the data source based on the data access model.
[0020] Optionally, the method further comprises: before acquiring the field value of the corresponding business field from the data source of each business field, setting a general data acquisition driver at the DAO layer;
[0021] Acquiring the field value of the corresponding business field from the data source of each business field includes: acquiring the field value of the corresponding business field from the database server corresponding to the data source based on the general data acquisition driver set in the DAO layer.
[0022] Optionally, the stream configuration information further includes: a visualization display request;
[0023] The method also includes: visually displaying the process of obtaining a target business component from a business component library, obtaining a corresponding target processing unit from a processing unit library, and weaving each of the target processing units and the target business component to form a business processing flow.
[0024] Optionally, the method further includes: performing at least one of the following operations on the business component library and / or the processing unit library: expansion, modification, and deletion.
[0025] According to a second aspect of an embodiment of the present invention, a service processing device is provided, including:
[0026] The acquisition module acquires the target business component from the business component library and the corresponding target processing unit from the processing unit library according to the flow configuration information of the target business scenario;
[0027] A processing module, weaving each of the target processing units and the target business components to form a business processing flow, and obtaining a business processing result;
[0028] The return module returns the business processing result to the front end of the page.
[0029] Optionally, the stream configuration information includes a target scene identifier;
[0030] The acquisition module acquires the target business component from the business component library, including: acquiring the business component corresponding to the target scenario identifier from the business component library as the target business component;
[0031] The acquisition module acquires the corresponding target processing unit from the processing unit library, including: acquiring a processing unit corresponding to the target scene identifier from the processing unit library as the target processing unit.
[0032] Optionally, the flow configuration information includes a call logic identifier;
[0033] The processing module weaves each of the target processing units and the target business components to form a business processing flow, including: determining the calling logic of the target business scenario according to the calling logic identifier, driving each of the target processing units according to the calling logic, so that each of the target processing units performs data processing according to the corresponding target business component.
[0034] Optionally, the flow configuration information further includes a data source identifier; each of the service components includes: one or more service fields;
[0035] The target processing unit performs data processing according to the corresponding target business component, including: determining the data source of each business field in the target business component according to the data source identifier, obtaining the field value of the corresponding business field from the data source of each business field, obtaining the input parameter data of the target processing unit, and performing data processing using the input parameter data as the input parameter of the target processing unit.
[0036] Optionally, the processing module determines the calling logic of the target business scenario according to the calling logic identifier, including:
[0037] Determine whether the call logic of the target business scenario exists in the local cache; if so, obtain the call logic of the target business scenario from the local cache; otherwise, obtain the call logic of the target business scenario from the database server, and save the obtained call logic to the local cache.
[0038] Optionally, the processing module obtains the calling logic of the target business scenario from the database server, including: obtaining the calling logic of the target business scenario from the database server based on DMA technology.
[0039] Optionally, the processing module obtains a field value of a corresponding business field from a data source of each business field, including:
[0040] A data access model corresponding to the data source is selected at the DAO layer, and a field value of a corresponding business field is acquired from a database server corresponding to the data source based on the data access model.
[0041] Optionally, the method further comprises: before acquiring the field value of the corresponding business field from the data source of each business field, setting a general data acquisition driver at the DAO layer;
[0042] The processing module obtains the field value of the corresponding business field from the data source of each business field, including: obtaining the field value of the corresponding business field from the database server corresponding to the data source based on the general data acquisition driver set in the DAO layer.
[0043] Optionally, the stream configuration information further includes: a visualization display request;
[0044] The device also includes a display module for visually displaying the process of obtaining a target business component from a business component library, obtaining a corresponding target processing unit from a processing unit library, and weaving each of the target processing units and the target business component to form a business processing flow.
[0045] Optionally, the device further comprises a configuration module, configured to perform at least one of the following operations on the business component library and / or the processing unit library: expansion, modification, and deletion.
[0046] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for service processing, including:
[0047] one or more processors;
[0048] a storage device for storing one or more programs,
[0049] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0050] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0051] An embodiment of the above invention has the following advantages or beneficial effects: by performing business processing according to flow configuration information, it can support dynamic rendering of pages and better adapt to various front-end open source frameworks; adopting a development model based on business components can improve the reusability of background codes, improve development efficiency, and make the code more robust; based on the flow controller, business components for pages or scenes are purchased, and various specialized business processing units are flexibly weaved to form an automated scene development configuration, so that various sub-businesses can be better featured and derived, and flexibly adapt to the needs of massive and intensive specialized scene launches.
[0052] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0054] Figure 1 It is a schematic diagram of the main flow of the method for business processing according to an embodiment of the present invention;
[0055] Figure 2 is a schematic diagram of the architecture of a method for business processing according to an embodiment of the present invention;
[0056] Figure 3 It is a schematic diagram of the principle of a method for business processing in an optional embodiment of the present invention;
[0057] Figure 4 is a schematic diagram of main modules of a device for service processing according to an embodiment of the present invention;
[0058] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0059] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0061] According to one aspect of an embodiment of the present invention, a service processing method is provided.
[0062] Figure 1 Schematic diagram of the main process of the business processing method of the embodiment of the present invention. Figure 1 As shown, the service processing method of the embodiment of the present invention includes:
[0063] Step S101: According to the flow configuration information of the target business scenario, a target business component is obtained from a business component library, and a corresponding target processing unit is obtained from a processing unit library;
[0064] Step S102: weave each target processing unit and target business component to form a business processing flow to obtain a business processing result;
[0065] Step S103: Return the business processing result to the front end of the page.
[0066] The entire business is divided into multiple sub-businesses, each of which is a business component. A business component contains more than one business field. The business processing unit is used to process the business fields in the business component. Each business component corresponds to one or more business units. The present invention maintains a business component library and a business processing unit library in advance. When creating a business, the required business components are obtained from the business component library, and the corresponding business units are obtained from the business unit library. In order to improve the adaptability of the business component library and the business processing unit library, at least one of the following operations can be performed on the business component library and / or the processing unit library: expansion, modification, and deletion.
[0067] The traditional three-tier architecture provides an inherent development idea and specification in the development process, but this architecture also brings certain defects: First, it increases the amount of code and reduces the performance of the system. If the layered architecture is not adopted, many businesses can directly access the database to obtain data directly. After using the three-tier architecture, they must comply with the specifications and complete it through the middle layer. Second, it is easy to generate a lot of logical redundancy and hierarchical coupling. If a function needs to be added or modified in the presentation layer, in order to ensure that the design complies with the layered specifications, it may be necessary to add or modify the logic in the corresponding business logic layer and data access layer. In addition, in the derivative featured business projects, facing the overwhelming variety of featured business needs, developers will modify the original business logic solidified by the three-tier architecture in order to abide by the three-tier architecture specifications. Various featured businesses are incrementally developed on the original logic, which accumulates into hidden dangers of code bugs in the future; the development of featured businesses is independent of the original logic, which will cause a lot of code redundancy.
[0068] The present invention is based on a process development model based on business components. It does not view business problems from the perspective of page or interface representation, but divides each sub-business into business components, and develops various personalized businesses around the business components. By extracting and classifying the sub-businesses in various business processes and making them into configurable business components, in the face of various new and specialized business scenario requirements, it is no longer necessary to divide the workload based on the original business page development model, and quickly configure and develop, shorten the online cycle, and provide more productivity for the development of multi-specialized business processes. By dividing the business components and adding a dynamic configuration framework for stream processing, on the one hand, a highly reusable business development framework can be provided for process business development, improving development efficiency and making the code logic clearer; on the other hand, it can also meet the requirements for the online launch of rich and tight specialized businesses, and provide more flexible services for business specialization.
[0069] The present invention performs business processing according to flow configuration information, can support dynamic rendering of pages, and better adapt to various front-end open source frameworks; adopts a development model based on business components, which can improve the reusability of background codes, improve development efficiency, and make the code more robust; based on the flow controller, business components are purchased for pages or scenes, and various specialized business processing units are flexibly weaved to form an automated scene development configuration, so that various sub-businesses can be better featured and derived, and flexibly adapt to the needs of massive and intensive specialized business online.
[0070] In some embodiments, the flow configuration information includes a target scenario identifier. Obtaining the target business component from the business component library includes: obtaining the business component corresponding to the target scenario identifier from the business component library as the target business component. Obtaining the corresponding target processing unit from the processing unit library includes: obtaining the processing unit corresponding to the target scenario identifier from the processing unit library as the target processing unit. By configuring the target scenario identifier, on the one hand, it is convenient to manage the services of various characteristic scenarios, and on the other hand, it can also improve the acquisition speed of business components and processing units, thereby improving business processing efficiency.
[0071] In some other embodiments, the flow configuration information includes a call logic identifier. Each target processing unit and the target business component are woven to form a business processing flow, including: determining the call logic of the target business scenario according to the call logic identifier, driving each target processing unit according to the call logic, and making each target processing unit perform data processing according to the corresponding target business component. The call logic indicates the call sequence between each processing unit. By configuring the call logic identifier, the call sequence between each target processing unit can be quickly obtained, thereby improving the business processing efficiency.
[0072] The flow configuration information also includes a data source identifier; each business component includes: one or more business fields. The target processing unit performs data processing according to the corresponding target business component, including: determining the data source of each business field in the target business component according to the data source identifier, obtaining the field value of the corresponding business field from the data source of each business field, obtaining the input parameter data of the target processing unit, and performing data processing using the input parameter data as the input parameter of the target processing unit.
[0073] The data source identifier specifies which page or which table's field value of the business field comes from. For example, the AZ field of business component 1 has corresponding fields in the three library tables of Model 1, Model 2, and Model 3. When editing a processing unit, determine which library table of Model 1, Model 2, and Model 3 the field value of the AZ field in the processing unit input parameter comes from based on the data source identifier. By configuring the data source identifier, it is possible to meet the diverse requirements of various specialized businesses on business fields, increase the speed of obtaining the processing unit input parameters, and thus improve business processing efficiency.
[0074] Optionally, the calling logic of the target business scenario is determined according to the calling logic identifier, including: judging whether the calling logic of the target business scenario exists in the local cache; if so, obtaining the calling logic of the target business scenario from the local cache; otherwise, obtaining the calling logic of the target business scenario from the database server, and saving the obtained calling logic to the local cache. By caching the calling logic, resource consumption caused by frequent access to the database server can be avoided, and system stability can be improved. In addition, when the business is frequent, by caching the calling logic of the target business scenario, the processing efficiency of the business of the target business scenario can be improved.
[0075] Obtaining the call logic of the target business scenario from the database server includes: obtaining the call logic of the target business scenario from the database server based on DMA (Direct Memory Access) technology. DMA technology refers to an interface technology in which an external device directly exchanges data with a system memory without passing through a CPU. This can increase the speed of data transmission.
[0076] Optionally, the field value of the corresponding business field is obtained from the data source of each business field, including: selecting a data access model corresponding to the data source in the DAO (Data Access Object) layer, and obtaining the field value of the corresponding business field from the database server corresponding to the data source based on the data access model. The DAO layer can support independent SQL design. By accessing the database in DAO, the corresponding data access model can be selected according to the different database structures used, thereby improving the adaptability to different types of databases.
[0077] Optionally, before obtaining the field value of the corresponding business field from the data source of each business field, a general data acquisition driver is set at the DAO layer. Obtaining the field value of the corresponding business field from the data source of each business field includes: obtaining the field value of the corresponding business field from the database server corresponding to the data source based on the general data acquisition driver set at the DAO layer. Based on various data access models, this embodiment abstracts a general driver for dynamic query, general insertion and update at the DAO layer. For some concise DML (Data Manipulation Language) processing statements, data access can be performed directly through the DAO layer general driver, thereby improving the adaptability to different types of databases. For some heterogeneous data sources, such as ES (ElasticSearch, a search server based on Lucene), etc., adaptation can also be performed at the DAO layer as much as possible.
[0078] In actual application, the flow configuration information may also include a visualization display request. The method of the embodiment of the present invention may also include: visually displaying the process of obtaining a target business component from a business component library, obtaining a corresponding target processing unit from a processing unit library, and weaving each target processing unit and the target business component to form a business processing flow. By visually displaying this process of business processing, it is convenient for users to intuitively understand the business processing flow and progress, thereby improving user experience.
[0079] Compared with the traditional three-tier architecture, the development model based on business componentization in the present invention has the following advantages: (1) The system is still orderly and decentralized, but it is no longer decentralized according to the inherent three levels, but according to business components. Different developers maintain different components. Externally, they only need to open the component elements and the flow control interface of the standard processing unit. Internally, they can flexibly derive the business components and form certain capabilities. It not only has good pluggability, but also greatly improves logical reuse. (2) The idea of the data access model layer is retained to improve data security, while supporting the adaptation of different data storage model frameworks in the data access model layer. (3) In the background logic processing, the flow controller can make the operation more direct, flexible, and orderly, reduce hierarchical redundancy, and improve system performance and development efficiency. (4) The coupling between different levels and page / interface processing is broken, the logic is almost redundant, and the code is highly maintainable. By splitting the business into business components and processing units and designing a universal flow controller driver for management, various specialized business scenario configurations can be stored in the database, from the page / interface through various business component processing to the data storage model, all the way through, which is helpful for the development and maintenance of medium and large business projects. It can also enable the business team to transform old codes into capabilities, empower business components, better innovate, and better adapt to the needs of rich and intensive specialized business launches.
[0080] Figure 2 FIG. 1 is a schematic diagram of the architecture of the service processing method of an embodiment of the present invention. Figure 2 As shown, this embodiment decomposes traditional business projects into components. The development model of "business component + processing unit" in this embodiment is completely different from the thinking dimension of the docking requirements in the traditional three-tier architecture. In the traditional three-tier architecture, after developers get the requirements, they often enter from the presentation layer first, and then go through the business logic layer for corresponding processing. In the development model of "business component + processing unit" in this embodiment, when developers get the requirements, they first consider the presentation layer (page / interface) that needs to be added or modified, which business components will be involved, what kind of special processing will be performed, or which previous processing about the business component can be used, and then develop around the business component to empower the business component and processing unit. As Figure 2As shown in the figure, the component elements represent the business component library, from which the required business components can be obtained; the process business processing represents the processing unit library, from which the required processing units can be obtained; the data acquisition driver obtains the field values of the business fields from databases such as business hot data, business cold data, other data sources, heterogeneous data sources, etc., and then inputs them into the processing unit for processing to obtain the business processing results.
[0081] In the face of new specialized process scenarios, by configuring the parameters of the scenarios, reusing business components and processing units, and automatically weaving the process state machine according to the flow configuration information of the business scenarios, the entire processing flow is completed.
[0082] Small and micro quick loans are a project in inclusive finance, which refers to loans issued by credit institutions to small and micro enterprises. Take this scenario as an example: Assume that in a certain inclusive finance personal loan project, the bank distributes the latest LPR interest rate to each branch, and makes special processing of target interest rates for different loan products and interest rate preferential policies for some special users. Then you can build a business component called LPR interest rate, including several business fields such as benchmark interest rate, interest rate calculation value, interest rate operator, interest rate type, preferential type, target interest rate, etc. A series of processing units can be made for the distribution of LPR benchmark interest rate, the special setting of target interest rate, and preferential policies for different regions and different groups. The parameters such as the first-level branch number, product code, administrative division, and main borrower occupation are elements for characteristic scenario judgment, and you can also customize the elements of scenario judgment. According to different scenario judgment elements, read the corresponding flow configuration information, inject it into the flow controller to weave the business processing state machine, and complete the entire backend processing.
[0083] The flow controller is used to control different characteristic scenarios in the business process to follow different business background processing flows. The method of the embodiment of the present invention is essentially a flow controller. Figure 3 FIG. 1 is a schematic diagram showing the principle of a method for business processing in an optional embodiment of the present invention. Figure 3 As shown in the figure, when a trigger action such as a page operation or other trigger operation occurs, the flow controller reads the flow configuration information of the scene according to the current business scene, "purchases" different business components, customizes different processing units, and weaves various processing units and component data through the state machine processor to form a processing flow. In this process, the operations in each processing unit can be dynamically linked to the data of the DAO layer to access resources in a targeted manner. After the processing flow is completed, the processing results are returned to the page or interface, and different characteristic businesses are presented in characteristic scenes after different processing flows. The flow controller mainly consists of three parts: component procurement and processing unit customization, state machine flow processor, and dynamic data model.
[0084] Component procurement and processing unit customization: Different pages or interfaces in different scenarios can purchase data from the back-end related business components, and these data can be connected to the corresponding fields in different tables in different data. Figure 3 The AZ field of component 1 has corresponding fields in the three library tables of model 1, model 2, and model 3. When customizing a processing unit, you can read parameters in the flow configuration information. The parameters specify the source of the input interface data of the processing unit. The state machine flow processor inputs this data into the processing unit for processing. The regulation and processing of business components and processing units are completely controlled by the state machine flow processor. Business components and processing units support characteristic design internally, and the external interface follows the specification of flow control calls.
[0085] State machine stream processor: The state machine stream processor is a general parameter-free code driver. It judges elements according to different scenarios, matches the configuration parameters in the configuration library to the component procurement and unit customization of the corresponding scenario, and weaves the state machine. The configuration parameters of the state machine stream processor are super hot data. Super hot data can be loaded into the memory cache through Redis (a Key-Value database), or some DMA technology designs can be used in the underlying database server framework to achieve fast reading. This embodiment can also graphically configure the interface of commonly used business components for each special scenario, empower business components, and enable business personnel to organize them flexibly.
[0086] Dynamic data model: The dynamic data model is a universal DAO layer that can select the corresponding data access model according to the different database structures used. The DAO layer can also abstract a universal driver for dynamic query, universal insertion, and update based on these models, and access data through the universal driver of the DAO layer. At the same time, for some heterogeneous data sources, such as ES, try to adapt them at the DAO layer.
[0087] The present invention can support dynamic rendering of pages and better adapt to front-end open source frameworks such as VUE (a progressive framework for building user interfaces), React (a JAVASCRIPT library for building user interfaces), and Angular (a Web front-end framework); improve the reusability of background codes, store scene parameter configurations in a library, and make background codes more robust; summarize business sub-modules under different scenarios, and after business components have formed capabilities in long-term development, the development efficiency is greatly improved, so that various business components can be better matched and derived in a featured manner, and flexibly adapt to the needs of massive and intensive featured scene launches.
[0088] According to a second aspect of an embodiment of the present invention, a device for implementing the above method is provided.
[0089] Figure 4FIG. 1 is a schematic diagram of the main modules of the device for service processing according to an embodiment of the present invention. Figure 4 As shown, the service processing device 400 includes:
[0090] The acquisition module 401 acquires the target business component from the business component library and the corresponding target processing unit from the processing unit library according to the flow configuration information of the target business scenario;
[0091] Processing module 402, weaving each of the target processing units and the target business components to form a business processing flow, and obtaining a business processing result;
[0092] Return module 403 returns the business processing result to the front end of the page.
[0093] Optionally, the stream configuration information includes a target scene identifier;
[0094] The acquisition module acquires the target business component from the business component library, including: acquiring the business component corresponding to the target scenario identifier from the business component library as the target business component;
[0095] The acquisition module acquires the corresponding target processing unit from the processing unit library, including: acquiring a processing unit corresponding to the target scene identifier from the processing unit library as the target processing unit.
[0096] Optionally, the flow configuration information includes a call logic identifier;
[0097] The processing module weaves each of the target processing units and the target business components to form a business processing flow, including: determining the calling logic of the target business scenario according to the calling logic identifier, driving each of the target processing units according to the calling logic, so that each of the target processing units performs data processing according to the corresponding target business component.
[0098] Optionally, the flow configuration information further includes a data source identifier; each of the service components includes: one or more service fields;
[0099] The target processing unit performs data processing according to the corresponding target business component, including: determining the data source of each business field in the target business component according to the data source identifier, obtaining the field value of the corresponding business field from the data source of each business field, obtaining the input parameter data of the target processing unit, and performing data processing using the input parameter data as the input parameter of the target processing unit.
[0100] Optionally, the processing module determines the calling logic of the target business scenario according to the calling logic identifier, including:
[0101] Determine whether the call logic of the target business scenario exists in the local cache; if so, obtain the call logic of the target business scenario from the local cache; otherwise, obtain the call logic of the target business scenario from the database server, and save the obtained call logic to the local cache.
[0102] Optionally, the processing module obtains the calling logic of the target business scenario from the database server, including: obtaining the calling logic of the target business scenario from the database server based on DMA technology.
[0103] Optionally, the processing module obtains a field value of a corresponding business field from a data source of each business field, including:
[0104] A data access model corresponding to the data source is selected at the DAO layer, and a field value of a corresponding business field is acquired from a database server corresponding to the data source based on the data access model.
[0105] Optionally, the method further comprises: before acquiring the field value of the corresponding business field from the data source of each business field, setting a general data acquisition driver at the DAO layer;
[0106] The processing module obtains the field value of the corresponding business field from the data source of each business field, including: obtaining the field value of the corresponding business field from the database server corresponding to the data source based on the general data acquisition driver set in the DAO layer.
[0107] Optionally, the stream configuration information further includes: a visualization display request;
[0108] The device also includes a display module for visually displaying the process of obtaining a target business component from a business component library, obtaining a corresponding target processing unit from a processing unit library, and weaving a business processing flow formed by each of the target processing units and the target business component.
[0109] Optionally, the device further comprises a configuration module, configured to perform at least one of the following operations on the business component library and / or the processing unit library: expansion, modification, and deletion.
[0110] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for service processing, including:
[0111] one or more processors;
[0112] a storage device for storing one or more programs,
[0113] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0114] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0115] Figure 5 An exemplary system architecture 500 is shown to which the service processing method or service processing apparatus according to the embodiment of the present invention can be applied.
[0116] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0117] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0118] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0119] The server 505 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 501, 502, and 503. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0120] It should be noted that the service processing method provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the service processing device is generally set in the server 505 .
[0121] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0122] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0123] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0124] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0125] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0126] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0127] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0128] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor including: an acquisition module, a processing module, and a return module. The names of these modules do not, in some cases, constitute a limitation on the module itself. For example, the acquisition module may also be described as "a module that weaves each of the target processing units and the target business components to form a business processing flow."
[0129] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining the target business component from the business component library and the corresponding target processing unit from the processing unit library according to the flow configuration information of the target business scenario; weaving each target processing unit and the target business component to form a business processing flow to obtain the business processing result; returning the business processing result to the front end of the page.
[0130] According to the technical solution of the embodiment of the present invention, by performing business processing according to the flow configuration information, it is possible to support dynamic rendering of pages and better adapt to various front-end open source frameworks; the adoption of a development model based on business components can improve the reusability of background codes, improve development efficiency, and make the code more robust; based on the state machine, business component procurement for pages or scenes and flexible weaving of various specialized business processing units can form an automated scenario development configuration, so that various sub-businesses can be better featured and derived, and flexibly adapt to the needs of massive and intensive specialized scenario launches.
[0131] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A business processing method, characterized in that: include: According to the flow configuration information of the target business scenario, the target business component is obtained from the business component library, and the corresponding target processing unit is obtained from the processing unit library; Weaving each of the target processing units and the target business components to form a business processing flow, and obtaining a business processing result; The flow configuration information includes a call logic identifier; weaving each of the target processing units and the target business component to form a business processing flow, including: determining the call logic of the target business scenario according to the call logic identifier through a flow controller, driving each of the target processing units according to the call logic, so that each of the target processing units performs data processing according to the corresponding target business component; The business processing result is returned to the front end of the page.
2. The method according to claim 1, characterized in that The stream configuration information includes a target scene identifier; Acquiring a target business component from a business component library includes: acquiring a business component corresponding to the target scenario identifier from the business component library as the target business component; Acquiring a corresponding target processing unit from a processing unit library includes: acquiring a processing unit corresponding to the target scene identifier from the processing unit library as the target processing unit.
3. The method according to claim 1, wherein the flow configuration information further includes a data source identifier; and each of the service components includes: One or more business fields; The target processing unit performs data processing according to the corresponding target business component, including: determining the data source of each business field in the target business component according to the data source identifier, obtaining the field value of the corresponding business field from the data source of each business field, obtaining the input parameter data of the target processing unit, and performing data processing using the input parameter data as the input parameter of the target processing unit.
4. The method according to claim 1, characterized in that Determining the calling logic of the target business scenario according to the calling logic identifier includes: Determine whether the call logic of the target business scenario exists in the local cache; if so, obtain the call logic of the target business scenario from the local cache; otherwise, obtain the call logic of the target business scenario from the database server, and save the obtained call logic to the local cache.
5. The method according to claim 4, characterized in that Acquiring the calling logic of the target business scenario from the database server includes: acquiring the calling logic of the target business scenario from the database server based on DMA technology.
6. The method according to claim 3, characterized in that Acquiring a field value of a corresponding business field from a data source of each of the business fields includes: A data access model corresponding to the data source is selected at the DAO layer, and a field value of a corresponding business field is acquired from a database server corresponding to the data source based on the data access model.
7. The method according to claim 3, characterized in that The method further comprises: before acquiring the field value of the corresponding business field from the data source of each business field, setting a general data acquisition driver at the DAO layer; Acquiring the field value of the corresponding business field from the data source of each business field includes: acquiring the field value of the corresponding business field from the database server corresponding to the data source based on the general data acquisition driver set in the DAO layer.
8. The method according to any one of claims 1 to 7, characterized in that: The stream configuration information also includes: a visualization display request; The method also includes: visually displaying the process of obtaining a target business component from a business component library, obtaining a corresponding target processing unit from a processing unit library, and using a flow controller to weave a business processing flow formed by each of the target processing units and the target business component.
9. The method according to any one of claims 1 to 7, characterized in that: The method further includes: performing at least one of the following operations on the business component library and / or the processing unit library: expansion, modification, and deletion.
10. A device for business processing, characterized in that: include: The acquisition module acquires the target business component from the business component library and the corresponding target processing unit from the processing unit library according to the flow configuration information of the target business scenario; A processing module, weaving each of the target processing units and the target business components to form a business processing flow, and obtaining a business processing result; The flow configuration information includes a call logic identifier; weaving each of the target processing units and the target business component to form a business processing flow, including: determining the call logic of the target business scenario according to the call logic identifier through a flow controller, driving each of the target processing units according to the call logic, so that each of the target processing units performs data processing according to the corresponding target business component; The return module returns the business processing result to the front end of the page.
11. An electronic device for business processing, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 9.
12. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Credit guarantee loan business processing method and device and electronic equipment
CN110634063A
Data analysis method, device and system
CN112783874A