Data processing script generation method, electronic equipment, storage medium and program product

By analyzing the application scenario description content and generating data processing scripts, the problem of inefficient testing data construction and difficult to ensure accuracy in business tests is solved, and fast and accurate test data processing is achieved.

CN120104495APending Publication Date: 2025-06-06KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510192081.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

During the business testing process, the efficiency of constructing test data is inefficient and the accuracy is difficult to guarantee, and the development cycle is long and the technical threshold is high, making it difficult for the existing technology to effectively solve the efficiency and accuracy of the test data construction.

Method used

By analyzing the application scenario description content of the data processing script, obtaining the data processing process and associated processing logic description information, providing a processing logic configuration interface, obtaining processing logic configuration information, code-generating code blocks, and finally generating data processing scripts.

Benefits of technology

It realizes the rapid generation of test data processing scripts that meet business needs, improves the efficiency and accuracy of test data construction, and reduces the development cycle and technical threshold.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104495A_ABST
    Figure CN120104495A_ABST
Patent Text Reader

Abstract

The invention provides a data processing script generation method, electronic equipment, a readable storage medium and a computer program product. The data processing script generation method comprises the steps that application scene description content of a data processing script is analyzed, and at least one piece of data processing process description information in the application scene description content and multiple pieces of processing logic description information associated with each piece of data processing process description information are obtained; providing a processing logic configuration interface; obtaining processing logic configuration information corresponding to each piece of processing logic description information through a processing logic configuration interface; each piece of processing logic configuration information is coded, and code blocks are generated; a data processing script is generated based on the code block.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to technical fields such as data processing and business processing, and in particular to a data processing script generation method, a data processing method, an electronic device, a storage medium, and a program product. Background Art

[0002] In the process of software development and testing, business testing is one of the important links to ensure the functions and performance of business systems.

[0003] During business testing, test data is often constructed to simulate real business scenarios to verify the correctness and stability of the business system. The construction of test data not only needs to meet the complexity of business logic, but also needs to ensure the accuracy and efficiency of the data.

[0004] Currently, the construction of test data usually relies on developers writing specialized data construction tools. These tools need to be customized according to specific business needs and test scenarios, involving multiple aspects such as data model design, data generation logic implementation, and data consistency maintenance. Although this method can generate test data that meets the requirements, it has many problems, such as long development cycle, high technical threshold, and low efficiency.

[0005] How to improve the efficiency and accuracy of test data construction has become an urgent problem to be solved in the current business testing field. Summary of the invention

[0006] The present disclosure provides a data processing script generation method, an electronic device, a storage medium, and a program product.

[0007] According to one aspect of the present disclosure, a method for generating a data processing script is provided, comprising: Parsing the application scenario description content of the data processing script to obtain at least one data processing process description information in the application scenario description content and a plurality of processing logic description information associated with each data processing process description information; Provides a processing logic configuration interface; Acquire processing logic configuration information corresponding to each processing logic description information via the processing logic configuration interface; Coding each of the processing logic configuration information and generating a code block; The data processing script is generated based on the code block.

[0008] According to at least one embodiment of the data processing script generation method of the present disclosure, the plurality of processing logic description information associated with each data processing process has an arrangement order; The data processing script generation method further includes: Obtaining an arrangement order of the plurality of processing logic description information associated with each data processing process; The step of generating the data processing script based on the code block comprises: The data processing script is generated based on the code blocks and the arrangement order.

[0009] According to the data processing script generation method of at least one embodiment of the present disclosure, the step of obtaining the processing logic configuration information corresponding to each processing logic description information includes: The processing logic configuration interface provides a plurality of first configuration control areas according to the arrangement order, each first configuration control area is used to configure a processing logic, and different first configuration control areas are configured with different processing logics; Acquiring each processing logic configuration information via each first configuration control area; In response to the processing logic configuration interface receiving a save operation from the user, each processing logic configuration information acquired by each first configuration control area is used as the processing logic configuration information corresponding to each processing logic description information.

[0010] According to the data processing script generation method of at least one embodiment of the present disclosure, the obtaining of processing logic configuration information corresponding to each processing logic description information further includes: In response to the one or more first configuration control areas receiving a synchronization operation from a user, the processing logic configuration information acquired by the one or more first configuration control areas is stored as configured information of the processing logic.

[0011] According to the data processing script generation method of at least one embodiment of the present disclosure, the configured information of the processing logic is stored in the target database.

[0012] According to the data processing script generation method of at least one embodiment of the present disclosure, the step of obtaining each processing logic configuration information via each first configuration control area includes: At least one of the first configuration control areas obtains the processing logic configuration information by receiving the processing logic configuration information input by a user; and / or, At least one of the first configuration control areas acquires the configured information of the processing logic to the first configuration control area based on the received acquisition operation of the user.

