Rule table generation method and apparatus, device, and computer readable storage medium

By extracting information from the flowchart and populating it into the rule table template, the rule table is automatically generated, solving the problem of time-consuming and labor-intensive manual sorting in the existing technology, and realizing efficient rule table generation and rapid iteration.

CN115033281BActive Publication Date: 2026-07-03CHINA CONSTRUCTION BANK

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA CONSTRUCTION BANK
Filing Date
2022-06-29
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In existing technologies, when business rules are complex, manually compiling the process robot rule table is time-consuming and labor-intensive, and rule changes require a lot of modifications, resulting in low efficiency.

Method used

By extracting information corresponding to preset key values ​​from the flowchart and filling it into the rule table template based on connection identifiers, the automatic conversion from flowchart to rule table is achieved.

Benefits of technology

It reduces manpower input, improves the efficiency of rule table generation, and supports rapid iterative updates of rule tables.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033281B_ABST
    Figure CN115033281B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, device, and computer-readable storage medium for generating rule tables. The method includes: obtaining a first flowchart; identifying graphic blocks included in the first flowchart and connection identifiers between the graphic blocks; extracting first information corresponding to preset key values ​​from the graphic blocks, wherein the preset key values ​​are key values ​​included in a rule table template; and filling the first information into corresponding positions in the rule table template based on the connection identifiers to generate a first rule table. The rule table generation method according to the embodiments of this application can save time and manpower, and improve the efficiency of rule table generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of computer technology, and in particular relates to a method, apparatus, device and computer-readable storage medium for generating rule tables. Background Technology

[0002] Robotic workflows are a type of automated software tool that uses scripts to automatically process a large number of repetitive, rule-based workflow tasks. As the application scope of robotic workflows expands and the application scenarios become more complex, the business rules also become increasingly complex.

[0003] Currently, most business rules are manually compiled by business personnel. However, if the business rules are very complex, business personnel cannot quickly compile a rule table that the workflow robot can recognize. Furthermore, if some rules change, the rule table must also be adjusted. Consequently, the workflow robot's code also needs to be modified, and the modifications are substantial.

[0004] Therefore, organizing the rule table in the above way is time-consuming, labor-intensive, and inefficient. Summary of the Invention

[0005] This application provides a method, apparatus, device, computer-readable storage medium, and computer program product for generating rule tables, which can save time and manpower and improve the efficiency of rule table generation.

[0006] In a first aspect, embodiments of this application provide a rule table generation method, the method comprising:

[0007] Obtain the first flowchart;

[0008] Identify the graphic blocks included in the first flowchart and the connection identifiers between the graphic blocks;

[0009] Extract first information corresponding to a preset key value from the graphic block, wherein the preset key value is a key value included in the rule table template;

[0010] Based on the connection identifier, the first information is filled into the corresponding position of the rule table template to generate the first rule table.

[0011] In one possible implementation, the step of filling the first information into the corresponding position of the rule table template based on the connection identifier to generate the first rule table includes:

[0012] Based on the direction indicated by the connection identifier, determine the filling position in the rule table template corresponding to the first information;

[0013] The first information is filled into the filling position to generate the first rule table.

[0014] In one possible implementation, the preset key value includes at least one of the following: step number, logical condition, logical true return value, logical true destination, logical false return value, and logical false destination.

[0015] In one possible implementation, the connection identifier includes a logical true connection identifier, and the first information includes step number information and conclusion information;

[0016] Determining the fill position in the rule table template corresponding to the first information based on the direction indicated by the connection identifier includes:

[0017] Based on the direction indicated by the logical true connection identifier, the filling position in the rule table template corresponding to the step number information is determined to be the position corresponding to the logical true destination, and the filling position corresponding to the conclusion information is the position corresponding to the logical true return value.

[0018] In one possible implementation, the connection identifier includes a logical pseudo-connection identifier;

[0019] Determining the fill position in the rule table template corresponding to the first information based on the direction indicated by the connection identifier includes:

[0020] Based on the direction indicated by the logical false connection identifier, the filling position in the rule table template corresponding to the step number information is determined to be the position corresponding to the logical false destination, and the filling position corresponding to the conclusion information is the position corresponding to the logical false return value.

