Software code processing method and device, equipment, storage medium and program product
By using a low-code platform to receive natural language input, the system automatically generates and updates the execution results of the software code, solving the problem of low efficiency in writing software code in existing technologies and achieving efficient data processing and business process creation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-25
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, writing software code is inefficient, especially when a large amount of data processing code for process nodes needs to be written manually in business processes, resulting in low efficiency in business process creation.
The system uses a low-code platform to receive functional requirements input in natural language, generates corresponding software code, and automatically updates the execution results through preview and editing operations, reducing the need for manual coding.
It improves the efficiency of data processing software code, simplifies the creation of business processes, lowers the technical threshold, and enhances the efficiency of users in verifying the accuracy of the code.
Smart Images

Figure CN121722401A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a software code processing method, apparatus, device, storage medium, and program product. Background Technology
[0002] In some scenarios, data processing is required. For example, in business processes, it's necessary to process data generated at process nodes or according to fixed business rules. Currently, developers can manually write software code to process this data.
[0003] However, this method is relatively inefficient because the technical barrier to writing software code is high.
[0004] Therefore, a solution is urgently needed to address the above problems. Summary of the Invention
[0005] In order to solve or at least partially solve the above-mentioned technical problems, this application provides a software code processing method, apparatus, device, storage medium, and program product.
[0006] To achieve the above objectives, the technical solution provided in this application is as follows:
[0007] In a first aspect, this application provides a software code processing method, the method comprising:
[0008] The requirement is to receive input in natural language.
[0009] In response to the preview operation of the execution result of the first software code, the execution result of the first software code is displayed;
[0010] In response to an editing operation on the first software code, the execution result is updated.
[0011] Optionally, the functional requirement indicates that the first data generated by the first process node in the business process is processed, and the display of the execution result of the first software code includes:
[0012] In response to the first process node being triggered, the execution result is displayed.
[0013] Optionally, the method further includes:
[0014] In response to the fact that the first process node has not yet been triggered, output the data type of the execution result obtained after the first software code is executed.
[0015] Optionally, the functional requirement indicates that the second data, which is a constant, is processed.
[0016] Optionally, the functional requirement for receiving natural language input includes:
[0017] Receive the functional requirements input in natural language on the configuration page corresponding to the second process node in the business process.
[0018] Optionally, the software code is used to represent the logical operation expressions that implement the functional requirements.
[0019] Optionally, the method further includes:
[0020] Output a functional description of the first software code in natural language.
[0021] Optionally, editing operations on the first software code include:
[0022] Instructions for editing the first software code can be given in natural language, or the first software code can be edited directly.
[0023] Secondly, this application provides a software code processing apparatus, the apparatus comprising:
[0024] A receiving unit is used to receive functional requirements input in natural language.
[0025] A generation unit is used to generate first software code corresponding to the functional requirements;
[0026] The first output unit is used to output the first software code;
[0027] The display unit is used to display the execution result of the first software code in response to the preview operation of the execution result of the first software code;
[0028] An update unit is configured to update the execution result in response to an editing operation on the first software code.
[0029] Optionally, the functional requirement indicates that the first data generated by the first process node in the business process is processed, and the display of the execution result of the first software code includes:
[0030] In response to the first process node being triggered, the execution result is displayed.
[0031] Optionally, the device further includes:
[0032] The second output unit is used to output the data type of the execution result obtained after the first software code is executed, in response to the first process node not being triggered.
[0033] Optionally, the functional requirement indicates that the second data, which is a constant, is processed.
[0034] Optionally, the receiving unit is used for:
[0035] Receive the functional requirements input in natural language on the configuration page corresponding to the second process node in the business process.
[0036] Optionally, the software code is used to represent the logical operation expressions that implement the functional requirements.
[0037] Optionally, the device further includes:
[0038] The third output unit is used to output a functional description of the first software code in natural language.
[0039] Optionally, editing operations on the first software code include:
[0040] Instructions for editing the first software code can be given in natural language, or the first software code can be edited directly.
[0041] Thirdly, this application provides an electronic device, characterized in that the device includes: a processor and a memory;
[0042] The memory is used to store instructions or computer programs;
[0043] The processor is configured to execute the instructions or computer program in the memory to cause the electronic device to perform the method described in the first aspect above and any one of the first aspects above.
[0044] Fourthly, this application provides a computer-readable medium storing instructions or a computer program that, when executed on a device, causes the device to perform the methods described in the first aspect above and any one of the first aspects above.
[0045] Fifthly, this application provides a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the methods described in the first aspect above and any one of the first aspects above.
[0046] Compared with related technologies, this application has at least the following advantages:
[0047] The software code processing method provided in this application can be applied, for example, to a low-code platform. The low-code platform receives functional requirements input in natural language. After receiving the functional requirements, the low-code platform generates and outputs first software code corresponding to the functional requirements. In this application, the user can trigger an execution result preview operation on the first software code, and correspondingly, the low-code platform responds to the execution result preview operation by displaying the execution result of the first software code. Additionally, the user can trigger an editing operation on the first software code, and the low-code platform can respond to the editing operation by updating the execution result. Therefore, in this application, when data processing is required, the user does not need to manually write the corresponding software code; the user only needs to input the corresponding functional requirements in natural language, and the low-code platform can automatically generate the first software code corresponding to the functional requirements. Moreover, the user can also view the execution result of the first software code through the execution result preview operation. When the user triggers an editing operation on the first software code, the low-code platform can automatically update the execution result to allow the user to verify the accuracy of the edited second software code. Using this solution, the efficiency of obtaining software code for data processing is effectively improved. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 A flowchart illustrating a software code processing method provided in an embodiment of this application;
[0050] Figure 2a A schematic diagram of a configuration page corresponding to a second process node provided in an embodiment of this application;
[0051] Figure 2b and Figure 2c Schematic diagrams of two editing interfaces provided in embodiments of this application;
[0052] Figure 3 This is a schematic diagram of the structure of a software code processing device provided in an embodiment of this application;
[0053] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0054] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0055] To facilitate understanding, the terminology that may be used in this application will be introduced first.
[0056] A business process, also known as a workflow or process template, can be understood as an execution sequence composed of a series of process nodes. The dependencies between process nodes indicate their execution order. A process node can be understood as a module used to perform a specific task, thereby achieving a specific function or providing a specific capability.
[0057] Business processes are typically used to perform business tasks. For example, business processes can be used to perform tasks such as onboarding approval, store inspection, and product demand status management.
[0058] In some scenarios, data processing methods can be configured at process nodes to facilitate the transfer of business processes from the current node to other nodes based on the data processing results, or to perform other operations based on the data processing results. Currently, developers can manually write software code (e.g., JavaScript code) to process the data. However, this approach is relatively inefficient due to the high technical barrier to entry for writing software code. Moreover, when a business process involves a large number of process nodes, requiring manual data processing code for each node will also lead to low creation efficiency for the business process.
[0059] In view of this, this application provides a software code processing method, apparatus, device, storage medium, and program product, which can improve the efficiency of obtaining software code for processing data. If the solution provided in this application is applied to a scenario of "setting the data processing method in process nodes," this solution can also effectively improve the efficiency of business process creation.
[0060] To better understand the technical solution provided in this application, the software code processing method provided in this application will be explained below with reference to some accompanying drawings.
[0061] See Figure 1 The figure is a flowchart illustrating a software code processing method provided in an embodiment of this application. Figure 1The method shown is applied to low-code platforms. Low-code platforms can also be called application platform as a service (aPaaS) platforms. APaaS platforms are cloud service platforms that simplify application deployment and management by providing scalable application infrastructure services.
[0062] Figure 1 The method shown includes the following steps S101-S104.
[0063] S101: Functional requirement for receiving input in natural language.
[0064] In this application, the functional requirement refers to the need to perform certain processing on certain data. For example, extracting the first two characters of a string. Or, determining whether a message belongs to a specific type, such as "urgent type".
[0065] In one example, the functional requirement indicates that first data generated by a first process node in a business process be processed. The first data can be intermediate data generated during the execution of the first process node, or it can be the output of the first process node; this application does not specifically limit this. The type of the first data is also not specifically limited in the embodiments of this application.
[0066] In another example, the functional requirement instructs the processing of second data, which is not data generated by a process node, but a constant. For example, the second data is a fixed business rule.
[0067] In one example, a user can input the functional requirements in natural language in the input area provided by the low-code platform. As a specific example, a user needs to define how to process data in the second process node of a business process. In this scenario, the user can input the functional requirements in natural language on the configuration page corresponding to the second process node. Correspondingly, the low-code platform can receive the functional requirements input in natural language on the configuration page.
[0068] S102: Generate and output the first software code corresponding to the functional requirements.
[0069] After receiving the functional requirements, the low-code platform can generate first software code that satisfies them. In one example, the low-code platform can perform semantic analysis on the functional requirements to obtain their semantics, and then generate the first software code based on those semantics. In a specific example, the low-code platform can interface with an artificial intelligence (AI) model (e.g., a large language model). Accordingly, after obtaining the functional requirements, the low-code platform can invoke the AI model to generate the first software code corresponding to the functional requirements. In one example, the software code represents a logical expression that implements the functional requirements; that is, the software code can include logical expressions that can achieve the aforementioned functional requirements.
[0070] After the low-code platform generates the first software code, it can output the first software code, for example, by displaying the first software code on a page, so that users can view the first software code automatically generated by the low-code platform based on functional requirements.
[0071] Considering that the initial software code generated by the low-code platform may not fully meet user needs, in one example, the initial software code displayed on the page can be edited by the user. That is, users can further edit the initial software code generated by the low-code platform to obtain software code that meets their own needs.
[0072] This application does not specifically limit the syntax used by the first software code generated by the low-code platform. The syntax used by the first software code can be any existing syntax or a syntax that may emerge in the future.
[0073] In one example, to facilitate user verification of whether the first software code meets the aforementioned functional requirements, the low-code platform can also output a functional description of the first software code in natural language. This allows users who are not very familiar with writing software code to verify whether the first software code meets the aforementioned functional requirements based on the functional description. Furthermore, users do not need to meticulously verify the first software code; instead, they can quickly and efficiently verify whether the first software code meets the aforementioned functional requirements based on the functional description.
[0074] S103: In response to the preview operation of the execution result of the first software code, display the execution result of the first software code.
[0075] In one example, in addition to displaying the first software code, the page may also display operation controls related to the first software code.
[0076] As a specific example, the aforementioned operation control includes a first control, which is used to trigger an adoption operation on the first software code. When the user triggers the operation on the first control, it indicates that the user confirms the execution of the corresponding data processing logic using the first software code. As another specific example, the operation control also includes a second control, which is used to trigger an execution result preview operation on the first software code. That is, the second control is used to trigger a preview of the execution result obtained after the first software code is executed.
[0077] In one example, a user can determine whether the first software code is accurate by previewing the aforementioned execution result, so that if the execution result is inaccurate, the user can adjust the input functional requirements, or, by instructing the editing of the first software code in natural language, or by directly (i.e. manually) editing the first software code, to adjust the first software code to obtain software code (e.g., the second software code) that meets the user's data processing needs.
[0078] In one example, a user can trigger an operation on the second control even before the first software code has been adopted. Correspondingly, the low-code platform can execute the first software code and output the corresponding execution result in response to the operation triggered on the second control, even before the first software code has been adopted.
[0079] As described above, in one example, the functional requirement may instruct the processing of second data as a constant. In this scenario, the low-code platform can obtain the second data and execute first software code on the second data to obtain an execution result.
[0080] As described above, in another example, the functional requirement could instruct the processing of the first data generated by the first process node in a business process. In this scenario:
[0081] If the first process node has been triggered, the low-code platform can obtain the aforementioned first data. In this scenario, the low-code platform can respond to the first process node being triggered by obtaining the first data and executing the first software code on the first data to obtain the execution result.
[0082] If the first process node has not yet been triggered, the low-code platform cannot obtain the aforementioned first data. In this scenario, in response to the fact that the first process node has not been triggered, the low-code platform can output the data type of the execution result obtained after the first software code is executed, based on the processing logic of the first software code, so that the user can judge the accuracy of the first software code based on the type. The data type of the execution result mentioned here includes, but is not limited to: character type, string type, boolean type, number type, or null value, etc., which will not be listed here.
[0083] S104: In response to the editing operation on the first software code, update the execution result.
[0084] In one example, if the user determines that the execution result in S103 does not meet the requirements, the user can further trigger an editing operation on the first software code to modify it. For example, the user can instruct the editing of the first software code in natural language as mentioned above, or directly (i.e., manually) edit the first software code. In this scenario, the low-code platform can automatically update the execution result in response to the editing operation on the first software code, that is, update the execution result in S103 to the execution result of the second software code. Here, the second software code refers to the software code obtained by triggering the editing operation on the first software code. In this way, the user can quickly and efficiently determine whether the second software code meets the requirements through the updated execution result.
[0085] As described above, in this application, when data processing is required, users do not need to manually write corresponding software code. Users only need to input the corresponding functional requirements in natural language, and the low-code platform can automatically generate the first software code corresponding to those requirements. Furthermore, users can preview the execution results of the first software code. When a user edits the first software code, the low-code platform can automatically update the execution results, allowing the user to verify the accuracy of the edited second software code. This solution effectively improves the efficiency of obtaining the code for data processing software.
[0086] The software code processing method provided in this application has been described above. Next, a possible implementation of this application will be introduced in a specific scenario.
[0087] See Figure 2a The figure is a schematic diagram of a configuration page corresponding to a second process node provided in an embodiment of this application.
[0088] like Figure 2aAs shown, the configuration page 200 of the second process node includes the configuration information corresponding to the second process node. Among them:
[0089] For example, area 210 displays other configuration information related to the second process node (in... Figure 2a (represented by XXX), the specific parameters are not specifically limited in this application.
[0090] Zone 220 is used to configure specific processing methods for certain data. In one example, zone 220 is used to configure the determination of whether a received message is an urgent message. Figure 2a In this context, a specific method of processing a particular piece of data is called a "formula." In other words, region 220 is used to configure formulas.
[0091] Additionally, configuration page 200 includes area 230, which contains other operations triggered based on the execution result of the formula corresponding to 220. In one example, the operation involved in area 230 is "sending an instant messaging message".
[0092] In this application, the user can trigger an editing operation on the area 220, and correspondingly, the low-code platform can display as follows: Figure 2b The editing interface shown. Figure 2b The editing interface shown includes two areas, 221 and 222. In area 221, users can manually edit software code. Area 222 is used for automatically generating software code; users can input functional requirements in natural language within area 222. Figure 2b (Using "###" to represent user-inputted functional requirements), after receiving the functional requirements, the low-code platform can generate and display the first software code. Correspondingly, the content displayed by the low-code platform is determined by... Figure 2b The editing interface shown has been updated to Figure 2c The interface shown. In Figure 2c In this context, the expression "****" represents the first piece of software code automatically generated by the low-code platform. Additionally, Figure 2c The interface also displays a first control 240 and a second control 250. In one example, the user has not edited the first software code. In this scenario, the user can trigger an operation on the second control 250 without triggering an operation on the first control 240, thereby previewing the execution result of the first software code. Furthermore, after previewing the execution result of the first software code, the user can trigger an editing operation on the first software code. Accordingly, the low-code platform can automatically update the execution result of the first software code to the updated result of the second software code.
[0093] It should be noted that, Figures 2a to 2cThis illustration is provided for the purpose of understanding the content related to this solution and does not constitute a limitation on the embodiments of this application. For example, the form of the first control and the second control is not limited to... Figure 2c As shown, the content displayed in area 222 is not limited to... Figure 2c As shown, for example, area 222 may also display an explanation of the first software code, as well as an input area for users to further input functional requirements, etc., which will not be described in detail here.
[0094] Based on the software code processing method provided in the embodiments of this application, the embodiments of this application also provide a software code processing device, which is described below in conjunction with... Figure 3 Explanation and clarification will be provided. Among them, Figure 3 This is a schematic diagram of a software code processing apparatus provided in an embodiment of this application. It should be noted that for technical details of the software code processing apparatus provided in this application embodiment, please refer to the relevant content of the software code processing method described above.
[0095] like Figure 3 As shown, the software code processing device 300 provided in this application embodiment includes: a receiving unit 301, a generating unit 302, a first output unit 303, a display unit 304, and an updating unit 305.
[0096] The receiving unit 301 is used to receive functional requirements input in natural language.
[0097] The generation unit 302 is used to generate first software code corresponding to the functional requirements.
[0098] The first output unit 303 is used to output the first software code.
[0099] The display unit 304 is used to display the execution result of the first software code in response to the preview operation of the execution result of the first software code.
[0100] The update unit 305 is used to update the execution result in response to an editing operation on the first software code.
[0101] Optionally, the functional requirement indicates that the first data generated by the first process node in the business process is processed, and the display of the execution result of the first software code includes:
[0102] In response to the first process node being triggered, the execution result is displayed.
[0103] Optionally, the device further includes:
[0104] The second output unit is used to output the data type of the execution result obtained after the first software code is executed, in response to the first process node not being triggered.
[0105] Optionally, the functional requirement indicates that the second data, which is a constant, is processed.
[0106] Optionally, the receiving unit 301 is used for:
[0107] Receive the functional requirements input in natural language on the configuration page corresponding to the second process node in the business process.
[0108] Optionally, the software code is used to represent the logical operation expressions that implement the functional requirements.
[0109] Optionally, the device further includes:
[0110] The third output unit is used to output a functional description of the first software code in natural language.
[0111] Optionally, editing operations on the first software code include:
[0112] Instructions for editing the first software code can be given in natural language, or the first software code can be edited directly.
[0113] Based on the aforementioned software code processing device 300, it is clear that in this application, when data processing is required, the user does not need to manually write the corresponding software code. The user only needs to input the corresponding functional requirements in natural language, and the low-code platform can automatically generate the first software code corresponding to the functional requirements. Furthermore, the user can trigger an execution result preview operation on the first software code, and the low-code platform responds to the execution result preview operation by displaying the execution result of the first software code. Additionally, the user can trigger an editing operation on the first software code, and the low-code platform can respond to the editing operation by updating the execution result. Therefore, in this application, the user can view the execution result of the first software code through the execution result preview operation. When the user triggers an editing operation on the first software code, the low-code platform can automatically update the execution result to allow the user to verify the accuracy of the edited second software code. This solution effectively improves the efficiency of obtaining software code for data processing.
[0114] In addition, this application embodiment also provides an electronic device, the device including a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the electronic device performs any implementation of the software code processing method provided in this application embodiment.
[0115] See Figure 4 This diagram illustrates a structural schematic of an electronic device 400 suitable for implementing embodiments of the present disclosure. The terminal devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0116] like Figure 4 As shown, electronic device 400 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 401, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 402 or a program loaded from storage device 408 into random access memory (RAM) 403. RAM 403 also stores various programs and data required for the operation of electronic device 400. The processing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.
[0117] Typically, the following devices can be connected to I / O interface 405: input devices 406 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 407 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 408 including, for example, magnetic tapes, hard disks, etc.; and communication devices 409. Communication device 409 allows electronic device 400 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 4 An electronic device 400 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0118] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 409, or installed from a storage device 408, or installed from a ROM 402. When the computer program is executed by the processing device 401, it performs the functions defined in the methods of embodiments of this disclosure.
[0119] The electronic device provided in this embodiment belongs to the same inventive concept as the method provided in the above embodiments. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.
[0120] This application also provides a computer-readable medium storing instructions or computer programs that, when executed on a device, cause the device to perform any implementation of the software code processing method provided in this application.
[0121] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0122] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.
[0123] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0124] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, enable the electronic device to perform the aforementioned methods.
[0125] Computer program code for performing the operations of this disclosure can be written in one or more programming languages or a combination thereof, including but not limited to object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0126] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0127] The units described in the embodiments of this disclosure can be implemented in software or hardware. The names of the units / modules do not necessarily limit the specific unit itself.
[0128] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.
[0129] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0130] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems or apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple, and relevant parts can be referred to the method section.
[0131] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0132] It should also be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0133] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented directly by hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.
[0134] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A software code processing method, characterized in that, The method includes: The requirement is to receive input in natural language. Generate and output the first software code corresponding to the stated functional requirements; In response to the preview operation of the execution result of the first software code, the execution result of the first software code is displayed; In response to an editing operation on the first software code, the execution result is updated.
2. The method according to claim 1, characterized in that, The functional requirement indicates that the first data generated by the first process node in the business process is processed, and the display of the execution result of the first software code includes: In response to the first process node being triggered, the execution result is displayed.
3. The method according to claim 2, characterized in that, The method further includes: In response to the fact that the first process node has not yet been triggered, output the data type of the execution result obtained after the first software code is executed.
4. The method according to claim 1, characterized in that, The functional requirement indicates that the second data, which is a constant, should be processed.
5. The method according to any one of claims 1-4, characterized in that, The functional requirement for receiving natural language input includes: Receive the functional requirements input in natural language on the configuration page corresponding to the second process node in the business process.
6. The method according to any one of claims 1-4, characterized in that, The software code is used to represent the logical operation expressions that implement the functional requirements.
7. The method according to any one of claims 1-4, characterized in that, The method further includes: Output a functional description of the first software code in natural language.
8. The method according to any one of claims 1-4, characterized in that, Editing operations on the first software code include: Instructions for editing the first software code can be given in natural language, or the first software code can be edited directly.
9. A software code processing device, characterized in that, The device includes: A receiving unit is used to receive functional requirements input in natural language. A generation unit is used to generate first software code corresponding to the functional requirements; The first output unit is used to output the first software code; The display unit is used to display the execution result of the first software code in response to the preview operation of the execution result of the first software code; An update unit is configured to update the execution result in response to an editing operation on the first software code.
10. An electronic device, characterized in that, The electronic device includes: a processor and a memory; The memory is used to store instructions or computer programs; The processor is configured to execute the instructions or computer program in the memory to cause the electronic device to perform the method according to any one of claims 1-8.
11. A computer-readable medium, characterized in that, The computer-readable medium stores instructions or computer programs that, when executed on the device, cause the device to perform the method according to any one of claims 1-8.
12. A computer program product, characterized in that, It includes a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method of any one of claims 1-8.