Disclosure of Invention
Accordingly, the present application is directed to a method, an apparatus and an electronic device for configuring a service processing flow, so as to solve the problem of poor control effect of the service processing flow in the prior art.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme:
the configuration method of the business processing flow is applied to the electronic equipment, and comprises the following steps:
Configuring a data source, wherein the data source is used for identifying the source of input data;
The method comprises the steps that business processing rules of input data are configured, the electronic equipment is used for processing the input data according to the business processing rules to output target output data, wherein the electronic equipment also outputs at least one piece of intermediate processing data in the process of processing the input data according to the business processing rules, and the target output data is obtained by processing the at least one piece of intermediate processing data according to the business processing rules through the electronic equipment;
and configuring the verification rule of the business processing rule, wherein the electronic equipment is used for extracting at least one piece of intermediate processing data according to the verification rule so as to verify the business processing rule.
In a preferred option of the embodiment of the present application, in the method for configuring a service processing flow, the step of configuring a data source includes:
Under the condition that the data source of the input data belongs to the electronic equipment, determining a data number corresponding to the input data according to a credit application scene of the input data so as to identify the corresponding input data through the data number;
and under the condition that the data source of the input data belongs to a third party data source, determining an access address, authentication data and a request mode corresponding to the third party data source, and identifying the corresponding input data through the access address, the authentication data and the request mode corresponding to the third party data source.
In a preferred option of the embodiment of the present application, in the method for configuring a service processing flow, the step of configuring a service processing rule of the input data includes:
Decomposing the business processing rules of the input data to form a plurality of business processing nodes, wherein the node types of the business processing nodes comprise at least one type, and the at least one type comprises a rule node type, a calculation node type and a model node type;
and respectively carrying out configuration processing of node processing rules on each of the plurality of service processing nodes, so that the service processing nodes process data input to the service processing nodes through the configured node processing rules.
In a preferred option of the embodiment of the present application, in the above configuration method of a service processing flow, the step of performing configuration processing of a node processing rule on each service processing node in the plurality of service processing nodes, so that the service processing node processes data input to the service processing node through the configured node processing rule includes:
In the case that the node type of the service processing node belongs to the rule node type, the configuration processing of the node processing rule of the service processing node comprises the steps of configuring a threshold rule for processing the data of the numeric type and configuring a matching rule for processing the data of the character string type.
In a preferred option of the embodiment of the present application, in the above configuration method of a service processing flow, the step of performing configuration processing of a node processing rule on each service processing node in the plurality of service processing nodes, so that the service processing node processes data input to the service processing node through the configured node processing rule includes:
Under the condition that the node type of the service processing node belongs to the calculation node type, the configuration processing of the node processing rule of the service processing node comprises the steps of configuring a mathematical calculation mode, configuring an interval mapping relation and configuring a character string conversion mapping relation.
In a preferred option of the embodiment of the present application, in the above configuration method of a service processing flow, the step of performing configuration processing of a node processing rule on each service processing node in the plurality of service processing nodes, so that the service processing node processes data input to the service processing node through the configured node processing rule includes:
in the case that the node type of the service processing node belongs to the computing node type, the configuration processing of the node processing rule of the service processing node comprises configuring a code script, wherein the code script comprises a python script, a groovy script or a java program package.
In a preferred option of the embodiment of the present application, in the above configuration method of a service processing flow, the step of performing configuration processing of a node processing rule on each service processing node in the plurality of service processing nodes, so that the service processing node processes data input to the service processing node through the configured node processing rule includes:
The configuration processing of the node processing rules of the service processing node comprises the steps of configuring the model number of the machine learning model, configuring the model parameters of the machine learning model, configuring the model application scene of the machine learning model and configuring the model frame type of the deep learning model under the condition that the node type of the service processing node belongs to the model node type.
In a preferred option of the embodiment of the present application, in the above configuration method of a service processing flow, the step of performing configuration processing of a node processing rule on each service processing node in the plurality of service processing nodes, so that the service processing node processes data input to the service processing node through the configured node processing rule includes:
In the case that the node type of the service processing node belongs to the model node type, the configuration processing of the node processing rule of the service processing node comprises the steps of configuring the model specification of the machine learning model and configuring the model analysis rule of the machine learning model which does not belong to the general model standard specification.
The embodiment of the application also provides a device for configuring the business processing flow, which is applied to the electronic equipment and comprises the following components:
The first configuration module is used for carrying out configuration processing on a data source, and the data source is used for identifying the source of input data;
The second configuration module is used for configuring the business processing rule of the input data, the electronic equipment is used for processing the input data according to the business processing rule so as to output target output data, wherein the electronic equipment also outputs at least one piece of intermediate processing data in the process of processing the input data according to the business processing rule, and the target output data is obtained by processing the at least one piece of intermediate processing data according to the business processing rule through the electronic equipment;
And the third configuration module is used for configuring the verification rule of the business processing rule, and the electronic equipment is used for extracting at least one piece of intermediate processing data according to the verification rule so as to verify the business processing rule.
On the basis of the above, the embodiment of the application also provides an electronic device, which comprises:
A memory for storing a computer program;
and the processor is connected with the memory and is used for executing the computer program stored in the memory so as to realize the configuration method of the business processing flow.
The application provides a configuration method and device of a business processing flow and electronic equipment, and the configuration processing is carried out on data sources. The method comprises the steps that business processing rules of input data are configured, the electronic equipment is used for processing the input data according to the business processing rules so as to output target output data, wherein the electronic equipment also outputs at least one piece of intermediate processing data in the process of processing the input data according to the business processing rules, and the target output data is obtained by processing the at least one piece of intermediate processing data according to the business processing rules through the electronic equipment. And configuring the verification rule of the business processing rule, wherein the electronic equipment is used for extracting at least one piece of intermediate processing data according to the verification rule so as to verify the business processing rule. Through the steps, the full and reliable configuration of the business processing flow can be realized, the business processing rule for processing the input data is configured, the verification rule for verifying the business processing rule is also configured, the reliability of the input data (the reliability of the business processing rule is ensured through the verification rule) is ensured while the processing of the input data (namely the business data) is ensured, and therefore the problem that the management and control effect of the business processing flow in the prior art is poor is solved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments of the present application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
As shown in fig. 1, an embodiment of the present application provides an electronic device 10 that may include a memory 12, a processor 14, and a configuration apparatus 100 for business process flows.
Wherein, the memory 12 and the processor 14 are directly or indirectly electrically connected to each other to realize data transmission or interaction. For example, electrical connection may be made to each other via one or more communication buses or signal lines. The configuration means 100 of the business process flow comprise at least one software function module which may be stored in the memory 12 in the form of software or firmware (firmware). The processor 14 is configured to execute an executable computer program stored in the memory 12, for example, a software function module and a computer program included in the service processing flow configuration apparatus 100, so as to implement the service processing flow configuration method provided by the embodiment of the present application.
Alternatively, the Memory 12 may be, but is not limited to, random access Memory (Random Access Memory, RAM), read Only Memory (ROM), programmable Read Only Memory (Programmable Read-Only Memory, PROM), erasable Read Only Memory (Erasable Programmable Read-Only Memory, EPROM), electrically erasable Read Only Memory (Electric Erasable Programmable Read-Only Memory, EEPROM), etc.
And, the processor 14 may be a general-purpose processor including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), a System on Chip (SoC), etc., a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
It is to be understood that the structure shown in fig. 1 is only illustrative, and that the electronic device 10 (which electronic device 10 may be a server, for example) may further comprise more or less components than those shown in fig. 1, or may have a different configuration than that shown in fig. 1, for example, may further comprise a communication unit for information interaction with other devices (such as a terminal device).
With reference to fig. 2, an embodiment of the present application further provides a method for configuring a business process flow applicable to the electronic device 10. The method steps defined by the flow related to the configuration method of the business process flow may be implemented by the electronic device 10.
The specific flow shown in fig. 2 will be described in detail.
Step 110, performing configuration processing on the data sources.
In an embodiment of the present invention, the electronic device 10 may perform configuration processing on a data source, where the data source is used to identify a source of input data.
And 120, configuring a business processing rule of the input data, wherein the electronic equipment is used for processing the input data according to the business processing rule so as to output target output data.
In the embodiment of the present invention, the electronic device 10 may configure a service processing rule of the input data, and the electronic device is configured to process the input data according to the service processing rule, so as to output target output data. And the electronic equipment also outputs at least one piece of intermediate processing data in the process of processing the input data according to the business processing rule, and the target output data is obtained by processing the at least one piece of intermediate processing data according to the business processing rule through the electronic equipment.
And 130, configuring the verification rule of the business processing rule, wherein the electronic equipment is used for extracting at least one piece of intermediate processing data according to the verification rule so as to verify the business processing rule.
In the embodiment of the present invention, the electronic device 10 may configure a verification rule of the service processing rule, and the electronic device is configured to extract at least one piece of intermediate processing data according to the verification rule, so as to verify the service processing rule.
Through the steps, the full and reliable configuration of the business processing flow can be realized, the business processing rule for processing the input data is configured, the verification rule for verifying the business processing rule is also configured, the reliability of the input data (the reliability of the business processing rule is ensured through the verification rule) is ensured while the processing of the input data (namely the business data) is ensured, and therefore the problem that the management and control effect of the business processing flow in the prior art is poor is solved.
In the first aspect, it should be noted that, in step 110, the specific configuration content of the configuration processing for the data source is not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, the step of configuring the data source, i.e., step 110, may further include the following:
In the case that the data source of the input data belongs to the electronic device (that is, the input data belongs to the data generated by the platform corresponding to the electronic device), determining the data number corresponding to the input data according to the credit application scene of the input data, so as to identify the corresponding input data through the data number (the credit application scene may include before-credit and after-credit, in addition, in other examples, the data number corresponding to the input data may be determined according to the credit object of the input data, where the credit object may include consumption finance, banking, and the like);
When the data source of the input data belongs to a third party data source, determining an access address, authentication data and a request mode corresponding to the third party data source, so as to identify the corresponding input data through the access address, the authentication data and the request mode corresponding to the third party data source (for example, service parameters and the like corresponding to the third party data source can also be determined).
In an alternative example, the input data may be data directly uploaded by other electronic devices (such as terminal devices), and the form of the data may include text, files, and the like, or may be filled up and uploaded according to a provided form.
In the second aspect, it should be noted that, in step 120, the specific configuration content for configuring the service processing rule of the input data is not limited, and may be selected according to the actual application requirement.
For example, in an alternative example, the step of configuring the service processing rule of the input data, that is, step 120, may further include the following:
Decomposing the business processing rules of the input data to form a plurality of business processing nodes, wherein the node types of the business processing nodes comprise at least one type, and the at least one type comprises a rule node type, a calculation node type and a model node type;
and respectively carrying out configuration processing of node processing rules on each of the plurality of service processing nodes, so that the service processing nodes process data input to the service processing nodes through the configured node processing rules.
It will be appreciated that, in an alternative example, the step of performing, by using the configured node processing rule, the configuration processing of the node processing rule on each of the plurality of service processing nodes, so that the service processing node processes data input to the service processing node, may further include the following:
in the case that the node type of the service processing node belongs to a rule node type, the configuration processing of the node processing rule of the service processing node includes configuring a threshold rule (for example, the threshold rule may be used to compare the data with a threshold value, such as greater than, equal to, or less than the threshold value), and configuring a matching rule (for example, length matching, character inclusion matching, regular matching expression, etc.) to process the data of the character string type.
It may be appreciated that, in another alternative example, the step of performing, on each of the plurality of service processing nodes, configuration processing of a node processing rule, so that the service processing node processes data input to the service processing node through the configured node processing rule may further include the following:
Under the condition that the node type of the service processing node belongs to the calculation node type, the configuration processing of the node processing rule of the service processing node comprises the steps of configuring a mathematical calculation mode (such as addition, subtraction, multiplication and division, logarithmic index operation and the like), configuring a section mapping relation and configuring a character string conversion mapping relation.
It may be appreciated that, in another alternative example, the step of performing, on each of the plurality of service processing nodes, configuration processing of a node processing rule, so that the service processing node processes data input to the service processing node through the configured node processing rule may further include the following:
in the case that the node type of the service processing node belongs to the computing node type, the configuration processing of the node processing rule of the service processing node comprises configuring a code script, wherein the code script comprises a python script, a groovy script or a java program package.
It may be appreciated that, in another alternative example, the step of performing, on each of the plurality of service processing nodes, configuration processing of a node processing rule, so that the service processing node processes data input to the service processing node through the configured node processing rule may further include the following:
In the case that the node type of the service processing node belongs to the model node type, the configuration processing of the node processing rule of the service processing node includes configuring a model number of a machine learning model (illustratively, the cleaned multidimensional data can be identified and judged by the machine learning model), configuring model parameters of the machine learning model, configuring a model application scene of the machine learning model, and configuring model frame types (such as TensorFlow, pyTorch, caffe, keras, etc.) of the deep learning model.
It may be appreciated that, in another alternative example, the step of performing, on each of the plurality of service processing nodes, configuration processing of a node processing rule, so that the service processing node processes data input to the service processing node through the configured node processing rule may further include the following:
In the case that the node type of the service processing node belongs to the model node type, the configuration processing of the node processing rule of the service processing node includes configuring a model specification of a machine learning model, configuring a model parsing rule (for example, a model parsing rule can be used to identify the machine learning model first and then calculate according to the machine learning model) of the machine learning model (for example, a predictive model markup language, PREDICTIVE MODEL MARKUP LANGUAGE, a model using XML description and a stored data mining model) which does not belong to the general model standard specification.
Referring to fig. 3, an embodiment of the present application further provides a configuration apparatus 100 applicable to the business process flow of the electronic device 10. The configuration device 100 of the business process flow may include a first configuration module 110, a second configuration module 120, and a third configuration module 130.
The first configuration module 110 is configured to perform configuration processing on a data source, where the data source is used to identify a source of input data. In this embodiment, the first configuration module 110 may be used to perform the step 110 shown in fig. 2, and the description of the step 110 may be referred to above with respect to the relevant content of the first configuration module 110.
The second configuration module 120 is configured to configure a service processing rule of the input data, and the electronic device is configured to process the input data according to the service processing rule to output target output data, where the electronic device further outputs at least one piece of intermediate processing data during processing of the input data according to the service processing rule, and the target output data is obtained by processing the at least one piece of intermediate processing data according to the service processing rule by the electronic device. In this embodiment, the second configuration module 120 may be used to perform the step 120 shown in fig. 2, and the description of the step 120 may be referred to above with respect to the relevant content of the second configuration module 120.
The third configuration module 130 is configured to configure a verification rule of the service processing rule, and the electronic device is configured to extract at least one piece of intermediate processing data according to the verification rule, so as to verify the service processing rule. In this embodiment, the third configuration module 130 may be used to perform the step 130 shown in fig. 2, and the description of the step 130 may be referred to above with respect to the relevant content of the third configuration module 130.
In an embodiment of the present application, corresponding to the above-mentioned method for configuring a service processing flow applied to the electronic device 10, a computer readable storage medium is further provided, where a computer program is stored in the computer readable storage medium, and the computer program executes each step of the method for configuring a service processing flow when running. The steps executed when the computer program runs are not described in detail herein, and reference may be made to the explanation of the configuration method of the service processing flow.
In summary, the method, the device and the electronic equipment for configuring the business processing flow provided by the application perform configuration processing on the data sources. The method comprises the steps that business processing rules of input data are configured, the electronic equipment is used for processing the input data according to the business processing rules so as to output target output data, wherein the electronic equipment also outputs at least one piece of intermediate processing data in the process of processing the input data according to the business processing rules, and the target output data is obtained by processing the at least one piece of intermediate processing data according to the business processing rules through the electronic equipment. And configuring the verification rule of the business processing rule, wherein the electronic equipment is used for extracting at least one piece of intermediate processing data according to the verification rule so as to verify the business processing rule. Through the steps, the full and reliable configuration of the business processing flow can be realized, the business processing rule for processing the input data is configured, the verification rule for verifying the business processing rule is also configured, the reliability of the input data (the reliability of the business processing rule is ensured through the verification rule) is ensured while the input data can be processed, and therefore the problem that the management and control effect of the business processing flow in the prior art is poor is solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus and method embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. The storage medium includes a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.