[0013] According to at least one embodiment of the data processing script generation method of the present disclosure, the application scenario description content of the data processing script is parsed to obtain at least one data processing process description information in the application scenario description content and multiple processing logic description information associated with each data processing process description information, including: Structuring the application scenario description content to obtain structured application scenario description content; Feature fields are extracted from the structured application scenario description content as the data processing process description information and the processing logic description information associated with each data processing process description information.

[0014] According to the data processing script generation method of at least one embodiment of the present disclosure, the coding of each processing logic configuration information and generating a code block includes: The processing logic configuration information is converted into a code block of the target type code based on a code specification of the target type code.

[0015] According to at least one embodiment of the present disclosure, the data processing script generation method further includes: Acquire user-defined configuration information associated with the processing logic configuration information; The user-defined configuration information is coded and a code block is generated.

[0016] According to the data processing script generation method of at least one embodiment of the present disclosure, the processing logic configuration interface is configured with a control area adding control; The acquiring of user-defined configuration information associated with the processing logic configuration information includes: In response to the user's operation of adding a control to the configuration control area, the processing logic configuration interface adds a second configuration control area for obtaining user-defined configuration information; Acquiring the user-defined configuration information via the second configuration control area; In response to the processing logic configuration interface receiving a save operation from the user, the user-defined configuration information acquired by the second configuration control area is used as the user-defined configuration information associated with the processing logic configuration information.

[0017] According to the data processing script generation method of at least one embodiment of the present disclosure, the second configuration control area can be arranged before or after any one of the first configuration control areas.

[0018] According to the data processing script generation method of at least one embodiment of the present disclosure, the first configuration control area is in the form of a configuration template.

[0019] According to another aspect of the present disclosure, there is provided a data processing method, comprising: Provide a data processing interface, wherein the data processing interface is configured with a first control, a second control, and a third control, wherein the first control can select a data processing script based on a received operation, the second control can select an execution environment based on the received operation, the execution environment is configured with at least one object to be processed, and the third control can trigger data processing based on the received operation; receiving a user's operation on the first control and selecting a data processing script, and receiving a user's operation on the second control and selecting an execution environment; receiving a user's operation on the third control, and performing automated data processing on the at least one object to be processed in the selected execution environment based on the selected data processing script; The data processing script is a data processing script generated by the data processing script generation method of any embodiment of the present disclosure.

[0020] According to the data processing method of at least one embodiment of the present disclosure, the data processing interface is further configured with a fourth control, and the fourth control can determine the target object to be processed based on the received operation; The data processing method further includes: receiving a user's operation on the fourth control, and determining a target object to be processed from the at least one object to be processed; The receiving the user's operation on the third control, and performing automated data processing on the at least one object to be processed in the selected execution environment based on the selected data processing script, comprises: An operation of the user on the third control is received, and automatic data processing is performed on the target object to be processed in the selected execution environment based on the selected data processing script.

[0021] According to another aspect of the present disclosure, an electronic device is provided, comprising: a memory storing execution instructions; and a processor executing the execution instructions stored in the memory, so that the processor executes the data processing script generation method of any embodiment of the present disclosure and / or the data processing method of any embodiment of the present disclosure. .

[0022] According to another aspect of the present disclosure, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and when the execution instructions are executed by a processor, the execution instructions are used to implement the data processing script generation method of any embodiment of the present disclosure and / or the data processing method of any embodiment of the present disclosure.

[0023] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the data processing script generation method of any embodiment of the present disclosure and / or the data processing method of any embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0025] Figure 1 The overall flow chart of a method for generating a data processing script according to an embodiment of the present disclosure is shown.

[0026] Figure 2 It is a schematic diagram of writing application scenario content based on an application scenario description content template according to an embodiment of the present disclosure.

[0027] Figure 3 It is a flowchart of a method for generating a data processing script according to another embodiment of the present invention.

[0028] Figure 4 It is a flowchart of a method for obtaining processing logic configuration information according to an embodiment of the present disclosure.

[0029] Figure 5 It is a schematic diagram of a processing logic configuration interface according to an embodiment of the present disclosure.

[0030] Figure 6 It is a flowchart of a method for generating a data processing script according to another embodiment of the present invention.

[0031] Figure 7 It is a schematic diagram of a processing logic configuration interface according to an embodiment of the present disclosure.

[0032] Figure 8 It is a flowchart of a data processing method according to an embodiment of the present disclosure.

[0033] Fig. 9 It is a schematic diagram of a data processing interface according to an embodiment of the present disclosure.

