Business script generation method and related device thereof

Through the business script generation method, the execution order of the target components is determined based on business process information, and the target components are combined in the combination area to generate and verify scripts, solving the problems of long communication time and long development cycle caused by complex business processes in the existing technology, and achieving fast and accurate script generation.

CN119536697APending Publication Date: 2025-02-28GUANGDONG ESHORE TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411606629.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, when dealing with complex business processes, business personnel need to communicate in depth with developers, resulting in long communication time, long script development cycle, and prone to problems such as business process and function understanding deviations.

Method used

A business script generation method is provided, by determining the execution order of the target component based on business process information, combining the target components in the combination area, and determining the target variables and target parameters based on the target component, generating a first script, and verifying its operation logic. If passed, it is determined as the second script of the business process information.

Benefits of technology

This method enables business personnel to quickly produce personalized scripts, simplify script generation steps, reduce development cycles, and improve the accuracy of business scripts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536697A_ABST
    Figure CN119536697A_ABST
Patent Text Reader

Abstract

The invention relates to a business script generation method and a related device thereof, and the method comprises the steps: determining an execution sequence of target components according to business process information; according to the execution sequence, combining the at least one target component in the combination area, determining a target variable and a target parameter corresponding to the at least one target component based on the target component, and generating a first script; and verifying the operation logic of the first script, and if the verification is passed, determining the first script as a second script of the business process information. According to the scheme provided by the invention, business personnel can quickly produce personalized scripts according to business requirements, the script generation steps are simplified, the script development period is shortened, and the accuracy of the business scripts is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business script generation method and related devices. Background Art

[0002] Under the current wave of digital transformation, the demand for digitization and informatization in the enterprise market has surged, posing huge challenges to the development of existing applications.

[0003] In related technologies, business personnel generally use common scripts to implement simple business processes when handling business. However, as business upgrades, different business processes will be generated. Business personnel need to communicate and exchange ideas with developers in depth before developing complex business processes. The communication time and script development cycle are relatively long, the generation steps are relatively cumbersome, and it is easy to cause problems with business process and function understanding deviations. Summary of the invention

[0004] In order to solve or partially solve the problems existing in the related technology, the present application provides a business script generation method and related devices, which can enable business personnel to quickly produce personalized scripts according to business needs, simplify the script generation steps and reduce the script development cycle, and improve the accuracy of business scripts.

[0005] The first aspect of the present application provides a business script generation method, including determining the execution order of target components according to business process information; combining at least one of the target components in a combination area according to the execution order, and determining the target variables and target parameters corresponding to at least one of the target components based on the target components to generate a first script; verifying the running logic of the first script, and if the verification passes, determining the first script as the second script of the business process information.

[0006] In combination with the first aspect, in a possible implementation of the first aspect, determining the execution order of the target components based on the business process information includes: determining at least one of the target components in the component area based on the business process information; determining the execution order of the target components based on the function of each of the basic components and the business process information.

[0007] In combination with the first aspect, in a possible implementation of the first aspect, at least one of the target components is combined according to the execution order, and based on the target components, a target variable corresponding to at least one of the target components is determined to generate a first script, including: receiving a first selection operation from a user regarding the execution order, and combining at least one of the target components in the combination area; determining a target variable and a target parameter for each of the target components according to the business process information; and generating the first script according to the target component, the target vector, and the target parameter.

[0008] In combination with the first aspect, in a possible implementation of the first aspect, determining the target variables and target parameters of each target component based on the business process information includes: displaying the first structural attribute of each target component in the component area; receiving a second selection operation from the user, and displaying first code information of the first structural attribute of the target component in the combination area; and determining the target variables and target parameters of the target component in the first code information based on the business process information.

[0009] In combination with the first aspect, in a possible implementation of the first aspect, the target component includes at least atomic components, including: displaying the second structural attribute of each target component in the component area; parsing the atomic component according to the atomic component dependency package, and displaying the second code information of the second structural attribute of the atomic component in the combination area; determining the target variable and target parameter of the target component in the second code information according to the business process information.

[0010] In combination with the first aspect, in a possible implementation manner of the first aspect, the verifying the running logic of the first script further includes: generating an error report if the verification fails; and displaying the error report.

[0011] The second aspect of the present application provides a device for generating a business script, including a determination module, which is used to determine the execution order of target components according to business process information; a processing module, which is used to combine at least one of the target components in a combination area according to the execution order, and based on the target components, determine the target variables and target parameters corresponding to at least one of the target components to generate a first script; and a verification module, which is used to verify the running logic of the first script, and if the verification passes, determine the first script as the second script of the business process information.

