Intelligent script configuration method, device and computer-readable storage medium

By de-exception and standardizing the original data, extracting module information in combination with script generation guidance technology, and using script-driven code generator for script configuration, the problems of low efficiency and high redundancy in the existing technology are solved, and the problem of low script configuration efficiency and high redundancy in the existing technology is realized. Efficient and accurate script configuration.

CN111177471BActive Publication Date: 2024-12-10CHINA PING AN LIFE INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911344900.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-23
Publication Date
2024-12-10
Estimated Expiration
2039-12-23

AI Technical Summary

Technical Problem

Existing script configuration methods are inefficient and prone to errors when processing big data, and fail to effectively utilize data module information, resulting in high redundancy.

Method used

By de-exception processing and data standardization, the original data set is processed by using script generation guidance technology to extract module information, generate script data sets, and use script driver code generators and pre-built script converters to perform script configuration, reducing user manual operations and improving Configuration flexibility.

Benefits of technology

It realizes efficient script configuration, reduces error rate, improves the speed and accuracy of processing big data, and reduces redundant operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111177471B_ABST
    Figure CN111177471B_ABST
Patent Text Reader

Abstract

The present invention relates to an artificial intelligence technology, and discloses an intelligent script configuration method, including: receiving an original data set, performing anomaly removal and data standardization processing on the original data set to obtain a standard data set, extracting module information of the standard data set according to a script generation guidance technology, and generating a script data set according to the module information, using a script driving code generator to drive the script data set to obtain a corresponding script code set, running the script code set, and using a pre-built script converter to convert the script code set to obtain a script configuration set, and completing the script configuration. The present invention also proposes an intelligent script configuration device and a computer-readable storage medium. The present invention can realize an efficient intelligent script configuration function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method, device and computer-readable storage medium for intelligent script configuration. Background Art

[0002] At present, most script configuration methods are visual script configuration methods. Firstly, this method does not preprocess the original data, which makes the script run slowly and prone to errors during the operation. Secondly, it does not use relevant guidance to extract data module information. For data modules with large data volumes, the redundancy is high. Therefore, an efficient script configuration method is urgently needed. Summary of the invention

[0003] The present invention provides an intelligent script configuration method, device and computer-readable storage medium, the main purpose of which is to perform intelligent script configuration according to user query requirements.

[0004] To achieve the above object, the present invention provides an intelligent script configuration method, comprising:

[0005] Receiving an original data set, performing anomaly removal and data standardization on the original data set to obtain a standard data set;

[0006] Extracting module information of the standard data set according to the script generation guidance technology, and generating a script data set according to the module information;

[0007] Using a script driven code generator to drive the script data set to obtain a corresponding script code set;

[0008] The script code set is run, and the script code set is converted using a pre-built script converter to obtain a script configuration set, thereby completing the script configuration.

[0009] Optionally, extracting module information of the standard data set according to the script generation guidance technology and generating a script data set according to the module information includes:

[0010] Predefine the module format requirements and module structure description documents according to XML technology to obtain the script generation guidance model;

[0011] Using the script to generate a guidance model, extracting module information of functions, methods, and classes included in the standard data set;

[0012] Set script generation attributes, and perform associated operations according to the script generation attributes and the module information to generate a script-guided use case;

[0013] Automatically run the script-guided use case to generate a corresponding script data set.

[0014] Optionally, the script-based driven code generator performs a driving operation on the script data set to obtain a corresponding script code set, including:

[0015] Pack the script-driven code written in XSLT language to obtain a script-driven code generator;

[0016] Running the script to drive the code generator to extract node attributes of the script data set;

[0017] After script driving according to the node attributes and the pre-built script code framework, the script code set is output.

[0018] Optionally, after script driving based on the node attributes and a pre-built script code framework, the script code set is output, including:

[0019] Matching the node attributes with the script code framework to obtain a corresponding set of script codes and node attributes;