[0034] Fig.10 A flowchart schematically shows a data processing method according to another embodiment of the present disclosure.

[0035] Fig.11 It is a schematic block diagram of the structure of a data processing script generating device according to an embodiment of the present invention.

[0036] Fig.12It is a schematic block diagram of the structure of an electronic device equipped with a data processing script generating device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0037] The present disclosure is further described in detail below in conjunction with the accompanying drawings and examples. It is understood that the specific examples described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.

[0038] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0039] When conducting business testing on an order management system, different business scenarios (such as statement approval, invoice approval, and other business scenarios) require different data processing scripts (also known as data processing scripts, which can also be expressed as data construction tools). If they rely on developers to write them, it will lead to problems such as long development cycles and low efficiency.

[0040] To this end, the present disclosure proposes a data processing script generation method.

[0041] The data processing script generation method disclosed in the present invention can be implemented on a computer (a desktop computer or a portable computer, etc.) or on an electronic device such as a mobile phone.

[0042] The data processing script generated by the data processing script generation method disclosed in the present invention can be used to test systems that require business testing, such as order management systems, and can also be used to perform real business processing (data processing).

[0043] Figure 1 FIG. 1 is a schematic diagram showing the overall process of a data processing script generation method M100 according to an embodiment of the present disclosure. Figure 1 The method shown includes steps S110 to S160.

[0044] Specifically, Figure 1 The data processing script generation method shown includes: S110. Parse the application scenario description content of the data processing script to obtain at least one data processing process description information in the application scenario description content and a plurality of processing logic description information associated with each data processing process description information.

[0045] The above application scenario description content can be input by the user, and can be a text description content or a flowchart content, such as "one-click approval, after the order is completed, one-click quick statement approval, one-click quick invoice approval, one-click quick payment approval", and another example is "one-click approval, when the order is completed and the payment has not been collected, one-click quick statement approval".

[0046] The above-mentioned application scenario description content may also be in the form of a flowchart with textual description content, and those skilled in the art may change or adjust the specific form of the application scenario description content, and it only needs to include textual description content, and all of them fall within the protection scope of this disclosure.

[0047] Among them, the analysis of the application scenario description content can be carried out through a text analysis method (using regular expressions or natural language processing (NLP) technology to extract key information), or by using image processing and OCR technology to extract text and structures in the flowchart for analysis. The present disclosure does not specifically limit the specific content analysis method. Those skilled in the art can change or adjust the above-mentioned analysis method under the guidance of the present disclosure, which shall fall within the protection scope of the present disclosure.

[0048] The application scenario description content may include a data processing process description information, for example, "one-click approval, when the order is completed but the payment has not been received, one-click quick statement approval". This application scenario description content includes a data processing process description information: one-click quick statement approval.

[0049] The application scenario description content (that is, the use case content) may also include multiple data processing process description information. For example, "one-click approval, after the order is completed, one-click quick statement approval, one-click quick invoice approval, and one-click quick payment approval" This application scenario description content includes three data processing process description information: one-click quick statement approval, one-click quick invoice approval, and one-click quick payment approval.

[0050] In some embodiments of the present disclosure, after parsing the application scenario description content of the data processing script and obtaining the data processing process description information in the application scenario description content, confirmation information can be provided for user confirmation. The confirmation information can be in the form of text description or in the form of table content, such as Table 1.

[0051] Table 1 In some embodiments of the present disclosure, the application scenario description content input by the user includes not only data processing process description information, but also multiple processing logic description contents associated with each data processing process description content.

[0052] In some preferred embodiments of the present disclosure, the application scenario description content of the data processing script may be parsed based on the following method: Structuring the application scenario description content to obtain structured application scenario description content; Feature fields are extracted from the structured application scenario description content as the data processing process description information and the processing logic description information associated with each data processing process description information.

[0053] Among them, the application scenario description content can be written through the application scenario description content template, or the written application scenario description content can be structured using the application scenario description content template. Both can achieve structured processing of the application scenario description content based on the application scenario description content template, and then extract the content of the feature field from the structured application scenario description content (multiple feature fields can be configured on the application scenario description content template: data construction path, data construction scenario, etc.).

[0054] Inspired by the technical solution of the present disclosure, the selection or adjustment of the parsing method of the application scenario description content by those skilled in the art (for example, using a keyword-driven method to write the application scenario description content for structured processing) all falls within the protection scope of the present disclosure.

[0055] Figure 2 It is a schematic diagram of writing application scenario content based on an application scenario description content template according to an embodiment of the present disclosure.

