Business processing method, electronic device, and computer program product

CN122617318APending Publication Date: 2026-08-21KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610746840.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-27
Publication Date
2026-08-21

AI Technical Summary

Technical Problem

但是,人工配置if-else逻辑存在可扩展性差等问题

Benefits of technology

[0018]According to the technical solution of this embodiment, the encoding of the corresponding business processing object attribute information is generated based on the priority ranking of the attribute value of the business processing object among all the attribute values ​​of the same type of business processing object attribute information. This allows non-numerical attribute values ​​(such as "department" and "job level") to be uniformly converted into codes that can be concatenated, solving the problem of difficulty in quantifying heterogeneous attribute values ​​and providing a feasible path for the priority fusion of different attribute values. In addition, it ensures that the weight value of the business processing rule can not only represent the priority of different types of business processing object attribute information, but also represent the priority of different business processing object attribute values ​​within the same type of business processing object attribute information. This allows for more granular differentiation of different adapted business processing rules, improving the accuracy of business processing and avoiding the inability to accurately select the most matching adapted business processing rule due to multiple adapted business processing rules containing the same type of business processing object attribute information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122617318A_ABST
    Figure CN122617318A_ABST
Patent Text Reader

Abstract

The present disclosure provides a business processing method, an electronic device and a computer program product. The business processing method of the present disclosure comprises: comparing a plurality of business processing object attribute information in a business processing rule with at least one attribute information of a to-be-processed object, determining at least one business processing rule to which the to-be-processed object is adapted; obtaining a weight value of the adapted business processing rule, the weight value being obtained by splicing the codes of each business processing object attribute information in the adapted business processing rule in a sequence from high to low according to attribute priority; and performing corresponding business processing on the to-be-processed object based on the adapted business processing rule with the largest weight value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to a business processing method, an electronic device, a readable storage medium, and a computer program product. Background Technology

[0002] In the context of enterprise digital operations, business processing systems need to automatically perform differentiated processing on different objects to be processed (such as employees, customers, orders, permissions, etc.) according to diverse business processing rules.

[0003] In related technologies, if-else logic is manually configured to select target business processing rules from a business processing rule base, and then the corresponding business processing is executed on the object to be processed based on the target business processing rules. However, manually configuring if-else logic has problems such as poor scalability. Summary of the Invention

[0004] This disclosure provides a business processing method, an electronic device, a readable storage medium, and a computer program product.

[0005] According to one aspect of this disclosure, a business processing method is provided, comprising: comparing multiple business processing object attribute information in a business processing rule with at least one attribute information of an object to be processed to determine at least one business processing rule adapted to the object to be processed; obtaining a weight value of the adapted business processing rule, the weight value being obtained by concatenating the codes of each business processing object attribute information in the adapted business processing rule in descending order of attribute priority; and performing corresponding business processing on the object to be processed based on the adapted business processing rule with the largest weight value.

[0006] According to one technical solution, the encoded attribute information of each business processing object in the business processing rule to be processed is concatenated according to the attribute priority from high to low to obtain the weight value of the adapted business processing rule. Then, the adapted business processing rule with the highest weight value is selected for business processing, that is, the adapted business processing rule with higher attribute priority is selected first, thereby improving the accuracy of business processing. Since attribute priority is directly reflected in the weight value of the business processing rule, if the attribute priority is adjusted, the weight value can be recalculated without rewriting and testing a large amount of logic branch code. This results in higher flexibility, lower maintenance costs, and stronger scalability.

[0007] According to at least one embodiment of the present disclosure, the business processing method for determining at least one business processing rule adapted to the object to be processed includes: for each of the plurality of business processing rules, if a first number of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, then the business processing rule is determined as the business processing rule adapted to the object to be processed.

[0008] According to the technical solution of this embodiment, the business processing rules that the object to be processed is adapted to are determined based on the number of corresponding attribute information of the object to be processed contained in the attribute information of the business processing object in the business processing rules. This clarifies the matching criteria of the business processing rules, makes the matching logic clear, and provides a basis for the selection of business processing rules, thereby improving the accuracy and interpretability of the matching results.

[0009] According to at least one embodiment of the business processing method of this disclosure, the method further includes: in response to the absence of a first number of business processing object attribute information that can respectively contain the corresponding attribute information of the object to be processed, obtaining a second number, the second number being less than the first number; and for each of the plurality of business processing rules, if the second number of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, determining the business processing rule as the business processing rule adapted to the object to be processed.

[0010] According to the technical solution of this embodiment, when a suitable business processing rule cannot be selected based on the first quantity, the quantity threshold is reduced, and a suitable business processing rule is determined based on the second quantity, thereby providing a degradation processing mechanism. This ensures that a suboptimal suitable business processing rule can still be selected even when the attribute information is incomplete or the business processing rule coverage is incomplete, avoiding business processing interruption due to overly strict matching conditions, and enhancing the fault tolerance and business continuity of the business processing system.

[0011] According to at least one embodiment of the business processing method of this disclosure, the method further includes: in response to the absence of a second number of business processing object attribute information that can respectively contain the corresponding attribute information of the object to be processed, issuing an alarm to the target object.

