Code management method and device, computer equipment, readable storage medium and program product

By identifying workflow node field identifiers to generate line codes and performing format conversion, the problem of inconvenient code management in existing technologies is solved, achieving clear management of code text and conflict detection, and improving the convenience and accuracy of code modification.

CN121879833APending Publication Date: 2026-04-17SHANGHAI PUDONG DEVELOPMENT BANK
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI PUDONG DEVELOPMENT BANK
Filing Date
2025-12-31
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

In the existing technology, long computer code is not easy to modify and manage, especially when there are conflicts, it is difficult to determine the code that needs to be modified, and the compact code format makes management inconvenient.

Method used

By identifying workflow node field identifiers, reading code data between adjacent fields, generating line code, and adding line breaks in the code management system, the system achieves code text format conversion and conflict detection, generates prompt messages to identify conflicting content, and supports modification and rollback.

Benefits of technology

It improves the convenience of code management, simplifies the code modification process, ensures the clarity of code text formatting and the accuracy of conflict detection, and supports code management in multi-user collaboration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121879833A_ABST
    Figure CN121879833A_ABST
Patent Text Reader

Abstract

The invention relates to a code management method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the steps of obtaining a to-be-processed code text, and identifying a workflow node field identifier in the to-be-processed code text; reading code data between two adjacent workflow node field identifiers to obtain a row code; and generating a modified code text according to the line code. By adopting the method, the convenience of code management can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a code management method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology

[0002] With the development of computer technology, it is increasingly being applied to enterprise management. For example, various management systems are formed using computer code based on workflow configuration information. In related technologies, the workflow configuration information involves many work nodes, resulting in relatively long computer code for the management system.

[0003] In related technologies, when modifications are required, long computer code makes it difficult to determine the code that needs to be modified, hinders code management, and may also result in overly compact code that is difficult to manage. Summary of the Invention

[0004] Therefore, it is necessary to provide a code management method, device, computer equipment, computer-readable storage medium, and computer program product that can improve the convenience of code management in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a code management method, including:

[0006] Obtain the code text to be processed and identify the workflow node field identifier in the code text to be processed;

[0007] Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0008] Based on the stated line of code, generate the modified code text.

[0009] In one embodiment, reading the code data between two adjacent workflow node field identifiers to obtain line code includes: determining the last code field in the code data and adding a newline character after the code field to generate the line code.

[0010] In one embodiment, after generating the modified code text based on the line code, the code management method includes: reading the modified code text and deleting the newline characters in the modified code text to obtain the line code text; and adding the line code text to the code modification area.

[0011] In an optional embodiment, after adding the line code text to the code modification area, the code management method includes: obtaining multiple modification contents corresponding to the code modification area; comparing each modification content; if there is a conflict among the multiple modification contents, identifying the conflicting modification contents and generating a prompt message; obtaining the target terminal corresponding to the conflicting modification contents, and sending the prompt message to the target terminal.

[0012] In an exemplary embodiment, if the multiple modifications conflict, the conflicting modifications are identified and a prompt message is generated, including: when each modification conflicts, obtaining the line marker corresponding to the modification at the time of the conflict; generating the prompt message based on the line marker, wherein the prompt message is used to instruct the target terminal to identify the conflicting code file based on the line marker.

[0013] In an optional embodiment, the code management method further includes: receiving a modification rollback instruction, obtaining a modification content identifier from the modification rollback instruction; locating the modified code text according to the modification content identifier, and deleting the modification content in the modified code text.

[0014] Secondly, this application also provides a code management device, comprising:

[0015] The acquisition module is used to acquire the code text to be processed and identify the workflow node field identifier in the code text to be processed;

[0016] The line code generation module is used to read the code data between the field identifiers of two adjacent workflow nodes to obtain line code;

[0017] The code text generation module is used to generate modified code text based on the line of code.

[0018] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0019] Obtain the code text to be processed and identify the workflow node field identifier in the code text to be processed;

[0020] Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0021] Based on the stated line of code, generate the modified code text.

[0022] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0023] Obtain the code text to be processed and identify the workflow node field identifier in the code text to be processed;

[0024] Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0025] Based on the stated line of code, generate the modified code text.

[0026] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0027] Obtain the code text to be processed and identify the workflow node field identifier in the code text to be processed;

[0028] Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0029] Based on the stated line of code, generate the modified code text.