[0021] In one possible implementation, extracting the first information corresponding to the preset key value from the graphic block includes:

[0022] Based on the preset separator in the graphic block, identify the first information in the graphic block that corresponds to the preset key value;

[0023] Extract the first information from the graphic block.

[0024] In one possible implementation, after generating the first rule table, the method further includes:

[0025] Obtain a second flowchart, which is an updated version of the first flowchart.

[0026] Update the first information according to the second flowchart to obtain the second information;

[0027] The first rule table is updated based on the second information to obtain the second rule table.

[0028] Secondly, embodiments of this application provide a rule table generation apparatus, the apparatus comprising:

[0029] The first acquisition module is used to acquire the first flowchart;

[0030] The identification module is used to identify the graphic blocks included in the first flowchart and the connection identifiers between the graphic blocks;

[0031] An extraction module is used to extract first information corresponding to a preset key value from the graphic block, wherein the preset key value is a key value included in the rule table template;

[0032] The filling module is used to fill the first information into the corresponding position of the rule table template based on the connection identifier, thereby generating the first rule table.

[0033] Thirdly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions;

[0034] When the processor executes the computer program instructions, it implements any of the possible implementations of the first aspect described above.

[0035] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the method in any of the possible implementations of the first aspect described above.

[0036] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform a method as described in any of the possible implementations of the first aspect above.

[0037] The rule table generation method, apparatus, device, computer-readable storage medium, and computer program product of this application, by extracting first information corresponding to preset key values ​​from the graphic blocks of a first flowchart and filling the first information into the corresponding positions of a rule table template based on the connection identifiers of the first flowchart, can automatically convert a flowchart into a rule table. Since the process of converting a flowchart into a rule table is automated and requires no human intervention, this application embodiment can save time and manpower, and improve the efficiency of rule table generation. Attached Figure Description

[0038] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a flowchart illustrating a rule table generation method provided in an embodiment of this application;

[0040] Figure 2 This is a schematic diagram of a business process based on a vehicle purchase invoice, specifying whether verification is required before supplementation.

[0041] Figure 3 This is a flowchart illustrating another rule table generation method provided in an embodiment of this application;

[0042] Figure 4 This is a schematic diagram of a rule table generation device provided in an embodiment of this application;

[0043] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0044] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0045] It should be noted that, in this document, relational terms such as "first" and "second" are used merely 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..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0046] Furthermore, the acquisition, storage, use, and processing of data in this application's technical solution all comply with relevant national laws and regulations.

[0047] In practical applications, many scenarios involve repetitive rules or logic, which can be handled by workflow robots, freeing up manpower. However, workflow robots don't make intelligent judgments like humans. Therefore, for scenarios requiring manual judgment of process flow (e.g., determining whether certain business operations can continue or be terminated based on customer conditions), business personnel typically use flowcharts to describe the process. These flowcharts include the truth or falsehood logic for each judgment rule and the judgment conditions. Flowcharts are clear to business personnel; even inexperienced personnel can quickly understand how certain business operations should proceed. However, workflow robots cannot recognize the flow of flowcharts or determine the truth or falsehood logic. Therefore, technical and business personnel need to collaboratively develop a set of rules that workflow robots can recognize.

[0048] In some cases, a rule table template needs to be prepared first, and then business personnel fill in various judgment conditions and outcomes. The workflow robot then directly reads the configured rule table and executes the corresponding process. In other cases, technical personnel directly configure the judgment conditions and outcomes in the code during the development process.

[0049] However, once the rules change, both the rule table and the code need to be modified. Furthermore, for complex scenarios with many judgment conditions, the workload of modifying the code is no less than that of redeveloping the entire system. Therefore, organizing the rule table in the above way is time-consuming, labor-intensive, and inefficient.

[0050] To address the problems of the prior art, embodiments of this application provide a rule table generation method, apparatus, device, computer-readable storage medium, and computer program product.

[0051] The rule table generation method provided in the embodiments of this application will be introduced first below.

[0052] Figure 1 The illustration shows a flowchart of a rule table generation method provided in an embodiment of this application.

[0053] like Figure 1 As shown, the rule table generation method provided in this application includes the following steps:

[0054] S110, Obtain the first flowchart;

[0055] S120. Identify the graphic blocks included in the first flowchart and the connection identifiers between the graphic blocks;