[0020] The missing values ​​in the script code framework are filled in according to the corresponding set to obtain the script code set.

[0021] Optionally, running the script code set includes:

[0022] Using a connector to connect to a document database required when the script code set is running;

[0023] If the connection fails, a document database connection failure is reported and the script code set is stopped; or

[0024] If the connection is successful, the document reader is used to read the data in the document database, and the data is stored in a pre-set server to generate document data;

[0025] The script code set is run, and when the script code set needs a corresponding document, the document data is extracted from the server until the script code set is finished running.

[0026] In addition, to achieve the above-mentioned purpose, the present invention further provides an intelligent script configuration device, which includes a memory and a processor, wherein the memory stores an intelligent script configuration program that can be run on the processor, and when the intelligent script configuration program is executed by the processor, the following steps are implemented:

[0027] Receiving an original data set, performing anomaly removal and data standardization on the original data set to obtain a standard data set;

[0028] Extracting module information of the standard data set according to the script generation guidance technology, and generating a script data set according to the module information;

[0029] Using a script driven code generator to drive the script data set to obtain a corresponding script code set;

[0030] The script code set is run, and the script code set is converted using a pre-built script converter to obtain a script configuration set, thereby completing the script configuration.

[0031] Optionally, extracting module information of the standard data set according to the script generation guidance technology and generating a script data set according to the module information includes:

[0032] Predefine the module format requirements and module structure description documents according to XML technology to obtain the script generation guidance model;

[0033] Using the script to generate a guidance model, extracting module information of functions, methods, and classes included in the standard data set;

[0034] Set script generation attributes, and perform associated operations according to the script generation attributes and the module information to generate a script-guided use case;

[0035] Automatically run the script-guided use case to generate a corresponding script data set.

[0036] Optionally, the script-based driven code generator performs a driving operation on the script data set to obtain a corresponding script code set, including:

[0037] Pack the script-driven code written in XSLT language to obtain a script-driven code generator;

[0038] Running the script to drive the code generator to extract node attributes of the script data set;

[0039] After script driving according to the node attributes and the pre-built script code framework, the script code set is output.

[0040] Optionally, after script driving based on the node attributes and a pre-built script code framework, the script code set is output, including:

[0041] Matching the node attributes with the script code framework to obtain a corresponding set of script codes and node attributes;

[0042] The missing values ​​in the script code framework are filled in according to the corresponding set to obtain the script code set.

[0043] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which an intelligent script configuration program is stored. The intelligent script configuration program can be executed by one or more processors to implement the steps of the intelligent script configuration method as described above.

[0044] The present invention makes the original data set easier to operate by removing anomalies and standardizing the data, automatically extracting various module information in the data set using script generation guidance technology, generating a script data set through the module information, reducing the user's manual addition of related modules, and using a pre-written and configured script-driven code generator to drive the obtained script data set, thereby improving the flexibility of script configuration. Therefore, the intelligent script configuration method, device and computer-readable storage medium proposed by the present invention can realize efficient script configuration functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a flow chart of an intelligent script configuration method provided by an embodiment of the present invention;

[0046] Figure 2 A schematic diagram of the internal structure of an intelligent script configuration device provided by an embodiment of the present invention;

[0047] Figure 3 A module diagram of an intelligent script configuration program in an intelligent script configuration device provided in an embodiment of the present invention.

[0048] 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

[0049] 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.

[0050] The present invention provides an intelligent script configuration method. Figure 1 FIG. 1 is a flow chart of an intelligent script configuration method provided by an embodiment of the present invention. The method can be executed by a device, and the device can be implemented by software and / or hardware.

[0051] In this embodiment, the intelligent script configuration method includes:

[0052] S1. Receive an original data set, perform anomaly removal and data standardization on the original data set to obtain a standard data set.

[0053] Preferably, in a preferred embodiment of the present case, for the configuration of the insert data script, the original data set includes the script name (or the table name required by the script) and the fields that need to be configured.