[0012] According to the technical solution of this embodiment, if it is still impossible to determine the appropriate business processing rules after reducing the quantity threshold, an alarm is promptly sent to the target object, so that the target object can understand the current business processing status, facilitate the quick supplementation or correction of business processing rules, prevent business processing from stagnation or errors due to missing rules, and improve the observability and maintainability of the business processing system.

[0013] According to at least one embodiment of the present disclosure, a business processing method for determining at least one business processing rule adapted to the object to be processed includes: for each of the plurality of business processing rules, calculating the matching degree between various business processing object attribute information in the business processing rule and the corresponding attribute information of the object to be processed, and determining the matching degree and value of the business processing rule; and taking the business processing rule with a matching degree and value greater than or equal to a matching degree and value threshold as the business processing rule adapted to the object to be processed.

[0014] According to the technical solution of this embodiment, by calculating the matching degree of each attribute information and summing them, the matching degree and value are used to determine the appropriate business processing rules based on whether they exceed the matching degree and value threshold. This breaks through the hard limitation of "full inclusion" or "partial inclusion", supports more granular similarity evaluation, and enables rule adaptation to adapt to real-world scenarios where attribute values ​​are similar or partially deviated, thereby improving the flexibility of business processing.

[0015] According to at least one embodiment of the business processing method of this disclosure, before determining at least one business processing rule adapted to the object to be processed, the method further includes: obtaining multiple business processing object attribute information and attribute priorities of the business processing rule; generating encoding of the business processing object attribute information based on encoding rules; and concatenating the encodings of multiple business processing object attribute information in the business processing rule together based on the order of the attribute priorities from high to low to obtain the weight value of the business processing rule.

[0016] According to the technical solution of this embodiment, before matching business processing rules, the encoding of attribute information of each business processing object is pre-concatenated based on attribute priority to generate weight values, thereby decoupling weight value calculation from business processing rule matching, avoiding repeated calculations during each matching, improving business processing efficiency, and ensuring that the weight generation logic of all business processing rules is consistent, thus improving the efficiency and consistency of business processing rule sorting.

[0017] According to at least one embodiment of the business processing method of this disclosure, generating the encoding of the business processing object attribute information based on encoding rules includes: obtaining all business processing object attribute values ​​and the priority of the business processing object attribute values ​​in the category to which the business processing object attribute information belongs; sorting all the business processing object attribute values ​​according to the order of the priority of the business processing object attribute values ​​from low to high to determine the sorting position of the business processing object attribute information; and converting the sorting position into a value in a target positional numeral system to obtain the encoding of the business processing object attribute information.

[0018] According to the technical solution of this embodiment, the encoding of the corresponding business processing object attribute information is generated based on the priority ranking of the attribute value of the business processing object among all the attribute values ​​of the same type of business processing object attribute information. This allows non-numerical attribute values ​​(such as "department" and "job level") to be uniformly converted into codes that can be concatenated, solving the problem of difficulty in quantifying heterogeneous attribute values ​​and providing a feasible path for the priority fusion of different attribute values. In addition, it ensures that the weight value of the business processing rule can not only represent the priority of different types of business processing object attribute information, but also represent the priority of different business processing object attribute values ​​within the same type of business processing object attribute information. This allows for more granular differentiation of different adapted business processing rules, improving the accuracy of business processing and avoiding the inability to accurately select the most matching adapted business processing rule due to multiple adapted business processing rules containing the same type of business processing object attribute information.

[0019] According to at least one embodiment of the business processing method of this disclosure, after obtaining the weight value of the business processing rule, the method further includes: in response to detecting an adjustment operation of the attribute priority of the business processing rule, concatenating the encodings of multiple business processing object attribute information in the business processing rule together based on the order of the adjusted attribute priority from high to low, to obtain a new weight value of the business processing rule.

[0020] According to the technical solution of this embodiment, after the attribute priority is adjusted, new weight values ​​can be automatically reassembled and generated, reducing manual intervention and maintenance costs.

[0021] According to at least one embodiment of the business processing method of this disclosure, the object to be processed is an employee, the adapted business processing rule is an attendance rule, and the attendance rule includes the number of vacation days that the employee can take; based on the adapted business processing rule with the largest weight value, the corresponding business processing is performed on the object to be processed, including: obtaining the number of vacation days that the employee has already taken; subtracting the number of vacation days that have already taken from the number of vacation days that can be taken to obtain the remaining vacation days that the employee can take; and based on the remaining vacation days that can be taken, determining whether the employee meets the leave conditions, and performing corresponding attendance processing operations according to the determination result, wherein the attendance processing operations include generating an attendance notification and prompting the remaining vacation days, or one or more of these operations.

[0022] According to the technical solution of this embodiment, employee attendance can be processed based on the adapted business processing rules and the number of days the employee has taken leave, making employee leave management more standardized and automated.

[0023] According to another aspect of this disclosure, an electronic device is provided, comprising: a memory storing a computer program; and a processor executing the computer program stored in the memory, such that the processor performs a business processing method according to any embodiment of this disclosure.