[0056] S130. Extract the first information corresponding to the preset key value from the graphic block, wherein the preset key value is the key value included in the rule table template;

[0057] S140. Based on the connection identifier, fill the first information into the corresponding position of the rule table template to generate the first rule table.

[0058] The rule table generation method of this application extracts first information corresponding to preset key values ​​from the graphic blocks of the first flowchart, and fills the first information into the corresponding positions of the rule table template based on the connection identifiers of the first flowchart to generate a first rule table. This method can automatically convert flowcharts into rule tables. Since the process of converting flowcharts into rule tables is automated, no human intervention is required. Therefore, this application embodiment can save time and manpower, and improve the efficiency of rule table generation.

[0059] The specific implementation methods for each of the above steps are described below.

[0060] In some embodiments, in S110, the first flowchart can be a flowchart drawn up by business personnel based on actual application scenarios. The first flowchart can include graphic blocks and connection markers between them. The graphic blocks can be decision boxes, processing boxes, start / end boxes, etc.; the connection markers can be flow lines. Additionally, the graphic blocks can include text, numbers, symbols, and other information.

[0061] In some embodiments, in S120, after obtaining the first flowchart, the first flowchart can be identified to determine the graphic blocks in the first flowchart and the connection identifiers between the graphic blocks. Wherein, if the first flowchart is an image, the identification can be image recognition.

[0062] In some embodiments, in S130, the rule table template can be a template pre-configured by technical or business personnel based on actual needs. The key values ​​of the rule table template can be configured as step number, logical condition, logical true return value, logical true destination, logical false return value, and logical false destination, etc. Furthermore, the preset key values ​​can include at least one of step number, logical condition, logical true return value, logical true destination, logical false return value, and logical false destination.

[0063] In addition, the first information can be information within a graphic block. Since the first information can correspond to a preset key value, it can be information such as step number, logical condition, logical true return value, logical true destination, logical false return value, and logical false destination.

[0064] As an example, by performing semantic analysis on the information in the graphic block, the first information corresponding to the preset key value can be obtained.

[0065] Based on this, in order to facilitate and quickly identify the first information in the graphic block, in some embodiments, S130 may specifically include:

[0066] Based on the preset separator in the graphic block, identify the first information in the graphic block that corresponds to the preset key value;

[0067] Extract the first information from the graphic block.

[0068] Here, the preset separator can be a semicolon, colon, period, vertical bar, or other separators, or it can be a preset numerical or textual information; there is no limitation on this. Furthermore, the graphic block can include the preset separator to identify the first information in the graphic block corresponding to a preset key value based on the preset separator. Specifically, the process of identifying the first information in the graphic block corresponding to a preset key value based on the preset separator can be as follows: information located at different positions of the preset separator is pre-determined as the first information corresponding to different preset key values.

[0069] As an example, a business process diagram based on whether a vehicle purchase invoice needs to be verified and supplemented later can be shown as follows: Figure 2 As shown, it includes the following steps:

[0070] S21, 200: Vehicle purchase invoice - Is it required to be verified and then supplemented? @Yes;

[0071] S22, 201: Vehicle purchase invoice - Is the vehicle type a truck? @ Yes | @ | (Conclusion - Normal opinion = + Invoice will be supplemented after verification);

[0072] S23, 202: Merchant Information_Merchant Type @Level 1 Distributor|@|().

[0073] Here, the colon and the symbol |@| can be preset separators. Based on this, the specific process of determining the information located at different positions of the preset separator as the first information corresponding to different preset key values ​​can be as follows: In the graphic block, the information before the colon is determined as the step number information; the information between the colon and the symbol |@| is determined as the logical condition information; and the information after the symbol |@| is determined as the logical true return value information or the logical false return value information. Furthermore, if the graphic block contains only a colon as a separator, then the information after the colon can be determined as the logical condition information.

[0074] Additionally, in S21 and S212, "@" can mean "to contain", that is, "@ is" can mean "to contain is".