[0030] The code management method, apparatus, computer equipment, computer-readable storage medium, and computer program product described above, wherein the code management method utilizes workflow node field identifiers to process the code text to be processed, converting the code text to be processed into line code, thereby improving the convenience of code management. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0032] Figure 1 This is a flowchart illustrating a code management method in one embodiment;

[0033] Figure 2 This is a flowchart illustrating the code management method in another embodiment;

[0034] Figure 3 This is a structural block diagram of a code management device in one embodiment;

[0035] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0036] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0037] In one exemplary embodiment, such as Figure 1 As shown, a code management method is provided. This embodiment illustrates the method's application to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0038] Step 102: Obtain the code text to be processed and identify the workflow node field identifiers in the code text to be processed.

[0039] The code to be processed can be used to implement the execution of the workflow configuration on the computer device.

[0040] In an optional embodiment, the code text to be processed can be code text generated based on workflow configuration information. For example, code generated based on an account management configuration process, and system account management implemented based on that code, such as credit card account management.

[0041] In one embodiment, the code to be processed can be exported from a big data workflow scheduling platform.

[0042] Optionally, the terminal can communicate with a big data workflow scheduling platform and obtain the code to be processed from the big data workflow scheduling platform.

[0043] In one embodiment, the code text to be processed can be JSON formatted text.

[0044] In one embodiment, the code text to be processed can be a single line of code text. Here, a single line of code text indicates that all the code is on the same line.

[0045] The workflow node field identifier is used to identify workflow nodes in the code text. For example, the workflow node field identifier can be "id:", "node:", "{", "}", etc.

[0046] In an optional embodiment, workflow node fields can be stored in advance. After obtaining the code text to be processed, the code fields included in the code text to be processed are matched with the pre-stored workflow node fields. If the code fields included in the code text to be processed match the pre-stored workflow node fields, the code fields included in the code text to be processed at the time of matching can be recorded as target fields. The code text to be processed can be processed according to the target fields, for example, splitting a line of code text into lines of code.

[0047] Among them, line codes are used to indicate that each line of code is an independent code statement or code instruction.

[0048] Step 104: Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code.

[0049] In one embodiment, after obtaining the code data, a newline character can be added after the last code field of the code data to generate line code. Alternatively, it can be understood as adding a newline character before the second workflow node field of two workflow node fields to generate line code.

[0050] In an optional embodiment, after obtaining the code text to be processed, the first code field in the code text to be processed is read, which is the first workflow node field identifier, and the code fields in the code text to be processed are read sequentially. When the read code field is the workflow node field identifier, it is the second code field. The code field between the first code field and the second code field is extracted to obtain code data, and the extracted code field between the first code field and the second code field is used as line code.

[0051] In one embodiment, after extracting the code field between the first code field and the second code field, a newline character can be added before the extracted second code field to generate line code.

[0052] In an exemplary embodiment, the line of code obtained by extracting the code field between the first code field and the second code field can be denoted as the first line of code.

[0053] In one embodiment, code fields in the code text to be processed can be read sequentially starting from the second code field. When the read code field is a workflow node field identifier, it is the third code field. The code fields between the second and third code fields are extracted to obtain code data, and the extracted code fields between the second and third code fields are used as line code.

[0054] In one embodiment, after extracting the code field between the second code field and the third code field, a newline character can be added before the extracted third code field to generate line code.

[0055] In an exemplary embodiment, the line of code obtained by extracting the code field between the second code field and the third code field can be denoted as the second line of code.

[0056] In one embodiment, if there are no other code fields after the third code field, the modified code text is generated based on the first and second lines of code.

[0057] In one embodiment, if there are other code fields after the third code field, the steps of obtaining the workflow node field identifier and generating line code based on the obtained workflow node field identifier are continued. For the specific implementation process, please refer to the generation steps of the first or second line code, which will not be repeated here.

[0058] Step 106: Generate the modified code text based on the line code.

[0059] The modified code text is used to represent the code text obtained after the code text to be processed has been formatted and converted.

[0060] Optionally, after converting the code in the code text to be processed into line code, a modified code text is generated based on all the converted line code.

[0061] In one embodiment, the code management system can further process the modified code text, for example, by generating workflow node field identifiers based on the new workflow, or by adding new code fields based on the new workflow.

[0062] The code management system is used to manage code text, such as modifying code text. Optionally, the code management system can be a Git system (distributed version control system).

[0063] Optionally, the code management system can be set up on a terminal, allowing users to manage code by operating the code management system through the terminal.

[0064] In one alternative embodiment, the code management system includes a code modification area provided to users so that they can modify the code in the code modification area.

