A method and device for processing business data
By configuring the business data processing process and decoupling the configuration module and processing module, the problem of poor processing process flexibility in the existing technology is solved, and the efficiency of business data processing and the reduction of development and maintenance costs are achieved.
Patent Information
- Application Number
- CN202111072540.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-14
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2041-09-14
AI Technical Summary
In the prior art, business data processing methods are difficult to dynamically expand on the original code logic and processing processes, resulting in poor flexibility in processing processes, low efficiency in business data processing, and high development and maintenance costs.
By receiving service demand information and service processing node information, the processing process of service data is configured. The processing process indicates the target processing nodes at multiple levels, their processing methods and transmission directions. The target processing nodes receive and process service data, and according to the transmission direction Transfer the processed data.
Improves the flexibility of processing processes, supports dynamic expansion, improves business data processing efficiency, and reduces development and maintenance costs.
Smart Images

Figure CN113778993B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for processing business data. Background Art
[0002] With the development of Internet technology, more and more enterprises and institutions are starting or gradually improving their transformation to digital operations. For example, the S&OP system (Sales & Operations Planning) developed by e-commerce companies has realized the digital and integrated operation of sales plans, warehousing plans, and operation plans, significantly improving the efficiency of business operations.
[0003] There are at least the following problems in the prior art:
[0004] In the existing processing methods for business data, when business needs change, it is impossible to dynamically expand the original processing flow and data version rules based on the original code logic, resulting in poor flexibility of the configured processing flow and difficulty in rapid response, which reduces the processing efficiency of business data; and the original code logic requires a lot of modification and testing before it can be put online, which consumes a lot of development and maintenance costs. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for processing business data, which can decouple the configuration module from the processing module, improve the flexibility of the processing flow, support dynamic expansion of the information to be configured, improve the processing efficiency of business data, and reduce development costs and maintenance costs.
[0006] To achieve the above object, according to a first aspect of an embodiment of the present invention, a method for processing business data is provided, comprising:
[0007] Receive business demand information and business processing node information;
[0008] Configure the processing flow corresponding to the business data according to the business demand information and the business processing node information. The processing flow indicates the target processing nodes at multiple levels and their corresponding processing methods, as well as the transmission direction of the business data between the target processing nodes at multiple levels;
[0009] The starting node in the target processing node is used to receive business data, and after the business data is processed according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and corresponding business processing is performed.
[0010] Furthermore, the service requirement information indicates processing cycles corresponding to the plurality of service processing nodes. After the step of configuring the processing flow corresponding to the service data according to the service requirement information and the service processing node information, the method further includes:
[0011] According to the processing cycle and processing flow, the data version rules corresponding to the target processing nodes at each level in the processing flow are configured, and interface information for obtaining the data version rules is sent to the target processing nodes; wherein the data version rules indicate the number of data versions and the data version numbers.
[0012] Furthermore, for any target processing node in the processing flow that receives the service data, the following steps are performed:
[0013] Call the corresponding interface according to the interface information to obtain the data version rules;
[0014] After performing corresponding business processing on the received business data according to the corresponding processing method, constructing a data version including the processed business data according to the data version number;
[0015] When the number of data versions is met and / or the processing cycle of the target processing node at the next level is met, the data version including the processed business data is sent to the target processing node at the next level.
[0016] Furthermore, it also includes:
[0017] Receiving service update information, wherein the service update information includes service demand update information, or service demand update information and service processing node update information;
[0018] Update the processing flow according to business update information.
[0019] Furthermore, if the service update information includes an updated processing period, the processing method further includes:
[0020] The data version rules are updated according to the updated processing cycle and the updated processing flow.
[0021] Furthermore, the data version number indicates the data version type and the node number of the current target processing node.
[0022] Furthermore, the processing flow corresponding to the business data is configured according to the business demand information and the business processing node information, including:
[0023] Classify business data into types;
[0024] Sub-processing flows corresponding to different types of business data are configured according to business demand information and business processing node information, and multiple sub-processing flows constitute a processing flow corresponding to the business data; wherein each level in the sub-processing flow or the processing flow includes at least one target processing node.
[0025] According to a second aspect of an embodiment of the present invention, there is provided a device for processing business data, including:
[0026] An information receiving module, used to receive business demand information and business processing node information;
[0027] A configuration module is used to configure a processing flow corresponding to the business data according to the business demand information and the business processing node information. The processing flow indicates target processing nodes at multiple levels and their corresponding processing methods, as well as the transmission direction of the business data between target processing nodes at multiple levels;
[0028] The processing module is used to receive business data using the starting node in the target processing node, and after processing the business data according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and corresponding business processing is performed.
[0029] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, including:
[0030] one or more processors;
[0031] a storage device for storing one or more programs,
[0032] When one or more programs are executed by one or more processors, the one or more processors implement any of the business data processing methods described above.
[0033] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, any of the above-mentioned business data processing methods is implemented.
[0034] An embodiment of the above invention has the following advantages or beneficial effects: because it adopts receiving business demand information and business processing node information; configuring the processing flow corresponding to the business data according to the business demand information and the business processing node information, the processing flow indicates multiple levels of target processing nodes and their corresponding processing methods, and the transmission direction of the business data between the target processing nodes at multiple levels; using the starting node in the target processing node to receive the business data, and after the business data is processed according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and the corresponding business processing is performed. The technical means overcomes the technical problem that in the prior art, the configuration module and the processing module are highly coupled and dynamic expansion cannot be achieved due to the hard-coded method for configuring the corresponding processing method and data version rules on each processing node, resulting in poor flexibility of the configured processing flow, low processing efficiency of business data, and high development cost and maintenance cost; thereby achieving the technical effect of being able to decouple the configuration module from the processing module, improve the flexibility of the processing flow, support dynamic expansion of the information to be configured, improve the processing efficiency of business data, and reduce development cost and maintenance cost.
[0035] 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
[0036] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0037] Figure 1 is a schematic diagram of the main flow of a method for processing business data provided by a first embodiment of the present invention;
[0038] Figure 2a is a schematic diagram of the main flow of a method for processing business data provided by a second embodiment of the present invention;
[0039] Figure 2b yes Figure 2a A schematic diagram of the main execution flow of the target processing node in the processing method;
[0040] Figure 2c yes Figure 2a It is a schematic diagram of the main process of business data transmission between multi-level target nodes;
[0041] Figure 3 is a schematic diagram of main modules of a device for processing business data provided by an embodiment of the present invention;
[0042] Figure 4is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0043] Figure 5 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
[0044] 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.
[0045] In the prior art, the processing flow of business data and the processing nodes in the transmission process are mainly set by hard coding. However, since the corresponding processing methods and data version rules are configured on each processing node by hard coding, the configuration module (module for configuring the processing flow and data version rules) is highly coupled with the processing module (node for executing business processing). When business needs change, the existing method cannot be based on the original code logic to dynamically expand the original processing flow and data version rules, resulting in poor flexibility of the configured processing flow, difficulty in rapid response, and reduced business data processing efficiency; and the original code logic requires a lot of modification and testing before it can be put online, which consumes a lot of development and maintenance costs. Therefore, with the organizational structure changes and business model development of enterprises and institutions, higher requirements are also put forward for the quality of business data in the digital transmission process and the control of transmission nodes. It is necessary to improve the existing business data processing methods to adapt to rapidly changing business needs.
[0046] Figure 1 is a schematic diagram of the main flow of the method for processing business data provided by the first embodiment of the present invention; Figure 1 As shown, the method for processing business data provided by the embodiment of the present invention mainly includes:
[0047] Step S101: receiving service demand information and service processing node information.
[0048] Specifically, according to an embodiment of the present invention, the above-mentioned business demand information refers to the demand information formulated by enterprises and institutions based on their own business development needs, organizational structure changes and other information, which is used to obtain demand information after multiple business processing (and specifically indicates the processing method for business processing), specifically including the nodes that need to perform business processing, starting nodes, ending nodes, and processing methods corresponding to each processing node.
[0049] The above-mentioned business processing node information may be the organizational structure information of an enterprise or institution, or it may simply be the information of a target processing node that needs to perform corresponding business processing on business data, especially involving the corresponding hierarchical relationship between multiple processing nodes, so as to facilitate the subsequent determination of the corresponding transmission direction of the business data in the processing flow based on the hierarchical relationship.
[0050] Based on the business demand information and business processing node information received above, the processing flow that meets the needs of enterprise users can be configured in a targeted manner, effectively ensuring the processing accuracy of business data during transmission, ensuring the quality of business data, achieving control over the processing flow, and significantly improving the user experience.
[0051] Step S102, configuring the processing flow corresponding to the business data according to the business demand information and the business processing node information, the processing flow indicates multiple levels of target processing nodes and their corresponding processing methods, and the transmission direction of the business data between the multiple levels of target processing nodes.
[0052] Specifically, according to an embodiment of the present invention, after configuring the processing flow corresponding to the service data according to the service demand information and the service processing node information, the method further includes:
[0053] Send the level and processing method corresponding to the current target processing node, as well as the target processing node information associated with the current target processing node (such as transmission direction, target processing node number, etc.) to each target processing node in the processing flow; so that the current target processing node receives the corresponding level to determine whether it is the starting node (for example, the lowest level can be specified as the starting node, or the highest level can be specified as the starting node, which can be set according to actual conditions). If it is the starting node, it performs business processing according to the corresponding processing method after receiving the business processing, and then sends it to the target processing node of the next level.
[0054] According to an embodiment of the present invention, the above-mentioned processing method can be to perform aggregation processing, classification processing, filtering processing, prediction processing, etc. on business data. Specifically, it can be set according to actual business needs. It should be noted that different processing methods can correspond to target processing nodes at different levels.
[0055] Further, according to an embodiment of the present invention, the above-mentioned process of configuring the processing flow corresponding to the service data according to the service demand information and the service processing node information includes:
[0056] Classify business data into types;
[0057] Sub-processing flows corresponding to different types of business data are configured according to business demand information and business processing node information, and multiple sub-processing flows constitute a processing flow corresponding to the business data; wherein each level in the sub-processing flow or the processing flow includes at least one target processing node.
[0058] In actual application, the business data processed by the final node in enterprises and institutions may cover a variety of business data sets. Therefore, in the early stage, the business data can be divided according to the type, and then the transmission node corresponding to each type of business data can be determined (that is, the sub-processing flow can be determined). Multiple sub-processes constitute the full processing flow of the full amount of business data to be processed (that is, the above-mentioned processing flow). In addition, according to the distribution of business departments (which can be determined according to the enterprise organizational structure), each level in the final configured sub-processing flow / processing flow includes at least one target processing node.
[0059] According to another aspect of the embodiment of the present invention, the business processing node information includes not only the processing node information determined by the organizational structure information of the current enterprise user, but also the external processing node information associated with the current enterprise user. The processing flow configured by the above settings fully meets the user needs, improves the user experience, and the configured processing flow effectively guarantees the accuracy of subsequent processing of business data.
[0060] Preferably, according to an embodiment of the present invention, the above-mentioned service requirement information indicates processing cycles corresponding to multiple service processing nodes; after the above-mentioned step of configuring the processing flow corresponding to the service data according to the service requirement information and the service processing node information, it also includes:
[0061] According to the processing cycle and processing flow, the data version rules corresponding to the target processing nodes at each level in the processing flow are configured, and interface information for obtaining the data version rules is sent to the target processing nodes; wherein the data version rules indicate the number of data versions and the data version numbers.
[0062] It is understandable that the higher the level corresponding to the processing node, the larger the amount of business data it needs to process. According to a specific implementation of an embodiment of the present invention, the processing cycle corresponding to the processing node at a lower level can be shorter, such as receiving business data once a day for processing; the processing cycle corresponding to the processing node at a higher level can be longer, such as receiving business data sent by the processing node at a lower level once a month for unified processing (the specific time interval of the above processing cycle is only an example and can be adjusted according to actual conditions). It should be noted that within each processing cycle, a sub-processing cycle can also be set, such as a processing node at a lower level can take / receive business data once every two hours (within a sub-processing cycle), configure a data version of the data, and configure multiple versions of data configured within a day (within a processing cycle) as submission version data, and send it to the target data node at the next level. Through the above settings, the amount of computing consumed in business processing of business data in the entire processing flow is reduced.
[0063] Exemplarily, according to an embodiment of the present invention, the method further includes:
[0064] Receiving service update information, wherein the service update information includes service demand update information, or service demand update information and service processing node update information;
[0065] Update the processing flow according to business update information.
[0066] Specifically, enterprise users can update business demand information or business processing node information according to their own development needs or organizational structure reforms, so that the configuration module updates the processing flow according to the received business update information. Through the above settings, the flexibility of the processing flow is improved and dynamic expansion of the information to be configured is achieved.
[0067] Further, according to an embodiment of the present invention, if the service update information includes an updated processing period, the above processing method further includes:
[0068] The data version rules are updated according to the updated processing cycle and the updated processing flow.
[0069] According to an embodiment of the present invention, the configuration of the data version rule can be used to indicate when the business data version generated after the current target processing node is processed is sent to the target data processing node of the next level. For example, if the data version rule only indicates the unsubmitted version and the submitted version, after the current target processing node completes the configuration of the submitted version of the business data, the submitted version of the business data can be sent to the target data processing node of the next level. According to another specific implementation of the embodiment of the present invention, it is also possible to indicate when the business data version generated after the current target processing node is processed is sent to the target data processing node of the next level based on the combination of the data version rule and the processing cycle of the target processing node of the next level. For example, although the current target processing node has only completed the configuration of the unsubmitted version of the business data, the target processing node of the next level meets its corresponding processing cycle. At this time, the unsubmitted version of the business data configured by the current target processing node can be sent to the target processing node of the next level to facilitate its corresponding business processing.
[0070] Preferably, according to an embodiment of the present invention, the data version number indicates the data version type and the node number of the current target processing node.
[0071] Specifically, according to an embodiment of the present invention, the data version type and the node number of the current target processing node are included in the data version label, which helps to quickly determine the target processing node that generates the version of business data when the business data needs to be checked later.
[0072] Step S103, using the starting node in the target processing node to receive business data, and after processing the business data according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and corresponding business processing is performed.
[0073] Further, according to an embodiment of the present invention, for any target processing node that receives service data in the processing flow, the following steps are performed:
[0074] Call the corresponding interface according to the interface information to obtain the data version rules;
[0075] After performing corresponding business processing on the received business data according to the corresponding processing method, constructing a data version including the processed business data according to the data version number;
[0076] When the number of data versions is met and / or the processing cycle of the target processing node at the next level is met, the data version including the processed business data is sent to the target processing node at the next level.
[0077] Through the above settings, the target processing node is used to obtain the data version rules by calling a unified interface, which helps to realize the dynamic expansion of data version rules, reduce development costs and maintenance costs, and improve the processing efficiency of business data.
[0078] According to the technical solution of the embodiment of the present invention, because the business demand information and business processing node information are received; the processing flow corresponding to the business data is configured according to the business demand information and the business processing node information, the processing flow indicates the target processing nodes of multiple levels and their corresponding processing methods, and the transmission direction of the business data between the target processing nodes of multiple levels; the starting node in the target processing node is used to receive the business data, and after the business data is processed according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and the corresponding business processing is performed. The technical means overcomes the technical problem that in the prior art, the configuration module and the processing module are highly coupled and dynamic expansion cannot be achieved due to the hard-coded configuration of the corresponding processing method and data version rules on each processing node, resulting in poor flexibility of the configured processing flow, low processing efficiency of business data, and high development cost and maintenance cost; thereby achieving the technical effect of being able to decouple the configuration module from the processing module, improve the flexibility of the processing flow, support dynamic expansion of the information to be configured, improve the processing efficiency of business data, and reduce development cost and maintenance cost.
[0079] Figure 2a is a schematic diagram of the main flow of the method for processing business data provided by the second embodiment of the present invention; Figure 2a As shown, the method for processing business data provided by the embodiment of the present invention mainly includes:
[0080] Step S201: receiving service demand information and service processing node information.
[0081] Specifically, according to an embodiment of the present invention, the above-mentioned business demand information includes the nodes that need to perform business processing, the starting node, the ending node, and the corresponding processing methods of each processing node; the above-mentioned business processing node information can be the organizational structure information of the enterprise or institution, or it can be simply the information of the target processing node that needs to perform corresponding business processing on the business data, especially involving the corresponding hierarchical relationship between multiple processing nodes, so as to facilitate the subsequent determination of the corresponding transmission direction of the business data in the processing flow according to the hierarchical relationship.
[0082] Step S202, classify the business data into different types; configure sub-processing flows corresponding to different types of business data according to the business demand information and the business processing node information, and multiple sub-processing flows constitute the processing flow corresponding to the business data.
[0083] Among them, the above-mentioned sub-processing flow / processing flow indicates multiple levels of target processing nodes and their corresponding processing methods, as well as the transmission direction of business data between multiple levels of target processing nodes; each level in the sub-processing flow / processing flow includes at least one target processing node.
[0084] According to an embodiment of the present invention, the business processing node information includes not only the processing node information determined by the organizational structure information of the current enterprise user, but also the external processing node information associated with the current enterprise user. The processing flow configured by the above settings fully meets the user needs and improves the user experience. The configured processing flow effectively guarantees the accuracy of subsequent processing of business data.
[0085] Step S203: Sending the level and processing mode corresponding to the current target processing node and the target processing node information associated with the current target processing node to each target processing node in the processing flow.
[0086] According to an embodiment of the present invention, the above-mentioned processing method can be to perform aggregation processing, classification processing, filtering processing, prediction processing, etc. on business data. Specifically, it can be set according to actual business needs. It should be noted that different processing methods can correspond to target processing nodes at different levels.
[0087] Step S204, according to the processing cycle and processing flow, configure the data version rules corresponding to the target processing nodes at each level in the processing flow, and send interface information for obtaining the data version rules to the target processing nodes; wherein the data version rules indicate the number of data versions and the data version numbers, and the processing cycles corresponding to multiple business processing nodes are included in the business demand information.
[0088] Through the above settings, not only can the horizontal expansion and process nodes of multiple process nodes (processing nodes) be realized, but also the compatibility of multiple data versions can be realized. It can be understood that the higher the level corresponding to the processing node, the larger the amount of business data it needs to process. According to a specific implementation of an embodiment of the present invention, the processing cycle corresponding to the processing node at a lower level can be shorter, such as receiving business data once a day for processing; the processing cycle corresponding to the processing node at a higher level can be longer, such as receiving business data sent by the processing node at a lower level once a month for unified processing (the specific time interval of the above processing cycle is only an example and can be adjusted according to actual conditions). It should be noted that in each processing cycle, a sub-processing cycle can also be set, such as a processing node at a lower level can take / receive business data once every two hours (within a sub-processing cycle), configure a data version of data, and configure multiple versions of data configured within a day (within a processing cycle) as submission version data, and send it to the target data node at the next level. Through the above settings, the amount of computing consumed by business processing of business data in the entire processing flow is reduced.
[0089] Exemplarily, according to an embodiment of the present invention, the method further includes:
[0090] Receiving service update information, wherein the service update information includes service demand update information, or service demand update information and service processing node update information;
[0091] Update the processing flow according to business update information.
[0092] Specifically, enterprise users can update business demand information or business processing node information according to their own development needs or organizational structure reforms, so that the configuration module updates the processing flow according to the received business update information. Through the above settings, the flexibility of the processing flow is improved and dynamic expansion of the information to be configured is achieved.
[0093] Further, according to an embodiment of the present invention, if the service update information includes an updated processing period, the above processing method further includes:
[0094] The data version rules are updated according to the updated processing cycle and the updated processing flow.
[0095] According to an embodiment of the present invention, the configuration of the data version rule can be used to indicate when the business data version generated after the current target processing node is processed is sent to the target data processing node of the next level. For example, if the data version rule only indicates the unsubmitted version and the submitted version, after the current target processing node completes the configuration of the submitted version of the business data, the submitted version of the business data can be sent to the target data processing node of the next level. According to another specific implementation of the embodiment of the present invention, it is also possible to indicate when the business data version generated after the current target processing node is processed is sent to the target data processing node of the next level based on the combination of the data version rule and the processing cycle of the target processing node of the next level. For example, although the current target processing node has only completed the configuration of the unsubmitted version of the business data, the target processing node of the next level meets its corresponding processing cycle. At this time, the unsubmitted version of the business data configured by the current target processing node can be sent to the target processing node of the next level to facilitate its corresponding business processing.
[0096] Preferably, according to an embodiment of the present invention, the data version number indicates the data version type and the node number of the current target processing node.
[0097] Specifically, according to an embodiment of the present invention, the data version type and the node number of the current target processing node are included in the data version number, which helps to quickly determine the target processing node that generated the version of the business data when the business data needs to be checked later. According to a specific implementation of the embodiment of the present invention, the data version number can be a combination of the data version type, the level of the processing flow, the next level target processing node number, and the node number of the current target processing node.
[0098] Step S205, using the starting node in the target processing node to receive the business data, and performing business processing on the business data according to the corresponding processing method, calling the corresponding interface to obtain the data version rule, and determining the data version corresponding to the processed business data according to the data version rule.
[0099] Through the above settings, the target processing node is used to obtain the data version rules by calling a unified interface, which helps to realize the dynamic expansion of data version rules, reduce development costs and maintenance costs, and improve the processing efficiency of business data.
[0100] Step S206, according to the transmission direction, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence, and the corresponding business processing is performed until all the target processing nodes in the processing flow complete the corresponding business processing. Specifically, the transmission process of business data between target processing nodes at multiple levels is as follows: Figure 2c shown.
[0101] Specifically, according to an embodiment of the present invention, Figure 2b As shown, the main steps for the starting node in step S205 and other target processing nodes in the processing flow in step S206 to receive the business data and perform business processing on it are as follows:
[0102] S2061, receiving business data, and calling a corresponding interface according to the interface information to obtain data version rules.
[0103] S2062: After performing corresponding business processing on the received business data according to the corresponding processing method, construct a data version including the processed business data according to the data version number.
[0104] S2063, when the number of data versions is met and / or the processing cycle of the target processing node at the next level is met, the data version including the processed business data is sent to the target processing node at the next level.
[0105] Specifically, each target processing node not only sends the data version including the processed business data to the target processing node of the next level, but also stores the data version locally to facilitate subsequent data verification and tracing.
[0106] According to the technical solution of the embodiment of the present invention, because the business demand information and business processing node information are received; the processing flow corresponding to the business data is configured according to the business demand information and the business processing node information, the processing flow indicates the target processing nodes of multiple levels and their corresponding processing methods, and the transmission direction of the business data between the target processing nodes of multiple levels; the starting node in the target processing node is used to receive the business data, and after the business data is processed according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and the corresponding business processing is performed. The technical means overcomes the technical problem that in the prior art, the configuration module and the processing module are highly coupled and dynamic expansion cannot be achieved due to the hard-coded configuration of the corresponding processing method and data version rules on each processing node, resulting in poor flexibility of the configured processing flow, low processing efficiency of business data, and high development cost and maintenance cost; thereby achieving the technical effect of being able to decouple the configuration module from the processing module, improve the flexibility of the processing flow, support dynamic expansion of the information to be configured, improve the processing efficiency of business data, and reduce development cost and maintenance cost.
[0107] Figure 3 is a schematic diagram of main modules of a device for processing business data provided according to an embodiment of the present invention; Figure 3As shown, the service data processing device 300 provided in the embodiment of the present invention mainly includes:
[0108] The information receiving module 301 is used to receive service demand information and service processing node information.
[0109] Specifically, according to an embodiment of the present invention, the above-mentioned business demand information includes a node that needs to perform business processing, a start node, an end node, and a processing method corresponding to each processing node.
[0110] The above-mentioned business processing node information may be the organizational structure information of an enterprise or institution, or it may simply be the information of a target processing node that needs to perform corresponding business processing on business data, especially involving the corresponding hierarchical relationship between multiple processing nodes, so as to facilitate the subsequent determination of the corresponding transmission direction of the business data in the processing flow based on the hierarchical relationship.
[0111] Based on the business demand information and business processing node information received above, the processing flow that meets the needs of enterprise users can be configured in a targeted manner, effectively ensuring the processing accuracy of business data during transmission, ensuring the quality of business data, achieving control over the processing flow, and significantly improving the user experience.
[0112] Configuration module 302 is used to configure the processing flow corresponding to the business data according to the business demand information and the business processing node information. The processing flow indicates multiple levels of target processing nodes and their corresponding processing methods, as well as the transmission direction of business data between multiple levels of target processing nodes.
[0113] Specifically, according to an embodiment of the present invention, after configuring the processing flow corresponding to the service data according to the service demand information and the service processing node information, the service data processing device 300 further includes a sending module for:
[0114] Send the level and processing method corresponding to the current target processing node, as well as the target processing node information associated with the current target processing node (such as transmission direction, target processing node number, etc.) to each target processing node in the processing flow; so that the current target processing node can determine whether it is the starting node after receiving the corresponding level (for example, the lowest level can be specified as the starting node, or the highest level can be specified as the starting node, which can be set according to actual conditions). If it is the starting node, it will perform business processing according to the corresponding processing method after receiving the business processing, and then send it to the target processing node of the next level.
[0115] According to an embodiment of the present invention, the above-mentioned processing method can be to perform aggregation processing, classification processing, filtering processing, prediction processing, etc. on business data. Specifically, it can be set according to actual business needs. It should be noted that different processing methods can correspond to target processing nodes at different levels.
[0116] Further, according to an embodiment of the present invention, the configuration module 302 is also used for:
[0117] Classify business data into types;
[0118] Sub-processing flows corresponding to different types of business data are configured according to business demand information and business processing node information, and multiple sub-processing flows constitute a processing flow corresponding to the business data; wherein each level in the sub-processing flow or the processing flow includes at least one target processing node.
[0119] In actual application, the business data processed by the final node in enterprises and institutions may cover a variety of business data sets. Therefore, in the early stage, the business data can be divided according to the type, and then the transmission node corresponding to each type of business data can be determined (that is, the sub-processing flow can be determined). Multiple sub-processes constitute the full processing flow of the full amount of business data to be processed (that is, the above-mentioned processing flow). In addition, according to the distribution of business departments (which can be determined according to the enterprise organizational structure), each level in the final configured sub-processing flow / processing flow includes at least one target processing node.
[0120] According to another aspect of the embodiment of the present invention, the business processing node information includes not only the processing node information determined by the organizational structure information of the current enterprise user, but also the external processing node information associated with the current enterprise user. The processing flow configured by the above settings fully meets the user needs, improves the user experience, and the configured processing flow effectively guarantees the accuracy of subsequent processing of business data.
[0121] Preferably, according to an embodiment of the present invention, the business demand information indicates processing cycles corresponding to multiple business processing nodes; after the step of configuring the processing flow corresponding to the business data according to the business demand information and the business processing node information, the configuration module 302 is further used to:
[0122] According to the processing cycle and processing flow, the data version rules corresponding to the target processing nodes at each level in the processing flow are configured, and interface information for obtaining the data version rules is sent to the target processing nodes; wherein the data version rules indicate the number of data versions and the data version numbers.
[0123] It is understandable that the higher the level corresponding to the processing node, the larger the amount of business data it needs to process. According to a specific implementation of an embodiment of the present invention, the processing cycle corresponding to the processing node at a lower level can be shorter, such as receiving business data once a day for processing; the processing cycle corresponding to the processing node at a higher level can be longer, such as receiving business data sent by the processing node at a lower level once a month for unified processing (the specific time interval of the above processing cycle is only an example and can be adjusted according to actual conditions). It should be noted that within each processing cycle, a sub-processing cycle can also be set, such as a processing node at a lower level can take / receive business data once every two hours (within a sub-processing cycle), configure a data version of the data, and configure multiple versions of data configured within a day (within a processing cycle) as submission version data, and send it to the target data node at the next level. Through the above settings, the amount of computing consumed in business processing of business data in the entire processing flow is reduced.
[0124] Exemplarily, according to an embodiment of the present invention, the service data processing device 300 further includes an updating module, which is used to:
[0125] Receiving service update information, wherein the service update information includes service demand update information, or service demand update information and service processing node update information;
[0126] Update the processing flow according to business update information.
[0127] Specifically, enterprise users can update business demand information or business processing node information according to their own development needs or organizational structure reforms, so that the configuration module updates the processing flow according to the received business update information. Through the above settings, the flexibility of the processing flow is improved and dynamic expansion of the information to be configured is achieved.
[0128] Further, according to an embodiment of the present invention, if the service update information includes an updated processing period, the update module is further used to:
[0129] The data version rules are updated according to the updated processing cycle and the updated processing flow.
[0130] According to an embodiment of the present invention, the configuration of the data version rule can be used to indicate when the business data version generated after the current target processing node is processed is sent to the target data processing node of the next level. For example, if the data version rule only indicates the unsubmitted version and the submitted version, after the current target processing node completes the configuration of the submitted version of the business data, the submitted version of the business data can be sent to the target data processing node of the next level. According to another specific implementation of the embodiment of the present invention, it is also possible to indicate when the business data version generated after the current target processing node is processed is sent to the target data processing node of the next level based on the combination of the data version rule and the processing cycle of the target processing node of the next level. For example, although the current target processing node has only completed the configuration of the unsubmitted version of the business data, the target processing node of the next level meets its corresponding processing cycle. At this time, the unsubmitted version of the business data configured by the current target processing node can be sent to the target processing node of the next level to facilitate its corresponding business processing.
[0131] Preferably, according to an embodiment of the present invention, the data version number indicates the data version type and the node number of the current target processing node.
[0132] Specifically, according to an embodiment of the present invention, the data version type and the node number of the current target processing node are included in the data version label, which helps to quickly determine the target processing node that generates the version of business data when the business data needs to be checked later.
[0133] The processing module 303 is used to receive business data using the starting node in the target processing node, and after processing the business data according to the corresponding processing method, transmit the business data processed by the target processing node of the current level to the target processing node of the next level in sequence according to the transmission direction, and perform corresponding business processing.
[0134] Further, according to an embodiment of the present invention, the processing module 303 is further configured to:
[0135] For any target processing node in the processing flow that receives business data, perform the following steps:
[0136] Call the corresponding interface according to the interface information to obtain the data version rules;
[0137] After performing corresponding business processing on the received business data according to the corresponding processing method, constructing a data version including the processed business data according to the data version number;
[0138] When the number of data versions is met and / or the processing cycle of the target processing node at the next level is met, the data version including the processed business data is sent to the target processing node at the next level.
[0139] Through the above settings, the target processing node is used to obtain the data version rules by calling a unified interface, which helps to realize the dynamic expansion of data version rules, reduce development costs and maintenance costs, and improve the processing efficiency of business data.
[0140] According to the technical solution of the embodiment of the present invention, because the business demand information and business processing node information are received; the processing flow corresponding to the business data is configured according to the business demand information and the business processing node information, the processing flow indicates the target processing nodes of multiple levels and their corresponding processing methods, and the transmission direction of the business data between the target processing nodes of multiple levels; the starting node in the target processing node is used to receive the business data, and after the business data is processed according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and the corresponding business processing is performed. The technical means overcomes the technical problem that in the prior art, the configuration module and the processing module are highly coupled and dynamic expansion cannot be achieved due to the hard-coded configuration of the corresponding processing method and data version rules on each processing node, resulting in poor flexibility of the configured processing flow, low processing efficiency of business data, and high development cost and maintenance cost; thereby achieving the technical effect of being able to decouple the configuration module from the processing module, improve the flexibility of the processing flow, support dynamic expansion of the information to be configured, improve the processing efficiency of business data, and reduce development cost and maintenance cost.
[0141] Figure 4 An exemplary system architecture 400 is shown to which the method for processing business data or the device for processing business data according to the embodiment of the present invention can be applied.
[0142] like Figure 4 As shown, the system architecture 400 may include terminal devices 401, 402, 403, a network 404 and a server 405 (this architecture is only an example, and the components included in the specific architecture may be adjusted according to the specific application). The network 404 is used to provide a medium for a communication link between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0143] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as data processing applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0144] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0145] The server 405 may be a server that provides various services, such as a server that (configures parameters / processes business data) for users using the terminal devices 401, 402, and 403 (for example only). The server may analyze and process the received business demand information, business processing node information, and other data, and feed back the processing results (such as processing flow, data version rules - for example only) to the terminal device.
[0146] It should be noted that the method for processing business data provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the device for processing business data is generally disposed in the server 405 .
[0147] It should be understood that Figure 4 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.
[0148] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 5 The terminal device or server 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.
[0149] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0150] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0151] 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 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0152] 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.
[0153] 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.
[0154] 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, it may be described as: a processor includes an information receiving module, a configuration module and a processing module. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the information receiving module may also be described as a "module for receiving business demand information and business processing node information".
[0155] 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 and not be 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: receiving business demand information and business processing node information; configuring the processing flow corresponding to the business data according to the business demand information and the business processing node information, the processing flow indicates multiple levels of target processing nodes and their corresponding processing methods, and the transmission direction of business data between multiple levels of target processing nodes; using the starting node in the target processing node to receive business data, and after performing business processing on the business data according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and corresponding business processing is performed.
[0156] According to the technical solution of the embodiment of the present invention, because the business demand information and business processing node information are received; the processing flow corresponding to the business data is configured according to the business demand information and the business processing node information, the processing flow indicates the target processing nodes of multiple levels and their corresponding processing methods, and the transmission direction of the business data between the target processing nodes of multiple levels; the starting node in the target processing node is used to receive the business data, and after the business data is processed according to the corresponding processing method, the business data processed by the target processing node of the current level is transmitted to the target processing node of the next level in sequence according to the transmission direction, and the corresponding business processing is performed. The technical means overcomes the technical problem that in the prior art, the configuration module and the processing module are highly coupled and dynamic expansion cannot be achieved due to the hard-coded configuration of the corresponding processing method and data version rules on each processing node, resulting in poor flexibility of the configured processing flow, low processing efficiency of business data, and high development cost and maintenance cost; thereby achieving the technical effect of being able to decouple the configuration module from the processing module, improve the flexibility of the processing flow, support dynamic expansion of the information to be configured, improve the processing efficiency of business data, and reduce development cost and maintenance cost.
[0157] 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 method for processing business data, characterized in that: include: Receive business demand information and business processing node information; According to the business demand information and the business processing node information, a processing flow corresponding to the business data is configured, wherein the processing flow indicates target processing nodes at multiple levels and their corresponding processing methods, and a transmission direction of the business data between the target processing nodes at the multiple levels; Utilize the starting node in the target processing node to receive the service data, and after performing service processing on the service data according to the corresponding processing method, sequentially transmit the service data processed by the target processing node of the current level to the target processing node of the next level according to the transmission direction, and perform corresponding service processing; For any target processing node in the processing flow that receives the service data, the following steps are performed: Call the corresponding interface according to the interface information to obtain the data version rules; After performing corresponding business processing on the received business data according to the corresponding processing method, constructing a data version including the processed business data according to the data version number; When the number of data versions is met and / or the processing cycle of the target processing node at the next level is met, the data version including the processed business data is sent to the target processing node at the next level.
2. The method for processing business data according to claim 1, characterized in that: The service requirement information indicates processing cycles corresponding to a plurality of service processing nodes. After the step of configuring a processing flow corresponding to service data according to the service requirement information and the service processing node information, the method further includes: According to the processing cycle and the processing flow, the data version rules corresponding to the target processing nodes at each level in the processing flow are configured, and interface information for obtaining the data version rules is sent to the target processing nodes; wherein the data version rules indicate the number of data versions and the data version numbers.
3. The method for processing business data according to claim 1, characterized in that: Also includes: Receiving service update information, wherein the service update information includes service demand update information, or service demand update information and service processing node update information; The processing flow is updated according to the service update information.
4. The method for processing business data according to claim 3, characterized in that: If the service update information includes an updated processing period, the processing method further includes: The data version rule is updated according to the updated processing cycle and the updated processing flow.
5. The method for processing business data according to claim 2, characterized in that: The data version number indicates the data version type and the node number of the current target processing node.
6. The method for processing business data according to claim 1, characterized in that: The configuring the processing flow corresponding to the service data according to the service demand information and the service processing node information includes: Classifying the business data into types; Sub-processing flows corresponding to different types of business data are configured according to the business demand information and the business processing node information, and multiple sub-processing flows constitute the processing flow corresponding to the business data; wherein each level in the sub-processing flow or the processing flow includes at least one target processing node.
7. A device for processing business data, characterized in that: include: An information receiving module, used to receive business demand information and business processing node information; A configuration module, configured to configure a processing flow corresponding to the business data according to the business demand information and the business processing node information, wherein the processing flow indicates target processing nodes at multiple levels and their corresponding processing methods, and a transmission direction of the business data between the target processing nodes at the multiple levels; A processing module, configured to receive the service data using a starting node in the target processing node, and after performing service processing on the service data according to a corresponding processing method, sequentially transmit the service data processed by the target processing node of the current level to the target processing node of the next level according to the transmission direction, and perform corresponding service processing; The processing module is also used to: For any target processing node in the processing flow that receives the service data, the following steps are performed: Call the corresponding interface according to the interface information to obtain the data version rules; After performing corresponding business processing on the received business data according to the corresponding processing method, constructing a data version including the processed business data according to the data version number; When the number of data versions is met and / or the processing cycle of the target processing node at the next level is met, the data version including the processed business data is sent to the target processing node at the next level.
8. An electronic device, 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 6.
9. 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 6 is implemented.
Citation Information
Patent Citations
Caching data in a memory system having memory nodes at different hierarchical levels
CN104956349A
Node control method and device, version control method and device and distributed system
CN110633096A