[0075] Furthermore, based on the two preset separators mentioned above, the step number information in the identification graphic block can be 200, 201, or 202; the logical condition information in the identification graphic block can be vehicle purchase invoice_whether to be checked and supplemented@yes, vehicle purchase invoice_whether the vehicle type is a truck@yes, or merchant information_merchant nature@first-level dealer; the logical true return value information in the identification graphic block can be conclusion_normal opinion = +invoice to be checked and supplemented; the logical false return value information in the identification graphic block can be non-existent.

[0076] Based on this, after identifying the first information in the graphic block that corresponds to the preset key value, the first information can be extracted from the graphic block.

[0077] In this way, by identifying the first information in the graphic block corresponding to the preset key value based on the preset separator in the graphic block, the first information in the graphic block can be identified conveniently and quickly.

[0078] In some embodiments, during S140, the rule table template can be configured as either text or table format; no limitation is made here. When the rule table template is an Excel spreadsheet, the column names can be configured as step number, logical condition, logical true return value, logical true destination, logical false return value, and logical false destination, respectively. Then, based on the connection identifier, the first rule table can be generated by filling the first information—step number information, logical condition information, logical true return value information, logical true destination information, logical false return value information, and logical false destination information—into the corresponding tables of the rule table template.

[0079] Based on this, in order to accurately determine the filling position corresponding to the first information in the rule table template, in some embodiments, S140 may specifically include:

[0080] Based on the direction indicated by the connection identifier, determine the filling position in the rule table template corresponding to the first information;

[0081] Fill the first information into the fill position to generate the first rule table.

[0082] Here, the connection identifier can be a logical conditional connection identifier or a logical true / false connection identifier. In the first flowchart, one graphical block can correspond to multiple logical conditional connection identifiers. Furthermore, one graphical block can correspond to two connection identifiers, such as a logical true connection identifier and a logical false connection identifier, or it can correspond to only one connection identifier, the logical true connection identifier.

[0083] As an example, graphic block A can correspond to three logical condition connection identifiers: logical condition connection identifier 1, logical condition connection identifier 2, and logical condition connection identifier 3. Furthermore, the key values ​​in the rule table template can include the destination of logical condition 1, the destination of logical condition 2, and the destination of logical condition 3. Graphic block A and graphic block B can be connected via logical condition connection identifier 1, with graphic block A pointing to graphic block B; graphic block A and graphic block C can be connected via logical condition connection identifier 2, with graphic block A pointing to graphic block C; and graphic block A and graphic block D can be connected via logical condition connection identifier 3, with graphic block A pointing to graphic block D. Therefore, based on the logical condition connection identifiers, it can be determined that in the rule table template, the filling position corresponding to the step number information in graphic block B is the position corresponding to the destination of logical condition 1 for graphic block A; the filling position corresponding to the step number information in graphic block C is the position corresponding to the destination of logical condition 2 for graphic block A; and the filling position corresponding to the step number information in graphic block D is the position corresponding to the destination of logical condition 3 for graphic block A.

[0084] In this way, by determining the filling position corresponding to the first information in the rule table template based on the direction indicated by the connection identifier, the flow of logical conditions or logical truth / falsehood can be accurately identified. Furthermore, the filling position corresponding to the first information in the rule table template can be determined.

[0085] Based on this, in order to further accurately determine the filling position corresponding to the first information in the rule table template, in some embodiments, the connection identifier may include a logical true connection identifier, and the first information may include step number information and conclusion information. Then, based on the direction indicated by the connection identifier, the filling position corresponding to the first information in the rule table template is determined, which may specifically include:

[0086] Based on the direction indicated by the logical true connection identifier, the filling position in the rule table template corresponding to the step number information is determined as the position corresponding to the logical true destination, and the filling position corresponding to the conclusion information is determined as the position corresponding to the logical true return value.

[0087] Here, as Figure 2As shown, the graphic block with step number 200 and the graphic block with step number 201 can be connected by a logical true connection identifier, and the graphic block with step number 200 points to the graphic block with step number 201. Furthermore, in the graphic block with step number 201, the conclusion information can be the content within parentheses, i.e., the conclusion information can be "Conclusion_Normal Opinion = + Invoice Verification Supplement". Moreover, if we denote the graphic block with step number 200 as graphic block 1 and the graphic block with step number 201 as graphic block 2, then in the rule table template, the filling position corresponding to the step number information in graphic block 2 is the position corresponding to the logical true destination of graphic block 1, and the filling position corresponding to the conclusion information in graphic block 2 is the position corresponding to the logical true return value of graphic block 1.