[0056] like Figure 2 As shown, the application scenario description described above, "One-click approval, after the order is completed, one-click quick statement approval, one-click quick invoice approval, one-click quick payment approval" includes three data processing process description information "one-click quick statement approval, one-click quick invoice approval, one-click quick payment approval", and each data processing process description information is associated with multiple processing logic description information.

[0057] For example, the data processing process description information "One-click fast statement approval" is associated with three processing logic description information: "Account reconciliation callback", "Account reconciliation approval callback", and "Approval form completion", among which "Account reconciliation batch" is the description information associated with the processing logic description information "Account reconciliation callback" (described in detail below).

[0058] After obtaining at least one piece of data processing process description information in the application scenario description content and a plurality of pieces of processing logic description information associated with each piece of data processing process description information, step S120 is executed.

[0059] S120: Provide a processing logic configuration interface.

[0060] In a preferred embodiment of the present disclosure, in response to obtaining the at least one data processing process description information in the application scenario description content and the multiple processing logic description information associated with each data processing process description information, a processing logic configuration interface is automatically provided, so that the user can configure the corresponding processing logic for each processing logic information associated with each data processing process description information through the processing logic configuration interface.

[0061] S130. Acquire processing logic configuration information corresponding to each processing logic description information via the processing logic configuration interface.

[0062] Each processing logic may be a different type of processing logic. For example, a processing logic may be a query of callback information (such as the "reconciliation callback" described above), and a processing logic may be a configuration of an interface (such as the "reconciliation approval callback" described above).

[0063] refer to Figure 2 For example, the "reconciliation batch" in the four description information "reconciliation batch, reconciliation callback, reconciliation approval callback, and approval form completion" configured by the user for the data processing process description information of "one-click fast reconciliation approval" is not a description information of an execution process (that is, it is not a processing logic description information). Therefore, in some embodiments of the present disclosure, the non-processing logic description information associated with the data processing process is associated or combined with the adjacent processing logic description information to obtain the combined description information, and the processing logic configuration information corresponding to the combined description information is obtained.

[0064] Based on the processing logic configuration information, one or more data processing processes included in the data processing script can be executed based on the processing logic configuration information.

[0065] Among them, the processing logic configuration information may include query statements (such as SQL query statements), and may also include API requests, file reading, etc., all of which fall within the protection scope of this disclosure.

[0066] After obtaining the processing logic configuration information corresponding to each processing logic description information through step S130, the data processing script of the present disclosure generates and executes step S140.

[0067] Step S140: Encode each of the processing logic configuration information and generate a code block.

[0068] In some embodiments of the present disclosure, the processing logic configuration information may be coded and a code block may be generated based on the following method: The processing logic configuration information is converted into a code block of the target type code (eg, Python code) based on a code specification of the target type code.

[0069] In light of the technical solution of the present disclosure, any selection or adjustment of the coding method made by those skilled in the art shall fall within the protection scope of the present disclosure.

[0070] After obtaining the code block of each processing logic configuration information (ie, obtaining the code block of each processing logic configuration information associated with the data processing process), step S150 is executed.

[0071] S150: Generate the data processing script based on the code block.

[0072] In this step, all code blocks associated with all data processing processes in the application scenario description content may be encapsulated to obtain a data processing script.

[0073] From the above description of steps S110 to S150, it can be seen that the data processing script generation method disclosed in the present invention obtains the data processing script by a series of processing of the application scenario description content of the data processing script, without the need for developers to develop the data processing script based on traditional methods.

[0074] Figure 3 It is a flowchart of a method for generating a data processing script according to another embodiment of the present invention.

[0075] refer to Figure 3 The data processing script generation method M300 of this embodiment includes steps S310 to S350: S310, parsing the application scenario description content of the data processing script to obtain at least one data processing process description information in the application scenario description content and multiple processing logic description information associated with each data processing process description information; S320, providing a processing logic configuration interface; S330, obtaining, via the processing logic configuration interface, processing logic configuration information corresponding to each processing logic description information, and obtaining an arrangement order of multiple processing logic configuration information associated with each data processing process; S340, coding each of the processing logic configuration information and generating a code block; S350, generating the data processing script based on the code block and the arrangement order.

[0076] Since the multiple processing logic configuration information associated with each data processing process received via the processing logic configuration interface has an arrangement order, this embodiment obtains the arrangement order of the multiple processing logic configuration information associated with each data processing process in step S330, so that in step S350, a data processing script can be generated based on the code block of each processing logic configuration information and the above-mentioned arrangement order (the arrangement order is also the arrangement order of each processing logic in each data processing process), so that the data processing script can be effectively executed.

[0077] The following is an explanation of the method for obtaining the processing logic configuration information described above in the present disclosure.