[0065] In one embodiment, when modifying the modified code text using a code management system, the newline characters in the modified code text can be removed before it is read into the code modification area. For example, the modified code text is read, and the newline characters are removed to obtain line code text; this line code text is then added to the code modification area.

[0066] Understandably, multiple users may modify the code text. Therefore, conflict detection can be performed on these modifications to determine their validity. Alternatively, multiple modifications may exist on the same code text; in this case, conflict detection can also be performed on these modifications to determine their validity.

[0067] In one exemplary embodiment, multiple modified contents corresponding to the code modification area are obtained; each modified content is compared; if multiple modified contents conflict, the conflicting modified contents are marked and a prompt message is generated; the target terminal corresponding to the conflicting modified contents is obtained, and the prompt message is sent to the target terminal.

[0068] The prompt message is used to alert the target terminal to identify conflicting code files.

[0069] Optionally, the modifications may include, but are not limited to, changes to the code text, or the addition of new code.

[0070] In one embodiment, the modified content can be merged with the code text read from the code modification area to update the modified code text.

[0071] For example, if it is a modification to code text, the modified content can be merged with the code text. For example, the line marker of the modified content is determined, the line code of the code text read into the code modification area is determined according to the line marker, and the line code is replaced with the modified content to update the modified code text.

[0072] For example, if it is new code, the line marker of the new code can be determined. Optionally, the line marker when adding new code may include the line marker of the line code that adds the new code to the code text read into the code modification area. The new code and the line code read into the code modification area are merged according to the line marker.

[0073] In an optional embodiment, during conflict detection, the code management system can be configured as a pre-production environment, and the modified code text using the modified content can be run in the pre-production environment to determine whether there are conflicts during the run. If there are conflicts, it indicates that there are conflicts among the multiple modified contents; otherwise, it indicates that there are no conflicts.

[0074] Alternatively, multiple modifications can be merged separately with the code text modified using those modifications, and then run in a pre-production environment to determine whether there are any conflicts between the individual modifications and the merged code text.

[0075] Alternatively, multiple modifications can be combined in pairs, and the resulting combinations can be merged with the modified code text before running in a pre-production environment to determine if any conflicts exist.

[0076] In one embodiment, when a conflict is determined, the conflicting modifications are identified, and the target terminal corresponding to the modifications is determined based on the modifications. The target terminal is then notified of the conflict. For example, when a conflict occurs, a notification message can be generated and used to alert the target terminal.

[0077] In an optional embodiment, when there is a conflict between the modified content, the line marker corresponding to the modified content at the time of the conflict can be obtained; a prompt message can be generated based on the line marker, and the prompt message is used to instruct the target terminal to identify the conflicting code file based on the line marker.

[0078] In one embodiment, a code modification rollback can also be implemented. For example, a modification rollback instruction is received, and a modification identifier is obtained from the instruction; the modified code text is located based on the modification identifier, and the modified content is deleted from the modified code text.

[0079] The "Modify and Revert" command is used to indicate the reversion of modified content.

[0080] The modified content identifier is used to identify the modified content. Optionally, the modified content identifier can be the terminal identifier of the terminal that generated the modified content, or other identifiers, without limitation, as long as they can uniquely identify the modified content.

[0081] Optionally, when a modification rollback instruction is received, the instruction can be parsed to obtain the modification content identifier, so as to determine which modification content was specifically rolled back.

[0082] In one embodiment, after determining the modified content identifier, the corresponding modified content is obtained based on the modified content identifier, and the modified content is deleted from the code text.

[0083] For example, if the modified content is determined to be a modification to the implementation code based on the modified content identifier, then the code data before the modification is obtained, and the modified content is replaced with the obtained code data before the modification to achieve modification rollback.

[0084] In one embodiment, after processing the modified code text by modifying the code, adding code, and / or reverting modifications, the code text is obtained and can be stored.

[0085] Optionally, the code text to be processed and the code text obtained after each modification can be stored in different versions and corresponding settings can be configured so that when a modification is rolled back, the version to be rolled back can be specified.

[0086] In the above code management method, the workflow node field identifier is used to process the code text to be processed, converting the code text to be processed into line code, thereby improving the convenience of code management.

[0087] In one exemplary embodiment, such as Figure 2 As shown, a code management method is provided. This embodiment illustrates the method's application to a terminal. It is understood that this method can also be applied to a server, and further to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0088] Step 202: Obtain the code text to be processed and identify the workflow node field identifiers in the code text to be processed.