[0024] According to another aspect of this disclosure, a readable storage medium is provided, wherein a computer program is stored therein, which, when executed by a processor, is used to implement a business processing method according to any embodiment of this disclosure.

[0025] According to another aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements a business processing method according to any embodiment of this disclosure. Attached Figure Description

[0026] The accompanying drawings illustrate exemplary embodiments of the present disclosure and, together with the description thereof, serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0027] Figure 1 This is a schematic flowchart of a business processing method according to one embodiment of the present disclosure.

[0028] Figure 2 This is a schematic diagram illustrating the process of determining the appropriate business processing rules according to one embodiment of this disclosure.

[0029] Figure 3 This is a schematic diagram illustrating the process of determining the appropriate business processing rules according to another embodiment of this disclosure.

[0030] Figure 4 This is a schematic diagram illustrating the execution of business processes according to one embodiment of the present disclosure.

[0031] Figure 5 This is a schematic diagram illustrating the process of generating weight values ​​according to one embodiment of the present disclosure.

[0032] Figure 6 This is a visual example diagram of weight values ​​according to one embodiment of the present disclosure.

[0033] Figure 7 This is a schematic diagram illustrating the process of generating codes according to one embodiment of the present disclosure.

[0034] Figure 8 This is a schematic flowchart of a business processing method according to another embodiment of the present disclosure.

[0035] Figure 9This is a schematic structural block diagram of a business processing apparatus according to one embodiment of the present disclosure.

[0036] Figure 10 This is a schematic block diagram of an electronic device according to one embodiment of the present disclosure. Detailed Implementation

[0037] The present disclosure will now be described in further detail with reference to the accompanying drawings and examples. It should be understood that the specific examples described herein are for illustrative purposes only and are not intended to limit the scope of the disclosure. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present disclosure are shown in the accompanying drawings.

[0038] It should be noted that, where there is no conflict, the embodiments and features described in this disclosure can be combined with each other. The technical solutions of this disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0039] When business processing rules are matched by manually configuring if-else logic (i.e., hard-coding), the attribute priority is fixed in the logic branch, resulting in high coupling between rules. If you want to adjust the attribute priority, you need to rewrite and test the code, which leads to low flexibility, high maintenance costs, and poor scalability of the business processing system.

[0040] To address this, this disclosure proposes the following technical solution: In this solution, the encoding of attribute information for each business processing object in the business processing rule is concatenated according to attribute priority from high to low to obtain the weight value of the business processing rule. Then, the business processing rule with the highest weight value that matches the attribute information of the object to be processed is selected for business processing. Since attribute priority is directly reflected in the weight value of the business processing rule, if the attribute priority is adjusted, the weight value can be recalculated without rewriting and testing a large amount of logic branch code. This results in higher flexibility, lower maintenance costs, and stronger scalability.

[0041] The business processing method disclosed herein can be applied to scenarios such as attendance management, access control, policy routing, and resource scheduling.

[0042] In the application scenario of attendance management, the objects to be processed may include employees, and the types of attribute information may include multiple ones such as attendance group, department, job title, and workplace. The business processing rules are attendance rules, which can be used to calculate whether an employee is late for the day, determine whether an employee needs to clock in, and approve an employee's leave application, etc.

[0043] In access control application scenarios, the objects to be processed may include users, and the types of attribute information may include multiple categories such as department, job level, position, and region. The business processing rules are access control rules, which can be used to allow or deny users access to certain system functions or data resources.

[0044] In the application scenario of policy routing, the objects to be processed may include customer orders or service requests. The types of attribute information may include multiple items such as the customer's industry, customer level, and service deployment region. The business processing rules are policy routing rules, which can be used to determine preferential policies, calculate the final price, or generate bills, etc.

[0045] In resource scheduling application scenarios, the objects to be processed may include tasks or electronic devices. The types of attribute information may include the business line to which the task belongs, the task priority, and multiple target deployment areas. The business processing rules are resource scheduling rules, which can be used to allocate computing resources, start or stop task execution, etc.

[0046] In this disclosure, electronic devices include, but are not limited to, mobile phones, tablets, laptops, personal computers, wearable devices, ATMs, etc.

[0047] Figure 1 A schematic diagram of the overall flow of a business processing method according to one embodiment of this disclosure is shown. Figure 1 The method M100 shown includes steps S110 to S130. This method can be executed by electronic devices such as mobile phones and tablets.

[0048] In step S110, the various business processing object attribute information in the business processing rules are compared with at least one attribute information of the object to be processed to determine at least one business processing rule that the object to be processed is compatible with.

[0049] Business processing rules can be rules that indicate business processing steps (or actions). A business processing rule can include business processing object attribute information and business processing steps (or actions). A business processing rule can include various types of business processing object attribute information. These various business processing object attribute information are not entirely the same in different business processing rules.

[0050] In this disclosure, business processing object attribute information refers to the attribute information of a business processing object. Furthermore, multiple business processing object attribute information refers to multiple attribute information specific to a business processing object. Attribute information can be the types and values ​​of attributes pre-defined in business processing rules to describe the applicable conditions for business processing steps or actions.