[0078] Figure 4 It is a flowchart of a method for obtaining processing logic configuration information according to an embodiment of the present disclosure.

[0079] refer to Figure 4 The method for obtaining the processing logic configuration information of this embodiment includes: S401, the processing logic configuration interface provides a plurality of first configuration control areas according to the arrangement order, each first configuration control area is used to configure a processing logic; S402, acquiring each processing logic configuration information via each first configuration control area; S403: In response to the processing logic configuration interface receiving a save operation from the user (eg, a click operation on a save control), each processing logic configuration information acquired by each first configuration control area is used as processing logic configuration information corresponding to each processing logic description information.

[0080] Different first configuration control areas are configured with different processing logics.

[0081] Figure 5 It is a schematic diagram of a processing logic configuration interface according to an embodiment of the present disclosure.

[0082] The above-mentioned multiple first configuration control areas of the present disclosure may include control areas of the same type, and may also include control areas of different types. The types of two different processing logics configured in two first configuration control areas of the same type are the same. The types of two different processing logics configured in two first configuration control areas of different types are different.

[0083] Figure 5 exemplarily shows two different types of first configuration control areas, namely, a “current DB configuration (ie, current database configuration)” control area and a “current interface configuration” control area.

[0084] Among them, the "Current DB Configuration" control area can be used to configure the "Reconciliation Callback" processing logic in the "One-click Quick Statement Approval" data processing process description information described above and its associated description information "Reconciliation Batch" configuration information.

[0085] Among them, the "Current Interface Configuration" control area can be used to configure the processing logic configuration information of "Account Reconciliation Approval Callback" in the data processing process description information of "One-click Quick Account Reconciliation Approval" described above.

[0086] In some embodiments of the present disclosure, a first configuration control area is provided for each processing logic, and the process may automatically provide a first configuration control area based on the description information of each processing logic extracted above.

[0087] like Figure 5 As shown, the processing logic description information (reconciliation callback, reconciliation approval callback, etc.) can be extracted as the "alias (or other expressions)" of the first configuration control area. In some implementations, the processing logic description information can be modified by the user.