[0088] It should be noted that in the rule table template, the filling position corresponding to the step number information in graphic block 2 can be the position corresponding to the logical true destination of graphic block 1, or the position corresponding to the step number of graphic block 2.

[0089] In this way, by following the direction indicated by the logical true connection identifier, the connection relationship between different graphic blocks and the logical true flow can be determined. Furthermore, by determining the filling positions of the above step number information and conclusion information in the rule table template, the filling position corresponding to the first information in the rule table template can be further accurately determined.

[0090] Based on this, in order to further accurately determine the filling position corresponding to the first information in the rule table template, in some embodiments, the connection identifier may include a logical pseudo-connection identifier. Then, based on the direction indicated by the connection identifier, the filling position corresponding to the first information in the rule table template is determined. Specifically, this may further include:

[0091] Based on the direction indicated by the logical false connection identifier, the filling position in the rule table template corresponding to the step number information is determined as the position corresponding to the logical false destination, and the filling position corresponding to the conclusion information is determined as the position corresponding to the logical false return value.

[0092] Here, as Figure 2As shown, the graphic block with step number 200 and the graphic block with step number 202 can be connected by a logical false connection identifier, and the graphic block with step number 200 points to the graphic block with step number 202. Furthermore, in the graphic block with step number 202, the conclusion information can be the content within parentheses, i.e., the conclusion information is "not found". Moreover, if we denote the graphic block with step number 200 as graphic block 1 and the graphic block with step number 201 as graphic block 3, then in the rule table template, the filling position corresponding to the step number information in graphic block 3 is the position corresponding to the logical false destination of graphic block 1, and the filling position corresponding to the conclusion information in graphic block 3 is the position corresponding to the logical false return value of graphic block 1.

[0093] It should be noted that in the rule table template, the filling position corresponding to the step number information in graphic block 3 can be the position corresponding to the logical false destination corresponding to graphic block 1, or the position corresponding to the step number of graphic block 3.

[0094] In this way, by following the direction indicated by the logical pseudo-connection identifier, the connection relationship between different graphic blocks and the logical pseudo-flow path can be determined. Furthermore, by determining the filling positions of the aforementioned step number information and conclusion information in the rule table template, the filling position corresponding to the first information in the rule table template can be further accurately determined.

[0095] Based on this, according to... Figure 2 The business process diagram shown above, and the rule table generated using the above method, can be represented as follows:

[0096]

[0097] In addition, in order to reduce the time and workload of developers and business personnel in communicating specific rules, and to facilitate quick and easy iterative updates of the rule table, as another implementation of this application, this application also provides another implementation of the rule table generation method, as detailed in the following embodiments.

[0098] Please see Figure 3 The rule table generation method provided in this application embodiment may further include the following steps after S140 shown in the above embodiment:

[0099] S310. Obtain the second flowchart, which is the updated flowchart of the first flowchart.

[0100] S320. Update the first information according to the second flowchart to obtain the second information;

[0101] S330. Update the first rule table according to the second information to obtain the second rule table.

[0102] This application embodiment obtains a second flowchart updated from a first flowchart, and then generates a second rule table based on the second flowchart. This allows business personnel to automatically regenerate a rule table simply by modifying the parts that need to be changed in the flowchart. Therefore, this application embodiment reduces the time and workload for developers and business personnel to communicate specific rules, and facilitates convenient and quick iterative updates to the rule table.

[0103] The specific implementation methods for each of the above steps are described below.

[0104] In some embodiments, in S310, the second flowchart can be a flowchart obtained by updating the first flowchart. The update can include adding logical condition information, deleting logical condition information, modifying logical condition information, modifying conclusion information, etc.

[0105] In some embodiments, in S320, the second information can be information from the second flowchart. Since the second flowchart is an updated flowchart of the first flowchart, the second information can be different from the first information. Furthermore, the second information can be information within a graphical block of the second flowchart that corresponds to a preset key value. Additionally, the process of obtaining the second information can be the same as the process of obtaining the first information described above, and will not be repeated here.