[0051] Adapted business processing rules are those that match the attribute information of the business processing object with the attribute information of the object to be processed, and can be used to guide the business processing steps or actions of the object to be processed. Matching the attribute information of the business processing object with the attribute information of the object to be processed can be understood as a complete match, or the number of complete matches being greater than or equal to a quantity threshold, or the matching degree being greater than or equal to a matching degree threshold.

[0052] For example, in step S110, all business processing rules that the object to be processed is adapted to are determined.

[0053] In step S120, the weight value of the adapted business processing rule is obtained. The weight value is obtained by concatenating the encoding of the attribute information of each business processing object in the adapted business processing rule in descending order of attribute priority.

[0054] Weight values ​​can be pre-calculated and stored in storage media, allowing them to be directly retrieved from the storage media when needed to adapt to business processing rules, thereby improving business processing efficiency. Alternatively, weight values ​​can be obtained on-site based on encoding and attribute priority after the adaptable business processing rules are determined, thus improving the real-time performance and accuracy of the weight values.

[0055] Attribute priority refers to the priority among attribute information of different types of business processing objects in a business processing rule. Attribute priority characterizes the importance of a particular type of business processing object attribute information or the level of attention paid to that attribute information. Different types of business processing object attribute information may have different priorities.

[0056] The encoding of business processing object attribute information is the encoding corresponding to the attribute values ​​within the business processing object attribute information. The encoding may include letters and / or numbers; for example, the encoding may consist of multiple numbers. The encodings corresponding to different attribute values ​​within the same type of business processing object attribute information may be completely different or partially the same. In one example, the encodings corresponding to different attribute values ​​within the same type of business processing object attribute information are arranged in ascending order of attribute value priority, thereby ensuring that the business processing rules corresponding to higher priority attribute values ​​are selected first.

[0057] In step S130, based on the business processing rule with the largest weight value, the corresponding business processing is performed on the object to be processed.

[0058] Different adapted business processing rules can have different weight values, thus ensuring that there is only one adapted business processing rule with the highest weight value, guaranteeing the accurate execution of business processing.

[0059] The business processing method described above concatenates the encoded attribute information of each business processing object in the business processing rules adapted to the object to be processed, according to the attribute priority from high to low, to obtain the weight value of the adapted business processing rule. Then, the adapted business processing rule with the highest weight value is selected for business processing, that is, the adapted business processing rule with higher attribute priority is selected first, thereby improving the accuracy of business processing. Since attribute priority is directly reflected in the weight value of the business processing rule, if the attribute priority is adjusted, the weight value can be recalculated without rewriting and testing a large amount of logic branch code. This results in higher flexibility, lower maintenance costs, and stronger scalability.

[0060] Regarding step S110, as one possible implementation, it may include: for each of the multiple business processing rules, if the first number of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, then the business processing rule is determined as the business processing rule adapted to the object to be processed.

[0061] The first quantity can be set according to requirements. In one example, the first quantity is the number of types of attribute information of the business processing object in the business processing rule.

[0062] In this disclosure, for the same type of attribute information, if the attribute value in the attribute information of the business processing object is the same as the attribute value in the attribute information of the object to be processed, or the attribute value in the attribute information of the object to be processed belongs to the attribute value in the attribute information of the business processing object (for example, the attribute value in the attribute information is a child node, sub-level, or jurisdiction of the attribute value in the attribute information of the business processing object), or the attribute value in the attribute information of the business processing object is empty, a wildcard, or an unlimited value, then it can be determined that the attribute information of the business processing object contains the attribute information of the object to be processed. A wildcard is a special symbol used for fuzzy matching in the computer field, and can be an asterisk or a question mark.

[0063] In one example, the location attribute of the business processing rule is Beijing, and the location attribute of the object to be processed is Chaoyang District, Beijing. Since Chaoyang District belongs to Beijing, it can be determined that the location of the business processing rule includes the location of the object to be processed.

[0064] The business processing method described above determines the business processing rules that the object to be processed is adapted to based on the number of corresponding attribute information of the object to be processed contained in the business processing object attribute information in the business processing rules. This clarifies the matching criteria of the business processing rules, making the matching logic clear and the selection of business processing rules based on evidence, thereby improving the accuracy and interpretability of the matching results.

[0065] In some embodiments of this disclosure, the business processing method may further include, for example: Figure 2 Steps S140 and S150 are shown.

[0066] In step S140, in response to the fact that the first number of business processing object attribute information that does not have a business processing rule can respectively contain the corresponding attribute information of the object to be processed, a second number is obtained, and the second number is less than the first number.

[0067] The second quantity can be set according to requirements and is not limited here. Both the first and second quantities are positive integers.

[0068] In step S150, for each of the multiple business processing rules, if the second number of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, then the business processing rule is determined as the business processing rule adapted to the object to be processed.