[0088] Continue to refer Figure 5 , taking "Current DB Configuration" as an example of the first configuration control area, the user can enter the database that the "Account Reconciliation Callback" processing logic depends on in the "Data Server" input box, and can enter the reconciliation batch that the "Account Reconciliation Callback" processing logic needs to reconcile in the "Variable Name" input box ( Figure 5 In the "Variable Name" in the "Variable Name", if multiple reconciliation batches are involved, the reconciliation batches can be separated by a separator (such as ";"). In the "Query Statement" input box, enter one or more execution statements of the reconciliation callback (such as query statements, which can be SQL query statements). Different execution statements can be separated by separators.

[0089] Under the guidance of the technical solution disclosed in this disclosure, those skilled in the art can Figure 5 The selection or adjustment of the input boxes, controls, layout methods, etc. on the processing logic configuration interface shown in the figure all fall within the protection scope of the present disclosure.

[0090] In some embodiments of the present disclosure, a delete control and a save control may be configured for each first configuration control area. By operating the delete control, the corresponding first configuration control area may be deleted, and by operating the save control, the configuration of the corresponding first configuration control area may be saved.

[0091] In some preferred embodiments of the present disclosure, continue to refer to Figure 5 , the above-described obtaining of the processing logic configuration information corresponding to each processing logic description information further includes: In response to one or more first configuration control areas receiving a synchronization operation from a user (eg, a click operation to synchronize to a common configuration control), the processing logic configuration information acquired by the one or more first configuration control areas is stored as configured information of the processing logic.

[0092] The above-mentioned configured information is stored in a target database or a target data server, which may be a dedicated database or server.

[0093] The above synchronization operation can be, for example, Figure 5 Sync to Common Configuration control click action shown in .

[0094] In some embodiments of the present disclosure, the acquiring of each processing logic configuration information via each first configuration control area described above may include: At least one of the first configuration control areas obtains the processing logic configuration information by receiving the processing logic configuration information input by a user; At least one of the first configuration control areas acquires the configured information of the processing logic to the first configuration control area based on the received acquisition operation of the user.

[0095] Since the processing logic configuration information obtained via the first configuration control area can be stored as configured information of the processing logic, the user can configure the first configuration control area by obtaining the configured information through an acquisition operation (a control such as "Obtain configured information" can be configured in the first configuration control area, not shown).

[0096] Figure 6 It is a flowchart of a data processing script generation method M600 according to another embodiment of the present disclosure.

[0097] refer to Figure 6 The data processing script generation method M600 of this embodiment includes steps S610 to S660: S610, parsing the application scenario description content of the data processing script to obtain at least one data processing process description information in the application scenario description content and multiple processing logic description information associated with each data processing process description information; S620, providing a processing logic configuration interface; S630, acquiring multiple pieces of processing logic configuration information associated with each data processing process via the processing logic configuration interface, and acquiring user-defined configuration information associated with the processing logic configuration information; S640, coding each of the processing logic configuration information and generating a code block, coding the user-defined configuration information and generating a code block; S650: Generate the data processing script based on the code block.

[0098] The user-defined configuration information is the configuration information input by the user.

[0099] In this implementation, considering that the execution of a certain processing logic requires a certain amount of time, in order to enable the data processing process to be executed effectively, the present disclosure configures the processing process of "obtaining user-defined configuration information associated with the processing logic configuration information" in step S640.

[0100] Figure 7 It is a schematic diagram of a processing logic configuration interface according to an embodiment of the present disclosure.

[0101] refer to Figure 7 For example, after the processing logic of "Current Interface Configuration" is executed in the data processing process to which it belongs, it is necessary to wait for 1 second. Therefore, a "Custom Code 1" can be configured to execute the processing logic of waiting for 1 second.

[0102] The custom description information "wait 1 second" and the custom execution statement "time.sleep (1)" corresponding to "custom code 1" constitute the user-defined configuration information associated with the processing logic of the above-mentioned "current interface configuration".

[0103] In some embodiments of the present disclosure, reference Figure 7 , the processing logic configuration interface is configured with control area to add controls (for example Figure 7 ) in the "+Add custom code configuration" section.

[0104] In response to the user's operation of adding a control to the configuration control area, the processing logic configuration interface adds a second configuration control area (i.e., the "Custom Code 1" control area) for obtaining user-defined configuration information, and the user-defined configuration information described above can be obtained via the second configuration control area. In response to the processing logic configuration interface receiving the user's save operation (which can be a click operation on the "Save" control in the "Custom Code 1" control area, or a click operation on the "Save" control of the processing logic configuration interface), the user-defined configuration information obtained by the second configuration control area is used as the user-defined configuration information associated with the processing logic configuration information.

[0105] The second configuration control area described above in the present disclosure can be arranged before or after any of the first configuration control areas. In some embodiments of the present disclosure, the arrangement order of each configuration control area in the processing logic configuration interface can be adjusted by dragging the first configuration control area or the second configuration control area.

[0106] The first configuration control area and the second configuration control area of ​​the present disclosure may both be in the form of configuration templates. Under the guidance of the technical solution of the present disclosure, those skilled in the art may change or adjust the implementation forms of the first configuration control area and the second configuration control area, which all fall within the protection scope of the present disclosure.

[0107] Based on the data processing script generation methods of the above-mentioned various embodiments, the present disclosure also provides a data processing method.

[0108] Figure 8 It is a flowchart of a data processing method M800 according to an embodiment of the present disclosure.

[0109] refer to Figure 8 The data processing method M800 of this embodiment includes: S801, providing a data processing interface, wherein the data processing interface is configured with a first control, a second control, and a third control; The first control can select a data processing script based on the received operation, such as one-click quick invoice approval, the second control can select an execution environment based on the received operation, the execution environment is configured with at least one object to be processed, and the third control can trigger data processing based on the received operation; S802, receiving a user's operation on the first control, selecting a data processing script, receiving a user's operation on the second control, and selecting an execution environment; S803: Receive a user operation on the third control, and perform automated data processing on the at least one object to be processed in the selected execution environment based on the selected data processing script.

[0110] The object to be processed may be a form.

[0111] Among them, in S802, the operation sequence of the first control and the second control is not particularly limited.

[0112] The data processing script in this embodiment is preferably a data processing script generated according to the data processing script generation method of any embodiment of the present disclosure.

[0113] Fig. 9 It is a schematic diagram of a data processing interface according to an embodiment of the present disclosure.

[0114] Fig. 9 An example of a first control is shown: a scene selection control (i.e., a data processing script selection control), which may be in the form of a drop-down box. Through the first control, a generated data processing script may be selected. The generated data processing script may be stored locally or in a remote database or remote server. The present disclosure does not specifically limit this.

[0115] Fig. 9 In the example, the second control is used to select an execution environment, where the execution environment is an environment for executing data processing, such as a first execution environment and a second execution environment. By way of example, the first execution environment may store two objects to be processed, namely, form A and form B, and the second execution environment may store four objects to be processed, namely, form A, form B, form C, and form D. The above different execution environments are all exemplary and should not be construed as limitations on the execution environments of the present disclosure.

[0116] In some implementations of the present disclosure, only one execution environment may be configured as a default execution environment, so that the user does not need to select an execution environment.

[0117] Fig. 9 An example of a third control, an "Immediate Execution" control, is shown in FIG. 4 . When the control is clicked, data processing can be triggered.

[0118] Continue to refer Fig. 9 In some embodiments of the present disclosure, the data processing interface is further configured with a fourth control, and the fourth control can determine the identifier of the object to be processed (such as a form number) based on the received operation.

[0119] Fig. 9 An example of the fourth control is shown in the figure: an input control for "approval_id (or other expressions)", based on which a form number (e.g., form A) can be input. Based on the technical solution of the present disclosure, those skilled in the art can select or adjust the input format of the fourth control, etc., which all fall within the protection scope of the present disclosure.

[0120] Fig.10 A schematic flowchart of a data processing method M1000 according to another embodiment of the present disclosure is shown.

[0121] refer to Fig.10 The data processing method M1000 of this embodiment includes: S1001, providing a data processing interface, wherein the data processing interface is configured with a first control, a second control, a third control, and a fourth control; The first control can select a data processing script based on the received operation, such as one-click quick invoice approval, the second control can select an execution environment based on the received operation, the execution environment is configured with at least one object to be processed, and the third control can trigger data processing based on the received operation; S1002, receiving a user's operation on the first control, selecting a data processing script, receiving a user's operation on the second control, selecting an execution environment, receiving a user's operation on the fourth control, and determining a target object to be processed from the at least one object to be processed; S1003, receiving a user's operation on the third control, and performing automated data processing on the target object to be processed in the selected execution environment based on the selected data processing script.

[0122] Among them, in S1002, the operation sequence of the first control, the second control, and the fourth control is not particularly limited.

[0123] Based on the data processing script generating method of any of the above embodiments, the present disclosure also provides a data processing script generating device.

[0124] Fig.11 It is a schematic block diagram of the structure of a data processing script generating device according to an embodiment of the present invention.

[0125] like Fig.11 As shown, the data processing script generating device includes: The parsing module 110 parses the application scenario description content of the data processing script to obtain at least one data processing process description information in the application scenario description content and multiple processing logic description information associated with each data processing process description information; The logic processing module 120 receives each data processing process description information and multiple processing logic description information associated therewith in the application scenario description content transmitted by the parsing module 110; The configuration module 130 provides a processing logic configuration interface based on the processing logic description information associated with each data processing process description information transmitted by the logic processing module 120, and receives the processing logic configuration information associated with each data processing process via the processing logic configuration interface; The logic processing module 120 codes each of the processing logic configuration information based on the processing logic configuration information acquired by the configuration module 130 and generates a code block; The script encapsulation module 140 generates the data processing script based on the code block.

[0126] The above modules can be implemented by computer program modules.

[0127] The implementation process of the functions and effects of each module in the above-mentioned data processing script generation device is specifically described in the implementation process of the corresponding steps in the above-mentioned data processing script generation method, which will not be repeated here.

[0128] Based on the data processing method of any of the above embodiments, the present disclosure also provides a data processing device.

[0129] A data processing device according to an embodiment of the present disclosure may include: A data processing interface providing module, wherein the data processing interface providing module provides a data processing interface, wherein the data processing interface is configured with a first control, a second control, and a third control; The first control can select a data processing script based on the received operation, such as one-click quick invoice approval, the second control can select an execution environment based on the received operation, the execution environment is configured with at least one object to be processed, and the third control can trigger data processing based on the received operation; An operation receiving module, which receives an operation of the user on the first control, selects a data processing script, receives an operation of the user on the second control, and selects an execution environment; A data processing execution module, which performs automated data processing on at least one object to be processed in the selected execution environment based on the user's operation on the third control received by the operation receiving module and based on the selected data processing script.

[0130] The above modules can also be implemented through computer program modules.

[0131] The data processing script generation method and the data processing method in the specific implementation of the present disclosure may be executed by electronic devices such as mobile phones, tablet computers, and desktop computers.

[0132] Therefore, based on any of the above-mentioned embodiments, the present disclosure also provides an electronic device, which can execute the data processing script generation method and / or data processing method of any of the embodiments described above in the present disclosure, and the data processing script generation device and / or data processing device of any of the embodiments described above can be configured on the electronic device.

[0133] Fig.12 It is a schematic block diagram of the structure of an electronic device 1000 equipped with a data processing script generating device according to an embodiment of the present disclosure.

[0134] The hardware structure of the electronic device 1000 can be implemented using a bus architecture. The bus architecture can include any number of interconnected buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300 and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.

[0135] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.

[0136] The present disclosure also provides a readable storage medium, in which a computer program is stored, and the computer program is used to implement the above method when executed by a processor. "Readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use in an instruction execution system, device or equipment or in combination with these instruction execution systems, devices or equipment. More specific examples of readable storage media include the following: an electrical connection portion (electronic device) with one or more wirings, a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM), etc.

[0137] The present disclosure also provides a computer program product. The method of the present disclosure can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed, the process or function of the present disclosure is executed in whole or in part.

[0138] The computer program or instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The readable storage medium may be any available medium that can be accessed or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state drive. The computer readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0139] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0140] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0141] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0142] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0143] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment / method or example. Moreover, the specific features, structures, or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments / methods or examples described in this specification and features of different embodiments / methods or examples, unless they are contradictory.