[0054] Preferably, the purpose of the exception removal processing is to remove some abnormal data. For example, in the insert data script, the use of a text editing tool to assist in configuration may result in incorrect configuration data values ​​being filled in due to manual errors, resulting in inaccurate data, or the user may make an error in entering age and enter the age as a negative number. The exception removal processing is used to correct the age by taking the absolute value.

[0055] Preferably, the absolute value correction of the anomaly removal process is:

[0056] C a =|C|

[0057] Among them, C represents abnormal data, C a Represents the data after the exception removal process.

[0058] Sometimes the table that needs to be configured for the insert data script may contain many fields, or sometimes multiple tables need to be configured, or a table may need to configure hundreds of data items, so there are data sets with large quantity differences in the original data set, so it is necessary to perform data standardization processing on the script data. For example, the data {10000, 0.01, 3, 28} has a large difference, and such a set of data has a large amount of computation in the computer, and needs to be processed by the corresponding exception removal processing to convert it into easy-to-process data.

[0059] Preferably, the method for data standardization processing is:

[0060]

[0061] Wherein, x′ is the data after data standardization, x is the data in the original data set before data standardization, and x max is the largest data in the original data set before data standardization, x min It is the smallest data in the original data set before data standardization.

[0062] S2. Extracting module information of the standard data set according to the script generation guidance technology, and generating a script data set according to the module information.

[0063] Further, this step may include: pre-defining module format requirements and module structure description documents according to XML technology to obtain a script generation guidance model, using the script generation guidance model to extract module information of functions, methods, and classes included in the standard data set, setting script generation attributes such as the number of runs, input parameters, and expected return values, performing associated operations based on the script generation attributes and the module information to generate a script guidance use case, and automatically running the script guidance use case to generate a corresponding script data set.

[0064] The script generation guidance model is constructed based on XML technology. The XML technology is a technology that places types and structures on the upper layer of information. The script generation guidance model based on the XML technology first predefines the format requirements or structure description document (also known as XML Schema), and various module information of the standard data set can be extracted based on the XML Schema, such as functions, methods, classes, etc. Furthermore, the pre-constructed script generation guidance model provides a visualization function for the standard data set and can provide a graphical interface so that users can freely view the generated modules, input parameters, expected return values, etc.

[0065] Furthermore, the script generation attributes and the module information can be used to generate a script-oriented use case in the open source project CTags platform. The CTags platform can associate the module information with the script generation attributes, such as how many times function A needs to be run, what type of input parameter of class B is, etc., to generate the script-oriented use case. Furthermore, the script-oriented use case can be stored in the tags folder of the CTags platform, and the script data set can be generated by automatically running the tags folder of the CTags platform.

[0066] S3. Use a script-driven code generator to drive the script data set to obtain a corresponding script code set.

[0067] Preferably, the script-driven code generator is a script-driven code generator based on the XSLT language. The XSTL language is a code conversion language based on the XML language, which has the advantages of being easy to write and maintain.

[0068] In detail, step S3 includes: packaging the script-driven code written in XSLT language to obtain a script-driven code generator, running the script-driven code generator to extract the node attributes of the script data set, using the node attributes and a pre-built script code framework for script driving, and then outputting the script code set.

[0069] The node attributes of the script data set include:

[0070] @junit: whether to run in Junit mode, optional value (true|false), default "false";

[0071] @verbose: command line information printing level, which will not affect the test report output content; optional values ​​(1|2|3|4|5);

[0072] @parallel: whether to run tests in multiple threads concurrently; optional values ​​(false|methods|tests|classes|instances), default value is "false";

[0073] @thread-count: The number of thread pools when executing concurrently, the default value is "5";

[0074] @configfailurepolicy: Once the Before / After Class / Methods methods fail, whether to continue to execute the test or skip the test; optional value (skip|continue), the default is "skip";

[0075] @annotations: Get the location of the annotation. If it is "javadoc", use javadoc annotations, otherwise use jdk annotations;