[0069] The business processing method described above reduces the quantity threshold when a suitable business processing rule cannot be selected based on the first quantity, and determines a suitable business processing rule based on the second quantity. This provides a degradation processing mechanism, ensuring that a suboptimal suitable business processing rule can still be selected even when the attribute information is incomplete or the business processing rule coverage is incomplete. This avoids business processing interruption due to overly strict matching conditions, and enhances the fault tolerance and business continuity of the business processing system.

[0070] In some embodiments of this disclosure, the business processing method may further include: issuing an alarm to the target object in response to the absence of a second number of business processing object attribute information that can respectively contain the corresponding attribute information of the object to be processed.

[0071] The target object and alarm content can be configured separately according to requirements. For example, the target object can be the system administrator.

[0072] The business processing method described above, when it is still impossible to determine the appropriate business processing rules after reducing the quantity threshold, promptly alerts the target object, thereby facilitating the target object's understanding of the current business processing status, enabling quick supplementation or correction of business processing rules, preventing business processing from stalling or malfunctioning due to missing rules, and improving the observability and maintainability of the business processing system.

[0073] Regarding step S110, as one possible implementation, it may include, for example... Figure 3 Steps S111 and S112 are shown.

[0074] In step S111, for each of the multiple business processing rules, the matching degree between the attribute information of various business processing objects in the business processing rule and the corresponding attribute information of the object to be processed is calculated, and the matching degree and value of the business processing rule are determined.

[0075] For example, the matching degree can characterize the degree of semantic or value matching between the attribute values ​​of the business processing object in the business processing rule and the corresponding attribute values ​​of the object to be processed.

[0076] In one example, if the attribute value is an enumeration type (such as "department"), the matching degree is 1 when the attribute value of the business processing object in the business processing rule is exactly the same as the attribute value of the object to be processed, otherwise it is 0; if the attribute value is a numerical range type (such as "work experience ≥ 3 years"), the matching degree is 1 when the attribute value of the object to be processed falls within the range, otherwise it is 0; if the attribute value supports fuzzy matching (such as geographical location, job level), the matching metric can be quantified into a real number between 0 and 1 according to the similarity function (such as edit distance, hierarchical distance).

[0077] The matching degree and value can be the sum of the matching degrees of various business processing object attribute information in the business processing rules with the corresponding attribute information of the object to be processed.

[0078] In step S112, business processing rules with matching degree and value greater than or equal to the matching degree and value threshold are used as business processing rules for the objects to be processed.

[0079] Matching degree and value threshold can be set according to requirements, and are not limited here.

[0080] For example, if there are no business processing rules where the matching degree and value are greater than or equal to the matching degree and value threshold, an alarm can be directly sent to the target object, thereby facilitating timely intervention by relevant personnel.

[0081] The business processing method described above calculates and sums the matching degree of each attribute information, and determines the appropriate business processing rule by whether the matching degree and value exceed the matching degree and value threshold. This breaks through the hard limitation of "full inclusion" or "partial inclusion", supports more granular similarity evaluation, and enables rule adaptation to adapt to real-world scenarios where attribute values ​​are similar or partially deviated, thereby improving the flexibility of business processing.

[0082] Regarding step S130, in some embodiments of this disclosure, the object to be processed is an employee, and the adapted business processing rule is an attendance rule, which includes the number of leave days an employee can take; accordingly, step S130 may include, for example... Figure 4 Steps S131 to S133 are shown.

[0083] In step S131, the number of days the employee has taken leave is obtained.

[0084] In step S132, the number of days of leave already taken is subtracted from the number of days of leave available to obtain the remaining number of days of leave available to the employee.

[0085] In step S133, based on the remaining number of vacation days, it is determined whether the employee meets the leave conditions, and the corresponding attendance processing operation is performed according to the determination result. The attendance processing operation may include generating an attendance notification and prompting the remaining number of vacation days, or one or more of these operations.

[0086] The business processing method described above can perform attendance processing operations on employees based on the adapted business processing rules and the number of days of leave already taken by the employees, making employee leave management more standardized and automated.

[0087] In some embodiments of this disclosure, prior to step S110, the service processing method may further include, for example: Figure 5 Steps S160 to S180 are shown.

[0088] In step S160, various business processing object attribute information and attribute priority of the business processing rules are obtained.

[0089] The business processing object attribute information and attribute priority of the business processing rules can be pre-configured according to requirements.

[0090] In step S170, the encoding of the business processing object attribute information is generated based on the encoding rules.

[0091] Encoding rules are rules that instruct the generation method of encoding attribute information of business processing objects. Encoding rules can be set according to requirements.

[0092] In step S180, based on the order of attribute priority from high to low, the encoding of various business processing object attribute information in the business processing rule is concatenated together to obtain the weight value of the business processing rule.

[0093] For example, the encoding of the attribute information of the business processing object with lower attribute priority is concatenated to the right of the encoding of the attribute information of the business processing object with higher attribute priority.

[0094] In one example, the business processing rules contain various business processing object attribute information, including attendance group information, organization information, sequence information, job level information, position information, and workplace information. If the code for attendance group information is 1, the code for organization information is 00010, the code for sequence information is 001, the code for job level information is 01, the code for position information is 1, and the code for workplace information is 01, and the attribute priority of attendance group information, organization information, sequence information, job level information, position information, and workplace information decreases in that order, then the weight value of the business processing rule is 10001000101101. Figure 6 As shown.