[0144] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0145] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.

Claims

1. A method for generating a data processing script, characterized in that: include: Parsing the application scenario description content of the data processing script to obtain at least one data processing process description information in the application scenario description content and a plurality of processing logic description information associated with each data processing process description information; Provides a processing logic configuration interface; Acquire processing logic configuration information corresponding to each processing logic description information via the processing logic configuration interface; Coding each of the processing logic configuration information and generating a code block; as well as The data processing script is generated based on the code block.

2. The data processing script generation method according to claim 1, characterized in that: in, The multiple processing logic description information associated with each data processing process has an arrangement order; The data processing script generation method further includes: Obtaining an arrangement order of the plurality of processing logic description information associated with each data processing process; The step of generating the data processing script based on the code block comprises: The data processing script is generated based on the code blocks and the arrangement order.

3. The data processing script generation method according to claim 2, characterized in that: The obtaining of the processing logic configuration information corresponding to each processing logic description information includes: The processing logic configuration interface provides a plurality of first configuration control areas according to the arrangement order, each first configuration control area is used to configure a processing logic, and different first configuration control areas are configured with different processing logics; Acquiring each processing logic configuration information via each first configuration control area; and In response to the processing logic configuration interface receiving a save operation from the user, each processing logic configuration information acquired by each first configuration control area is used as the processing logic configuration information corresponding to each processing logic description information.