[0012] In combination with the second aspect, in a possible implementation of the second aspect, the determination module is also used to determine at least one of the target components in the component area based on the business process information; and determine the execution order of the target components based on the function of each of the basic components and the business process information.

[0013] In combination with the second aspect, in a possible implementation of the second aspect, the processing module is also used to receive a first selection operation from a user regarding the execution order, and combine at least one of the target components in the combination area; determine the target variables and target parameters of each of the target components based on the business process information; and generate the first script based on the target components, the target vectors and the target parameters.

[0014] In combination with the second aspect, in a possible implementation of the second aspect, the processing module is also used to display the first structural attribute of each target component in the component area; receive the user's second selection operation, and display the first code information of the first structural attribute of the target component in the combination area; and determine the target variable and target parameter of the target component in the first code information according to the business process information.

[0015] In combination with the second aspect, in a possible implementation of the second aspect, the processing module is also used to display the second structural attributes of each target component in the component area; parse the atomic component according to the atomic component dependency package, and display the second code information of the second structural attributes of the atomic component in the combination area; determine the target variables and target parameters of the target component in the second code information according to the business process information.

[0016] In combination with the second aspect, in a possible implementation manner of the second aspect, the verification module is further used to generate an error report if the verification fails; and display the error report.

[0017] A third aspect of the present application provides an electronic device, including:

[0018] Processor; and

[0019] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0020] A fourth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0021] A fifth aspect of the present application provides a computer program product, comprising a computer program / instruction, which implements the method described above when executed by a processor.

[0022] The technical solution provided by this application may have the following beneficial effects:

[0023] The business script generation method and related devices of the present application include determining the execution order of target components according to business process information; combining at least one target component in a combination area according to the execution order, and determining the target variables and target parameters corresponding to at least one target component based on the target components to generate the first script; verifying the running logic of the first script, and if the verification passes, determining the first script as the second script of the business process information, which enables business personnel to quickly produce personalized scripts according to business needs, simplifies the script generation steps and reduces the script development cycle, and improves the accuracy of business scripts.

[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0026] Figure 1 It is a flowchart of a method for generating a business script shown in an embodiment of the present application;

[0027] Figure 2 Another flowchart of the method for generating a business script shown in the embodiment of the present application is shown in FIG.

[0028] Figure 3 is a structural diagram of a business script generating device shown in an embodiment of the present application;

[0029] Figure 4 is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application;

[0030] Figure 5 It is a schematic diagram of a combined page of target components shown in an embodiment of the present application;

[0031] Figure 6 is another schematic diagram of a combination page of a target component shown in an embodiment of the present application;

[0032] Figure 7 This is another schematic diagram of the combination page of the target component shown in the embodiment of the present application. DETAILED DESCRIPTION

[0033] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0034] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The singular forms of "a", "a", "an" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in this article refers to and includes any or all possible combinations of one or more associated listed items.

[0035] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0036] Traditional operators' business halls need manual seats or simple scripts to handle business. When handling business, business personnel generally use ordinary scripts to implement simple business processes. However, with the upgrade of business, different business processes will be generated. Business personnel need to have in-depth communication and exchanges with developers to develop complex business processes. The communication time and script development cycle are relatively long, the generation steps are relatively cumbersome, and it is easy to cause problems such as business process and function understanding deviation. In order to reduce the long development process of business scripts and the easy cause of understanding deviation, an easy-to-edit platform can be provided. On the platform, some functional components can be preset by developers to facilitate direct operation by business personnel. Business personnel can combine functional components on the platform according to business processes and their own ideas to generate scripts that meet business processes, so as to reduce development costs and time.

[0037] In response to the above problems, an embodiment of the present application provides a business script generation method, which enables business personnel to quickly produce personalized scripts according to business needs, simplifies the script generation steps and shortens the script development cycle, thereby improving the accuracy of business scripts.

[0038] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0039] Embodiment 1

[0040] Figure 1 It is a flowchart of the business script generation method shown in an embodiment of the present application.

[0041] See also Figure 1 , a business script generation method, comprising:

[0042] S110: Determine the execution order of the target components according to the business process information.

[0043] Specifically, the business process information can be a process formulated by business personnel based on actual business process needs, such as opening a web page, collecting table information on a web page, etc., which is not limited here. The target component can be a preset component with different functions. According to different business process information, the execution order of different target components can be determined.

[0044] S120: Combining at least one target component in the combination area according to the execution order, and determining a target variable and a target parameter corresponding to the at least one target component based on the target component to generate a first script.