[0089] Step 204: Determine the last code field in the code data and add a newline character after the code field to generate line code.

[0090] Step 206: Generate the modified code text based on the line code.

[0091] Step 208: Read the modified code text and remove the newline characters in the modified code text to obtain the line code text.

[0092] Step 210: Add the line code text to the code editing area.

[0093] Step 212: Obtain the multiple modifications corresponding to the code modification area.

[0094] Step 214: Compare and contrast all the modifications.

[0095] Step 216: Determine if there is a conflict between multiple modifications. If yes, proceed to step 218; otherwise, proceed to step 224.

[0096] Step 218: Obtain the line marker corresponding to the modified content when the conflict occurred.

[0097] Step 220: Generate prompt information based on line markers.

[0098] The prompt message is used to instruct the target terminal to identify conflicting code files based on line markers.

[0099] Step 222: Obtain the target terminal corresponding to the conflicting target modification content, and send the prompt information to the target terminal corresponding to the conflicting target modification content.

[0100] Step 224: Merge the multiple modifications with the line code text and upload them to the storage space.

[0101] In the above code management method, the workflow node field identifier is used to process the code text to be processed, converting the code text to be processed into line code, thereby improving the convenience of code management.

[0102] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0103] Based on the same inventive concept, this application also provides a code management device for implementing the code management method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more code management device embodiments provided below can be found in the limitations of the code management method described above, and will not be repeated here.

[0104] In one exemplary embodiment, such as Figure 3 As shown, a code management device 300 is provided, including: an acquisition module 302, a line code generation module 304, and a code text generation module 306, wherein:

[0105] The acquisition module 302 is used to acquire the code text to be processed and identify the workflow node field identifier in the code text to be processed;

[0106] The line code generation module 304 is used to read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0107] The code text generation module 306 is used to generate modified code text based on line codes.

[0108] In one embodiment, the line code generation module is used to determine the last code field in the code data and add a newline character after the code field to generate line code.

[0109] In an optional embodiment, the code management device further includes a code text adding module, which is used to read the modified code text after generating the modified code text based on the line code, and delete the newline characters in the modified code text to obtain the line code text; and add the line code text to the code modification area.

[0110] In an optional embodiment, the code management device further includes a modification module, configured to: after adding line code text to the code modification area, obtain multiple modification contents corresponding to the code modification area; compare each modification contents; if multiple modification contents conflict, mark the conflicting modification contents and generate a prompt message; obtain the target terminal corresponding to the conflicting modification contents and send the prompt message to the target terminal.

[0111] In one embodiment, the modification module is further configured to, when there is a conflict between the target modification contents, obtain the line marker corresponding to the modification contents at the time of the conflict; generate prompt information based on the line marker so that the target terminal can identify the conflicting code file based on the line marker.

[0112] In one embodiment, the code management device further includes a rollback module, configured to receive a modification rollback instruction, obtain a modification content identifier from the modification rollback instruction, locate the modified code text based on the modification content identifier, and delete the modification content in the modified code text.

[0113] Each module in the aforementioned code management device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0114] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a code management method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0115] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0116] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0117] Obtain the code text to be processed and identify the workflow node field identifiers in the code text to be processed;

[0118] Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0119] Generate the modified code text based on the line code.

[0120] In one embodiment, when the processor executes a computer program, it also performs the following steps: determining the last code field in the code data and adding a newline character after the code field to generate line code.

[0121] In one embodiment, when the processor executes the computer program, it further performs the following steps: after generating modified code text based on line code, reading the modified code text and deleting newline characters from the modified code text to obtain line code text.

[0122] In an optional embodiment, when the processor executes the computer program, it further performs the following steps: obtaining multiple modified contents corresponding to the code modification area; comparing each modified content; if multiple modified contents conflict, identifying the conflicting modified contents and generating a prompt message; obtaining the target terminal corresponding to the conflicting modified contents and sending the prompt message to the target terminal.

[0123] In an exemplary embodiment, when the processor executes the computer program, it further performs the following steps: when there is a conflict between the modifications, it obtains the line marker corresponding to the modification at the time of the conflict; and generates a prompt message based on the line marker, the prompt message being used to instruct the target terminal to identify the conflicting code file based on the line marker.

[0124] In one embodiment, when the processor executes the computer program, it further performs the following steps: receiving a modification rollback instruction, obtaining a modification content identifier from the modification rollback instruction; locating the modified code text based on the modification content identifier, and deleting the modification content in the modified code text.