[0095] The business processing method described above pre-generates weight values ​​by concatenating the encoded attribute information of each business processing object based on attribute priority before matching business processing rules. This decouples weight value calculation from business processing rule matching, avoids repeated calculations during each matching, improves business processing efficiency, and ensures that the weight generation logic of all business processing rules is consistent, thereby improving the efficiency and consistency of business processing rule sorting.

[0096] Regarding step S170, in some embodiments of this disclosure, it may include, for example... Figure 7 Steps S171 to S173 are shown.

[0097] In step S171, all attribute values ​​of business processing objects and the priority of business processing object attribute values ​​in the category to which the business processing object attribute information belongs are obtained.

[0098] The attribute values ​​of all business processing objects in the category can be all attribute values ​​of the business processing object attribute information of this category in all business processing rules.

[0099] The priority of business processing object attribute values ​​can be set according to requirements. The priority of a business processing object attribute value indicates its importance or the level of attention given to that attribute value. Among all business processing object attribute values ​​of the same type, the priorities of all attribute values ​​can be completely different or partially the same. A business processing object attribute value is simply the attribute value of the business processing object.

[0100] In step S172, based on the priority of the attribute values ​​of the business processing objects from low to high, all the attribute values ​​of the business processing objects are sorted to determine the sorting position of the attribute information of the business processing objects.

[0101] For example, after sorting all the business processing object attribute values ​​of the same type of business processing object attribute information, the business processing object attribute value with the lowest priority may have the smallest sorting position, and the business processing object attribute value with the highest priority may have the largest sorting position.

[0102] The minimum sorting position can be set as needed; for example, it can be set to 0 or 1.

[0103] In step S173, the sorting position is converted into a value in the target positional numeral system to obtain the encoding of the business processing object attribute information.

[0104] The target number system can be a binary number system or a decimal number system.

[0105] For example, after converting the maximum sorting position to a value in the target positional numeral system, the number of digits in this value (or the number of digits in this value plus a preset number of digits) can be used as the target number of digits for encoding the attribute information of this type of business processing object. Then, for each value in the converted values ​​of all sorting positions of the attribute information of this type of business processing object, if the number of digits in the value is less than the target number of digits, then zeros are added to the left of the value to reach the target number of digits before it is used as the encoding of the corresponding business processing object attribute value; if the number of digits in the value is equal to the target number of digits, then the value is directly used as the encoding of the corresponding business processing object attribute value. This ensures that the encoding length of the attribute information of the same type of business processing object is consistent, thereby ensuring that the length of the weight value after encoding is consistent, avoiding the situation where inconsistent lengths lead to the weight value failing to reflect the true priority, and thus causing the selection of the wrong business processing rule for business processing.

[0106] The business processing method described above generates codes for corresponding business processing object attribute information based on the priority ranking of the attribute values ​​of the business processing object among all attribute values ​​of the same type of business processing object attribute information. This allows non-numerical attribute values ​​(such as "department" and "job level") to be uniformly converted into codes that can be concatenated, solving the problem of difficulty in quantifying heterogeneous attribute values ​​and providing a feasible path for the priority fusion of different attribute values. Furthermore, it ensures that the weight values ​​of business processing rules, while representing the priority of different types of business processing object attribute information, can also represent the priority of different business processing object attribute values ​​within the same type of business processing object attribute information. This allows for finer-grained differentiation of different adapted business processing rules, improving the accuracy of business processing and preventing the inability to accurately select the most suitable adapted business processing rule due to multiple adapted business processing rules containing the same type of business processing object attribute information.

[0107] In some embodiments of this disclosure, after step S180, the method may further include: in response to detecting an adjustment operation on the attribute priority of a business processing rule, concatenating the encodings of multiple business processing object attribute information in the business processing rule based on the order of the adjusted attribute priorities from high to low, to obtain a new weight value for the business processing rule.

[0108] For example, the adjustment operation may include deleting the priority of one or more business processing object attribute information, adding the priority of one or more business processing object attribute information, or changing the priority of one or more business processing object attribute information.

[0109] The business processing method described above can automatically reassemble and generate new weight values ​​after the attribute priority is adjusted, reducing manual intervention and lowering maintenance costs.

[0110] It should be noted that the specific values ​​mentioned above are only for illustrating the implementation of this disclosure in detail, and should not be construed as limiting the disclosure. In other examples, implementation methods, or embodiments, other values ​​may be selected based on this disclosure, and no specific limitations are made here.

[0111] Please combine Figure 8 In one example, the business processing method may include the following steps S201 to S206. The content related to steps S201 to S206 can be referred to the description of the above implementation method. For the sake of brevity, it will not be repeated here.

[0112] In step S201, the various business processing object attribute information and attribute priority of the business processing rules are obtained, and the attribute values ​​of all business processing objects and the priority of the attribute values ​​of the business processing objects in the category to which the attribute information of the business processing objects belong are obtained.

