An examination and approval rule adjustment method and device, an electronic device, and a storage medium
By responding to rule adjustment instructions from business objects, determining the type and content of the adjustment, notifying users of the review information, and making adjustments in the approval rule base, the problem of inconvenient approval rule adjustments in existing technologies is solved, and efficient and secure approval rule updates are achieved.
Patent Information
- Application Number
- CN202211468225.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-22
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2042-11-22
AI Technical Summary
In existing technologies, approval rules need to be written into application code, making it difficult to make adjustments conveniently and efficiently.
By responding to the rule adjustment instructions of the business object, the type and content of the adjustment are determined, and the review information is notified through a preset notification method. After confirmation, the rule adjustment is performed in the approval rule base to avoid changes to the application code.
It enables convenient, efficient, and secure updates to rules in the approval rule base without changing the application code, thereby improving the efficiency and security of the approval process.
Smart Images

Figure CN115829738B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to an approval rule adjustment method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the development of technology, transaction volumes in the financial market have increased, business complexity has risen, and approval processes have become increasingly complicated. Multi-level approvals can help reduce risks associated with transactions.
[0003] In related technologies, developers need to write approval rules into the application code. When it is necessary to adjust the approval rules, the application code can only be modified. Therefore, it is not convenient and efficient to adjust the approval rules. Summary of the Invention
[0004] This application provides an approval rule adjustment method, apparatus, electronic device, and storage medium for convenient and efficient adjustment of approval rules.
[0005] In a first aspect, embodiments of this application provide an approval rule adjustment method, the method comprising:
[0006] In response to a rule adjustment instruction triggered by a business object, determine the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction;
[0007] The review information will be notified via a preset notification method; wherein, the review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content;
[0008] Upon receiving confirmation instructions for the audit information, the approval rule base is adjusted based on the adjustment type.
[0009] The above solution, upon receiving a rule adjustment instruction triggered by a business object, notifies the user of the relevant review information for that instruction. Then, upon receiving a confirmation instruction for the review information (i.e., approval), the approval rules in the approval rule base can be conveniently, efficiently, and securely adjusted. This embodiment decouples approval rules from business programs, allowing for timely updates to the approval rules in the approval rule base without requiring changes to the application code. Furthermore, by reviewing the relevant review information for the rule adjustment instruction, this embodiment ensures the secure adjustment of approval rules.
[0010] In some optional implementations, the adjustment type includes adding a rule, modifying a rule, and deleting a rule;
[0011] Wherein, if the adjustment type is a new rule, the adjustment content includes the new rule corresponding to the rule adjustment instruction;
[0012] If the adjustment type is a rule modification, then the adjustment content includes the modification information carried by the rule adjustment instruction and the existing first target rule corresponding to the rule adjustment instruction;
[0013] If the adjustment type is a deletion rule, then the adjustment content includes the existing rule of the second target corresponding to the rule adjustment instruction.
[0014] In some optional implementations, the approval rule base is adjusted based on the adjustment type, including:
[0015] If the adjustment type is a new rule, then the new rule corresponding to the rule adjustment instruction will be checked for duplicates against the existing rules in the approval rule base.
[0016] After the verification is successful, the new rule will be added to the approval rule base.
[0017] In some optional implementations, the new rule corresponding to the rule adjustment instruction is generated in the following manner:
[0018] Based on the target information corresponding to each preset item carried by the rule adjustment instruction, a new rule corresponding to the rule adjustment instruction is generated.
[0019] In some optional implementations, the approval rule base is adjusted based on the adjustment type, including:
[0020] If the adjustment type is a rule modification, then based on the modification information carried by the rule adjustment instruction, the existing first target rule corresponding to the rule adjustment instruction is modified to obtain the target modification rule;
[0021] Perform a duplicate check on the target modification rule and other existing rules in the approval rule base;
[0022] After the verification is passed, the existing rule for the first target in the approval rule base is replaced with the target modification rule.
[0023] In some optional implementations, if the modification information carried by the rule adjustment instruction is modification information for an authorized object preset item, and the rule adjustment instruction corresponds to multiple existing rules for the first target; then, based on the modification information carried by the rule adjustment instruction, the existing rules for the first target corresponding to the rule adjustment instruction are modified to obtain the target modification rule, including:
[0024] Based on the authorized object modification information, the existing information of the authorized object preset items in the existing rules of each first target is modified to obtain multiple target modification rules.
[0025] In some optional implementations, the approval rule base is adjusted based on the adjustment type, including:
[0026] If the adjustment type is a deletion rule, then the existing rule for the second target corresponding to the rule adjustment instruction in the approval rule base will be deleted.
[0027] In some alternative implementations, after adjusting the rules in the approval rule base, the following is also included:
[0028] Generate an operation record for the rule adjustment instruction; wherein the operation record includes part or all of the adjustment type, the identification information of the rule operation object, the adjustment content, and the identifier of the rule corresponding to the rule adjustment instruction.
[0029] Secondly, embodiments of this application also provide an approval rule adjustment device, the device comprising:
[0030] The information determination module is used to respond to a rule adjustment instruction triggered by a business object, and determine the adjustment type and adjustment content corresponding to the rule adjustment instruction.
[0031] The review notification module is used to notify review information through a preset notification method; wherein, the review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content;
[0032] The rule adjustment module is used to adjust the rules of the approval rule base based on the adjustment type after receiving a confirmation instruction for the review information.
[0033] In some optional implementations, the adjustment type includes adding a rule, modifying a rule, and deleting a rule;
[0034] Wherein, if the adjustment type is a new rule, the adjustment content includes the new rule corresponding to the rule adjustment instruction;
[0035] If the adjustment type is a rule modification, then the adjustment content includes the modification information carried by the rule adjustment instruction and the existing first target rule corresponding to the rule adjustment instruction;
[0036] If the adjustment type is a deletion rule, then the adjustment content includes the existing rule of the second target corresponding to the rule adjustment instruction.
[0037] In some optional implementations, the rule adjustment module is specifically used for:
[0038] If the adjustment type is a new rule, then the new rule corresponding to the rule adjustment instruction will be checked for duplicates against the existing rules in the approval rule base.
[0039] After the verification is successful, the new rule will be added to the approval rule base.
[0040] In some optional implementations, the new rule corresponding to the rule adjustment instruction is generated in the following manner:
[0041] Based on the target information corresponding to each preset item carried by the rule adjustment instruction, a new rule corresponding to the rule adjustment instruction is generated.
[0042] In some optional implementations, the rule adjustment module is specifically used for:
[0043] If the adjustment type is a rule modification, then based on the modification information carried by the rule adjustment instruction, the existing first target rule corresponding to the rule adjustment instruction is modified to obtain the target modification rule;
[0044] Perform a duplicate check on the target modification rule and other existing rules in the approval rule base;
[0045] After the verification is passed, the existing rule for the first target in the approval rule base is replaced with the target modification rule.
[0046] In some optional implementations, if the modification information carried by the rule adjustment instruction is modification information of the authorization object for a preset item of the authorization object, and the rule adjustment instruction corresponds to multiple existing rules of the first target; then the rule adjustment module is specifically used for:
[0047] Based on the authorized object modification information, the existing information of the authorized object preset items in the existing rules of each first target is modified to obtain multiple target modification rules.
[0048] In some optional implementations, the rule adjustment module is specifically used for:
[0049] If the adjustment type is a deletion rule, then the existing rule for the second target corresponding to the rule adjustment instruction in the approval rule base will be deleted.
[0050] In some alternative implementations, a record generation module is also included, for:
[0051] After the rule adjustment module adjusts the approval rule base, it generates an operation record for the rule adjustment instruction; wherein, the operation record includes part or all of the adjustment type, the identification information of the rule operation object, the adjustment content, and the identifier of the rule corresponding to the rule adjustment instruction.
[0052] Thirdly, embodiments of this application provide an electronic device, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor performs the approval rule adjustment method described in any of the first aspects above.
[0053] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program executable by a computer, which, when run on the computer, causes the computer to perform the approval rule adjustment method described in any of the first aspects above.
[0054] Fifthly, embodiments of this application provide a computer program product comprising computer-executable instructions, the computer-executable instructions being used to cause a computer to execute the approval rule adjustment method as described in any of the first aspects. Attached Figure Description
[0055] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0056] Figure 1 A flowchart illustrating the first approval rule adjustment method provided in this application embodiment;
[0057] Figure 2 A flowchart illustrating the second approval rule adjustment method provided in this application embodiment;
[0058] Figure 3 A flowchart illustrating the third approval rule adjustment method provided in this application embodiment;
[0059] Figure 4 A flowchart illustrating the fourth approval rule adjustment method provided in this application embodiment;
[0060] Figure 5 A flowchart illustrating the fifth approval rule adjustment method provided in this application embodiment;
[0061] Figure 6A schematic diagram of the structure of the approval rule adjustment device provided in the embodiments of this application;
[0062] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0063] 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. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0064] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0065] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the term "connection" should be interpreted broadly. For example, it can refer to a direct connection, an indirect connection through an intermediate medium, or a connection within two devices. Those skilled in the art can understand the specific meaning of the above term in this application based on the specific circumstances.
[0066] The data collection, dissemination, and use in this application all comply with relevant national laws and regulations.
[0067] As transaction volumes increase and business complexity grows in financial markets, approval processes become more intricate. Multi-level approvals can help mitigate transaction risks.
[0068] In related technologies, developers need to write approval rules into the application code. When it is necessary to adjust the approval rules, the application code can only be modified. Therefore, it is not convenient and efficient to adjust the approval rules.
[0069] In view of this, this application proposes an approval rule adjustment method, apparatus, electronic device, and storage medium. The method includes: responding to a rule adjustment instruction triggered by a business object, determining the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction; notifying the review information through a preset notification method; wherein the review information includes the adjustment type, the identifier of the business object, and part or all of the adjustment content; and after receiving a confirmation instruction for the review information, adjusting the approval rule base based on the adjustment type.
[0070] The above solution, upon receiving a rule adjustment instruction triggered by a business object, notifies the user of the relevant review information for that instruction. Then, upon receiving a confirmation instruction for the review information (i.e., approval), the approval rules in the approval rule base can be conveniently, efficiently, and securely adjusted. This embodiment decouples approval rules from business programs, allowing for timely updates to the approval rules in the approval rule base without requiring changes to the application code. Furthermore, by reviewing the relevant review information for the rule adjustment instruction, this embodiment ensures the secure adjustment of approval rules.
[0071] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with reference to the accompanying drawings and specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0072] This application provides a first method for adjusting approval rules, applied to electronic devices, such as... Figure 1 As shown, it includes the following steps:
[0073] Step S101: In response to a rule adjustment instruction triggered by a business object, determine the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction.
[0074] During implementation, the rules need to be adjusted in different ways. For example, in some scenarios, new rules need to be added to the approval rule base, in some scenarios, existing rules in the approval rule base need to be modified, and in some scenarios, existing rules in the approval rule base need to be deleted.
[0075] Different adjustment types require different subsequent adjustment methods. Therefore, this embodiment needs to determine the adjustment type corresponding to the adjustment instruction.
[0076] In addition, to ensure the security of the adjustment process, this embodiment needs to review the review information related to the rule adjustment instruction. In some embodiments, the review information related to the rule adjustment instruction includes the adjustment content of the rule adjustment instruction; based on this, this embodiment also needs to determine the adjustment content of the rule adjustment instruction.
[0077] The adjustment content of the above rule adjustment instructions is related to the adjustment type corresponding to the rule adjustment instructions.
[0078] In some optional implementations, the adjustment type includes adding a rule, modifying a rule, and deleting a rule;
[0079] Wherein, if the adjustment type is a new rule, the adjustment content includes the new rule corresponding to the rule adjustment instruction;
[0080] If the adjustment type is a rule modification, then the adjustment content includes the modification information carried by the rule adjustment instruction and the existing first target rule corresponding to the rule adjustment instruction;
[0081] If the adjustment type is a deletion rule, then the adjustment content includes the existing rule of the second target corresponding to the rule adjustment instruction.
[0082] For example, if a business object needs to add a new rule to the approval rule base, a rule adjustment instruction for adding a new rule will be triggered. This instruction is typed as "add rule," and its content includes the new rule corresponding to the instruction. If a business object needs to modify an existing rule in the approval rule base, a rule adjustment instruction for modifying a rule will be triggered. This instruction is typed as "modify rule," and its content includes the modification information carried by the instruction and the first target existing rule corresponding to the instruction. This first target existing rule is an existing rule in the approval rule base. If a business object needs to delete an existing rule in the approval rule base, a rule adjustment instruction for deleting a rule will be triggered. This instruction is typed as "delete rule," and its content includes the second target existing rule corresponding to the instruction. This second target existing rule is an existing rule in the approval rule base.
[0083] The above-mentioned adjustment types are merely illustrative examples, and this application is not limited thereto.
[0084] This embodiment does not limit the specific implementation method of the review rules involved. For example, the electronic device generates corresponding review rules based on the information corresponding to each preset item. For example, preset items such as approval form type, product, authorization condition, authorization scope (including the name and numerical range of the authorization scope), and authorization object are set.
[0085] Step S102: Notify the review information through a preset notification method.
[0086] The review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content.
[0087] As mentioned above, in order to ensure the security of the adjustment process, this embodiment requires the review of the review information related to the rule adjustment instruction.
[0088] Since the identifier of a business object can uniquely identify the business object, the adjustment type represents what operation the business object needs to perform on the approval rules, and the adjustment content represents the specific content that the business object needs to be modified.
[0089] Based on this, this embodiment notifies relevant management personnel of some or all of the above three pieces of information, enabling them to determine whether the adjustment to the approval rules is approved based on this information, and triggers a confirmation instruction for the above-mentioned review information after confirming that the adjustment is approved.
[0090] Step S103: After receiving the confirmation instruction for the audit information, adjust the rules of the approval rule base based on the adjustment type.
[0091] As mentioned above, the confirmation instruction for the above-mentioned review information is triggered by the relevant management personnel after confirming that the adjustment has been approved. Upon receiving the confirmation instruction for the review information, it indicates that the adjustment to the approval rules is safe and feasible. Therefore, based on the adjustment type corresponding to the above-mentioned rule adjustment instruction, the approval rule base is adjusted.
[0092] The above solution, upon receiving a rule adjustment instruction triggered by a business object, notifies the relevant review information of the instruction. Upon receiving confirmation of the review information (i.e., approval), the approval rules in the approval rule base can be conveniently, efficiently, and securely adjusted, improving the efficiency of financial market approval processes. This embodiment decouples approval rules from business programs, allowing for timely updates to the approval rules in the approval rule base without requiring changes to the application code. Furthermore, by reviewing the relevant review information of the rule adjustment instruction, this embodiment ensures the secure adjustment of approval rules.
[0093] As mentioned above, the adjustment types include adding rules, modifying rules, and deleting rules.
[0094] In response to rule adjustment instructions for newly added rules, this application provides a second method for approving rule adjustments, applicable to electronic devices, such as... Figure 2 As shown, it includes the following steps:
[0095] Step S201: In response to a rule adjustment instruction triggered by a business object, determine the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction.
[0096] For example, if the adjustment type is "add a new rule", the adjustment content of the rule adjustment instruction includes the new rule corresponding to the rule adjustment instruction.
[0097] In some optional implementations, the new rule corresponding to the rule adjustment instruction can be generated in the following ways:
[0098] Based on the target information corresponding to each preset item carried by the rule adjustment instruction, a new rule corresponding to the rule adjustment instruction is generated.
[0099] As described above, some embodiments include preset items for approval form type, product, authorization conditions, authorization scope (including the name and numerical range of the authorization scope), and authorization object.
[0100] For example, the system displays all available types under the "Approval Form Type" preset item, from which the business object selects a target type; it displays all available products corresponding to the target type under the "Product" preset item, from which the business object selects one or more target products; it displays all available authorization conditions corresponding to the target type under the "Authorization Condition" preset item, from which the business object selects one or more (usually no more than 5) target authorization conditions according to business needs; it displays the names of all available authorization ranges corresponding to the target type under the "Authorization Range" preset item, from which the business object selects a target authorization range name according to business needs and enters the target numerical range corresponding to the name of the target authorization range (the target numerical range can be set using operators such as >, ≥, <, ≤, and between); in addition, it is also necessary to enter the identifier of the target approval object (such as employee number) under the "Authorization Object" preset item.
[0101] After the business object sets the target information corresponding to each of the above preset items, it triggers a rule adjustment instruction carrying the target information corresponding to each preset item; the electronic device can then generate a new rule corresponding to the rule adjustment instruction based on the rule adjustment instruction.
[0102] Step S202: Notify the review information through a preset notification method.
[0103] The review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content.
[0104] The specific implementation of step S202 can be found in the above embodiments, and will not be repeated here.
[0105] Step S203: After receiving the confirmation instruction for the audit information, perform a duplicate check between the new rule corresponding to the rule adjustment instruction and the existing rules in the approval rule base.
[0106] During implementation, if there are rules in the approval rule base that are duplicates of the new rule mentioned above, then after the new rule is added to the approval rule base, multiple duplicate rules will appear.
[0107] Therefore, this embodiment needs to perform a duplicate check on the new rules and the existing rules in the approval rule base to reduce the occurrence of rule duplication and maintain the uniqueness of the rules.
[0108] For example, if the preset items of approval form type, product, authorization conditions, name of authorization scope, and authorized object are all the same for two rules, then these two rules will be identified as duplicate rules and the verification will fail; conversely, if even one item is different, these two rules will be identified as different rules and the verification will pass.
[0109] Step S204: After the verification is passed, the new rule is added to the approval rule base.
[0110] The above solution reduces rule duplication by performing a duplicate check on the new rule and comparing it with existing rules in the approval rule base before adding the new rule to the approval rule base.
[0111] As mentioned above, the adjustment types include adding rules, modifying rules, and deleting rules.
[0112] In response to rule adjustment instructions that modify rules, this application provides a third method for approving rule adjustments, applicable to electronic devices, such as... Figure 3 As shown, it includes the following steps:
[0113] Step S301: In response to a rule adjustment instruction triggered by a business object, determine the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction.
[0114] For example, if the adjustment type is to modify a rule, the adjustment content of the rule adjustment instruction includes the modification information carried by the rule adjustment instruction and the existing first target rule (the rule that needs to be modified) corresponding to the rule adjustment instruction.
[0115] Step S302: Notify the review information through a preset notification method.
[0116] The review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content.
[0117] The specific implementation of step S302 can be found in the above embodiments, and will not be repeated here.
[0118] Step S303: After receiving the confirmation instruction for the audit information, modify the existing first target rule corresponding to the rule adjustment instruction based on the modification information carried by the rule adjustment instruction to obtain the target modification rule.
[0119] As described above, some embodiments include preset items for approval form type, product, authorization conditions, authorization scope (including the name and numerical range of the authorization scope), and authorization object.
[0120] For example, existing information of some preset items can be modified based on the modification information.
[0121] Step S304: Perform a duplicate check on the target modification rule and other existing rules in the approval rule base.
[0122] The process of performing repeatability verification can be referred to the above embodiments, and will not be repeated here.
[0123] Step S305: After the verification is passed, replace the existing rule of the first target in the approval rule base with the target modification rule.
[0124] The above solution, for rule adjustment instructions that modify rules, accurately modifies the existing first target rule corresponding to the rule adjustment instruction based on the modification information carried by the rule adjustment instruction to obtain the target modification rule; then, the above target modification rule is checked for duplication with other existing rules in the approval rule base. Only after the check passes will the existing first target rule in the approval rule base be replaced with the target modification rule, thereby reducing the occurrence of rule duplication.
[0125] In some optional implementations, the modification information carried by the rule adjustment instruction is the modification information of the authorized object for the preset item of the authorized object, and the rule adjustment instruction corresponds to multiple existing rules of the first target;
[0126] Correspondingly, step S303 above can be implemented in, but is not limited to, the following ways:
[0127] Based on the authorized object modification information, the existing information of the authorized object preset items in the existing rules of each first target is modified to obtain multiple target modification rules.
[0128] For example, due to personnel changes in the financial market department, there may be a large number of approval rules that require modification of the preset items for authorized objects. For instance, it may be necessary to refer to the approval rules for which employee B has the authority, and add the identifier of a new employee A who is in the same department and at the same job level as employee B to the preset items for authorized objects in these approval rules, that is, to also add the authorization authority of the above approval rules to the new employee A;
[0129] By using the identifier of employee B as the preset item for authorized objects in the rule query interface, the system can query the approval rules for which employee B has the authority. Based on the existing information of the preset items for authorized objects (including the identifier of employee B, and may also include the identifiers of other employees), the system can add the identifier of employee A.
[0130] Of course, if you only need to modify the approval rules for employee B who has authorized permissions, you can further select other query conditions, which will not be elaborated here.
[0131] It is understandable that when there are multiple target modification rules, it is necessary to perform duplicate checks on each target modification rule; when replacing, the existing rules of each first target in the approval rule base are replaced with the corresponding target modification rules.
[0132] As mentioned above, the adjustment types include adding rules, modifying rules, and deleting rules.
[0133] In response to rule deletion instructions that modify rules, this application provides a fourth method for adjusting approval rules, applicable to electronic devices, such as... Figure 4 As shown, it includes the following steps:
[0134] Step S401: In response to a rule adjustment instruction triggered by a business object, determine the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction.
[0135] For example, if the adjustment type is to delete a rule, the adjustment content of the rule adjustment instruction includes the existing rule of the second target corresponding to the rule adjustment instruction (the rule that needs to be deleted).
[0136] Step S402: Notify the review information through a preset notification method.
[0137] The review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content.
[0138] The specific implementation of step S402 can be found in the above embodiments, and will not be repeated here.
[0139] Step S403: Delete the existing rule for the second target corresponding to the rule adjustment instruction in the approval rule base.
[0140] During implementation, there may be approval rules that are no longer valid or are incorrect, and these approval rules need to be deleted.
[0141] Based on this, upon receiving a rule adjustment instruction triggered by a business object for deleting a rule, the relevant review information of the rule adjustment instruction is reviewed. After the review is approved, the existing rule of the second target corresponding to the rule adjustment instruction in the approval rule library is deleted.
[0142] This application provides a fifth method for adjusting approval rules, applied to electronic devices, such as... Figure 5 As shown, it includes the following steps:
[0143] Step S501: In response to a rule adjustment instruction triggered by a business object, determine the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction.
[0144] Step S502: Notify the review information through a preset notification method.
[0145] The review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content.
[0146] Step S503: After receiving the confirmation instruction for the audit information, adjust the rules in the approval rule base based on the adjustment type.
[0147] The specific implementation of steps S501 to S503 can be referred to the above embodiments, and will not be repeated here.
[0148] Step S504: Generate an operation record for the rule adjustment instruction.
[0149] The operation record includes part or all of the adjustment type, the identification information of the rule operation object, the adjustment content, and the identifier of the rule corresponding to the rule adjustment instruction.
[0150] For example, in order to facilitate the management of approval rules, this embodiment generates corresponding operation records for all rule adjustment instructions. These records include information such as the adjustment type, the identifier of the rule operation object, the adjustment content, and the identifier of the rule corresponding to the rule adjustment instruction. This allows relevant personnel to review the adjustment status of the approval rules and promptly audit and verify any problems that exist during the adjustment process.
[0151] Based on the same inventive concept, this application provides an approval rule adjustment device, see reference. Figure 6 As shown, the approval rule adjustment device 600 includes:
[0152] The information determination module 601 is used to determine the adjustment type and adjustment content of the rule adjustment instruction in response to the rule adjustment instruction triggered by the business object.
[0153] The review notification module 602 is used to notify review information through a preset notification method; wherein, the review information includes the adjustment type, the identifier of the business object, and part or all of the adjustment content;
[0154] The rule adjustment module 603 is used to adjust the rules of the approval rule base based on the adjustment type after receiving the confirmation instruction for the review information.
[0155] In some optional implementations, the adjustment type includes adding a rule, modifying a rule, and deleting a rule;
[0156] Wherein, if the adjustment type is a new rule, the adjustment content includes the new rule corresponding to the rule adjustment instruction;
[0157] If the adjustment type is a rule modification, then the adjustment content includes the modification information carried by the rule adjustment instruction and the existing first target rule corresponding to the rule adjustment instruction;
[0158] If the adjustment type is a deletion rule, then the adjustment content includes the existing rule of the second target corresponding to the rule adjustment instruction.
[0159] In some optional implementations, the rule adjustment module 603 is specifically used for:
[0160] If the adjustment type is a new rule, then the new rule corresponding to the rule adjustment instruction will be checked for duplicates against the existing rules in the approval rule base.
[0161] After the verification is successful, the new rule will be added to the approval rule base.
[0162] In some optional implementations, the new rule corresponding to the rule adjustment instruction is generated in the following manner:
[0163] Based on the target information corresponding to each preset item carried by the rule adjustment instruction, a new rule corresponding to the rule adjustment instruction is generated.
[0164] In some optional implementations, the rule adjustment module 603 is specifically used for:
[0165] If the adjustment type is a rule modification, then based on the modification information carried by the rule adjustment instruction, the existing first target rule corresponding to the rule adjustment instruction is modified to obtain the target modification rule;
[0166] Perform a duplicate check on the target modification rule and other existing rules in the approval rule base;
[0167] After the verification is passed, the existing rule for the first target in the approval rule base is replaced with the target modification rule.
[0168] In some optional implementations, if the modification information carried by the rule adjustment instruction is modification information of the authorization object for a preset item of the authorization object, and the rule adjustment instruction corresponds to multiple existing rules of the first target; then the rule adjustment module 603 is specifically used for:
[0169] Based on the authorized object modification information, the existing information of the authorized object preset items in the existing rules of each first target is modified to obtain multiple target modification rules.
[0170] In some optional implementations, the rule adjustment module 603 is specifically used for:
[0171] If the adjustment type is a deletion rule, then the existing rule for the second target corresponding to the rule adjustment instruction in the approval rule base will be deleted.
[0172] In some optional implementations, a record generation module 604 is also included, for:
[0173] After the rule adjustment module adjusts the approval rule base, it generates an operation record for the rule adjustment instruction; wherein, the operation record includes part or all of the adjustment type, the identification information of the rule operation object, the adjustment content, and the identifier of the rule corresponding to the rule adjustment instruction.
[0174] Since this device is the same as the device in the method of this application embodiment, and the principle of the device in solving the problem is similar to that of the method, the implementation of the device can be referred to the implementation of the method, and the repeated parts will not be described again.
[0175] Based on the same technical concept, this application also provides an electronic device 700, such as... Figure 7 As shown, it includes at least one processor 701 and a memory 702 connected to at least one processor. In this embodiment, the specific connection medium between the processor 701 and the memory 702 is not limited. Figure 7 Taking the connection between the processor 701 and the memory 702 via a bus 703 as an example, the bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0176] The processor 701 is the control center of the electronic device, capable of connecting various parts of the device via various interfaces and lines. It performs data processing by running or executing instructions stored in the memory 702 and retrieving data stored in the memory 702. Optionally, the processor 701 may include one or more processing units. The processor 701 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and applications, while the modem processor primarily handles issuing instructions. It is understood that the modem processor may not be integrated into the processor 701. In some embodiments, the processor 701 and the memory 702 may be implemented on the same chip; in other embodiments, they may be implemented on separate chips.
[0177] Processor 701 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the method adjusted in accordance with the approval rules can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0178] Memory 702, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 702 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 702 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 702 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0179] In this embodiment, the memory 702 stores a computer program, which, when executed by the processor 701, causes the processor 701 to perform the following:
[0180] In response to a rule adjustment instruction triggered by a business object, determine the adjustment type corresponding to the rule adjustment instruction and the adjustment content of the rule adjustment instruction;
[0181] The review information will be notified via a preset notification method; wherein, the review information includes the adjustment type, the identifier of the business object, and some or all of the adjustment content;
[0182] Upon receiving confirmation instructions for the audit information, the approval rule base is adjusted based on the adjustment type.
[0183] In some optional implementations, the adjustment type includes adding a rule, modifying a rule, and deleting a rule;
[0184] Wherein, if the adjustment type is a new rule, the adjustment content includes the new rule corresponding to the rule adjustment instruction;
[0185] If the adjustment type is a rule modification, then the adjustment content includes the modification information carried by the rule adjustment instruction and the existing first target rule corresponding to the rule adjustment instruction;
[0186] If the adjustment type is a deletion rule, then the adjustment content includes the existing rule of the second target corresponding to the rule adjustment instruction.
[0187] In some alternative implementations, processor 701 specifically performs:
[0188] If the adjustment type is a new rule, then the new rule corresponding to the rule adjustment instruction will be checked for duplicates against the existing rules in the approval rule base.
[0189] After the verification is successful, the new rule will be added to the approval rule base.
[0190] In some optional implementations, the new rule corresponding to the rule adjustment instruction is generated in the following manner:
[0191] Based on the target information corresponding to each preset item carried by the rule adjustment instruction, a new rule corresponding to the rule adjustment instruction is generated.
[0192] In some alternative implementations, processor 701 specifically performs:
[0193] If the adjustment type is a rule modification, then based on the modification information carried by the rule adjustment instruction, the existing first target rule corresponding to the rule adjustment instruction is modified to obtain the target modification rule;
[0194] Perform a duplicate check on the target modification rule and other existing rules in the approval rule base;
[0195] After the verification is passed, the existing rule for the first target in the approval rule base is replaced with the target modification rule.
[0196] In some optional implementations, if the modification information carried by the rule adjustment instruction is modification information for the authorized object of the preset item of the authorized object, and the rule adjustment instruction corresponds to multiple existing rules of the first target, then the processor 701 specifically executes:
[0197] Based on the authorized object modification information, the existing information of the authorized object preset items in the existing rules of each first target is modified to obtain multiple target modification rules.
[0198] In some alternative implementations, processor 701 specifically performs:
[0199] If the adjustment type is a deletion rule, then the existing rule for the second target corresponding to the rule adjustment instruction in the approval rule base will be deleted.
[0200] In some alternative implementations, after adjusting the rules in the approval rule base, processor 701 also performs:
[0201] Generate an operation record for the rule adjustment instruction; wherein the operation record includes part or all of the adjustment type, the identification information of the rule operation object, the adjustment content, and the identifier of the rule corresponding to the rule adjustment instruction.
[0202] Since the electronic device is the same as the electronic device in the method of this application embodiment, and the principle of the electronic device in solving the problem is similar to that of the method, the implementation of the electronic device can refer to the implementation of the method, and the repeated parts will not be described again.
[0203] Based on the same technical concept, embodiments of this application also provide a computer-readable storage medium storing a computer program executable by a computer, which, when run on the computer, causes the computer to perform the steps of the above-described approval rule adjustment method.
[0204] In some alternative implementations, various aspects of the approval rule adjustment method provided in this application can also be implemented as a program product containing computer-executable instructions that, when the program product is run on a computer device, cause the computer device to perform the steps of the approval rule adjustment method according to the various exemplary embodiments of this application described above.
[0205] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0206] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of 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, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0207] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0208] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0209] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0210] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. An approval rule adjustment method, characterized by, The method comprises: In response to a rule adjustment instruction triggered by a business object, determining an adjustment type corresponding to the rule adjustment instruction and adjustment content of the rule adjustment instruction; the adjustment content is different for different adjustment types; The audit information is notified through a preset notification mode; the audit information comprises part or all of the adjustment type, the identifier of the business object, and the adjustment content; After receiving a confirmation instruction for the audit information, adjusting the approval rule library based on the adjustment type; each audit rule comprises information corresponding to a plurality of preset items; the plurality of preset items comprise part or all of an approval form type preset item, a product preset item, an authorization condition preset item, an authorization range preset item, and an authorization object preset item; If the adjustment type is modifying a rule, the adjustment content comprises modification information carried by the rule adjustment instruction and a first target existing rule corresponding to the rule adjustment instruction; Adjusting the approval rule library based on the adjustment type comprises: If the adjustment type is modifying a rule, modifying part of the information of the preset items in the first target existing rule corresponding to the rule adjustment instruction based on the modification information carried by the rule adjustment instruction to obtain a target modification rule; Performing a repeatability check on the target modification rule and other existing rules in the approval rule library; if the information corresponding to each preset item of the target modification rule and the other existing rules is the same, the check fails; otherwise, the check passes; After the check passes, replacing the first target existing rule in the approval rule library with the target modification rule; If the modification information carried by the rule adjustment instruction is authorization object modification information for the authorization object preset item, and the rule adjustment instruction corresponds to a plurality of first target existing rules, modifying the first target existing rules corresponding to the rule adjustment instruction based on the modification information carried by the rule adjustment instruction to obtain a target modification rule comprises: Based on the authorization object modification information, modifying the existing information of the authorization object preset item in each first target existing rule to obtain a plurality of target modification rules.
2. The method of claim 1, wherein, The adjustment type comprises adding a rule, modifying a rule, and deleting a rule; If the adjustment type is adding a rule, the adjustment content comprises a new rule corresponding to the rule adjustment instruction; If the adjustment type is deleting a rule, the adjustment content comprises a second target existing rule corresponding to the rule adjustment instruction.
3. The method of claim 1, wherein, Adjusting the approval rule library based on the adjustment type comprises: If the adjustment type is adding a rule, performing a repeatability check on the new rule corresponding to the rule adjustment instruction and the existing rules in the approval rule library; After the check passes, adding the new rule to the approval rule library.
4. The method of claim 3, wherein, The new rule corresponding to the rule adjustment instruction is generated in the following manner: Based on the target information corresponding to each preset item carried by the rule adjustment instruction, generating the new rule corresponding to the rule adjustment instruction.
5. The method of claim 1, wherein, Adjusting the approval rule library based on the adjustment type comprises: If the adjustment type is deleting a rule, a second target existing rule corresponding to the rule adjustment instruction in the approval rule library is deleted.
6. The method according to any one of claims 1 to 5, wherein After the rule adjustment on the approval rule library, the method further includes: generating an operation record for the rule adjustment instruction, wherein the operation record includes part or all of the adjustment type, the identification information of the rule operation object, the adjustment content, and the identification of the rule corresponding to the rule adjustment instruction.
7. An approval rule adjustment apparatus, characterized by comprising: The device includes: An information determination module is configured to determine an adjustment type corresponding to a rule adjustment instruction triggered by a business object and an adjustment content of the rule adjustment instruction in response to the rule adjustment instruction; the adjustment content is different for different adjustment types; An audit notification module is configured to notify audit information through a preset notification mode; the audit information includes part or all of the adjustment type, the identification of the business object, and the adjustment content; A rule adjustment module is configured to perform rule adjustment on an approval rule library based on the adjustment type after receiving a confirmation instruction for the audit information; each audit rule includes information corresponding to a plurality of preset items; the plurality of preset items include part or all of an approval form type preset item, a product preset item, an authorization condition preset item, an authorization range preset item, and an authorization object preset item; If the adjustment type is modifying a rule, the adjustment content includes modification information carried by the rule adjustment instruction and a first target existing rule corresponding to the rule adjustment instruction; The rule adjustment module is specifically configured to: If the adjustment type is modifying a rule, modify information of part of the preset items in the first target existing rule corresponding to the rule adjustment instruction based on the modification information carried by the rule adjustment instruction to obtain a target modification rule; perform a repeatability check on the target modification rule and other existing rules in the approval rule library; if the target modification rule and the other existing rules are the same in the information corresponding to each preset item, the check fails; otherwise, the check passes; After the check passes, replace the first target existing rule in the approval rule library with the target modification rule; If the modification information carried by the rule adjustment instruction is authorization object modification information for the authorization object preset item, and the rule adjustment instruction corresponds to a plurality of first target existing rules, the rule adjustment module is specifically configured to: modify the existing information of the authorization object preset item in each first target existing rule based on the authorization object modification information to obtain a plurality of target modification rules.
8. An electronic device, comprising: The computer program is stored in the memory and can be executed by the processor, so that the processor executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, The computer program is stored in the memory and can be executed by the processor, so that the processor executes the method according to any one of claims 1 to 6.
10. A computer program product, characterised in that, The computer executable instructions are used to make the computer execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Personalized prescription-checking rule base construction method and device, electronic device and storage medium
CN109360626A
Business process control method and device, computer equipment and readable storage medium
CN115330171A