[0106] In some embodiments, in S330, if a first rule table has already been generated, by comparing the second information with the first information, information that exists in the second information but not in the first information can be filled into the corresponding positions in the rule table, information that does not exist in the second information but exists in the first information can be deleted from the rule table, and information in the rule table that is different from the first information can be modified. Thus, a second rule table can be obtained. Alternatively, the process of obtaining the second rule table can be the same as the process of obtaining the first rule table, and will not be described again here.

[0107] In addition to the above, other steps of the method in the embodiments of this application can be found in the above text. Figure 1 The relevant descriptions of the embodiments shown will not be repeated here.

[0108] Furthermore, based on the above embodiments, business personnel can draw flowcharts in Visio software. Then, they only need to save the drawn flowchart as an Excel spreadsheet to convert it into a rule table. Therefore, through the above embodiments, not only can the communication costs of translating business language into technical language be reduced, but the number of process failures caused by rule changes can also be reduced, and the time cost of process optimization can be lowered.

[0109] Based on the rule table generation method provided in the above embodiments, this application also provides specific implementations of the rule table generation apparatus. Please refer to the following embodiments.

[0110] like Figure 4 As shown, the rule table generation apparatus 400 provided in this application embodiment includes the following modules:

[0111] The first acquisition module 410 is used to acquire the first flowchart;

[0112] The identification module 420 is used to identify the graphic blocks included in the first flowchart and the connection identifiers between the graphic blocks;

[0113] Extraction module 430 is used to extract first information corresponding to preset key values ​​from graphic blocks, wherein the preset key values ​​are key values ​​included in the rule table template;

[0114] The filling module 440 is used to fill the first information into the corresponding position of the rule table template based on the connection identifier to generate the first rule table.

[0115] The rule table generation device 400 described above will be explained in detail below:

[0116] In some embodiments, the filling module 440 may specifically include:

[0117] The determination submodule is used to determine the filling position in the rule table template corresponding to the first information based on the direction indicated by the connection identifier;

[0118] The fill submodule is used to fill the first information into the fill position after determining the fill position corresponding to the first information in the rule table template, thereby generating the first rule table.

[0119] In some embodiments, the preset key value may include at least one of the following: step number, logical condition, logical true return value, logical true destination, logical false return value, and logical false destination.

[0120] In some embodiments, the connection identifier may include a logical true connection identifier, and the first information may include step number information and conclusion information;

[0121] Based on this, the specific sub-modules may include:

[0122] The first determining unit is used to determine, based on the direction indicated by the logical true connection identifier, the filling position in the rule table template corresponding to the step number information as the position corresponding to the logical true destination, and the filling position corresponding to the conclusion information as the position corresponding to the logical true return value.

[0123] In some embodiments, the connection identifier may include a logical dummy connection identifier;

[0124] Based on this, the submodule may also include:

[0125] The second determining unit is used to determine, based on the direction indicated by the logical false connection identifier, the filling position in the rule table template corresponding to the step number information as the position corresponding to the logical false destination, and the filling position corresponding to the conclusion information as the position corresponding to the logical false return value.

[0126] In some embodiments, the extraction module 430 may specifically include:

[0127] The recognition submodule is used to identify the first information in the graphic block corresponding to the preset key value based on the preset separator in the graphic block;

[0128] The extraction submodule is used to extract the first information from the graphic block after recognizing the first information corresponding to the preset key value in the graphic block.

[0129] In some embodiments, the rule table generation apparatus 400 may further include:

[0130] The second acquisition module is used to acquire the second flowchart after the first rule table is generated. The second flowchart is the updated flowchart of the first flowchart.

[0131] The first update module is used to update the first information according to the second flowchart after obtaining the second flowchart, so as to obtain the second information;

[0132] The second update module is used to update the first rule table based on the second information after obtaining the second information, so as to obtain the second rule table.

[0133] The rule table generation device of this application embodiment generates a first rule table by extracting first information corresponding to preset key values ​​from the graphic blocks of the first flowchart and filling the first information into the corresponding positions of the rule table template based on the connection identifiers of the first flowchart. This automatically converts the flowchart into a rule table. Since the process of converting the flowchart into a rule table is automated, no human intervention is required. Therefore, this application embodiment can save time and manpower, and improve the efficiency of rule table generation.