[0113] In step S202, based on the priority of the attribute values ​​of the business processing objects from low to high, the attribute values ​​of all business processing objects are sorted to determine the sorting position of the attribute information of the business processing objects.

[0114] In step S203, the sorting position is converted into a value in the target positional numeral system to obtain the encoding of the business processing object attribute information.

[0115] In step S204, based on the attribute priority from high to low, the encoding of various business processing object attribute information in the business processing rule is concatenated together to obtain the weight value of the business processing rule.

[0116] In step S205, the various business processing object attribute information in the business processing rules are compared with at least one attribute information of the object to be processed to determine all the business processing rules that the object to be processed is compatible with.

[0117] In step S206, based on the business processing rule with the largest weight value, the corresponding business processing is performed on the object to be processed.

[0118] Based on any of the above embodiments, this disclosure also provides a business processing apparatus.

[0119] Figure 9 This is a schematic block diagram of the structure of a service processing apparatus according to one embodiment of the present disclosure.

[0120] like Figure 9 As shown, the business processing device includes: a first determining module 110, used to compare multiple business processing object attribute information in the business processing rules with at least one attribute information of the object to be processed, and determine at least one business processing rule that is suitable for the object to be processed; a first obtaining module 120, used to obtain the weight value of the suitable business processing rule, the weight value being obtained by concatenating the codes of each business processing object attribute information in the suitable business processing rule according to the attribute priority from high to low; and a processing module 130, used to perform corresponding business processing on the object to be processed based on the suitable business processing rule with the largest weight value.

[0121] The aforementioned business processing device can be in the form of computer software, and each module of the aforementioned business processing device can be implemented through computer software modules.

[0122] As one possible implementation, the first determining module 110 can be used to: for each of the multiple business processing rules, if the first number of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, then determine the business processing rule as the business processing rule adapted to the object to be processed.

[0123] In some embodiments of this disclosure, the business processing apparatus may further include: a second acquisition module, configured to acquire a second quantity, wherein the second quantity is less than the first quantity, in response to the absence of a first quantity of business processing object attribute information that can respectively contain the corresponding attribute information of the object to be processed; and a second determination module, configured to determine, for each of the multiple business processing rules, if the second quantity of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, the business processing rule is determined as a business processing rule suitable for the object to be processed.

[0124] In some embodiments of this disclosure, the business processing apparatus may further include: an alarm module, configured to send an alarm to the target object in response to the absence of a second number of business processing object attribute information that can respectively contain the corresponding attribute information of the object to be processed.

[0125] As another possible implementation, the first determining module 110 can be used to: calculate the matching degree between the attribute information of various business processing objects in the business processing rule and the corresponding attribute information of the object to be processed for each of the multiple business processing rules, and determine the matching degree and value of the business processing rule; and take the business processing rule with the matching degree and value greater than or equal to the matching degree and value threshold as the business processing rule adapted to the object to be processed.

[0126] In some embodiments of this disclosure, the business processing apparatus may further include: a third acquisition module, used to acquire multiple business processing object attribute information and attribute priorities of the business processing rule; a generation module, used to generate the encoding of the business processing object attribute information based on the encoding rule; and a splicing module, used to splice the encodings of multiple business processing object attribute information in the business processing rule together based on the attribute priority from high to low, to obtain the weight value of the business processing rule.

[0127] In some embodiments of this disclosure, the generation module is used to: obtain all business processing object attribute values ​​and the priority of business processing object attribute values ​​in the category to which the business processing object attribute information belongs; sort all business processing object attribute values ​​according to the order of priority from low to high to determine the sorting position of the business processing object attribute information; and convert the sorting position into a value in the target positional numeral system to obtain the encoding of the business processing object attribute information.

[0128] In some embodiments of this disclosure, the business processing apparatus may further include: an update module, configured to, in response to detecting an adjustment operation on the attribute priority of a business processing rule, concatenate the encodings of multiple business processing object attribute information in the business processing rule together based on the order of the adjusted attribute priorities from high to low, to obtain a new weight value for the business processing rule.

[0129] The specific implementation process of the functions and roles of each module in the above device can be found in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0130] The entity executing the business processing method in the specific embodiments of this disclosure can be an electronic device such as a mobile phone or computer.

[0131] Therefore, based on any of the above embodiments, this disclosure also provides an electronic device that can execute the business processing method of any of the embodiments described above.

[0132] Figure 10 This is a schematic block diagram of an electronic device 1000 according to one embodiment of the present disclosure.

[0133] The hardware architecture of the electronic device 1000 can be implemented using a bus architecture. The bus architecture can include any number of interconnect buses and bridges, depending on the specific application of the hardware and overall design constraints. Bus 1100 connects various circuits, including one or more processors 1200, memory 1300, and / or hardware modules. Bus 1100 can also connect various other circuits 1400, such as peripheral devices, voltage regulators, power management circuits, external antennas, etc.

[0134] Bus 1100 can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, this diagram uses only one connection line, but this does not imply that there is only one bus or one type of bus.