[0045] Specifically, according to the execution order of each target component, different target components can be selected to be combined in the combination area. After the target components are combined in the combination area, an execution process corresponding to the business process information can be formed in the combination area, and the corresponding target variables and target parameters can be set for at least one target component. For example, it is necessary to set the target variables and target parameters of the first target component in the execution process and the target variables and target parameters of the last target component in the execution process; after setting the target variables and target parameters, a first script can be generated. The first script can be a file that can be used to execute business process information. The first script can be an xml script, a python script, etc.

[0046] S130: Verify the running logic of the first script. If the verification passes, determine the first script as the second script of the business process information.

[0047] Specifically, after generating the first script, the running logic of the first script can be verified to verify whether the first script can run normally in actual operation. If it can run normally, the first script can be used as the second script of the business process information. In actual use, the second script can be used to execute the specific business process of the business process information.

[0048] The business script generation method of the present application includes determining the execution order of target components according to business process information; combining at least one target component in a combination area according to the execution order, and determining the target variables and target parameters corresponding to at least one target component for the target components to generate a first script; verifying the running logic of the first script, and if the verification passes, determining the first script as the second script of the business process information, so that business personnel can quickly produce personalized scripts according to business needs, simplify the script generation steps and reduce the script development cycle, and improve the accuracy of business scripts.

[0049] Embodiment 2

[0050] Figure 2 It is another flowchart of the business script generation method shown in an embodiment of the present application.

[0051] See also Figure 2 , a business script generation method, comprising:

[0052] S210: Determine the execution order of the target components according to the business process information.

[0053] Specifically, the required target components can be obtained according to the business process information. Each target component can have different functions. Specifically, the target components can include basic components, application components and custom components. The basic components are used to perform the most basic functions, such as accessing the URL basic component, processing logic to open the browser, and accessing the specified URL. The basic component can be a component that can perform basic functions developed through hard code and can perform certain functions; the application component is composed of multiple basic components, and the application component can be used to perform certain specific and relatively complex functions; the custom component can be composed of multiple application components or basic components, and can be used to execute a relatively complete business process.

[0054] Specifically, the basic components may include: "page operation" type components, such as the "open new window" component, which can be used to open a new browser window; "logical judgment" type components, such as the "if condition" component, which can be used to implement a single condition judgment; "list loop" type components, such as the "for number loop" component, which can be used to execute a loop for a specified number of times; "data processing" type components, such as the "time processing" component, which can be used to obtain the current time; "script call" type components, such as the "js script" component, which can execute js code in the browser; "script task" type components, such as the "create task" component, which can be used to create other script tasks; "interface call" type components, such as the "http request" component, which can be used to initiate http requests and return processing results, including get and post requests.

[0055] Specifically, the application components may include: customer-related components, such as the "Query Customer" component, which is used to query related customers based on the specified query conditions; sales product components, such as the "Multiple Sales Product Unsubscription", which can unsubscribe from the preferential labels of multiple package sales products; acceptance components, such as the "Mobile Secondary Acceptance", which can perform secondary acceptance confirmation on the ordered orders.

[0056] S220: Receive a first selection operation from the user regarding the execution order, and combine at least one target component in the combination area.

[0057] Specifically, the first selection operation may be a drag and selection operation of the user. The target component may exist in the component area. The user may select a target component and move the target component to the combination area by dragging it. The first selection operation may be performed on multiple target components. The target components may be combined in the combination area.

[0058] S230: Determine target variables and target parameters of each target component according to the business process information, and generate a first script.

[0059] like Figure 5 As shown, specifically, the target variables may include input variables, output variables, global variables, process variables, etc. When setting the target component, the input variables, process variables, etc. of the target component may be set. The process variable may be a variable generated by the previous target component and output to the subsequent target component for use. During the entire combination process, the output variable of the last target component may be set. Global variables may be used to provide data communication to the target components in the entire script.

[0060] Specifically, the target parameters may be properties of the target component, which may include advanced parameters and exception parameters. For example, the advanced parameters of the "open web page" component may be advanced parameters such as the opening waiting time and the number of retries for opening failure. Generally, the default values ​​may be used. The exception parameters are parameters involved in how to handle a failure caused by an exception during the execution of the target component. For example, setting exception parameters for a target component may include terminating the process when an exception occurs, ignoring the exception and continuing to process when an exception occurs, and retrying multiple times at a specified interval when an exception occurs.

[0061] like Figure 6 As shown, in a possible implementation, the first structural attribute of each target component is displayed in the component area; the user's second selection operation is received, and the first code information of the first structural attribute of the target component is displayed in the combination area; based on the business process information, the target variable and target parameter of the target component are determined in the first code information.