[0125] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0126] Obtain the code text to be processed and identify the workflow node field identifiers in the code text to be processed;

[0127] Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0128] Generate the modified code text based on the line code.

[0129] In an alternative embodiment, when the computer program is executed by the processor, it further performs the following steps: determining the last code field in the code data and adding a newline character after the code field to generate line code.

[0130] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: after generating modified code text based on line code, reading the modified code text and deleting newline characters in the modified code text to obtain line code text; and adding the line code text to the code modification area.

[0131] In an exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps: adding line code text to the code modification area, the method including: obtaining multiple modification contents corresponding to the code modification area; comparing each modification content; if multiple modification contents conflict, identifying the conflicting modification contents and generating a prompt message; obtaining the target terminal corresponding to the conflicting modification contents and sending the prompt message to the target terminal.

[0132] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: when there is a conflict between the modifications, obtain the line marker corresponding to the modification at the time of the conflict; generate a prompt message based on the line marker, the prompt message being used to instruct the target terminal to identify the conflicting code file based on the line marker.

[0133] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving a modification rollback instruction, obtaining a modification content identifier from the modification rollback instruction; locating the modified code text based on the modification content identifier, and deleting the modification content in the modified code text.

[0134] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0135] Obtain the code text to be processed and identify the workflow node field identifiers in the code text to be processed;

[0136] Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code;

[0137] Generate the modified code text based on the line code.

[0138] In one embodiment, when the computer program is executed by the processor, it also performs the following steps: determining the last code field in the code data and adding a newline character after the code field to generate line code.

[0139] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: after generating modified code text based on line code, reading the modified code text and deleting newline characters in the modified code text to obtain line code text; and adding the line code text to the code modification area.

[0140] In an optional embodiment, when the computer program is executed by the processor, it further performs the following steps: adding line code text to the code modification area, the method including: obtaining multiple modification contents corresponding to the code modification area; comparing each modification content; if multiple modification contents conflict, identifying the conflicting modification contents and generating a prompt message; obtaining the target terminal corresponding to the conflicting modification contents and sending the prompt message to the target terminal.

[0141] In an exemplary embodiment, when the computer program is executed by the processor, it further performs the following steps: when there is a conflict between the modifications, obtain the line marker corresponding to the modification at the time of the conflict; generate a prompt message based on the line marker, the prompt message being used to instruct the target terminal to identify the conflicting code file based on the line marker.

[0142] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: receiving a modification rollback instruction, obtaining a modification content identifier from the modification rollback instruction; locating the modified code text based on the modification content identifier, and deleting the modification content in the modified code text.

[0143] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0144] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0145] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0146] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A code management method, characterized in that, The method includes: Obtain the code text to be processed and identify the workflow node field identifier in the code text to be processed; Read the code data between the field identifiers of two adjacent workflow nodes to obtain the line code; Based on the stated line of code, generate the modified code text.

2. The method according to claim 1, characterized in that, The step of reading the code data between two adjacent workflow node field identifiers to obtain line code includes: Identify the last code field in the code data and add a newline character after the code field to generate the line code.

3. The method according to claim 2, characterized in that, After generating the modified code text based on the line code, the method includes: Read the modified code text and remove the newline characters from the modified code text to obtain the line code text; Add the line of code text to the code editing area.

4. The method according to claim 3, characterized in that, The method of adding the line code text to the modified code area includes: Retrieve multiple modifications corresponding to the code modification area; The modifications described are compared and contrasted. If the multiple modifications conflict, the conflicting modifications will be identified and a prompt message will be generated. Obtain the target terminal corresponding to the conflicting modified content, and send the prompt information to the target terminal.

5. The method according to claim 4, characterized in that, If the multiple modifications conflict, the conflicting modifications will be identified, and a prompt message will be generated, including: When there is a conflict among the modifications, obtain the row marker corresponding to the modification at the time of the conflict; The prompt information is generated based on the line markers, and the prompt information is used to instruct the target terminal to identify conflicting code files based on the line markers.

6. The method according to claim 4 or 5, characterized in that, The method further includes: Receive a modification rollback instruction and obtain the modification content identifier from the modification rollback instruction; Locate the modified code text based on the modified content identifier, and delete the modified content in the modified code text.

7. A code management device, characterized in that, The device includes: The acquisition module is used to acquire the code text to be processed and identify the workflow node field identifier in the code text to be processed; The line code generation module is used to read the code data between the field identifiers of two adjacent workflow nodes to obtain line code; The code text generation module is used to generate modified code text based on the line of code.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.