4. The data processing script generation method according to claim 3, characterized in that: The obtaining each processing logic configuration information via each first configuration control area includes: At least one of the first configuration control areas obtains the processing logic configuration information by receiving the processing logic configuration information input by a user; and / or At least one of the first configuration control areas acquires the configured information of the processing logic to the first configuration control area based on the received acquisition operation of the user.

5. The data processing script generation method according to claim 1, characterized in that: The parsing of the application scenario description content of the data processing script to obtain at least one data processing process description information in the application scenario description content and a plurality of processing logic description information associated with each data processing process description information includes: Structuring the application scenario description content to obtain structured application scenario description content; and Feature fields are extracted from the structured application scenario description content as the data processing process description information and the processing logic description information associated with each data processing process description information.

6. The data processing script generation method according to claim 3, characterized in that: The data processing script generation method further includes: Acquiring user-defined configuration information associated with the processing logic configuration information; and The user-defined configuration information is coded and a code block is generated.

7. The data processing script generation method according to claim 6, characterized in that: The processing logic configuration interface is configured with a control area adding control; The acquiring of user-defined configuration information associated with the processing logic configuration information includes: In response to the user's operation of adding a control to the configuration control area, the processing logic configuration interface adds a second configuration control area for obtaining user-defined configuration information; Acquiring the user-defined configuration information via the second configuration control area; and In response to the processing logic configuration interface receiving a save operation from the user, the user-defined configuration information acquired by the second configuration control area is used as the user-defined configuration information associated with the processing logic configuration information.

8. A data processing method, characterized in that: include: Provide a data processing interface, wherein the data processing interface is configured with a first control, a second control, and a third control, wherein the first control can select a data processing script based on a received operation, the second control can select an execution environment based on the received operation, the execution environment is configured with at least one object to be processed, and the third control can trigger data processing based on the received operation; receiving a user's operation on the first control and selecting a data processing script, and receiving a user's operation on the second control and selecting an execution environment; as well as receiving a user's operation on the third control, and performing automated data processing on the at least one object to be processed in the selected execution environment based on the selected data processing script; The data processing script is a data processing script generated by the data processing script generation method according to any one of claims 1 to 7.

9. An electronic device, characterized in that: include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instructions stored in the memory, so that the processor executes the data processing script generation method described in any one of claims 1 to 7 and / or the data processing method described in claim 8.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data processing script generation method described in any one of claims 1 to 7 and / or the data processing method described in claim 8 are implemented.