[0062] Specifically, the first script can be an XML script, which can display the first structural attributes of each target component in the component area, and can form a correspondence between the target component and the XML node to form an XML tree structure attribute of component-attribute-value, which includes the target parameters, target variables, etc. of the target component; the second selection operation can be a user's click operation, and the user can select the corresponding attribute of the target component on the XML tree structure. After selecting and clicking, the corresponding first code information can be displayed in the combination area. The user can modify the corresponding data in the target parameters and target variables in the first code information. The first code information can be XML code information.

[0063] like Figure 7 As shown, in a possible implementation, the second structural attribute of each target component is displayed in the component area; the atomic component is parsed according to the atomic component dependency package, and the second code information of the second structural attribute of the atomic component is displayed in the combination area; according to the business process information, the target variable and target parameter of the target component are determined in the second code information.

[0064] Specifically, the first script may be a python script, the atomic component may be a basic component in the target component, the atomic component dependency package may be obtained to parse the atomic component to obtain component information of each component, and the second structural attribute of each target component may be displayed in the component area, and a correspondence may be formed between the target component and the python node, and the first structural attribute may be a python tree structure attribute of the target component, including target parameters, target variables, etc. of the target component; the second selection operation may be a click operation by the user, and the user may select the corresponding attribute of the target component on the python tree structure, and after selecting and clicking, the corresponding second code information may be displayed in the combination area, and the user may modify the corresponding data in the target parameters and target variables in the second code information, and the second code information may be python code information

[0065] S240: Verify the running logic of the first script. If the verification passes, determine the first script as the second script of the business process information.

[0066] Specifically, after the first script is generated, the first script can be verified; first, the first script can be parsed into a target component that can execute related functions, then the values ​​of the parameters of the first script are initialized, and the legality of the target parameters is verified, and then the first script is run and the running results are returned. If the verification passes, the first script is determined as the second script of the business process information. The second script can be used to fully execute the business process information, allowing users to implement related business processes through scripts.

[0067] Specifically, during the execution process, the target components are executed from top to bottom in the order of the target components. When a target component fails to execute, it can be processed according to the preset exception strategy. For example, when the target component fails to execute, the entire script is terminated and an exception error is returned; when the target component fails to execute, only the exception information is recorded and the execution of the next node continues; when the target component fails to execute, a specified number of retries are performed at specified intervals, etc. When a conditional judgment target component is encountered, the judgment branch information can be generated, that is, the linked list node sequence starting from all judgment branches. When the judgment is true, the execution continues in the order of the linked list, and when the judgment is false, it jumps to the next branch for judgment processing; when a list loop component is encountered, the loop information is generated, that is, the information of the start and end nodes of the loop. When the judgment is true, the execution continues in the order of the linked list, and when the execution reaches the end node of the loop, it returns to the start node of the loop for judgment. When the judgment is false, it directly jumps to the node below the end node of the loop to continue execution.

[0068] In a possible implementation, if the verification fails, an error report is generated; the error report is displayed, and the error report may record the reason why the verification failed, such as an error in a target component, a process discovery judgment error, etc.

[0069] The business script generation method of the present application includes determining the execution order of target components according to business process information; receiving a first selection operation of a user regarding the execution order, and combining at least one target component in a combination area; determining the target variables and target parameters of each target component according to the business process information, and generating a first script; verifying the running logic of the first script, and if the verification passes, determining the first script as the second script of the business process information, so that business personnel can quickly produce personalized scripts according to business needs, simplify the script generation steps and reduce the script development cycle, and improve the accuracy of business scripts.

[0070] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides a business script generation device, an electronic device and corresponding embodiments.

[0071] Figure 3 It is a schematic diagram of the structure of the business script generating device 300 shown in an embodiment of the present application.

[0072] See also Figure 3 , a business script generating device 300, comprising:

[0073] The determination module 310 is used to determine the execution order of the target components according to the business process information.

[0074] Specifically, the business process information can be a process formulated by business personnel based on actual business process needs, such as opening a web page, collecting table information on a web page, etc., which is not limited here. The target component can be a preset component with different functions. According to different business process information, the execution order of different target components can be determined.

[0075] In a possible implementation, the determination module 310 is further configured to determine at least one target component in the component area according to the business process information; and determine the execution order of the target components according to the function of each basic component and the business process information.

[0076] The processing module 320 is used to combine at least one target component in the combination area according to the execution order, and determine the target variable and target parameter corresponding to the at least one target component for the target component to generate a first script.