[0076] @time-out: Set a timeout for a specific execution unit. For details, refer to the parallel execution unit settings. The unit is milliseconds.

[0077] @skipfailedinvocationcounts: whether to skip failed calls, optional value (true|false), default "false";

[0078] @data-provider-thread-count: the number of thread pools of data-provider during concurrent execution, the default value is "10";

[0079] @object-factory: A class that implements the IObjectFactory interface, used to instantiate test objects;

[0080] @allow-return-values: whether to allow function values ​​to be returned, optional value (true|false), default value is "false";

[0081] @preserve-order: Sequential execution switch, optional value (true|false) "true";

[0082] @group-by-instances: whether to group by instance, optional value (true|false) "false";

[0083] …

[0084] The pre-built script code framework is a pre-built framework of functions, classes, etc. For example, the above @time-out function about timeout can be:

[0085] Void time-out(int a):

[0086] {Function body}

[0087] Preferably, the script driving based on the node attributes and the pre-built script code framework includes: matching the node attributes and the script code framework to obtain a corresponding set of script codes and node attributes, and filling in the missing values ​​in the script code framework based on the corresponding set to obtain the script code set.

[0088] For example, the @time-out function about timeout has a corresponding node attribute of time value (milliseconds). Based on the pre-built script code framework, the script code can be:

[0089] Void time-out(int a):

[0090] {a=3000ms}

[0091] The script code set is obtained by combining the script code framework with the node attributes obtained by traversal.

[0092] S4. Run the script code set, and use a pre-built script converter to convert the script code set to obtain a script configuration set, thereby completing the script configuration.

[0093] The script converter can be pre-built using web server-side software or dynamic web page design technology ASP, and preferably, when the script converter has generated a script configuration set, the script converter can allow designers in the local area network to view it through a browser or submit modified content through a server, or read the script configuration set from a preset database and save it to a designated directory on the server for other designers to download and use.

[0094] Preferably, the running of the script code set includes: using a connector to connect to a document database required when the script code set is running; if the connection fails, feeding back a document database connection failure and stopping the running of the script code set; if the connection is successful, using a document reader to read the data in the document database, storing the data in a pre-set server to generate document data, running the script code set, and when the script code set needs a corresponding document, extracting the document data from the server until the script code set is finished running.

[0095] Furthermore, the connector may use a Connection object of DAO, and the document reader may use a Stream object of DAO.

[0096] The present invention also provides an intelligent script configuration device. Figure 2 , which is a schematic diagram of the internal structure of an intelligent script configuration device provided in one embodiment of the present invention.

[0097] In this embodiment, the intelligent script configuration device 1 can be a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a portable computer, or a server, etc. The intelligent script configuration device 1 at least includes a memory 11, a processor 12, a communication bus 13, and a network interface 14.

[0098] Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the intelligent script configuration device 1, such as the hard disk of the intelligent script configuration device 1. In other embodiments, the memory 11 can also be an external storage device of the intelligent script configuration device 1, such as a plug-in hard disk equipped on the intelligent script configuration device 1, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory 11 can also include both the internal storage unit of the intelligent script configuration device 1 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 intelligent script configuration device 1, such as the code of the intelligent script configuration program 01, etc., but also can be used to temporarily store data that has been output or is to be output.

[0099] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes stored in the memory 11 or process data, such as executing the intelligent script configuration program 01.

[0100] The communication bus 13 is used to realize the connection and communication between these components.

[0101] The network interface 14 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the device 1 and other electronic devices.

[0102] Optionally, the device 1 may also include a user interface, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface may also include a standard wired interface and 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) 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 intelligent script configuration device 1 and to display a visual user interface.

[0103] Figure 2 Only the intelligent script configuration device 1 having components 11-14 and the intelligent script configuration program 01 is shown. It can be understood by those skilled in the art that Figure 1 The structure shown does not constitute a limitation on the intelligent script configuration device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0104] exist Figure 2 In the embodiment of the device 1 shown, the memory 11 stores an intelligent script configuration program 01; when the processor 12 executes the intelligent script configuration program 01 stored in the memory 11, the following steps are implemented:

[0105] Step 1: Receive an original data set, perform data denormalization and data standardization on the original data set to obtain a standard data set.

[0106] Preferably, in a preferred embodiment of the present case, for the configuration of the insert data script, the original data set includes the script name (or the table name required by the script) and the fields that need to be configured.

[0107] Preferably, the purpose of the exception removal processing is to remove some abnormal data. For example, in the insert data script, the use of a text editing tool to assist in configuration may result in incorrect configuration data values ​​being filled in due to manual errors, resulting in inaccurate data, or the user may make an error in entering age and enter the age as a negative number. The exception removal processing is used to correct the age by taking the absolute value.

[0108] Preferably, the absolute value correction of the anomaly removal process is:

[0109] C a =|C|

[0110] Among them, C represents abnormal data, C a Represents the data after the exception removal process.

[0111] Sometimes the table that needs to be configured for the insert data script may contain many fields, or sometimes multiple tables need to be configured, or a table may need to configure hundreds of data items, so there are data sets with large quantity differences in the original data set, so it is necessary to perform data standardization processing on the script data. For example, the data {10000, 0.01, 3, 28} has a large difference, and such a set of data has a large amount of computation in the computer, and needs to be processed by the corresponding exception removal processing to convert it into easy-to-process data.

[0112] Preferably, the method for data standardization processing is:

[0113]

[0114] Wherein, x′ is the data after data standardization, x is the data in the original data set before data standardization, and x max is the largest data in the original data set before data standardization, x min It is the smallest data in the original data set before data standardization.

[0115] Step 2: extract module information of the standard data set according to the script generation guidance technology, and generate a script data set according to the module information.

[0116] Further, this step may include: pre-defining module format requirements and module structure description documents according to XML technology to obtain a script generation guidance model, using the script generation guidance model to extract module information of functions, methods, and classes included in the standard data set, setting script generation attributes such as the number of runs, input parameters, and expected return values, performing associated operations based on the script generation attributes and the module information to generate a script guidance use case, and automatically running the script guidance use case to generate a corresponding script data set.

[0117] The script generation guidance model is constructed based on XML technology. The XML technology is a technology that places types and structures on the upper layer of information. The script generation guidance model based on the XML technology first predefines the format requirements or structure description document (also known as XML Schema), and various module information of the standard data set can be extracted based on the XML Schema, such as functions, methods, classes, etc. Furthermore, the pre-constructed script generation guidance model provides a visualization function for the standard data set and can provide a graphical interface so that users can freely view the generated modules, input parameters, expected return values, etc.

[0118] Furthermore, the script generation attributes and the module information can be used to generate a script-guided use case in the open source project CTags platform. The CTags platform can associate the module information with the script generation attributes, such as how many times function A needs to be run, what type of input parameter of class B is, etc., to generate the script-guided use case. Furthermore, the script-guided use case can be stored in the tags folder of the CTags platform, and the script data set can be generated by automatically running the tags folder of the CTags platform.

[0119] Step three: Use a script-driven code generator to drive the script data set to obtain a corresponding script code set.

[0120] Preferably, the script-driven code generator is a script-driven code generator based on the XSLT language. The XSTL language is a code conversion language based on the XML language, which has the advantages of being easy to write and maintain.

[0121] In detail, step three includes: packaging the script-driven code written in XSLT language to obtain a script-driven code generator, running the script-driven code generator to extract the node attributes of the script data set, using the node attributes and a pre-built script code framework for script driving, and then outputting the script code set.

[0122] The node attributes of the script data set include:

[0123] @junit: whether to run in Junit mode, optional value (true|false), default "false";

[0124] @verbose: command line information printing level, which will not affect the test report output content; optional values ​​(1|2|3|4|5);