[0135] For ease of explanation, certain steps of the above method are described in relation to modules. It should be understood that the corresponding module performing one or more steps of the above method may be one or more hardware modules specifically configured to perform the corresponding step, or implemented by a processor configured to perform the corresponding step, or stored in a computer-readable medium for implementation by a processor, or implemented by some combination thereof.

[0136] This disclosure also provides a readable storage medium storing a computer program that, when executed by a processor, is used to implement the methods described above. A "readable storage medium" can be any means capable of containing, storing, communicating, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples of a readable storage medium include: an electrical connection with one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and portable read-only memory (CDROM), etc.

[0137] This disclosure also provides a computer program product, the methods of which can be implemented wholly or partially through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented wholly or partially as a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed, all or part of the processes or functions of this disclosure are performed.

[0138] Computer programs or instructions can be stored in a readable storage medium or transferred from one readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The readable storage medium can be any available medium capable of access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video optical disc; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium can be a volatile or non-volatile storage medium, or it can include both volatile and non-volatile types of storage media.

[0139] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, apparatus, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure 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.

[0140] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus, and computer program products according to this disclosure. It will 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.

[0141] 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.

[0142] 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.

[0143] In the description of this specification, the references to terms such as "one embodiment / mode," "some embodiments / modes," "example," "specific example," or "some examples," etc., refer to specific features, structures, or characteristics described in connection with that embodiment / mode or example, which are included in at least one embodiment / mode or example of this disclosure. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment / mode or example. Moreover, the specific features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments / modes or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments / modes or examples described in this specification, as well as the features of different embodiments / modes or examples.

[0144] Those skilled in the art should understand that the above embodiments are merely for illustrating the present disclosure and are not intended to limit the scope of the disclosure. Those skilled in the art can make other changes or modifications based on the above disclosure, and these changes or modifications still fall within the scope of the present disclosure.

Claims

1. A business processing method, characterized in that, include: The business processing object attribute information in the business processing rules is compared with at least one attribute information of the object to be processed to determine at least one business processing rule that the object to be processed is compatible with. Obtain the weight value of the adapted business processing rule. The weight value is obtained by concatenating the encoding of the attribute information of each business processing object in the adapted business processing rule according to the attribute priority from high to low. as well as Based on the business processing rule with the highest weight value, the corresponding business processing is performed on the object to be processed.

2. The business processing method according to claim 1, characterized in that, Determine at least one business processing rule to be adapted to the object to be processed, including: For each of the multiple business processing rules, if the first number of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, then the business processing rule is determined as the business processing rule adapted to the object to be processed.

3. The business processing method according to claim 2, characterized in that, The method further includes: In response to the absence of a first number of business processing object attribute information that can respectively contain the corresponding attribute information of the object to be processed, a second number is obtained, wherein the second number is less than the first number; and For each of the multiple business processing rules, if the second number of business processing object attribute information in the business processing rule can respectively contain the corresponding attribute information of the object to be processed, then the business processing rule is determined as the business processing rule adapted to the object to be processed.

4. The business processing method according to claim 3, characterized in that, The method further includes: In response to the absence of a second number of business processing object attribute information that can respectively contain the corresponding attribute information of the object to be processed, an alarm is sent to the target object.

5. The business processing method according to claim 1, characterized in that, Determine at least one business processing rule to be adapted to the object to be processed, including: For each of the multiple business processing rules, calculate the matching degree between the attribute information of various business processing objects in the business processing rule and the corresponding attribute information of the object to be processed, and determine the matching degree and value of the business processing rule; and The business processing rules whose matching degree and value are greater than or equal to the matching degree and value threshold are used as the business processing rules adapted to the object to be processed.

6. The business processing method according to any one of claims 1 to 5, characterized in that, Before determining at least one business processing rule that the object to be processed is adapted to, the method further includes: Obtain various business processing object attribute information and attribute priority of the business processing rules; Based on the encoding rules, the encoding of the attribute information of the business processing object is generated; and Based on the attribute priority from high to low, the codes of various business processing object attribute information in the business processing rule are concatenated together to obtain the weight value of the business processing rule.

7. The business processing method according to claim 6, characterized in that, Based on the encoding rules, the encoding of the attribute information of the business processing object is generated, including: Obtain all attribute values ​​of business processing objects and the priority of business processing object attribute values ​​in the category to which the attribute information of the business processing object belongs; Based on the priority of the attribute values ​​of the business processing objects from low to high, the attribute values ​​of all business processing objects are sorted to determine the ranking of the attribute information of the business processing objects; and The sorting position is converted into a value in the target positional numeral system to obtain the encoding of the attribute information of the business processing object.

8. The business processing method according to claim 6, characterized in that, After obtaining the weight values ​​of the business processing rules, the process also includes: In response to the detection of an adjustment operation on the attribute priority of the business processing rule, the encodings of multiple business processing object attribute information in the business processing rule are concatenated together based on the order of the adjusted attribute priority from high to low to obtain a new weight value for the business processing rule.

9. An electronic device, characterized in that, include: Memory, the memory storing computer programs; as well as A processor that executes a computer program stored in the memory, causing the processor to perform the business processing method according to any one of claims 1 to 8.

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