[0077] Specifically, at least one target component is combined in the combination area according to the execution order, and for the target component, a target variable and a target parameter corresponding to the at least one target component are determined to generate a first script.

[0078] In a possible implementation, the processing module 320 is further used to receive a first selection operation from a user regarding an execution order, combine at least one target component in a combination area; determine target variables and target parameters for each target component based on business process information; and generate a first script.

[0079] In a possible implementation, the processing module 320 is also used to display the first structural attribute of each target component in the component area; receive the user's second selection operation, and display the first code information of the first structural attribute of the target component in the combination area; and determine the target variable and target parameter of the target component in the first code information according to the business process information.

[0080] In a possible implementation, the processing module 320 is also used to display the second structural attributes of each target component in the component area; parse the atomic component according to the atomic component dependency package, and display the second code information of the second structural attributes of the atomic component in the combination area; and determine the target variables and target parameters of the target component in the second code information according to the business process information.

[0081] The verification module 330 is used to verify the running logic of the first script. If the verification passes, the first script is determined as the second script of the business process information.

[0082] Specifically, after generating the first script, the running logic of the first script can be verified to verify whether the first script can run normally in actual operation. If it can run normally, the first script can be used as the second script of the business process information. In actual use, the second script can be used to execute the specific business process of the business process information.

[0083] In a possible implementation manner, the verification module 330 is further configured to generate an error report if the verification fails; and display the error report.

[0084] The business script generation device of the present application includes determining the execution order of target components according to business process information; combining at least one target component in a combination area according to the execution order, and determining the target variables and target parameters corresponding to at least one target component for the target components to generate a first script; verifying the running logic of the first script, and if the verification passes, determining the first script as the second script of the business process information, which enables business personnel to quickly produce personalized scripts according to business needs, simplifies the script generation steps and reduces the script development cycle, and improves the accuracy of business scripts.

[0085] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.

[0086] Figure 4 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.

[0087] See also Figure 4 , the electronic device 300 includes a memory 410 and a processor 420 .

[0088] The processor 420 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0089] The memory 410 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage. Among them, ROM can store static data or instructions required by the processor 420 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 410 may include any combination of computer-readable storage media, including various types of semiconductor storage chips (such as DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 410 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0090] The memory 410 stores executable codes, and when the executable codes are processed by the processor 420 , the processor 420 can execute part or all of the methods described above.

[0091] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0092] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0093] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for generating a business script, characterized in that: include: Determine the execution order of target components based on business process information; Combining at least one of the target components in a combination region according to the execution order, and determining a target variable and a target parameter corresponding to at least one of the target components based on the target components to generate a first script; The running logic of the first script is verified, and if the verification passes, the first script is determined as the second script of the business process information.

2. The method according to claim 1, characterized in that: Determining the execution order of the target components according to the business process information includes: Determine at least one target component in a component area according to the business process information; The execution order of the target components is determined according to the function of each of the basic components and the business process information.

3. The method according to claim 2, characterized in that The step of combining at least one of the target components according to the execution order, and determining a target variable corresponding to at least one of the target components based on the target components to generate a first script includes: receiving a first selection operation of the user with respect to the execution order, and combining at least one of the target components in the combination area; Determining target variables and target parameters of each target component according to the business process information; The first script is generated according to the target component, the target vector and the target parameter.

4. The method according to claim 3, characterized in that Determining the target variable and target parameter of each target component according to the business process information includes: displaying a first structural attribute of each of the target components in the component area; receiving a second selection operation of the user, and displaying first code information of a first structural attribute of the target component in the combination area; According to the business process information, the target variable and target parameter of the target component are determined in the first code information.

5. The method according to claim 3, characterized in that: The target component includes at least an atomic component, including: displaying a second structural attribute of each of the target components in the component area; Parsing the atomic component according to the atomic component dependency package, and displaying second code information of the second structural attribute of the atomic component in the combination area; According to the business process information, the target variable and target parameter of the target component are determined in the second code information.

6. The method according to claim 1, characterized in that The verifying the operation logic of the first script further includes: If the verification fails, an error report is generated; Displays the error report.

7. A device for generating a business script, characterized in that: include: A determination module is used to determine the execution order of target components according to business process information; A processing module, configured to combine at least one of the target components in a combination area according to the execution order, and determine a target variable and a target parameter corresponding to at least one of the target components based on the target components to generate a first script; The verification module is used to verify the running logic of the first script, and if the verification passes, determine the first script as the second script of the business process information.

8. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as claimed in any one of claims 1 to 6.

Citation Information

Cited By

  • Data format conversion method and device, electronic equipment and storage medium

    CN120929520A