[0125] @parallel: whether to run tests in multiple threads concurrently; optional values ​​(false|methods|tests|classes|instances), default value is "false";

[0126] @thread-count: The number of thread pools when executing concurrently, the default value is "5";

[0127] @configfailurepolicy: Once the Before / After Class / Methods methods fail, whether to continue to execute the test or skip the test; optional value (skip|continue), the default is "skip";

[0128] @annotations: Get the location of the annotation. If it is "javadoc", use javadoc annotations, otherwise use jdk annotations;

[0129] @time-out: Set a timeout for a specific execution unit. For details, refer to the parallel execution unit settings. The unit is milliseconds.

[0130] @skipfailedinvocationcounts: whether to skip failed calls, optional value (true|false), default "false";

[0131] @data-provider-thread-count: the number of thread pools of data-provider during concurrent execution, the default value is "10";

[0132] @object-factory: A class that implements the IObjectFactory interface, used to instantiate test objects;

[0133] @allow-return-values: whether to allow function values ​​to be returned, optional value (true|false), default value is "false";

[0134] @preserve-order: Sequential execution switch, optional value (true|false) "true";

[0135] @group-by-instances: whether to group by instance, optional value (true|false) "false";

[0136] …

[0137] The pre-built script code framework is a pre-built framework of functions, classes, etc. For example, the above @time-out function about timeout can be:

[0138] Void time-out(int a):

[0139] {Function body}

[0140] Preferably, the script driving based on the node attributes and the pre-built script code framework includes: matching the node attributes and the script code framework to obtain a corresponding set of script codes and node attributes, and filling in the missing values ​​in the script code framework based on the corresponding set to obtain the script code set.

[0141] For example, the @time-out function about timeout has a corresponding node attribute of time value (milliseconds). Based on the pre-built script code framework, the script code can be:

[0142] Void time-out(int a):

[0143] {a=3000ms}

[0144] The script code set is obtained by combining the script code framework with the node attributes obtained by traversal.

[0145] Step 4: Run the script code set, and use a pre-built script converter to convert the script code set to obtain a script configuration set, thereby completing the script configuration.

[0146] The script converter can be pre-built using web server-side software or dynamic web page design technology ASP, and preferably, when the script converter has generated a script configuration set, the script converter can allow designers in the local area network to view it through a browser or submit modified content through a server, or read the script configuration set from a preset database and save it to a designated directory on the server for other designers to download and use.

[0147] Preferably, the running of the script code set includes: using a connector to connect to a document database required when the script code set is running; if the connection fails, feeding back a document database connection failure and stopping the running of the script code set; if the connection is successful, using a document reader to read the data in the document database, storing the data in a pre-set server to generate document data, running the script code set, and when the script code set needs a corresponding document, extracting the document data from the server until the script code set is finished running.

[0148] Furthermore, the connector may use a Connection object of DAO, and the document reader may use a Stream object of DAO.

[0149] Optionally, in other embodiments, the intelligent script configuration program can also be divided into one or more modules, one or more modules are stored in the memory 11, and are executed by one or more processors (processor 12 in this embodiment) to complete the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, and is used to describe the execution process of the intelligent script configuration program in the intelligent script configuration device.

[0150] For example, refer to Figure 3 FIG. 1 is a schematic diagram of a program module of an intelligent script configuration program in an embodiment of an intelligent script configuration device of the present invention. In this embodiment, the intelligent script configuration program can be divided into a data receiving and processing module 10, a script data generating module 20, a script code generating module 30, and a script configuration module 40. For example:

[0151] The data receiving and processing module 10 is used to receive an original data set, perform anomaly removal and data standardization on the original data set, and obtain a standard data set.

[0152] The script data generation module 20 is used to extract the module information of the standard data set according to the script generation guidance technology, and generate a script data set according to the module information.

[0153] The script code generation module 30 is used to: utilize a script driving code generator to drive the script data set to obtain a corresponding script code set.