[0134] Based on the rule table generation method provided in the above embodiments, this application also provides specific implementation methods for electronic devices. Figure 5 A schematic diagram of an electronic device 500 provided in an embodiment of this application is shown.

[0135] Electronic device 500 may include processor 510 and memory 520 storing computer program instructions.

[0136] Specifically, the processor 510 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0137] Memory 520 may include mass storage for data or instructions. For example, and not limitingly, memory 520 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 520 may include removable or non-removable (or fixed) media. Where appropriate, memory 520 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 520 is non-volatile solid-state memory.

[0138] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of this application.

[0139] The processor 510 implements any of the rule table generation methods in the above embodiments by reading and executing computer program instructions stored in the memory 520.

[0140] In one example, electronic device 500 may also include communication interface 530 and bus 540. Wherein, as... Figure 5 As shown, the processor 510, memory 520, and communication interface 530 are connected through bus 540 and complete communication with each other.

[0141] The communication interface 530 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0142] Bus 540 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 540 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.

[0143] For example, the electronic device 500 can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc.

[0144] The electronic device can execute the rule table generation method in the embodiments of this application, thereby achieving the combination Figure 1 , Figure 3 and Figure 4 The described method and apparatus for generating rule tables.

[0145] Furthermore, in conjunction with the rule table generation methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the rule table generation methods in the above embodiments.

[0146] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0147] The functional blocks shown in the above-described structural diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0148] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0149] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0150] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for generating a rule table, characterized in that, include: Obtain the first flowchart; Identify the graphic blocks included in the first flowchart and the connection identifiers between the graphic blocks. The graphic blocks are provided with preset separators. The preset separators are used to distinguish different types of first information. The first information includes step number information and conclusion information. The connection identifiers include logical true connection identifiers and logical false connection identifiers. Extract first information corresponding to a preset key value from the graphic block, wherein the preset key value is a key value included in the rule table template; Based on the direction indicated by the logical true connection identifier, the filling position in the rule table template corresponding to the step number information is determined to be the position corresponding to the logical true destination, and the filling position corresponding to the conclusion information is the position corresponding to the logical true return value. Based on the direction indicated by the logical false connection identifier, the filling position in the rule table template corresponding to the step number information is determined to be the position corresponding to the logical false destination, and the filling position corresponding to the conclusion information is the position corresponding to the logical false return value. The first information is filled into the filling position to generate the first rule table.

2. The method according to claim 1, characterized in that, The preset key value includes at least one of the following: step number, logical condition, logical true return value, logical true destination, logical false return value, and logical false destination.

3. The method according to claim 1, characterized in that, Extracting the first information corresponding to the preset key value from the graphic block includes: Based on the preset separator in the graphic block, identify the first information in the graphic block that corresponds to the preset key value; Extract the first information from the graphic block.

4. The method according to claim 1, characterized in that, After generating the first rule table, the method further includes: Obtain a second flowchart, which is an updated version of the first flowchart. Update the first information according to the second flowchart to obtain the second information; The first rule table is updated based on the second information to obtain the second rule table.

5. A rule table generation device, characterized in that, The device includes: The first acquisition module is used to acquire the first flowchart; The identification module is used to identify the graphic blocks included in the first flowchart and the connection identifiers between the graphic blocks. The graphic blocks are provided with preset separators, which are used to distinguish different types of first information. The first information includes step number information and conclusion information. The connection identifiers include logical true connection identifiers and logical false connection identifiers. An extraction module is used to extract first information corresponding to a preset key value from the graphic block, wherein the preset key value is a key value included in the rule table template; The filling module is used to determine, based on the direction indicated by the logical true connection identifier, the filling position in the rule table template corresponding to the step number information is the position corresponding to the logical true destination, and the filling position corresponding to the conclusion information is the position corresponding to the logical true return value; based on the direction indicated by the logical false connection identifier, determine, based on the direction indicated by the step number information in the rule table template, the filling position corresponding to the logical false destination is the position corresponding to the logical false destination, and the filling position corresponding to the conclusion information is the position corresponding to the logical false return value; and fill the first information into the filling positions to generate a first rule table.

6. An electronic device, characterized in that, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the rule table generation method as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the rule table generation method as described in any one of claims 1-4.

8. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the rule table generation method as described in any one of claims 1-4.