Configuration product development method and equipment based on supply chain financial scene and medium
By extracting and parameterizing common business elements in supply chain financial scenarios and encapsulating them into configuration codes, the problem of low product development efficiency is solved, a flexible and efficient product development process is realized, and the maintainability and scalability of the code is improved. .
Patent Information
- Application Number
- CN202411451849.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2024-12-24
AI Technical Summary
The existing product development technology is low in efficiency in supply chain finance scenarios, resulting in a complex and time-consuming product development process, making it difficult to quickly respond to demand changes and user feedback.
By extracting the common product, solution and process business elements in the business scenario data, parametically and encapsulate them into configuration codes, merge them into development business public codes, and configure products, solutions and processes according to different needs and scenarios to achieve customized development.
It improves the efficiency and flexibility of product development, reduces redundant code, simplifies the development process, improves the maintainability and scalability of code, and enables rapid customization of product attributes and functions.
Smart Images

Figure CN119179477A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a configurable product development method, device and medium based on a supply chain finance scenario. Background Art
[0002] The rapid development of industrial financial digitalization is a product of today's economic transformation and technological progress. It provides enterprises with more efficient and flexible financial services and promotes the upgrading and optimization of the industrial chain. In order to promote the digitalization of industrial finance as soon as possible, in the context of the complex and rich industrial background of supply chain finance scenarios, we can provide measures to support the rapid onlineization of various business scenarios and realize the rapid implementation of business.
[0003] Existing product development technology is based on an iterative, incremental development model that focuses on quickly responding to demand changes and user feedback, and delivering usable products in a short period of time. In actual applications, product development requires testing and verification in each iteration cycle, which leads to greater complexity in the product development process, resulting in lower efficiency in product development. Summary of the invention
[0004] The present invention provides a configurable product development method, device and medium based on a supply chain finance scenario, the main purpose of which is to solve the problem of low efficiency in product development.
[0005] To achieve the above-mentioned purpose, the present invention provides a configurable product development method based on a supply chain finance scenario, comprising:
[0006] Extracting common product business elements, common solution business elements, and common process business elements from multiple business scenario data sets acquired in advance;
[0007] Parameterizing the common product business elements, the common solution business elements, and the common process business elements respectively;
[0008] Encapsulating the parameterized common product business elements into product configuration codes, encapsulating the parameterized common solution business elements into solution configuration codes, and encapsulating the parameterized common process business elements into process configuration codes;
[0009] Merging the product configuration code, the solution configuration code and the process configuration code into a development business common code;
[0010] The development product parameters are configured according to the development business public code to obtain the target development product.
[0011] Optionally, extracting the common product business elements, common solution business elements and common process business elements from the pre-acquired plurality of business scenario data sets includes:
[0012] Extract historical product fields, historical solution fields, and historical process fields from the pre-acquired historical business scenario data set;
[0013] Generate a product field query statement based on the historical product field, generate a solution field query statement based on the historical solution field, and generate a process field query statement based on the historical process field;
[0014] Querying the product fields in the pre-acquired multiple business scenario data sets through the product field query statement, querying the solution fields in the pre-acquired multiple business scenario data sets through the solution field query statement, and querying the process fields in the pre-acquired multiple business scenario data sets through the process field query statement;
[0015] Compare the meanings of the product fields in all business scenario data sets, and use the product field data corresponding to the fields with the same meanings as the common product business elements;
[0016] Compare the meanings of the solution fields in all business scenario data sets, and use the solution field data corresponding to the fields with the same meanings as the common solution business elements;
[0017] The process fields in all business scenario data sets are compared for field meanings, and the process field data corresponding to the fields with the same meaning after comparison are used as common process business elements to obtain process fields with the same meaning, and the process field data corresponding to the same process fields are used as common process business elements.
[0018] Optionally, the step of parameterizing the common product service elements includes:
[0019] Extracting the field meaning of each product field in the common product business element;
[0020] Determine the field type of each product field based on the meaning of the field;
[0021] Convert each product field into a product variable name according to the field type;
[0022] The product variable name is replaced with a parameter reference to obtain a product parameter corresponding to each product field in the common product business element.
[0023] Optionally, encapsulating the parameterized common product business elements into product configuration codes includes:
[0024] Determine the product parameterization field according to the product variable name in the parameterized common product business element, extract the field type of the product parameterization field, and determine the product property field according to the field meaning of each product field;
[0025] The product parameterization field, the product property field and the field type are combined to obtain a product configuration code template;
[0026] Querying the code position of each product variable name in the parameterized common product business element in the product configuration code template;
[0027] Adding the product variable names in the parameterized common product elements to the product configuration code template according to the code positions;
[0028] Perform field function test on the product configuration code template of the added product variable name to obtain the product configuration code.
[0029] Optionally, the merging of the product parameterization field, the product property field and the field type to obtain a product configuration code template includes:
[0030] All product parameterization fields are placed as the first table column, the product property fields are placed as the second table column, and the field type is placed as the third table column;
[0031] According to the preset column numbers of the table columns from small to large, all corresponding fields in the first table column, the second table column and the third table example are merged into a product configuration table;
[0032] Using the field names in the product configuration table as product field variables;
[0033] The product field variables are configured with code positions according to the position of each field in the product configuration table to obtain a product configuration code template.
[0034] Optionally, the field function test is performed on the product configuration code template to which the product variable name is added to obtain the product configuration code, including:
[0035] Verifying the name format of the product variable name in the product configuration code template;
[0036] When the name format verification is qualified, the parameter boundary value of the product variable name is tested;
[0037] When the parameter boundary value test is qualified, the variable combination test is performed on the product variable name;
[0038] When the field interaction results under different variable combinations meet the preset interaction conditions, the fault tolerance capability of the product configuration code template is tested;
[0039] When the test result corresponding to the fault tolerance test meets the preset test condition, the tested product configuration code template is output as the product configuration code.
[0040] Optionally, the merging of the product configuration code, the solution configuration code and the process configuration code into a development business common code includes:
[0041] Encapsulating the product configuration code into a product configuration function, encapsulating the solution configuration code into a solution configuration function, and encapsulating the process configuration code into a process configuration function;
[0042] Create a public auxiliary function file according to the preset public function interface;
[0043] Adding the product configuration function, the solution configuration function and the process configuration function to the public auxiliary function file one by one;
[0044] Encapsulate the public auxiliary function files after adding functions as public code for business development.
[0045] Optionally, configuring the development product parameters according to the development business common code to obtain the target development product includes:
[0046] Obtain product data, solution data and process data of product parameters to be developed in the product to be developed;
[0047] Modify the field attributes corresponding to the product fields in the product configuration function in the development business common code according to the product fields corresponding to the product data;
[0048] Modify the field attribute corresponding to the solution field in the solution configuration function in the development business common code according to the solution field corresponding to the solution data;
[0049] Modify the field attributes corresponding to the process fields in the process configuration function in the development business common code according to the process fields corresponding to the process data;
[0050] The field attributes of the modified product field, the field attributes of the modified solution field and the field attributes corresponding to the modified process field are encapsulated as product parameters of the product to be developed, and the product parameters are input into the development business public code to obtain the target development product.
[0051] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0052] at least one processor; and,
[0053] a memory communicatively connected to the at least one processor; wherein,
[0054] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned configurable product development method based on the supply chain finance scenario.
[0055] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned configurable product development method based on the supply chain finance scenario.
[0056] The embodiment of the present invention can identify the common parts that can be reused in different scenarios by extracting the common product, solution and process business elements in each business scenario data set, which is conducive to reducing redundant code, simplifying the development process, and improving the maintainability and scalability of the code; parameterizing the common product, solution and process business elements can be abstracted into configurable parameters, and customized product, solution and process configuration can be achieved by modifying the parameter values according to different needs and scenarios without modifying the code; encapsulating the parameterized common business elements into product configuration code, solution configuration code and process configuration code can make the configuration more flexible and manageable; merging the product configuration code, solution configuration code and process configuration code into a common code for development business, and these configurations can be uniformly managed and maintained; configuring the development product parameters according to the common code for development business, the target development product can be generated according to different needs and scenarios, and the attributes, functions and performance of the product can be quickly customized by modifying the configuration parameters, thereby improving the development efficiency and flexibility. Therefore, the configuration product development method, device and medium based on the supply chain finance scenario proposed by the present invention can solve the problem of low efficiency in product development. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A flow chart of a configuration-based product development method based on a supply chain finance scenario provided by an embodiment of the present invention;
[0058] Figure 2 A schematic diagram of a process for parameterizing common product service elements provided by an embodiment of the present invention;
[0059] Figure 3 A schematic diagram of a process for generating a product configuration code template provided by an embodiment of the present invention;
[0060] Figure 4 A schematic diagram of the structure of an electronic device for implementing the configurable product development method based on the supply chain finance scenario provided in one embodiment of the present invention.
[0061] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0062] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0063] The embodiment of the present application provides a configuration product development method based on a supply chain finance scenario. The execution subject of the configuration product development method based on the supply chain finance scenario includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the configuration product development method based on the supply chain finance scenario can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0064] Reference Figure 1 FIG. 1 is a flow chart of a configuration-based product development method based on a supply chain finance scenario provided by an embodiment of the present invention. In this embodiment, the configuration-based product development method based on a supply chain finance scenario includes:
[0065] S1. Extracting common product business elements, common solution business elements, and common process business elements from multiple business scenario data sets acquired in advance.
[0066] In an embodiment of the present invention, the business scenario data set refers to a collection of various business data collected in a supply chain finance scenario, including information related to products, solutions and processes, wherein the business scenario data set can be obtained from a pre-stored storage area through computer statements with data capture functions (such as Java statements, Python statements, etc.), wherein the storage area includes but is not limited to an internal enterprise database and a blockchain.
[0067] In detail, the common product business elements refer to the common basic product elements used in different business scenarios, such as the product name product_name, product description product_description, and product specifications product_spec as common product elements; the common scheme business elements refer to the basic scheme elements present in multiple business scenarios, such as the scheme name scheme_name, scheme description scheme_description, and scheme implementation steps scheme_steps as common scheme elements; the common process business elements refer to the basic process elements present in multiple business scenarios, such as the process name process_name, flowchart process_diagram, and process execution steps process_steps as common process elements.
[0068] In the embodiment of the present invention, extracting the common product business elements, common solution business elements and common process business elements from the pre-acquired plurality of business scenario data sets includes:
[0069] Extract historical product fields, historical solution fields, and historical process fields from the pre-acquired historical business scenario data set;
[0070] Generate a product field query statement based on the historical product field, generate a solution field query statement based on the historical solution field, and generate a process field query statement based on the historical process field;
[0071] Querying the product fields in the pre-acquired multiple business scenario data sets through the product field query statement, querying the solution fields in the pre-acquired multiple business scenario data sets through the solution field query statement, and querying the process fields in the pre-acquired multiple business scenario data sets through the process field query statement;
[0072] Compare the meanings of the product fields in all business scenario data sets, and use the product field data corresponding to the fields with the same meanings as the common product business elements;
[0073] Compare the meanings of the solution fields in all business scenario data sets, and use the solution field data corresponding to the fields with the same meanings as the common solution business elements;
[0074] The process fields in all business scenario data sets are compared for field meanings, and the process field data corresponding to the fields with the same meaning after comparison are used as common process business elements to obtain process fields with the same meaning, and the process field data corresponding to the same process fields are used as common process business elements.
[0075] In detail, the product fields, solution fields and process fields in the business scenario dataset supply_chain_finance can be queried according to the field query statement SELECT query function. For example, the query statement corresponding to querying the product field is SELECT product_name, product_description, product_spec FROM supply_chain_finance; the query statement corresponding to querying the solution field is SELECT scheme_name, scheme_description, scheme_steps FROM supply_chain_finance; the query statement corresponding to querying the process field is SELECT process_name, process_diagram, process_steps FROM supply_chain_finance; the queried fields are used as the product fields, solution fields and process fields corresponding to each business scenario.
[0076] Specifically, the product fields in the business scenario data set are compared, and the same product fields are found through set operations (such as intersection), and the product field data corresponding to the same product fields are used as common product business elements, that is, the product name product_name, product description product_description, and product specification product_spec are used as common product business elements; the scheme fields in the business scenario data set are compared, and the same scheme fields are found through set operations (such as intersection), and the scheme field data corresponding to the same fields are used as common scheme business elements, that is, the scheme name scheme_name, scheme description scheme_description, and scheme implementation steps scheme_steps are used as common scheme business elements; the process fields in the business scenario data set are compared, and the same process fields are found through set operations (such as intersection), and the process field data corresponding to the same process fields are used as common process business elements, that is, the process name process_name, the flowchart process_diagram, and the process execution steps process_steps are used as common process business elements.
[0077] Furthermore, by extracting these common business elements, we can better grasp the commonalities and differences of business scenarios, thereby optimizing and standardizing business processes. That is, we can customize products according to different business needs, which requires analyzing product parameters.
[0078] S2. Parameterize the common product business elements, the common solution business elements, and the common process business elements respectively.
[0079] In an embodiment of the present invention, parameterization refers to abstracting fixed values, configurations, logics, and the like in a program into variable parameters so as to facilitate adjustment and configuration in different scenarios without modifying the source code of the program or system. Parameterization may include abstracting constants, variables, rules, settings, and the like into parameters, and specifying and modifying them through external input or configuration files, etc. Therefore, common product business elements, common solution business elements, and common process business elements are all parameterized.
[0080] In the embodiment of the present invention, refer to Figure 2 As shown, the step of parameterizing the common product service elements includes:
[0081] S21, extracting the field meaning of each product field in the common product business element;
[0082] S22. Determine the field type of each product field according to the meaning of the field;
[0083] S23, converting each product field into a product variable name according to the field type;
[0084] S24. Perform parameter reference replacement on the product variable name to obtain product parameters corresponding to each product field in the common product business element.
[0085] In detail, the product fields in the common product business element include product number SKU, product name name, product price Price, product inventory Stock, product weight Weight, product length Length, product width Width, product height Height, product color Color, and product material Material. The meaning of the field is determined according to each product field. For example, the field meaning of product_SKU is the product number, and the field meaning of product_name is the product name, and so on. Then, according to the meaning of each field, its corresponding field type is determined, such as product_SKU is a string type, product_Price is a floating point type, and product_Stock is an integer type. Then, according to the field type, each field is converted into a unique product variable name, such as converting the product number SKU into product_SKU and the product name name into product_name. ct_name, product price Price is converted to product_Price, and so on, to obtain product number product_SKU, product name product_name, product price product_Price, product inventory quantity product_Stock, product weight product_Weight, product length product_Length, product width product_Width, product height product_Height, product color product_Color, product material product_Material, and replace the field names in the original business elements with the corresponding product variable names to obtain the parameterized common product business elements, such as the variable name is product_name, meaning the product name, type is string, the variable name is product_Price, meaning the product price, type is floating point number, and so on.
[0086] Specifically, the steps of parameterizing the common scheme business elements and the common process business elements are consistent with the steps of parameterizing the common product business elements, which will not be repeated here. The scheme fields in the common scheme business elements include scheme number PlanID, scheme name PlanName, scheme description PlanDescription, scheme features PlanFeatures, and scheme steps Plansteps. PlanID is converted into scheme_ID, and PlanName is converted into scheme_name, so that the scheme fields in the common scheme business elements can be parameterized; the process fields in the common process business elements include process number ProcessID, process name ProcessName, process steps ProcessSteps, process owner ProcessOwner, process status ProcessStatus, ProcessID is converted into process_ID, ProcessName is converted into process_name, etc., so that the process fields in the common process business elements can be parameterized.
[0087] Furthermore, in order to meet the needs of different customers and customize products to better adapt to different business scenarios and needs, the parameterized data is encapsulated as code, making the product configuration more flexible and maintainable. When a business element needs to be modified, only the corresponding configuration code needs to be modified, without modifying the implementation logic of the entire product, thereby reducing the risk of modification and improving the maintainability of the code.
[0088] S3. Encapsulate the parameterized common product business elements into product configuration codes, encapsulate the parameterized common solution business elements into solution configuration codes, and encapsulate the parameterized common process business elements into process configuration codes.
[0089] In the embodiment of the present invention, the product configuration code refers to a code used to define various parameters, attributes and behaviors of a product so as to customize and configure the product during the software development process.
[0090] In the embodiment of the present invention, the step of encapsulating the parameterized common product service elements into product configuration codes includes:
[0091] Determine the product parameterization field according to the product variable name in the parameterized common product business element, extract the field type of the product parameterization field, and determine the product property field according to the field meaning of each product field;
[0092] The product parameterization field, the product property field and the field type are combined to obtain a product configuration code template;
[0093] Querying the code position of each product variable name in the parameterized common product business element in the product configuration code template;
[0094] Adding the product variable names in the parameterized common product elements to the product configuration code template according to the code positions;
[0095] Perform field function test on the product configuration code template of the added product variable name to obtain the product configuration code.
[0096] In detail, query each product variable name in the parameterized common product business elements, such as product number product_SKU, product name product_name, product price product_Price, product inventory quantity product_Stock, product weight product_Weight, product length product_Length, product width product_Width, product height product_Height, product color product_Color, product material product_Material, and find the corresponding field position in the product configuration template, and fill in the corresponding position of the code template according to the field position, and add the product variable names in the parameterized common product business elements to the product configuration code template in turn. The product configuration code that finally passes the test is the result of encapsulating the parameterized common product business elements into product configuration codes.
[0097] Specifically, the product configuration code template is a predefined code structure or framework for generating a specific type of configuration code, including product parameterization fields, field types, and product property fields.
[0098] In the embodiment of the present invention, refer to Figure 3 As shown, the product parameterization field, the product property field and the field type are merged to obtain a product configuration code template, including:
[0099] S31, taking all product parameterization fields as the first table column, taking the product property field as the second table column and taking the field type as the third table column;
[0100] S32, merging all corresponding fields in the first table column, the second table column and the third table instance into a product configuration table according to the preset table column serial numbers from small to large;
[0101] S33, using the field names in the product configuration table as product field variables;
[0102] S34. According to the position of each field in the product configuration table, the product field variables are configured with code positions to obtain a product configuration code template.
[0103] Specifically, the product parameterized fields are the product variable names, namely, product number product_SKU, product name product_name, product price product_Price, product stock quantity product_Stock, product weight product_Weight, product length product_Length, product width product_Width, product height product_Height, product color product_Color, and product material product_Material. The field type refers to the type corresponding to each product parameterized field, such as product number product_SKU, product_name, product_Color, and product_Material are string types, and product_Weight is a string type. t, product_Length, product_Width, and product_Height are floating point types, product_Stock is an integer type, and the product property field refers to the original product field, such as product number SKU, product name name, product price Price, product inventory quantity Stock, product weight Weight, product length Length, product width Width, product height Height, product color Color, and product material Material. The code corresponding to the product number is product_name = "{name}" product name, string type, and the code corresponding to the product price is product_price = {price} product price, numeric type, and so on. The codes corresponding to all product parameterized fields are collected as the product configuration code template.
[0104] For example, if the product parameterization fields include color="", size="", weight="", the product property fields include brand="", material="", price="", and the field types include color_type="string", size_type="string", weight_type="float", brandtype="string", material_type="string", price_type="float", then the product configuration result product_config="{"color":color,"size":size,"weight":weight,"brand":brand,"material":material,"price":price} is generated, and the product parameterization fields and product property fields are respectively used as the first and second columns, and the corresponding field types are defined. Then, we use the field name as the product field variable, perform position configuration in the code, and finally display the configuration information by generating the product configuration result.
[0105] Specifically, in order to ensure the reliability, flexibility or ease of use of the configuration code, it is necessary to perform field function testing on the product configuration code to improve code quality, which is conducive to reducing errors, improving development efficiency, and providing a reliable foundation for product configuration.
[0106] In the embodiment of the present invention, the field function test is performed on the product configuration code template to which the product variable name is added to obtain the product configuration code, including:
[0107] Verifying the name format of the product variable name in the product configuration code template;
[0108] When the name format verification is qualified, the parameter boundary value of the product variable name is tested;
[0109] When the parameter boundary value test is qualified, the variable combination test is performed on the product variable name;
[0110] When the field interaction results under different variable combinations meet the preset interaction conditions, the fault tolerance capability of the product configuration code template is tested;
[0111] When the test result corresponding to the fault tolerance test meets the preset test condition, the tested product configuration code template is output as the product configuration code.
[0112] In detail, insert the actual parameterized data into the product configuration code to ensure that the data can be configured correctly, check whether the parameterized fields are replaced correctly, and verify whether the type and format of the parameterized data are consistent with expectations; test the boundary values of the parameterized fields to verify the behavior and results of the configuration under different boundary conditions. For example, for the price field, you can test the minimum value, maximum value, boundary value, etc. to ensure the robustness of the configuration; if the product configuration involves a combination of multiple parameterized fields, perform combination testing to verify the interaction and impact between the fields to ensure the correctness and consistency of the configuration under different combinations; test the error handling capability of the product configuration under abnormal conditions, for example, when the parameterized data is missing or in the wrong format, verify the error prompt and exception handling mechanism of the configuration, so that when all tests are qualified, output the qualified product configuration code template as the product configuration code.
[0113] Specifically, the steps of encapsulating the parameterized common solution business elements into solution configuration codes and encapsulating the parameterized common process business elements into process configuration codes are consistent with the steps of encapsulating the parameterized common product business elements into product configuration codes, which will not be repeated here. The solution configuration code refers to the code used to define and configure the specific solution or settings of the product, including a series of configuration parameters, options and rules for defining the behavior, function and appearance of the product, and the process configuration code refers to the code used to define and configure the business process, which describes the different steps, conditions and operations of the business process, as well as the relationships and dependencies between the processes. The solution configuration code is used to define and configure the solution and settings of the product, while the process configuration code is used to define and configure the execution order and logic of the business process. Both of them are important components for customizing and expanding product functions.
[0114] Furthermore, in order to improve development efficiency, speed up project development, and meet the changes in different projects and business needs, the merged code can be centrally managed and maintained to reduce code duplication and redundancy. Therefore, all code data needs to be merged and analyzed.
[0115] S4. Combining the product configuration code, the solution configuration code and the process configuration code into a common code for developing business.
[0116] In an embodiment of the present invention, the development business common code is a general, reusable code that is shared by multiple projects or modules to improve development efficiency and code quality. By encapsulating the reused code into common functions or classes and sharing them among different projects and modules, code redundancy can be significantly reduced and the maintainability and readability of the code can be enhanced.
[0117] In the embodiment of the present invention, the step of merging the product configuration code, the solution configuration code and the process configuration code into a common code for developing a business includes:
[0118] Encapsulating the product configuration code into a product configuration function, encapsulating the solution configuration code into a solution configuration function, and encapsulating the process configuration code into a process configuration function;
[0119] Create a public auxiliary function file according to the preset public function interface;
[0120] Adding the product configuration function, the solution configuration function and the process configuration function to the public auxiliary function file one by one;
[0121] Encapsulate the public auxiliary function files after adding functions as public code for business development.
[0122] In detail, the product configuration code is encapsulated into a product configuration function, the scheme configuration code is encapsulated into a scheme configuration function, and the process configuration code is encapsulated into a process configuration function, so that different types of configuration codes can be encapsulated into their respective functions, thereby improving the modularity and readability of the code. For example, the configure_product function accepts the product ID and the configuration options options as parameters, i.e., configure_product(product_id,config_options), obtains the product object according to the product ID, and then sets the product attributes according to the configuration options, such as color, size, etc., and finally saves the configured product information; the configure_scheme function accepts the scheme ID and the configuration options options as parameters, i.e., configure_scheme(scheme_id,config_options), obtains the scheme object according to the scheme ID, and then sets the scheme attributes according to the configuration options, such as name, description, etc., and finally saves the configured scheme information; the configure_workflow function accepts the process ID and the configuration options options as parameters, i.e., configure_workflow(workflow_id,config_options), obtains the process object according to the process ID, and then sets the process attributes according to the configuration options, such as name, description, etc. Finally, the configured process information is saved. By encapsulating the configuration code into such a function, unified processing of product configuration can be achieved, code redundancy can be reduced, and when the product needs to be configured, only the function needs to be called.
[0123] Specifically, creating public auxiliary function files can help organize and manage shared code snippets, making different code snippets easier to be called by multiple functions. For example, you can create a public auxiliary function file named utils.py, which includes the product configuration function configure_product(product_id,config_options), the scheme configuration function configure_scheme(scheme_id,config_options) and the process configuration function configure_workflow(workflow_id,config_options). You can also use Python statements to encapsulate the public auxiliary function file after adding functions into the common code for business development, that is, encapsulate the public auxiliary function file utils.py into the common code common.py for business development. By encapsulating the public auxiliary functions into the common code for business development, you can directly import and use these functions in other files without having to repeatedly write the common configuration logic. You can use public auxiliary functions to configure products, schemes, and processes, thereby improving the reusability of the code and making the code easier to maintain.
[0124] Furthermore, through the development of common business code, business logic reuse and standardization can be quickly achieved. You only need to focus on the customization requirements of the product without having to repeatedly write similar code, thereby improving product development efficiency.
[0125] S5. Configure development product parameters according to the development business public code to obtain a target development product.
[0126] In one of the practical application scenarios of the present invention, in a customer management system of a bank in a financial business scenario, different bank products, such as savings accounts, credit cards, loan products, etc., can be defined through product configuration; different interest rates, handling fees, repayment methods, etc. can be set through plan configuration; and customer account opening processes, loan application processes, account transaction processes, etc. can be defined through process configuration.
[0127] In the embodiment of the present invention, the target development product refers to the final product generated after modification and configuration by configuring the product parameters of the product to be developed according to the development business public code. The product has properties, functions and performance that meet the target requirements and can meet customer needs and expectations.
[0128] In the embodiment of the present invention, configuring the development product parameters according to the development business common code to obtain the target development product includes:
[0129] Obtain product data, solution data and process data of product parameters to be developed in the product to be developed;
[0130] Modify the field attributes corresponding to the product fields in the product configuration function in the development business common code according to the product fields corresponding to the product data;
[0131] Modify the field attribute corresponding to the solution field in the solution configuration function in the development business common code according to the solution field corresponding to the solution data;
[0132] Modify the field attributes corresponding to the process fields in the process configuration function in the development business common code according to the process fields corresponding to the process data;
[0133] The field attributes of the modified product field, the field attributes of the modified solution field and the field attributes corresponding to the modified process field are encapsulated as product parameters of the product to be developed, and the product parameters are input into the development business public code to obtain the target development product.
[0134] In detail, according to the product data, solution data and process data of the newly developed product, the corresponding fields and values are extracted; according to the fields and values in the product data, the corresponding fields in the product configuration function are modified to ensure that the product attributes meet the target requirements; according to the fields and values in the solution data, the corresponding fields in the solution configuration function are modified to ensure that the solution attributes meet the target requirements; according to the fields and values in the process data, the corresponding fields in the process configuration function are modified to ensure that the process attributes meet the target requirements; according to the modified product attributes, solution attributes and process attributes, combined with other relevant parameters, the target development product is generated, that is, common business elements are extracted from the business scenarios for parameterization and business common module code is developed; based on product configuration, solution configuration and process configuration, the configuration parameters are modified to support the rapid implementation of the business. Its advantage is that the development workload is small and the business response speed is fast.
[0135] For example, a bank has launched a product configuration that is an exclusive financial service for high-income customers. The plan configuration can be to provide higher interest rates and lower fees, while the process configuration can be to set up a faster account opening process and more flexible transaction methods. Through the combination of these configuration parameters, the bank can provide personalized financial services for different types of customers without modifying the source code of the system, thereby better meeting customer needs, improving customer satisfaction, and enhancing the bank's competitiveness.
[0136] The embodiment of the present invention can identify the common parts that can be reused in different scenarios by extracting the common product, solution and process business elements in each business scenario data set, which is conducive to reducing redundant code, simplifying the development process, and improving the maintainability and scalability of the code; parameterizing the common product, solution and process business elements can be abstracted into configurable parameters, and customized product, solution and process configuration can be achieved by modifying the parameter values according to different needs and scenarios without modifying the code; encapsulating the parameterized common business elements into product configuration code, solution configuration code and process configuration code can make the configuration more flexible and manageable; merging the product configuration code, solution configuration code and process configuration code into a common code for development business, and these configurations can be uniformly managed and maintained; configuring the development product parameters according to the common code for development business, the target development product can be generated according to different needs and scenarios, and the attributes, functions and performance of the product can be quickly customized by modifying the configuration parameters, thereby improving the development efficiency and flexibility. Therefore, the configuration product development method, device and medium based on the supply chain finance scenario proposed by the present invention can solve the problem of low efficiency in product development.
[0137] like Figure 4 , is a schematic diagram of the structure of an electronic device for implementing a configurable product development method based on a supply chain finance scenario provided by an embodiment of the present invention.
[0138] The electronic device may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a configurable product development program based on a supply chain finance scenario.
[0139] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes the programs or modules stored in the memory 11 (for example, executing a configurable product development program based on a supply chain finance scenario, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.
[0140] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a configurable product development program based on a supply chain finance scenario, but also can be used to temporarily store data that has been output or is to be output.
[0141] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0142] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0143] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0144] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0145] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0146] The configured product development program based on the supply chain finance scenario stored in the memory 11 in the electronic device is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0147] Extract the common product business elements, common solution business elements and common process business elements in each business scenario data set;
[0148] Parameterizing the common product business elements, parameterizing the common solution business elements, and parameterizing the common process business elements;
[0149] Encapsulating the parameterized common product business elements into product configuration codes, encapsulating the parameterized common solution business elements into solution configuration codes, and encapsulating the parameterized common process business elements into process configuration codes;
[0150] Merging the product configuration code, the solution configuration code and the process configuration code into a development business common code;
[0151] The development product parameters are configured according to the development business public code to obtain the target development product.
[0152] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0153] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0154] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0155] Extract the common product business elements, common solution business elements and common process business elements in each business scenario data set;
[0156] Parameterizing the common product business elements, parameterizing the common solution business elements, and parameterizing the common process business elements;
[0157] Encapsulating the parameterized common product business elements into product configuration codes, encapsulating the parameterized common solution business elements into solution configuration codes, and encapsulating the parameterized common process business elements into process configuration codes;
[0158] Merging the product configuration code, the solution configuration code and the process configuration code into a development business common code;
[0159] The development product parameters are configured according to the development business public code to obtain the target development product.
[0160] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, media and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0161] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0162] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0163] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0164] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is not limited only according to the above description, and it is intended that all changes within the meaning and scope of equivalent elements within the scope of protection are included in the present invention.
[0165] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0166] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0167] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A configuration-based product development method based on supply chain finance scenarios, characterized in that: The method comprises: Extracting common product business elements, common solution business elements, and common process business elements from multiple business scenario data sets acquired in advance; Parameterizing the common product business elements, the common solution business elements, and the common process business elements respectively; Encapsulating the parameterized common product business elements into product configuration codes, encapsulating the parameterized common solution business elements into solution configuration codes, and encapsulating the parameterized common process business elements into process configuration codes; Merging the product configuration code, the solution configuration code and the process configuration code into a development business common code; The development product parameters are configured according to the development business public code to obtain the target development product.
2. The configuration-based product development method based on the supply chain finance scenario according to claim 1, characterized in that: The extracting of common product business elements, common solution business elements and common process business elements from the pre-acquired plurality of business scenario data sets includes: Extract historical product fields, historical solution fields, and historical process fields from the pre-acquired historical business scenario data set; Generate a product field query statement based on the historical product field, generate a solution field query statement based on the historical solution field, and generate a process field query statement based on the historical process field; Querying the product fields in the pre-acquired multiple business scenario data sets through the product field query statement, querying the solution fields in the pre-acquired multiple business scenario data sets through the solution field query statement, and querying the process fields in the pre-acquired multiple business scenario data sets through the process field query statement; Compare the meanings of the product fields in all business scenario data sets, and use the product field data corresponding to the fields with the same meanings as the common product business elements; Compare the meanings of the solution fields in all business scenario data sets, and use the solution field data corresponding to the fields with the same meanings as the common solution business elements; The process fields in all business scenario data sets are compared for field meanings, and the process field data corresponding to the fields with the same meaning after comparison are used as common process business elements to obtain process fields with the same meaning, and the process field data corresponding to the same process fields are used as common process business elements.
3. The configuration-based product development method based on the supply chain finance scenario according to claim 1, characterized in that: The step of parameterizing the common product service elements comprises: Extracting the field meaning of each product field in the common product business element; Determine the field type of each product field based on the meaning of the field; Convert each product field into a product variable name according to the field type; The product variable name is replaced with a parameter reference to obtain a product parameter corresponding to each product field in the common product business element.
4. The configuration-based product development method based on supply chain finance scenario according to claim 1, characterized in that: The step of encapsulating the parameterized common product business elements into product configuration codes includes: Determine the product parameterization field according to the product variable name in the parameterized common product business element, extract the field type of the product parameterization field, and determine the product property field according to the field meaning of each product field; The product parameterization field, the product property field and the field type are combined to obtain a product configuration code template; Querying the code position of each product variable name in the parameterized common product business element in the product configuration code template; Adding the product variable names in the parameterized common product elements to the product configuration code template according to the code positions; Perform field function test on the product configuration code template of the added product variable name to obtain the product configuration code.
5. The configuration-based product development method based on supply chain finance scenario according to claim 1, characterized in that: The product parameterization field, the product property field and the field type are combined to obtain a product configuration code template, including: All product parameterization fields are placed as the first table column, the product property fields are placed as the second table column, and the field type is placed as the third table column; According to the preset column numbers of the table columns from small to large, all corresponding fields in the first table column, the second table column and the third table example are merged into a product configuration table; Using the field names in the product configuration table as product field variables; The product field variables are configured with code positions according to the position of each field in the product configuration table to obtain a product configuration code template.
6. The configuration-based product development method based on supply chain finance scenario according to claim 1, characterized in that: The field function test is performed on the product configuration code template of the added product variable name to obtain the product configuration code, including: Verifying the name format of the product variable name in the product configuration code template; When the name format verification is qualified, the parameter boundary value of the product variable name is tested; When the parameter boundary value test is qualified, the variable combination test is performed on the product variable name; When the field interaction results under different variable combinations meet the preset interaction conditions, the fault tolerance capability of the product configuration code template is tested; When the test result corresponding to the fault tolerance test meets the preset test condition, the tested product configuration code template is output as the product configuration code.
7. The configuration-based product development method based on supply chain finance scenario according to claim 1, characterized in that: The step of merging the product configuration code, the solution configuration code and the process configuration code into a common code for developing a business includes: Encapsulating the product configuration code into a product configuration function, encapsulating the solution configuration code into a solution configuration function, and encapsulating the process configuration code into a process configuration function; Create a public auxiliary function file according to the preset public function interface; Adding the product configuration function, the solution configuration function and the process configuration function to the public auxiliary function file one by one; Encapsulate the public auxiliary function files after adding functions as public code for business development.
8. The configuration-based product development method based on supply chain finance scenario according to claim 1, characterized in that: The step of configuring the development product parameters according to the development business common code to obtain the target development product includes: Obtain product data, solution data and process data of product parameters to be developed in the product to be developed; Modify the field attributes corresponding to the product fields in the product configuration function in the development business common code according to the product fields corresponding to the product data; Modify the field attribute corresponding to the solution field in the solution configuration function in the development business common code according to the solution field corresponding to the solution data; Modify the field attributes corresponding to the process fields in the process configuration function in the development business common code according to the process fields corresponding to the process data; The field attributes of the modified product field, the field attributes of the modified solution field and the field attributes corresponding to the modified process field are encapsulated as product parameters of the product to be developed, and the product parameters are input into the development business public code to obtain the target development product.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the configurable product development method based on the supply chain finance scenario as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the configurable product development method based on the supply chain finance scenario as described in any one of claims 1 to 8.