[0154] The script configuration module 40 is used to: run the script code set, and convert the script code set using a pre-built script converter to obtain a script configuration set, thereby completing the script configuration.

[0155] The functions or operation steps implemented when the above-mentioned program modules such as the data receiving and processing module 10, the script data generating module 20, the script code generating module 30, and the script configuring module 40 are executed are substantially the same as those in the above-mentioned embodiments and will not be repeated here.

[0156] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which an intelligent script configuration program is stored. The intelligent script configuration program can be executed by one or more processors to implement the following operations:

[0157] An original data set is received, and anomaly removal and data standardization are performed on the original data set to obtain a standard data set.

[0158] The module information of the standard data set is extracted according to the script generation guidance technology, and the script data set is generated according to the module information.

[0159] The script driving code generator is used to drive the script data set to obtain a corresponding script code set.

[0160] The script code set is run, and the script code set is converted using a pre-built script converter to obtain a script configuration set, thereby completing the script configuration.

[0161] It should be noted that the serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0162] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0163] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. An intelligent script configuration method, characterized in that: The method comprises: Receiving an original data set, performing anomaly removal and data standardization on the original data set to obtain a standard data set; Extracting module information of the standard data set according to the script generation guidance technology, and generating a script data set according to the module information; Using a script driven code generator to drive the script data set to obtain a corresponding script code set; Running the script code set, and converting the script code set using a pre-built script converter to obtain a script configuration set, and completing script configuration, wherein the script converter is pre-built using web server-side software or dynamic web page design technology ASP; The step of extracting module information of the standard data set according to the script generation guidance technology and generating a script data set according to the module information includes: predefining module format requirements and module structure description documents according to XML technology to obtain a script generation guidance model; Utilizing the script generation guidance model to extract module information of functions, methods, and classes included in the standard data set; setting script generation attributes, and generating script guidance use cases by performing association operations based on the script generation attributes and the module information; and automatically running the script guidance use cases to generate corresponding script data sets; The method of using a script-driven code generator to drive the script data set to obtain a corresponding script code set includes: packaging script-driven code written in XSLT language to obtain a script-driven code generator; running the script-driven code generator to extract node attributes of the script data set; and outputting the script code set after script driving according to the node attributes and a pre-built script code framework.

2. The intelligent script configuration method according to claim 1, characterized in that: After the script is driven according to the node attributes and the pre-built script code framework, the script code set is output, including: Matching the node attributes with the script code framework to obtain a corresponding set of script codes and node attributes; The missing values ​​in the script code framework are filled in according to the corresponding set to obtain the script code set.

3. The intelligent script configuration method according to claim 1, characterized in that: The running of the script code set includes: Using a connector to connect to a document database required when the script code set is running; If the connection fails, a document database connection failure is reported and the script code set is stopped; or If the connection is successful, the document reader is used to read the data in the document database, and the data is stored in a pre-set server to generate document data; The script code set is run, and when the script code set needs a corresponding document, the document data is extracted from the server until the script code set is finished running.

4. An intelligent script configuration device, used to implement the intelligent script configuration method according to any one of claims 1 to 3, characterized in that: The device includes a memory and a processor, wherein the memory stores an intelligent script configuration program that can be run on the processor, and when the intelligent script configuration program is executed by the processor, the following steps are implemented: Receiving an original data set, performing anomaly removal and data standardization on the original data set to obtain a standard data set; Extracting module information of the standard data set according to the script generation guidance technology, and generating a script data set according to the module information; Using a script driven code generator to drive the script data set to obtain a corresponding script code set; The script code set is run, and the script code set is converted using a pre-built script converter to obtain a script configuration set, thereby completing the script configuration.

5. A computer-readable storage medium, characterized in that: An intelligent script configuration program is stored on the computer-readable storage medium, and the intelligent script configuration program can be executed by one or more processors to implement the intelligent script configuration method as described in any one of claims 1 to 3.