Business event processing method and device, equipment and storage medium

By using the trigger logic matrix and state sequence to determine whether a hit is hit, the efficiency problem caused by the complexity of business event judgment logic is solved, and accurate and efficient business event trigger judgment is achieved.

CN120047867APending Publication Date: 2025-05-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510112593.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

As the complexity of the business event judgment logic increases, how to efficiently determine whether to execute business events has become an urgent problem to be solved.

Method used

By obtaining the trigger logic matrix and state sequence of business events, we judge whether the state sequence hits any trigger logic sequence in the trigger logic matrix, thereby determining whether the business event is triggered.

Benefits of technology

Recursive judgment of complex logical relationships between multiple conditions is avoided, and accurate determination is made to trigger business events when multiple conditional logical relationships are nested.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120047867A_ABST
    Figure CN120047867A_ABST
Patent Text Reader

Abstract

The invention discloses a business event processing method and device, equipment and a storage medium, and belongs to the technical field of computers. The method is executed by computer equipment and comprises the steps that a trigger logic matrix of a service event is obtained, the trigger logic matrix comprises n trigger logic sequences with the size of m, and the service event and m conditions have a trigger logic relation, each trigger logic sequence in the trigger logic matrix is used for indicating a condition combination for triggering the business event; m is an integer greater than 1, and n is a positive integer; a state sequence with the size of m is obtained, the state sequence comprises state information of all or part of the m conditions, and the state sequence is used for indicating that at least one condition is in a satisfaction state; and triggering the business event under the condition that the state sequence hits any one trigger logic sequence in the trigger logic matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a method, apparatus, device, and storage medium for processing service events. Background Art

[0002] With the increasing development of computer technology, the judgment logic for whether a service event is executed has become increasingly complex.

[0003] In the related art, taking the service event of whether a video information is displayed in the video stream of an application as an example, whether to trigger the service event is related to multiple conditions such as whether the playback volume of the video information exceeds the playback threshold, whether the video partition belongs to the target partition, and whether the video duration exceeds the duration threshold. There are logical relationships of AND and OR among multiple conditions.

[0004] As the number of conditions increases and the logical relationships among the conditions are nested with each other, how to efficiently determine whether to execute a service event is an urgent problem to be solved. Summary of the Invention

[0005] This application provides a method, apparatus, device, and storage medium for processing service events, and the technical solutions are as follows:

[0006] According to one aspect of this application, a method for processing a service event is provided. The method is executed by a computer device, and the method includes:

[0007] Obtain a trigger logic matrix of the service event, where the trigger logic matrix includes n trigger logic sequences with a size of m. There is a trigger logic relationship between the service event and m conditions, and each trigger logic sequence in the trigger logic matrix is used to indicate a combination of conditions for triggering the service event; m is an integer greater than 1, and n is a positive integer;

[0008] Obtain a status sequence with a size of m, where the status sequence includes status information of all or part of the m conditions, and the status sequence is used to indicate that at least one condition is in a satisfied state;

[0009] When the status sequence hits any one of the trigger logic sequences in the trigger logic matrix, trigger the service event.

[0010] According to another aspect of this application, a device for processing a service event is provided. The device includes:

[0011] An acquisition module, configured to acquire a trigger logic matrix of the service event, where the trigger logic matrix includes n trigger logic sequences each with a size of m, there is a trigger logic relationship between the service event and m conditions, and each trigger logic sequence in the trigger logic matrix is used to indicate a combination of conditions for triggering the service event; m is an integer greater than 1, and n is a positive integer;

[0012] The acquisition module is further configured to acquire a status sequence with a size of m, where the status sequence includes status information of all or part of the m conditions, and the status sequence is used to indicate that at least one condition is in a satisfied state;

[0013] A processing module, configured to trigger the service event when the status sequence hits any one of the trigger logic sequences in the trigger logic matrix.

[0014] In an alternative design of the present application, the processing module is further configured to:

[0015] Based on the trigger logic matrix, construct a first trigger matrix and a second trigger matrix; the first trigger matrix includes n first trigger sequences each with a size of m; the value of the i-th bit in the first trigger sequence is used to indicate whether the service event is triggered when the first condition to the i-th condition of the service event are in a satisfied state, where i is a positive integer not exceeding m; the second trigger matrix includes n second trigger sequences each with a size of m; the value of the j-th bit in the second trigger sequence is used to indicate whether the service event is triggered when the j-th condition of the service event is in an unsatisfied state and the m - 1 conditions other than the j-th condition are in a satisfied state, where j is a positive integer not exceeding m;

[0016] Perform at least one trigger logic calculation on the status sequence, the first trigger matrix, and the second trigger matrix to obtain trigger indication information of the service event; the trigger logic calculation includes at least one of an AND logic calculation and an OR logic calculation, and the trigger indication information is used to indicate whether the service event is triggered;

[0017] When the value of the trigger indication information is a first information value, trigger the service event.

[0018] In an alternative design of the present application, the processing module is further configured to:

[0019] Acquire a mask sequence with a size of n, where the values of all bits in the mask sequence are the same;

[0020] Perform an AND logic calculation on the status information of the k-th condition in the status sequence, the value of the k-th bit of the n first trigger sequences, and the mask sequence to obtain indication information corresponding to the k-th condition;

[0021] Update the mask sequence based on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences, to obtain an updated mask sequence;

[0022] Increase the value of k, and repeat the above two steps until the indication information corresponding to each condition in the status sequence is obtained. k is a positive integer not exceeding n;

[0023] Perform an OR logical operation based on the indication information corresponding to each condition in the status sequence to determine the trigger indication information of the service event.

[0024] In an alternative design of the present application, the processing module is further configured to:

[0025] Perform an OR logical calculation on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences to obtain mask reference information;

[0026] Perform an AND logical calculation on the mask reference information and the mask sequence to obtain the updated mask sequence.

[0027] In an alternative design of the present application, the processing module is further configured to:

[0028] Perform an AND logical calculation on the mask sequence and the value of the k-th bit of the n trigger logic sequences to obtain trigger reference information;

[0029] In the case where the value of the trigger reference information is the second information value, give up triggering the service event.

[0030] In an alternative design of the present application, the processing module is further configured to:

[0031] Perform an OR logical calculation on the indication information corresponding to the k-th condition and the updated mask sequence to obtain interruption reference information;

[0032] In the case where the value of the interruption reference information is the third information value, determine the calculation result obtained by performing an OR logical calculation on the indication information corresponding to at least one condition obtained by calculation as the trigger indication information.

[0033] In an alternative design of the present application, the matrix elements in the trigger logic matrix take the first value and the second value, and the obtaining module is further configured to:

[0034] Perform an OR logical calculation on the values of the (i + 1)-th bit to the m-th bit of the n trigger logic sequences to obtain matrix reference information;

[0035] Perform a numerical conversion on the matrix reference information to determine the value of the \(i\)-th bit of the \(n\) first trigger sequences, where the numerical conversion is used to indicate converting information elements with a value of the first numerical value in the matrix reference information to the second numerical value, and converting information elements with a value of the first numerical value in the matrix reference information to the second numerical value;

[0036] Increase the value of \(i\) and repeat the above two steps until the values of the \(m\) bits of the \(n\) first trigger sequences are obtained;

[0037] Based on the values of the \(m\) bits of the \(n\) first trigger sequences, construct the first trigger matrix.

[0038] In an alternative design of the present application, the matrix elements in the trigger logic matrix take values of the first numerical value and the second numerical value, and the obtaining module is further configured to:

[0039] Perform a numerical conversion on the trigger logic matrix to determine the second trigger matrix;

[0040] wherein the numerical conversion is used to indicate converting matrix elements with a value of the first numerical value in the trigger logic matrix to the second numerical value, and converting matrix elements with a value of the first numerical value in the trigger logic matrix to the second numerical value.

[0041] In an alternative design of the present application, the state sequence is used to indicate whether all or some of the \(m\) conditions are in a satisfied state in at least two non - related service states of the service event.

[0042] In an alternative design of the present application, the obtaining module is further configured to obtain condition satisfaction information and event description information of a first condition, where the condition satisfaction information is used to indicate the conditions required for the first condition to be in the satisfied state, and the event description information is used to indicate the actual parameter information of the first condition;

[0043] The processing module is further configured to construct an associated condition vector based on the condition satisfaction information, and construct an associated description vector based on the event description information;

[0044] The processing module is further configured to perform a vector logic calculation on the associated condition vector and the associated description vector to obtain the state information of the first condition, and the state sequence is constructed based on the state information of the first condition.

[0045] In an alternative design of the present application, the event description information includes numerical information, and the condition satisfaction information includes a numerical comparison condition;

[0046] The processing module is further configured to:

[0047] Construct the associated condition vector based on the reference value in the numerical comparison condition, and construct the associated description vector based on the numerical content of the numerical information;

[0048] Perform the comparison operation corresponding to the numerical comparison condition on the associated condition vector and the associated description vector to obtain the status information of the first condition.

[0049] In an alternative design of the present application, the event description information includes string information, and the condition satisfaction information includes a character comparison condition;

[0050] The processing module is further configured to:

[0051] Construct the associated condition vector based on the reference character in the character comparison condition, and extract the associated description vector based on the string information.

[0052] In an alternative design of the present application, the associated condition vector includes a first condition vector and a second condition vector, the associated description vector includes a first description vector and a second description vector, and the processing module is further configured to:

[0053] Construct the first condition vector based on the size of the reference character in the character comparison condition, and construct the second condition vector based on the character content of the reference character in the character comparison condition;

[0054] Construct the first description vector based on the size of the string information, and construct the second description vector based on the storage location of the string information;

[0055] Perform a logical comparison calculation on the first condition vector and the first description vector;

[0056] When the first condition vector is the same as the first description vector, obtain the character content of the string information based on the second description vector;

[0057] Perform a logical comparison calculation on the character content of the string information and the second condition vector to obtain the status information of the first condition.

[0058] In an alternative design of the present application, the event description information includes array information, and the condition satisfaction information includes a numerical comparison condition;

[0059] The processing module is further configured to:

[0060] Construct the associated condition vector based on the reference value in the numerical comparison condition, and extract the associated description vector based on the array information.

[0061] In an alternative design of the present application, the processing module is further configured to:

[0062] Construct a third description vector based on the maximum and minimum values of the array information, and construct a fourth description vector based on the storage location of the array information;

[0063] Perform a logical comparison calculation on the association condition vector and the third description vector;

[0064] In the case where the association condition vector is less than the maximum value in the third description vector and greater than the minimum value in the third description vector, obtain the array content of the array information based on the fourth description vector;

[0065] Search for the association condition vector in the array content of the array information to obtain the status information of the first condition.

[0066] In an alternative design of the present application, the association description vector is constructed based on the event description information of the first condition in at least two non-related service states.

[0067] According to another aspect of the present application, there is provided a computer device, which includes a processor and a memory. At least one segment of computer instructions is stored in the memory, and the processor is configured to execute at least one segment of computer instructions in the memory to implement the processing method of the service event as described in the above aspect.

[0068] According to another aspect of the present application, there is provided a computer-readable storage medium, in which at least one segment of computer instructions is stored, and the at least one segment of computer instructions is loaded and executed by a processor to implement the processing method of the service event as described in the above aspect.

[0069] According to another aspect of the present application, there is provided a computer program product, which includes computer instructions. The computer instructions are stored in a computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement the processing method of the service event as described in the above aspect.

[0070] The beneficial effects brought by the technical solution provided by the present application at least include:

[0071] The trigger logic matrix is used to indicate at least one combination of conditions for triggering a service event, and can accurately reflect the conditions that need to be in a satisfied state among m conditions when triggering a service event; the state sequence is used to indicate the actual states of all or some of the conditions; converting whether the complex logical relationship between the m conditions is satisfied into whether the state sequence hits the trigger logic sequence in the trigger logic matrix. It avoids the need to perform recursion on the complex logical relationship between the m conditions in the related art to determine whether to trigger a service event; and realizes determining whether to trigger a service event in the case where the logical relationships between multiple conditions are nested with each other. Description of the Drawings

[0072] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the following described drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0073] Figure 1 It is a schematic diagram of a computer system provided by an exemplary embodiment of the present application;

[0074] Figure 2 It is a schematic diagram of a method for processing a service event provided by an exemplary embodiment of the present application;

[0075] Figure 3 It is a flowchart of a method for processing a service event provided by an exemplary embodiment of the present application;

[0076] Figure 4 It is a flowchart of a method for processing a service event provided by an exemplary embodiment of the present application;

[0077] Figure 5 It is a flowchart of a method for processing a service event provided by an exemplary embodiment of the present application;

[0078] Figure 6 It is a schematic diagram of a trigger logic matrix provided by an exemplary embodiment of the present application;

[0079] Figure 7 It is a flowchart of a method for processing a service event provided by an exemplary embodiment of the present application;

[0080] Figure 8 It is a schematic diagram of the state information of the first condition provided by an exemplary embodiment of the present application;

[0081] Figure 9 It is a schematic diagram of an associated description vector provided by an exemplary embodiment of the present application;

[0082] Figure 10It is a schematic diagram of the status information of the first condition provided by an exemplary embodiment of the present application;

[0083] Figure 11 It is a schematic diagram of the first description vector and the second description vector provided by an exemplary embodiment of the present application;

[0084] Figure 12 It is a schematic diagram of the status information of the first condition provided by an exemplary embodiment of the present application;

[0085] Figure 13 It is a structural block diagram of a processing device for business events provided by an exemplary embodiment of the present application;

[0086] Figure 14 It is a structural block diagram of a server provided by an exemplary embodiment of the present application.

[0087] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Detailed implementation manners

[0088] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0089] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0090] The terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the disclosure. The singular forms "a", "the" and "that" used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more of the associated listed items.

[0091] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the status information of the conditions, the trigger logic matrix, and other information related to business events involved in this application are all obtained under sufficient authorization.

[0092] It should be understood that although the terms first, second, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this disclosure, the first parameter may also be referred to as the second parameter, and similarly, the second parameter may also be referred to as the first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0093] Figure 1 The schematic diagram of a computer system provided by an embodiment of this application is shown. This computer system can be implemented as the system architecture of the processing method of business events. This computer system may include: a terminal 100 and a server 200.

[0094] The terminal 100 may be an electronic device such as a mobile phone, a tablet computer, a PC (Personal Computer), a smart home appliance, a vehicle-mounted device, a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, etc. A client for running a target application may be installed in the terminal 100. The target application may be a processing application for business events or other applications providing the processing function of business events. This application does not make any limitations in this regard. In addition, this application does not make any limitations on the form of the target application, including but not limited to an App (Application) installed in the terminal 100, a mini-program, etc., and may also be in the form of a web page.

[0095] The server 200 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The server 200 may be the background server of the above target application, used to provide background services for the client of the target application. The server 200 may also directly run a service with the function of processing business events, implementing a server cluster for processing services of business events; Exemplarily, the server 200 is a training server or a usage server of an artificial neural network. The processing method in this application is executed during the training and usage of an artificial neural network (also called a prediction network).

[0096] For the processing method of business events provided in the embodiments of this application, the execution entity of each step may be a computer device, and the computer device refers to an electronic device with data calculation, processing and storage capabilities. For example, it may be Figure 1 the terminal 100 or the server 200 shown. Taking Figure 1 the solution implementation environment shown as an example, the processing method of business events may be executed by the terminal 100 (such as the client of the target application installed and running in the terminal 100 executes the processing method of the business event), or may be executed by the server 200, or may be executed by the interaction and cooperation of the terminal 100 and the server 200. This application does not make any limitations in this regard.

[0097] In addition, the technical solution of this application can be combined with blockchain technology. For example, for the processing method of business events disclosed in this application, some data involved therein (such as trigger logic matrices, status information of conditions, etc.) can be stored on the blockchain. The terminal 100 and the server 200 can communicate with each other through a network, such as a wired or wireless network.

[0098] Figure 2 The figure shows a schematic diagram of the processing method of business events provided in an exemplary embodiment of this application.

[0099] In this embodiment, the processing method of business events is executed by the server, and the server provides background support for the application that provides the video stream. The video stream provided by the application displays multiple video information, such as the first video 412 and the second video 414. It can be understood that in different implementation manners, the application may display a large or small number of video information at the same time. Through human-computer interaction operations such as sliding the screen, the video stream can be scrolled to display more video information.

[0100] Taking the display of the first video 412 as an example for introduction. The service event in this embodiment is the display of the first video 412 in the video stream of the application. The display of the first video 412 in the video stream of the application is related to m conditions, and the m conditions include: whether the playback volume exceeds the playback threshold, whether the video partition belongs to the target partition, whether the video duration exceeds the duration threshold, and whether the current account follows the video publisher; a total of four conditions.

[0101] The trigger logic matrix 421 of the service event takes values of [1, 1, 0, 0]; [1, 0, 1, 1]. The first row [1, 1, 0, 0] of the trigger logic matrix 421 is used to indicate triggering the service event, that is, to trigger the display of the first video 412 in the video stream of the application, it is necessary to satisfy: the playback volume exceeds the playback threshold and the video partition belongs to the target partition; the second row [1, 0, 1, 1] of the trigger logic matrix 421 is used to indicate that triggering the service event requires satisfying: the playback volume exceeds the playback threshold, the video duration exceeds the duration threshold, and the current account follows the video publisher.

[0102] Obtain the status sequence 422 of the m conditions. The status sequence 422 is used to indicate whether the actual status of the m conditions is a satisfied status or an unsatisfied status. The value of the status sequence 422 is [1, 1, 0, 0], which is used to indicate: the playback volume exceeds the playback threshold, the video partition belongs to the target partition, the video duration does not exceed the duration threshold, and the current account does not follow the video publisher.

[0103] The status sequence 422 is the same as the first row of the trigger logic matrix 421, and the status sequence 422 hits the trigger logic matrix 421. The actual status of the m conditions satisfies the condition combination for triggering the service event, and the first video 412 is displayed in the video stream of the application.

[0104] Next, the processing method of the service event will be introduced through the following embodiments.

[0105] Figure 3 The flowchart of the processing method of the service event provided by an exemplary embodiment of the present application is shown. This method can be executed by a computer device. This method includes:

[0106] Step 510: Obtain the trigger logic matrix of the service event.

[0107] Exemplarily, there is a triggering logic relationship between a service event and m conditions; that is, whether the service event is triggered is associated with the m conditions. In one example, the service event is that a video message is displayed in the video stream of an application; whether the service event is triggered is related to m conditions such as whether the playback volume of the video message exceeds the playback threshold, whether the video partition belongs to the target partition, and whether the video duration exceeds the duration threshold. There is at least one of the logical relationships of AND logic (also called sum logic) and OR logic among the m conditions. When the service event is triggered, both conditions with AND logic are in a satisfied state, and at least one of the two conditions with OR logic is satisfied.

[0108] The triggering logic matrix includes n triggering logic sequences with a size of m; as introduced above, there is a triggering logic relationship between the service event and m conditions, and the m bits in a triggering logic sequence correspond to the m conditions respectively. Each triggering logic sequence in the triggering logic matrix is used to indicate a combination of conditions for triggering the service event; the combination of conditions is at least one condition that needs to be in a satisfied state when the service event is triggered. For example, the value of a triggering logic matrix is [0, 0, 1, 1]; when the service event is triggered, the conditions that need to be in a satisfied state include the third condition and the fourth condition among the four conditions.

[0109] In this embodiment, the triggering logic matrix is also called a Disjunctive Normal Form (DNF) matrix. The triggering logic matrix can be stored in a computer device or obtained by the computer device through simplifying and arranging at least one of the AND logic and OR logic among the m conditions. This application does not limit the acquisition method of the triggering logic matrix.

[0110] Wherein, m is an integer greater than 1, and whether the service event is triggered is associated with at least two conditions. n is a positive integer, and the triggering logic matrix is used to indicate at least one combination of conditions for triggering the service event.

[0111] Step 520: Obtain a status sequence with a size of m.

[0112] The status sequence includes the status information of all or part of the m conditions, and the status information of a condition includes that the condition is in a satisfied state or an unsatisfied state.

[0113] In one example, m bits in the status sequence correspond to m conditions respectively. When a condition is in a satisfied state, the value of the bit in the status sequence corresponding to the condition is the first value (for example, the value is 1). When a condition is in an unsatisfied state or no status information of the condition is obtained, the value of the bit in the status sequence corresponding to the condition is the second value (for example, the value is 0). Exemplarily, the status sequence includes m bits, and the length of the status sequence can also be referred to as m.

[0114] Exemplarily, the status sequence is used to indicate that at least one condition is in a triggered state; there is at least one bit in the status sequence whose value is the first value (for example, the value is 1).

[0115] Step 530: Trigger a service event when the status sequence hits any one of the trigger logic sequences in the trigger logic matrix.

[0116] When the status sequence hits any one of the trigger logic sequences in the trigger logic matrix, the status information of all or part of the conditions described in the status sequence hits the condition combination indicated by the trigger logic sequence; it meets the conditions that need to be in a satisfied state when triggering the service event indicated by the trigger logic matrix.

[0117] In one example, the set of conditions in the status sequence that are in a satisfied state is denoted as the status condition set; each of the n trigger logic sequences has a corresponding set denoted as the associated condition set, and the associated condition set is the set of conditions that need to be in a satisfied state in a trigger logic sequence.

[0118] When any one of the associated condition sets belongs to a subset of the status condition set, at least one condition in the status sequence that is in a triggered state covers at least one condition that needs to be in a satisfied state when triggering the service event indicated by the trigger logic sequence; therefore, the service event is triggered.

[0119] In summary, the method provided in this embodiment, the trigger logic matrix is used to indicate at least one condition combination for triggering a service event, and can accurately reflect the conditions that need to be in a satisfied state among the m conditions when triggering a service event; the status sequence is used to indicate the actual status of all or part of the conditions; it converts whether the complex logical relationship between the m conditions is satisfied into whether the status sequence hits the trigger logic sequence in the trigger logic matrix. It avoids the need to perform recursion on the complex logical relationship between the m conditions in the related art, and then determines whether to trigger a service event; it realizes determining whether to trigger a service event when the logical relationships between multiple conditions are nested with each other.

[0120] Figure 4The flowchart of the method for processing service events provided by an exemplary embodiment of the present application is shown. This method can be executed by a computer device. That is, on the basis of the embodiment shown in Figure 3 the embodiment shown, it further includes step 515, and step 530 can be implemented as step 532 and step 534:

[0121] Step 515: Based on the trigger logic matrix, construct a first trigger matrix and a second trigger matrix.

[0122] The first trigger matrix and the second trigger matrix are calculated based on the trigger logic matrix, and the sizes of the first trigger matrix and the second trigger matrix are the same as those of the trigger logic matrix. Exemplarily, similar to the trigger logic matrix, the first trigger matrix includes n first trigger sequences with a size of m; the second trigger matrix includes n second trigger sequences with a size of m.

[0123] For the first trigger sequence, the value of the i-th bit in the first trigger sequence is used to indicate whether the service event is triggered when the first condition to the i-th condition of the service event are in a satisfied state, where i is a positive integer not exceeding m.

[0124] For the second trigger sequence, the value of the j-th bit in the second trigger sequence is used to indicate whether the service event is triggered when the j-th condition of the service event is in an unsatisfied state and the m-1 conditions other than the j-th condition are in a satisfied state, where j is a positive integer not exceeding m;

[0125] In one example, the trigger logic matrix includes a trigger logic sequence with a value of [1, 1, 0, 0]. The first trigger matrix constructed according to the trigger logic matrix includes a first trigger sequence with a value of [0, 1, 1, 1]. Since the trigger logic matrix indicates that the service event is executed when the first condition and the second condition are both in a satisfied state. For the first bit of the first trigger sequence, when the first condition is in a satisfied state, the value of the first bit of the first trigger sequence is 0 to indicate that the service event is not triggered. For the second bit of the second trigger sequence, when the first condition and the second condition are in a satisfied state, the value of the second bit of the first trigger sequence is 1 to indicate that the service event is triggered. For the third bit and the fourth bit of the second trigger sequence, when the first condition to the third condition are in a satisfied state, and when the first condition to the fourth condition are in a satisfied state, the values of the third bit and the fourth bit of the first trigger sequence are 1 to indicate that the service event is triggered.

[0126] The second trigger matrix constructed according to the trigger logic matrix includes a second trigger sequence with values of [0, 0, 1, 1]. For the first bit of the second trigger sequence, when the first condition is not satisfied, the value of the first bit of the second trigger sequence is 0 to indicate that the service event is not triggered. For the second bit of the second trigger sequence, when the first condition is satisfied and the second condition is not satisfied, the value of the first bit of the second trigger sequence is 0 to indicate that the service event is not triggered. For the third bit of the second trigger sequence, when the first condition and the second condition are satisfied and the third condition is not satisfied, the value of the first bit of the second trigger sequence is 1 to indicate that the service event is triggered. For the fourth bit of the second trigger sequence, when the first condition to the third condition are satisfied and the fourth condition is not satisfied, the value of the first bit of the second trigger sequence is 1 to indicate that the service event is triggered.

[0127] In this step, only the matrix structures of the first trigger matrix and the second trigger matrix and the meanings of the values at each position are introduced. Regarding how to construct the first trigger matrix and the second trigger matrix, it will be introduced in a separate embodiment below and is not limited in this step.

[0128] Step 532: Perform at least one trigger logic calculation on the state sequence, the first trigger matrix, and the second trigger matrix to obtain the trigger indication information of the service event.

[0129] In this embodiment, the trigger logic calculation includes at least one of an AND logic calculation and an OR logic calculation; the trigger indication information of the service event is obtained through the trigger logic calculation, and the trigger indication information of the service event is used to indicate whether the state sequence hits any one of the trigger logic sequences in the trigger logic matrix to implement indicating whether the service event is triggered.

[0130] In an alternative implementation, referring to Figure 5 , step 532 can be implemented as the following steps 532a to 532e:

[0131] · Step 532a: Obtain a mask sequence with a size of n.

[0132] Wherein, the values of each bit in the mask sequence are the same; exemplarily, the mask sequence includes binary information with a size of n; in a further example, the value of each bit is 1.

[0133] · Step 532b: Perform an AND logic calculation on the state information of the k-th condition in the state sequence, the value of the k-th bit of the n first trigger sequences, and the mask sequence to obtain the indication information corresponding to the k-th condition.

[0134] Exemplarily, the status information of the kth condition is used to indicate whether the actual status of the kth condition is a satisfied status or an unsatisfied status.

[0135] The status information of the kth condition and the value of the kth bit of the n first trigger sequences indicate whether the actual status of the kth condition can indicate the triggering of a service event. In this step, an AND logic calculation is performed on the status information of the kth condition, the value of the kth bit of the n first trigger sequences, and the mask sequence; the mask sequence is updated according to the second trigger matrix, indicating whether the false state of the condition before the kth condition among the m conditions will cause the service event to fail to be triggered. By performing an AND logic calculation on the above three types of information, it is possible to determine whether the service event is triggered based on the first k conditions among the m conditions, that is, the indication information corresponding to the kth condition.

[0136] Step 532c: Based on the state information of the kth condition in the state sequence and the value of the kth bit of the n second trigger sequences, the mask sequence is updated to obtain an updated mask sequence.

[0137] As described above, the mask sequence is updated according to the second trigger matrix. After calculating the indication information corresponding to the kth condition, the mask sequence is updated. The updated mask sequence is applied to the calculation of the indication information corresponding to the k+1th condition. It can be understood that in the case where the kth condition is the last one of the m conditions, step 532c does not need to be performed.

[0138] In an optional implementation, step 532c may be implemented as the following two sub-steps:

[0139] An OR logic operation is performed on the state information of the kth condition in the state sequence and the value of the kth bit of the n second trigger sequences to obtain mask reference information.

[0140] Perform an AND logic operation on the mask reference information and the mask sequence to obtain an updated mask sequence.

[0141] Exemplarily, the status information of the kth condition and the value of the kth bit of n second trigger sequences are used to perform or logical calculation; when the actual state of the kth condition is not met and the value of the kth bit in the second trigger sequence is 0, the value in the mask sequence is updated to 0.

[0142] The kth bit in the second trigger sequence has a value of 0, which is used to indicate that when the kth condition is not satisfied, it is determined that the service event is not triggered.

[0143] In one example, when the actual state of the k-th condition is not satisfied and the k-th bit in the second trigger sequence has a value of 0, the masked reference information has a value of 0. By performing an AND logical calculation on the masked reference information and the mask sequence, an updated mask sequence is obtained; to achieve updating the values in the mask sequence to 0.

[0144] It should be noted that the size of the mask information is n, and n bits are used to indicate whether there is a possibility of triggering a service event under n combinations of conditions. If the value of a bit in the updated mask sequence is 0, the corresponding combination of conditions cannot hold, and it is determined that the service event is not triggered under the above combination of conditions.

[0145] · Step 532d: Increase the value of k and repeat the above two steps until the indication information corresponding to each condition in the state sequence is obtained.

[0146] By repeatedly executing Step 532b and Step 532c until the indication information corresponding to each condition in the state sequence is obtained. In Step 532b and Step 532c, k is a positive integer not exceeding n. In some alternative implementations, the initial value of k is 1, and in this step, the value of k is increased by 1 to achieve starting from the first condition and determining the indication information of the conditions one by one until the indication information corresponding to each condition is obtained.

[0147] · Step 532e: Based on performing an OR logical operation between the indication information corresponding to each condition in the state sequence, determine the trigger indication information of the service event.

[0148] Exemplarily, by performing an OR logical operation between the indication information corresponding to each condition, to achieve that when the actual state of at least one condition hits any one of the condition combinations, the trigger indication information of the service event indicates that the service event is triggered.

[0149] Step 534: When the value of the trigger indication information is the first information value, trigger the service event.

[0150] Exemplarily, when the value of the trigger indication information is the first information value, it indicates that the state sequence hits at least one trigger logic sequence in the trigger logic matrix. In some examples, the trigger indication information is a binary information, also known as the trigger indication bit; for example, the value of the first information value is 1. Further, when the value of the trigger indication information is the second information value, the service event is not triggered; for example, the value of the first information value is 0.

[0151] In summary, for the method provided in this embodiment, the trigger logic matrix is used to indicate at least one combination of conditions for triggering a service event, and can accurately reflect the conditions that need to be in a satisfied state among the m conditions when triggering a service event; the first trigger matrix and the second trigger matrix constructed based on the trigger logic matrix can determine the influence of whether a single condition is in a satisfied state on triggering a service event; the state sequence is used to indicate the actual states of all or some of the conditions; converting whether the complex logical relationship between the m conditions is satisfied into whether the state sequence hits the trigger logic sequence in the trigger logic matrix. Through the trigger logic calculation among the state sequence, the first trigger matrix, and the second trigger matrix, the trigger indication information is obtained through at least one of the AND logic calculation and the OR logic calculation; it realizes determining whether to trigger a service event when the logical relationships among multiple conditions are nested with each other.

[0152] Next, the trigger indication information introduced above will be further introduced.

[0153] In one example, the acquisition method of the trigger indication information is as follows:

[0154]

[0155] where SR is the first trigger matrix and SM is the second trigger matrix; in this embodiment, the construction methods of the first trigger matrix and the second trigger matrix are not limited, and will be introduced in a separate embodiment below.

[0156] f r ←0 is to set the initial value of the indication information corresponding to the condition to 0. m←I n is to determine the mask sequence of size n as a sequence with all initial values being 1.

[0157] for k∈[0,m) is the k-th bit of the n first trigger sequences, the corresponding first trigger sequence has a size of m, or the k-th bit of the n second trigger sequences, the corresponding second trigger sequence has a size of m.

[0158] c k ←DoCodition(k) is to determine the state information of the k-th condition as the value of c k , for example, when the state information of the k-th condition indicates that the k-th condition is in a satisfied state, the value of c k is 1; when the state information of the k-th condition indicates that the k-th condition is in an unsatisfied state, the value of c k is 0.

[0159] For f r ←f r +|m×SR ,k ×c k |; |m×SR,k ×c k | performs an AND logical calculation on the status information of the k-th condition in the status sequence, the value of the k-th bit of the n first trigger sequences, and the mask sequence to obtain the indication information corresponding to the k-th condition. f r ←f r +| m×SR ,k ×c k | realizes f r Update the value. After updating the value of k, update f r 's value, that is, perform an OR logical operation between the indication information corresponding to each condition in the status sequence to determine the trigger indication information of the service event.

[0160] For m←m×(SM ,k +c k ); (SM ,k +c k ) performs an OR logical calculation on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences to obtain the mask reference information. m←m×(SM ,k +c k ) performs an AND logical calculation on the mask reference information and the mask sequence to obtain the updated mask sequence.

[0161] return f r is the trigger indication information of the service event calculated.

[0162] Here, some calculation symbols in the way of obtaining the trigger indication information need to be introduced:

[0163] Regarding the modulo calculation:

[0164]

[0165] Regarding the AND logical calculation:

[0166] a×b = a&b

[0167]

[0168] Regarding the OR logical calculation:

[0169] a + b = a||b

[0170]

[0171] Above, the symbols for AND logical calculation and OR logical calculation between two scalars, between a scalar and a sequence, and between two sequences are explained; for the +, ×, || symbols in the way of obtaining the trigger indication information, please refer to the calculation methods in the above text.

[0172] In one implementation, in an alternative implementation of the present application, on the basis of the Figure 5 illustrated embodiment, the following two steps are further included:

[0173] · Perform an AND logic calculation on the values of the k-th bit of the mask sequence and the n trigger logic sequences to obtain trigger reference information.

[0174] As introduced above, if the value of a bit in the mask sequence is 0, the corresponding conditional combination cannot be established, and it is determined that the service event is not triggered in the above conditional combination. The value of the k-th bit of the trigger logic sequence is used to indicate whether the k-th condition needs to be satisfied when the service event is triggered.

[0175] Performing an AND logic calculation on the values of the k-th bit of the mask sequence and the n trigger logic sequences is used to indicate whether there is a possibility of triggering a service event.

[0176] · In the case where the value of the trigger reference information is the second information value, give up triggering the service event.

[0177] In the case where the value of the trigger reference information is the second information value, the values of all bits in the mask sequence are 0, which is used to indicate that the service event cannot be established in each conditional combination; or the values of the k-th bits of the n trigger logic sequences are all 0, which is used to indicate that the triggering of the service event has nothing to do with whether the k-th condition is satisfied. Above, there is no possibility of triggering the service event, and give up triggering the service event.

[0178] In another implementation, in an alternative implementation of the present application, on the basis of the Figure 5 illustrated embodiment, the following two steps are further included:

[0179] · Perform an OR logic calculation on the indication information corresponding to the k-th condition and the updated mask sequence to obtain interruption reference information.

[0180] As introduced above, the indication information corresponding to the k-th condition is used to indicate whether it is possible to determine to trigger a service event according to the true states of the first condition to the k-th condition. Regarding the introduction of the updated mask sequence, as Figure 5 shown above, it will not be repeated one by one.

[0181] · In the case where the value of the interruption reference information is the third information value, determine the calculation result obtained by performing an OR logic calculation on the indication information corresponding to at least one condition obtained by calculation as the trigger indication information.

[0182] When the value of the interruption reference information is the third information value, the true states of the first to k-th conditions indicate the triggering of a service event; or the updated mask sequence indicates a condition combination that satisfies the triggering of a service event. The indication information corresponding to at least one calculated condition can determine whether to trigger a service event, and an OR logic calculation is performed to obtain the trigger indication information.

[0183] Next, the trigger indication information introduced above will be further introduced.

[0184] In one example, the acquisition method of the trigger indication information is as follows:

[0185]

[0186] Where SR is the first trigger matrix and SM is the second trigger matrix; in this embodiment, the construction methods of the first trigger matrix and the second trigger matrix are not limited and will be introduced in a separate embodiment below. D is the trigger logic matrix of the service event.

[0187] Regarding f r , m, c i For the introduction, please refer to the formula in the above text and will not be repeated here.

[0188] f c ←m×D ,i Performs an AND logic calculation on the values of the k-th bit of the mask sequence and the n trigger logic sequences to obtain the trigger reference information. If f c ≠0 then when f c ≠0, perform calculations according to the introduction of f r , and when the value of f c is 0, return 0, indicating to abandon triggering the service event.

[0189] f r +|m| performs an OR logic calculation on the indication information corresponding to the k-th condition and the updated mask sequence to obtain the interruption reference information. If f r +|m|≠0 then return f r , and when the value of f r +|m| is not equal to 0, return f r Determine the calculation result obtained by performing an OR logic calculation on the indication information corresponding to at least one calculated condition as the trigger indication information.

[0190] In summary, for the method provided in this embodiment, the trigger logic matrix is used to indicate at least one combination of conditions for triggering a service event, and can accurately reflect the conditions that need to be in a satisfied state among the m conditions when triggering the service event; the first trigger matrix and the second trigger matrix constructed based on the trigger logic matrix can determine the impact of whether a single condition is in a satisfied state on triggering the service event; the state sequence is used to indicate the actual states of all or some of the conditions; converting whether the complex logical relationship between the m conditions is satisfied into whether the state sequence hits the trigger logic sequence in the trigger logic matrix. By using the trigger reference information and the interruption reference information to determine whether the service event can be triggered or aborted through some of the conditions in the m trigger logic calculations corresponding to the m conditions, and when the result of triggering or aborting the service event is obtained, the terminal performs trigger logic calculation; it is possible to determine whether to trigger the service event when the logical relationships between multiple conditions are nested with each other.

[0191] It should be noted that the acquisition of the trigger logic matrix for the service event will be introduced.

[0192] Obtain the logical expression of the service event, simplify the logical expression through the service event, and flatten it into a standard disjunctive normal form (DNF). For example, perform one-hot encoding on the leaf nodes in the logical expression represented by the syntax tree. Convert a single condition of the service condition into a binary vector sequence. For a branch node, if it is an AND branch, perform an element-by-element AND operation on the Cartesian combination of the expression matrices of the leaf nodes; if it is an OR branch, splice the leaf node matrices row by row. Repeat the above operations to obtain the trigger logic matrix (also called the DNF matrix).

[0193] See Figure 6 , perform one-hot encoding on the four conditions of the service event to obtain four vector sequences corresponding to the four conditions respectively. For example, the first sequence 701a corresponding to the first condition 701, the second sequence 702a corresponding to the second condition 702, the third sequence 703a corresponding to the third condition 703, and the fourth sequence 704a corresponding to the fourth condition 704.

[0194] There is an AND logic relationship between the third condition 703 and the fourth condition 704. Element-by-element AND operation is performed to obtain the first combined sequence 711, with a value of [0, 0, 1, 1]. There is an OR logic relationship between the first combined sequence 711 and the second condition 702. The leaf node matrices are concatenated row by row to obtain the second combined sequence 712, with a value of [0, 1, 0, 0]; [0, 0, 1, 1]. There is an AND logic relationship between the second combined sequence 712 and the first condition 701. Element-by-element AND operation is performed to obtain the third combined sequence 713, with a value of [1, 1, 0, 0]; [1, 0, 1, 1]. The third combined sequence 713 is the trigger logic matrix of the service event.

[0195] Next, the construction processes of the first trigger matrix and the second trigger matrix are introduced. Figure 7 The flowchart of the method for processing service events provided by an exemplary embodiment of the present application is shown. This method can be executed by a computer device. That is, in Figure 4 In the illustrated embodiment, step 515 can be implemented as steps 515a to 515e:

[0196] Step 515a: Perform an OR logic calculation on the values of the (i + 1)-th bit to the m-th bit of the n trigger logic sequences to obtain the matrix reference information.

[0197] Exemplarily, the matrix reference information is used to indicate whether the triggering of the service condition requires the conditions after the i-th condition to be in a satisfied state. Exemplarily, by performing an OR logic calculation on the values of the (i + 1)-th bit to the m-th bit of the n trigger logic sequences, the value of the matrix reference information is 1, indicating that the triggering of the service condition also requires the conditions after the i-th condition to be in a satisfied state. Conversely, the value of the matrix reference information is 0, indicating that the triggering of the service condition does not require the conditions after the i-th condition to be in a satisfied state.

[0198] Step 515b: Perform a numerical conversion on the matrix reference information to determine the value of the i-th bit of the n first trigger sequences.

[0199] By performing the numerical conversion, when the triggering of the service condition also requires the conditions after the i-th condition to be in a satisfied state, the value of the i-th bit of the first trigger sequence is used to indicate that it cannot be determined whether the service event is triggered when the first condition to the i-th condition are in a satisfied state, for example, the value is 0. Conversely, when the triggering of the service condition does not require the conditions after the i-th condition to be in a satisfied state, the value of the i-th bit of the first trigger sequence is used to indicate that it can be determined that the service event is triggered when the first condition to the i-th condition are in a satisfied state, for example, the value is 1.

[0200] Among them, the numerical conversion is used to indicate converting the information elements with the first numerical value in the matrix reference information into the second numerical value, and converting the information elements with the first numerical value in the matrix reference information into the second numerical value;

[0201] Step 515c: Increase the value of i, and repeat the above two steps until the values of m bits of n first trigger sequences are obtained.

[0202] By repeatedly executing Step 515a and Step 515b until the values of m bits of each first trigger sequence are obtained. In Step 515a and Step 515b, i is a positive integer not exceeding m. In some alternative implementation manners, the initial value of i is 1, and in this step, the value of i is increased by 1 to realize determining the values of m bits of the first trigger sequence one by one starting from the first condition.

[0203] Step 515d: Based on the values of m bits of n first trigger sequences, construct a first trigger matrix.

[0204] In this embodiment, by repeatedly executing Step 515a and Step 515b, the values of m bits of each first trigger sequence are obtained, and the first trigger matrix is constructed based on the values of m bits of n first trigger sequences. Exemplarily, the n first trigger sequences correspond to the n rows of the first trigger matrix respectively, and the first trigger matrix is a matrix with a size of n rows and m columns constructed based on the values of m bits of n first trigger sequences.

[0205] Step 515e: Perform numerical conversion on the trigger logic matrix to determine a second trigger matrix.

[0206] Exemplarily, the numerical conversion is used to indicate converting the matrix elements with the first numerical value in the trigger logic matrix into the second numerical value, and converting the matrix elements with the first numerical value in the trigger logic matrix into the second numerical value.

[0207] Exemplarily, the second trigger matrix has the same size as the trigger logic matrix, and the sum of the values at the same matrix positions of the second trigger matrix and the trigger logic matrix is 1.

[0208] It can be understood that in an alternative implementation manner of the present application, the first trigger matrix is constructed according to the introduction of the above Step 515a to Step 515d, and the construction manner of the second trigger matrix is not limited. In another alternative implementation manner, the second trigger matrix is constructed according to the introduction of the above Step 515e, and the construction manner of the first trigger matrix is not limited. In Figure 7 In the illustrated embodiment, the first step group includes Step 515a to Step 515d, and Step 515e can be executed before, after, or simultaneously with any step in the first step group; the present application does not limit this.

[0209] In summary, for the method provided in this embodiment, the trigger logic matrix is used to indicate at least one combination of conditions for triggering a service event, and can accurately reflect the conditions that need to be in a satisfied state among the m conditions when triggering a service event; the first trigger matrix and the second trigger matrix constructed based on the trigger logic matrix can determine the influence of whether a single condition is in a satisfied state on triggering a service event; the state sequence is used to indicate the actual states of all or some of the conditions; converting whether the complex logical relationship between the m conditions is satisfied into whether the state sequence hits the trigger logic sequence in the trigger logic matrix. It realizes determining whether to trigger a service event when the logical relationships between multiple conditions are nested with each other.

[0210] Next, a further introduction is made to the construction of the first trigger matrix and the second trigger matrix introduced above.

[0211] In one example, the acquisition method of the trigger indication information for constructing the first trigger matrix and the second trigger matrix is as follows:

[0212]

[0213] Among them, SR is the first trigger matrix, SM is the second trigger matrix; D is the trigger logic matrix of the service event. The first trigger matrix and the second trigger matrix are constructed based on the trigger logic matrix introduced above.

[0214] SR←O n×m is to set the initial value of the first trigger matrix to an n×m matrix of all 0s. SM←O n×m is to set the initial value of the second trigger matrix to an n×m matrix of all 0s.

[0215] SR i,j =1 - |D i,(j+1):h | is the element in the i-th row and j-th column of the first trigger matrix, and the modulo calculation of |D i,(j+1):h | is to perform an OR logical calculation on the last h - j columns of the i-th row to obtain the matrix reference information. 1 - |D i,(j+1):h | corresponds to the numerical conversion of the matrix reference information introduced above.

[0216] SM i,j =1 - |D i,j | is the element in the i-th row and j-th column of the second trigger matrix, and 1 - |D i,j | corresponds to the numerical conversion of the trigger logic matrix introduced above.

[0217] In an alternative design of the present application, the state sequence is used to indicate whether all or some of the m conditions are in a satisfied state under at least two mutually independent service states. Correspondingly, the calculation of the trigger indication information is implemented as follows:

[0218]

[0219] where g is the value of the mutually independent service states. Regarding f c , c i , f r , for their introductions, please refer to the above, and will not be repeated here one by one. Some calculation symbols in the acquisition method of the trigger indication information are introduced as follows:

[0220]

[0221] Above, for the matrix calculation of the calculation symbols is presented as above.

[0222] Next, the acquisition process of the state sequence is introduced. In an alternative design of the present application, the state sequence is constructed based on the state information of the first condition, and the first condition is any one of the m conditions.

[0223] In an alternative implementation manner of the present application, on the basis of the embodiment shown in Figure 3 , the following steps 502, 504, and 506 are further included:

[0224] Step 502: Obtain the condition satisfaction information and event description information of the first condition.

[0225] Exemplarily, the condition satisfaction information is used to indicate the conditions required for the first condition to be in a satisfied state, and the event description information is used to indicate the actual parameter information of the first condition. For example, in one example, the first condition being in a satisfied state is used to indicate that the playback volume of a video exceeds the playback threshold, the condition satisfaction information is used to indicate the playback threshold, and the event description information is the actual playback volume of the video.

[0226] Step 504: Construct an associated condition vector based on the condition satisfaction information, and construct an associated description vector based on the event description information.

[0227] Exemplarily, the associated condition vector is used to indicate the description information when the first condition is in a satisfied state. The associated description vector is a description vector of the actual parameter information of the first condition.

[0228] In an alternative implementation, the associated description vector is constructed based on event description information in at least two unassociated service states under a first condition. Taking the service event introduced above, i.e., whether a video message is displayed in the video stream of an application, and the first condition being in a satisfied state indicating that the playback volume of the video exceeds a playback threshold, as an example; the associated description vector is constructed based on event description information in at least two unassociated service states under the first condition. For example, the associated description vector includes the actual playback volumes of different videos in service scenarios where different videos are or are not displayed in the video stream of the application.

[0229] Furthermore, the associated description vector is stored in a 256-bit vector register. The 256-bit vector register is divided into four storage blocks of the same size, and each storage block includes 64-bit bytes. The 64-bit bytes in the associated description vector are constructed based on event description information in one service state, such as being stored in int64 and double types.

[0230] Step 506: Perform vector logical calculations on the associated condition vector and the associated description vector to obtain the status information of the first condition.

[0231] The vector logical calculations performed between the associated condition vector and the associated description vector include but are not limited to at least one of logical comparison calculations, OR logical calculations, and AND logical calculations. The status information is used to indicate whether the first condition is in a satisfied state. Taking the status information as a binary message as an example, when the value of the status information is a first value (such as 1), the first condition is in a satisfied state; when the value of the status information is a second value (such as 0), the first condition is in an unsatisfied state.

[0232] In this embodiment, the status sequence in step 520 is constructed based on the status information of the first condition. The status sequence includes the status information of all or part of the m conditions. When the status sequence includes the status information of two or more conditions, by repeatedly executing the above step 502 and step 504 until the status information of each condition in the status sequence is obtained; and then the status sequence is constructed.

[0233] In summary, for the method provided in this embodiment, the trigger logic matrix is used to indicate at least one combination of conditions for triggering a service event, and can accurately reflect the conditions that need to be in a satisfied state among the m conditions when triggering a service event; the status sequence is used to indicate the actual status of all or some of the conditions; whether the complex logical relationship between the m conditions is satisfied is converted into whether the status sequence hits the trigger logic sequence in the trigger logic matrix. By constructing the associated condition vector, the associated description vector, and performing vector logic calculations, the determination of the status information of the first condition is converted into vector logic calculations between vectors, thereby realizing the determination of whether to trigger a service event when the logical relationships between multiple conditions are nested with each other.

[0234] Next, the event description information will be further introduced. In different implementation manners of the application, the perspective description information can be implemented as at least any one of the following implementation manners:

[0235] Implementation manner 1: The event description information includes numerical information;

[0236] Implementation manner 2: The event description information includes string information;

[0237] Implementation manner 3: The event description information includes array information.

[0238] The following is an introduction to the three implementation manners respectively:

[0239] Implementation manner 1: The event description information includes numerical information;

[0240] Correspondingly, the condition satisfaction information includes numerical comparison conditions;

[0241] Step 506 introduced above can be implemented as: constructing an associated condition vector based on the reference value in the numerical comparison condition, and constructing an associated description vector based on the numerical content of the numerical information.

[0242] In this implementation manner, the reference value is the numerical threshold for judging whether the first condition is in a satisfied state. The numerical information can be an integer value or a floating-point value.

[0243] Step 508 introduced above can be implemented as: performing a comparison operation corresponding to the numerical comparison condition on the associated condition vector and the associated description vector to obtain the status information of the first condition.

[0244] In an example, refer to Figure 8; The first condition is in a satisfied state, which is used to indicate that the difference between the first parameter and the second parameter included in the event description information is less than the reference value in the comparison condition; for example, it is denoted as a - b < 1. The associated description vector 612 constructed based on the numerical content of the numerical information includes the difference between the first parameter and the second parameter carried by the numerical information (such as a - b). The associated condition vector 614 includes the reference value in the comparison condition (such as taking the value 1).

[0245] Perform the comparison operation corresponding to the numerical comparison condition, that is, the less-than operation, on the associated description vector 612 and the associated condition vector 614; to obtain the status information 616 of the first condition.

[0246] See Figure 9 , the associated description vector 612 includes N storage blocks of the same size (such as 8 bytes), and the associated description vector 612 stores the original data of N numerical information, denoted as the first data 612a, the second data 612b to the Nth data 612n.

[0247] In Figure 8 , the associated description vector 612 is constructed based on the event description information in at least two non-related service states under the first condition. In the first service state, the value of the first parameter is 3, the value of the second parameter is 2, and the value of the information corresponding to the first service state in the associated description vector 612 is 1; similarly, for the second service state to the fourth service state, the values of the corresponding information in the associated description vector 612 are 0, -2, 4. As introduced above, different service states correspond to different service events. Taking the service event as whether a video information is displayed in the video stream of an application as an example; different service states correspond to the display of different videos, or the display services of the same video at different times and on different terminals.

[0248] Implementation method two: The event description information includes string information;

[0249] Correspondingly, the condition satisfaction information includes a character comparison condition;

[0250] Step 506 introduced above can be implemented as: constructing an associated condition vector based on the reference character in the character comparison condition, and extracting an associated description vector based on the string information.

[0251] In this implementation method, by extracting the associated description vector from the string information, it is avoided to carry all the information of the string information in the associated description vector in full. The complexity of constructing the associated description vector and calculating the status information of the first condition based on the associated description vector is reduced.

[0252] In an alternative implementation method, the associated condition vector includes a first condition vector and a second condition vector, and this step can be implemented as:

[0253] ·Construct a first condition vector based on the size of the reference character in the character comparison condition, and construct a second condition vector based on the character content of the reference character in the character comparison condition;

[0254] ·Construct a first description vector based on the size of the string information, and construct a second description vector based on the storage location of the string information;

[0255] Exemplarily, extract the size of the string information and the storage location of the string information in the string information to construct the first description vector and the second description vector in the associated description vector.

[0256] Correspondingly, the associated description vector includes a first description vector and a second description vector, and step 508 introduced above can be implemented as:

[0257] ·Perform a logical comparison calculation on the first condition vector and the first description vector;

[0258] ·When the first condition vector and the first description vector are the same, obtain the character content of the string information based on the second description vector;

[0259] ·Perform a logical comparison calculation on the character content of the string information and the second condition vector to obtain the status information of the first condition.

[0260] By comparing the first condition vector and the first description vector, determine whether the character length of the string information is the same as the character length of the reference character in the character comparison condition.

[0261] Through the comparison of the first condition vector and the first description vector, it is possible to quickly rule out the case where there is no possibility that the character content of the string information is the same as that of the reference character when the character lengths of the string information and the reference character are different. For example, when the first condition vector and the first description vector are the same, the status information of the first condition is used to indicate that the first condition is not satisfied.

[0262] When the first condition vector and the first description vector are the same, there is a possibility that the character content of the string information is the same as that of the reference character. Obtain the character content of the string information based on the second description vector.

[0263] In one example, see Figure 10 ; The first condition being in a satisfied state is used to indicate that the string information included in the event description information is the same as the reference character "hello" in the character comparison condition;

[0264] The first condition vector 621 constructed based on the character comparison condition is used to indicate that the size of the reference character is 5; the second condition vector 622 constructed based on the character comparison condition is used to indicate the character content of the reference character.

[0265] The first description vector 623 constructed based on the string information in the event description information is used to indicate the size of the string information, and the second description vector 624 constructed based on the string information is used to indicate the storage location of the string information.

[0266] Perform a logical comparison calculation on the first condition vector 621 and the first description vector 623, such as an equality operation; to obtain a reference vector 625. A value of 1 in the reference vector indicates that the first condition vector and the first description vector are the same, and a value of 0 in the reference vector indicates that the first condition vector and the first description vector are different.

[0267] For the case where the value in the reference vector is 1, obtain the character content 626 of the string information according to the second description vector 624; perform a logical comparison calculation on the character content 626 of the string information and the second condition vector 622 to compare whether the character content 626 and the second condition vector 622 are the same, and obtain the status information 628 of the first condition.

[0268] See Figure 11 , the first description vector 623 includes N storage blocks of the same size (such as 16 bytes), and the first description vector 623 stores the size information of N string information, denoted as the first size 623a, the second size 623b to the Nth size 623n. The second description vector 624 includes N storage blocks of the same size (such as 16 bytes), and the second description vector 624 stores the storage address information of N string information, denoted as the first address 624a, the second address 624b to the Nth address 624n. Above, the first description vector 623 and the second description vector 624 do not need to directly copy information from the database of the string information, reducing the complexity of constructing the description vector and the data reading and writing requirements.

[0269] In Figure 10 , the first description vector 623 and the second description vector 624 are constructed based on the event description information in at least two non-related service states under the first condition. As introduced above, different service states correspond to different service events. For example, in the first service state, the content of the string information is "hi", and the size of the string information recorded in the first description vector 623 is 2. In the second service state, the content of the string information is empty, and the size of the string information recorded in the first description vector 623 is 0. In the third service state, the content of the string information is "hello", and the size of the string information recorded in the first description vector 623 is 5. In the fourth service state, the content of the string information is "world", and the size of the string information recorded in the first description vector 623 is 5.

[0270] Implementation method three: The event description information includes array information.

[0271] Correspondingly, the condition satisfaction information includes a numerical comparison condition;

[0272] Step 506 introduced above can be implemented as: constructing an associated condition vector based on a reference value in the numerical comparison condition, and extracting an associated description vector based on the array information.

[0273] In this implementation manner, by extracting the associated description vector from the array information, it is avoided that all information of the array information is carried in the associated description vector in full. This reduces the complexity of constructing the associated description vector and calculating the status information of the first condition based on the associated description vector.

[0274] In an alternative implementation manner, the associated description vector in this step includes a third description vector and a fourth description vector, and can be implemented as:

[0275] · Constructing a third description vector based on the maximum and minimum values of the array information, and constructing a fourth description vector based on the storage location of the array information;

[0276] Exemplarily, the maximum value, minimum value, and storage location are extracted from the array information to construct the third description vector and the fourth description vector in the associated description vector.

[0277] Correspondingly, step 508 introduced above can be implemented as:

[0278] · Performing a logical comparison calculation on the associated condition vector and the third description vector;

[0279] · In the case where the associated condition vector is less than the maximum value in the third description vector and greater than the minimum value in the third description vector, obtaining the array content of the array information based on the fourth description vector;

[0280] · Searching for the associated condition vector in the array content of the array information to obtain the status information of the first condition.

[0281] By comparing the associated condition vector and the third description vector, it is determined whether the associated condition vector falls within the range of the maximum and minimum values in the array information.

[0282] By performing a logical comparison calculation on the associated condition vector and the third description vector; it is realized that in the case where the associated condition vector does not fall within the range of the maximum and minimum values in the array information, it is impossible for the array information to include the reference value. For example, in the case where the associated condition vector is greater than the maximum value in the third description vector or less than the minimum value in the third description vector, the status information of the first condition is used to indicate that the first condition is in an unsatisfied state.

[0283] When the associated condition vector is less than the maximum value in the third description vector and greater than the minimum value in the third description vector, there is a possibility that the array information includes a reference value. The array content of the array information is obtained based on the fourth description vector.

[0284] In one example, refer to Figure 12 ; The first condition is in a satisfied state to indicate that the array information includes the reference value in the numerical comparison condition.

[0285] The associated condition vector 632 constructed based on the reference value in the numerical comparison condition is used to indicate the reference value; and based on the array information, the associated description vector is extracted. Based on the maximum and minimum values of the array information, the third description vector 633 is constructed, and based on the storage location of the array information, the fourth description vector 634 is constructed;

[0286] In one example, a logical comparison calculation is performed on the associated condition vector 632 and the third description vector 633; Exemplarily, an equality operation is performed on the maximum and minimum values in the associated condition vector 632 and the third description vector 633 respectively; When the calculated first reference vector 635 is 1, it indicates that the reference value in the associated condition vector 632 is the same as the maximum or minimum value in the array information, and the array information includes the reference value in the numerical comparison condition; The status information of the first condition indicates a satisfied state.

[0287] Exemplarily, a less-than comparison calculation and a greater-than comparison calculation are performed on the maximum and minimum values in the associated condition vector 632 and the third description vector 633 respectively; When the calculated second reference vector 636 is 1, the associated condition vector 632 falls within the range of the maximum and minimum values in the array information, and there is a possibility that the array information includes the reference value. Further, the array content of the array information is obtained based on the fourth description vector 634; Search for the associated condition vector 632 in the array content of the array information (such as searching in a binary search manner) to obtain the status information 628 of the first condition.

[0288] And in the above text Figure 11 Similarly, the third description vector 633 and the fourth description vector 634 include N storage blocks of the same size (such as 32 bytes). The third description vector 633 stores the maximum and minimum values of N array information. The fourth description vector 634 stores the storage address information of N array information. Above, the third description vector 633 and the fourth description vector 634 do not need to directly copy information from the database of the array information, reducing the complexity of constructing the description vector and the data reading and writing requirements.

[0289] In Figure 12Among them, the third description vector 633 and the fourth description vector 634 are constructed based on event description information in at least two uncorrelated service states under the first condition. As introduced above, different service states correspond to different service events.

[0290] In an application scenario of the present application, the service event is a service function provided by a social application program, also known as a multimedia service event; for example, at least one of displaying the first multimedia information in a multimedia information stream, displaying the first multimedia information in a search list, etc. Correspondingly:

[0291] · Obtain the trigger logic matrix of the multimedia service event.

[0292] Exemplarily, there is a trigger logic relationship between the multimedia service event and m conditions; that is, whether the multimedia service event is triggered is related to the m conditions. In one example, the multimedia service event is to display the first multimedia information in a multimedia information stream; whether the multimedia service event is triggered is related to m conditions such as whether the playback volume of the video information exceeds the playback threshold, whether the video partition belongs to the target partition, and whether the video duration exceeds the duration threshold. There is at least one of the logical relationships of AND logic or OR logic among the m conditions.

[0293] The trigger logic matrix includes n trigger logic sequences of size m; the m bits in one trigger logic sequence correspond to the m conditions respectively. Each trigger logic sequence in the trigger logic matrix is used to indicate a combination of conditions for triggering the multimedia service event; the combination of conditions is at least one condition that needs to be in a satisfied state when the multimedia service event is triggered.

[0294] Among them, m is an integer greater than 1, and whether the multimedia service event is triggered is related to at least two conditions. n is a positive integer, and the trigger logic matrix is used to indicate at least one combination of conditions for triggering the multimedia service event.

[0295] · Obtain a state sequence of size m.

[0296] The state sequence includes the state information of all or part of the m conditions, and the state information of one condition includes that the condition is in a satisfied state or in an unsatisfied state. Exemplarily, the state sequence is used to indicate that at least one condition is in a triggered state; there is at least one bit in the state sequence whose value is the first value (for example, the value is 1).

[0297] · When the state sequence hits any one of the trigger logic sequences in the trigger logic matrix, trigger the multimedia service event.

[0298] When any one of the trigger logic sequences in the trigger logic matrix is hit by the status sequence, the status information of all or part of the conditions described in the status sequence hits the condition combination indicated by the trigger logic sequence; it meets the conditions that need to be in a satisfied state when triggering the execution of the multimedia service event as indicated in the trigger logic matrix.

[0299] Optionally, it further includes: constructing a first trigger matrix and a second trigger matrix based on the trigger logic matrix; the first trigger matrix includes n first trigger sequences with a size of m; the value of the i-th bit in the first trigger sequence is used to indicate whether the multimedia service event is triggered when the first condition to the i-th condition of the multimedia service event are in a satisfied state, where i is a positive integer not exceeding m; the second trigger matrix includes n second trigger sequences with a size of m; the value of the j-th bit in the second trigger sequence is used to indicate whether the multimedia service event is triggered when the j-th condition of the multimedia service event is not in a satisfied state and the m - 1 conditions other than the j-th condition are in a satisfied state, where j is a positive integer not exceeding m;

[0300] Correspondingly, perform at least one trigger logic calculation on the status sequence, the first trigger matrix, and the second trigger matrix to obtain the trigger indication information of the multimedia service event; the trigger logic calculation includes at least one of AND logic calculation and OR logic calculation, and the trigger indication information is used to indicate whether the multimedia service event is triggered;

[0301] When the value of the trigger indication information is the first information value, trigger the multimedia service event.

[0302] Furthermore, obtain a mask sequence with a size of n, and the values of each bit in the mask sequence are the same;

[0303] Perform an AND logic calculation on the status information of the k-th condition in the status sequence, the value of the k-th bit of the n first trigger sequences, and the mask sequence to obtain the indication information corresponding to the k-th condition;

[0304] Update the mask sequence based on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences to obtain the updated mask sequence;

[0305] Increase the value of k and repeat the above two steps until the indication information corresponding to each condition in the status sequence is obtained, where k is a positive integer not exceeding n;

[0306] Determine the trigger indication information of the multimedia service event based on the OR logic operation among the indication information corresponding to each condition in the status sequence.

[0307] Further, perform an OR logic calculation on the state information of the k-th condition in the state sequence and the values of the k-th bits of the n second trigger sequences to obtain mask reference information;

[0308] Perform an AND logic calculation on the mask reference information and the mask sequence to obtain an updated mask sequence.

[0309] In an optional example, it further includes: performing an AND logic calculation on the mask sequence and the values of the k-th bits of the n trigger logic sequences to obtain trigger reference information;

[0310] In the case where the value of the trigger reference information is the second information value, abandon the triggering of the multimedia service event.

[0311] In another optional example, it further includes: performing an OR logic calculation on the indication information corresponding to the k-th condition and the updated mask sequence to obtain interruption reference information;

[0312] In the case where the value of the interruption reference information is the third information value, determine the calculation result obtained by performing an OR logic calculation on the indication information corresponding to at least one condition obtained by calculation as the trigger indication information.

[0313] Regarding the construction of the first trigger matrix, it includes: performing an OR logic calculation on the values of the (i + 1)-th bit to the m-th bit of the n trigger logic sequences to obtain matrix reference information;

[0314] Perform a numerical conversion on the matrix reference information to determine the values of the i-th bits of the n first trigger sequences. The numerical conversion is used to indicate converting the information elements with the first numerical value in the matrix reference information to the second numerical value, and converting the information elements with the first numerical value in the matrix reference information to the second numerical value;

[0315] Increase the value of i and repeat the above two steps until the values of the m bits of the n first trigger sequences are obtained;

[0316] Based on the values of the m bits of the n first trigger sequences, construct the first trigger matrix.

[0317] Regarding the construction of the second trigger matrix, it includes: performing a numerical conversion on the trigger logic matrix to determine the second trigger matrix;

[0318] Among them, the numerical conversion is used to indicate converting the matrix elements with the first numerical value in the trigger logic matrix to the second numerical value, and converting the matrix elements with the first numerical value in the trigger logic matrix to the second numerical value.

[0319] Optionally, the state sequence is used to indicate whether all or part of the m conditions are in a satisfied state in at least two non-related service states of the multimedia service event.

[0320] In an alternative design, the status information regarding the first condition further includes:

[0321] Obtain the condition satisfaction information and event description information of the first condition, where the condition satisfaction information is used to indicate the conditions required for the first condition to be in a satisfied state, and the event description information is used to indicate the actual parameter information of the first condition;

[0322] Construct an associated condition vector based on the condition satisfaction information, and construct an associated description vector based on the event description information;

[0323] Perform vector logic calculations on the associated condition vector and the associated description vector to obtain the status information of the first condition, and the status sequence is constructed based on the status information of the first condition.

[0324] In a further alternative example, the event description information includes numerical information, and the condition satisfaction information includes numerical comparison conditions;

[0325] Construct an associated condition vector based on the reference value in the numerical comparison condition, and construct an associated description vector based on the numerical content of the numerical information;

[0326] Perform the comparison operation corresponding to the numerical comparison condition on the associated condition vector and the associated description vector to obtain the status information of the first condition.

[0327] In another further alternative example, the event description information includes string information, and the condition satisfaction information includes character comparison conditions;

[0328] Construct an associated condition vector based on the reference character in the character comparison condition, and extract the associated description vector based on the string information.

[0329] Furthermore, construct a first condition vector based on the size of the reference character in the character comparison condition, and construct a second condition vector based on the character content of the reference character in the character comparison condition;

[0330] Construct a first description vector based on the size of the string information, and construct a second description vector based on the storage location of the string information;

[0331] Perform logical comparison calculations on the first condition vector and the first description vector;

[0332] When the first condition vector and the first description vector are the same, obtain the character content of the string information based on the second description vector;

[0333] Perform logical comparison calculations on the character content of the string information and the second condition vector to obtain the status information of the first condition.

[0334] In yet another further optional example, the event description information includes array information, and the condition satisfaction information includes a numerical comparison condition;

[0335] Based on the reference value in the numerical comparison condition, construct an associated condition vector, and based on the array information, extract an associated description vector.

[0336] Furthermore, based on the maximum and minimum values of the array information, construct a third description vector, and based on the storage location of the array information, construct a fourth description vector;

[0337] Perform a logical comparison calculation on the associated condition vector and the third description vector;

[0338] When the associated condition vector is less than the maximum value in the third description vector and greater than the minimum value in the third description vector, obtain the array content of the array information based on the fourth description vector;

[0339] Search for the associated condition vector in the array content of the array information to obtain the status information of the first condition.

[0340] Optionally, the associated description vector is constructed based on the event description information of the first condition in at least two non-related service states.

[0341] In another application scenario of the present application, the service event is to provide a game function in a game application program, also known as a game service event; for example, matching the first account as a teammate role in a virtual game, matching the first account as an enemy role in a virtual game, displaying the first account as a recommended teammate in the preparation stage of a virtual game, etc. At least one of them. Correspondingly:

[0342] · Obtain the trigger logic matrix of the game service event.

[0343] Exemplarily, there is a trigger logic relationship between the game service event and m conditions; that is, whether the game service event is triggered is associated with m conditions. In one example, the game service event is to match the first account as a teammate role in a virtual game; whether the game service event is triggered is related to m conditions such as whether the virtual level of the first account exceeds the level threshold, whether the historical game information of the first account is a game victory, whether the first account joins the first virtual team, and whether the frequency of the virtual character controlled by the first account participating in the virtual game exceeds the frequency threshold. There is at least one of the logical relationships of AND logic or OR logic among the m conditions.

[0344] The trigger logic matrix includes n trigger logic sequences of size m; the m bits in one trigger logic sequence correspond to m conditions respectively. Each trigger logic sequence in the trigger logic matrix is used to indicate a combination of conditions for triggering a game service event; the combination of conditions is at least one condition that needs to be in a satisfied state when the game service event is triggered.

[0345] Where m is an integer greater than 1, and whether the game service event is triggered is related to at least two conditions. n is a positive integer, and the trigger logic matrix is used to indicate at least one combination of conditions for triggering the game service event.

[0346] · Obtain a status sequence of size m.

[0347] The status sequence includes the status information of all or part of the m conditions. The status information of one condition includes that the condition is in a satisfied state or an unsatisfied state. Exemplarily, the status sequence is used to indicate that at least one condition is in a triggered state; there is at least one bit in the status sequence whose value is the first value (such as the value is 1).

[0348] · When the status sequence hits any one of the trigger logic sequences in the trigger logic matrix, trigger the game service event.

[0349] When the status sequence hits any one of the trigger logic sequences in the trigger logic matrix, the status information of all or part of the conditions described in the status sequence hits the combination of conditions indicated by the trigger logic sequence; it meets the conditions that need to be in a satisfied state when triggering the execution of the game service event as indicated in the trigger logic matrix.

[0350] Optionally, it further includes: based on the trigger logic matrix, constructing a first trigger matrix and a second trigger matrix; the first trigger matrix includes n first trigger sequences of size m; the value of the i-th bit in the first trigger sequence is used to indicate whether the game service event is triggered when the first condition to the i-th condition of the game service event are in a satisfied state, where i is a positive integer not exceeding m; the second trigger matrix includes n second trigger sequences of size m; the value of the j-th bit in the second trigger sequence is used to indicate whether the game service event is triggered when the j-th condition of the game service event is in an unsatisfied state and the m - 1 conditions other than the j-th condition are in a satisfied state, where j is a positive integer not exceeding m;

[0351] Correspondingly, perform at least one trigger logic calculation on the status sequence, the first trigger matrix, and the second trigger matrix to obtain the trigger indication information of the game service event; the trigger logic calculation includes at least one of AND logic calculation and OR logic calculation, and the trigger indication information is used to indicate whether the game service event is triggered;

[0352] When the value of the trigger indication information is the first information value, a game service event is triggered.

[0353] Further, a mask sequence of size n is obtained, and the values of all bits in the mask sequence are the same;

[0354] Perform an AND logic calculation on the status information of the k-th condition in the status sequence, the value of the k-th bit of the n first trigger sequences, and the mask sequence to obtain the indication information corresponding to the k-th condition;

[0355] Based on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences, update the mask sequence to obtain an updated mask sequence;

[0356] Increase the value of k and repeat the above two steps until the indication information corresponding to each condition in the status sequence is obtained. k is a positive integer not exceeding n;

[0357] Based on the OR logic operation between the indication information corresponding to each condition in the status sequence, determine the trigger indication information of the game service event.

[0358] Furthermore, perform an OR logic calculation on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences to obtain a mask reference information;

[0359] Perform an AND logic calculation on the mask reference information and the mask sequence to obtain an updated mask sequence.

[0360] In an optional example, it further includes: performing an AND logic calculation on the mask sequence and the value of the k-th bit of the n trigger logic sequences to obtain a trigger reference information;

[0361] When the value of the trigger reference information is the second information value, give up triggering the game service event.

[0362] In another optional example, it further includes: performing an OR logic calculation on the indication information corresponding to the k-th condition and the updated mask sequence to obtain an interruption reference information;

[0363] When the value of the interruption reference information is the third information value, determine the calculation result obtained by performing an OR logic calculation on the indication information corresponding to at least one condition calculated as the trigger indication information.

[0364] Regarding the construction of the first trigger matrix, it includes: performing an OR logic calculation on the values of the (i + 1)-th bit to the m-th bit of the n trigger logic sequences to obtain a matrix reference information;

[0365] Perform numerical conversion on the matrix reference information to determine the value of the \(i\)-th bit of the \(n\) first trigger sequences. The numerical conversion is used to indicate converting information elements with a first value in the matrix reference information to a second value, and converting information elements with a first value in the matrix reference information to a second value;

[0366] Increase the value of \(i\) and repeat the above two steps until the values of the \(m\) bits of the \(n\) first trigger sequences are obtained;

[0367] Based on the values of the \(m\) bits of the \(n\) first trigger sequences, construct a first trigger matrix.

[0368] Regarding the construction of the second trigger matrix, it includes: performing numerical conversion on the trigger logic matrix to determine the second trigger matrix;

[0369] Among them, the numerical conversion is used to indicate converting matrix elements with a first value in the trigger logic matrix to a second value, and converting matrix elements with a first value in the trigger logic matrix to a second value.

[0370] Optionally, the state sequence is used to indicate whether all or some of the \(m\) conditions are in a satisfied state in at least two non - related service states of the game service event.

[0371] In an alternative design, regarding the state information of the first condition, it further includes:

[0372] Obtain the condition satisfaction information and event description information of the first condition. The condition satisfaction information is used to indicate the conditions required for the first condition to be in a satisfied state, and the event description information is used to indicate the actual parameter information of the first condition;

[0373] Construct an associated condition vector based on the condition satisfaction information, and construct an associated description vector based on the event description information;

[0374] Perform vector logic calculation on the associated condition vector and the associated description vector to obtain the state information of the first condition. The state sequence is constructed based on the state information of the first condition.

[0375] In a further alternative example, the event description information includes numerical information, and the condition satisfaction information includes numerical comparison conditions;

[0376] Construct an associated condition vector based on the reference value in the numerical comparison condition, and construct an associated description vector based on the numerical content of the numerical information;

[0377] Perform the comparison operation corresponding to the numerical comparison condition on the associated condition vector and the associated description vector to obtain the state information of the first condition.

[0378] In another further optional example, the event description information includes string information, and the condition satisfaction information includes a character comparison condition;

[0379] Construct an associated condition vector based on the reference characters in the character comparison condition, and extract an associated description vector based on the string information.

[0380] Further, construct a first condition vector based on the size of the reference characters in the character comparison condition, and construct a second condition vector based on the character content of the reference characters in the character comparison condition;

[0381] Construct a first description vector based on the size of the string information, and construct a second description vector based on the storage location of the string information;

[0382] Perform a logical comparison calculation on the first condition vector and the first description vector;

[0383] When the first condition vector is the same as the first description vector, obtain the character content of the string information based on the second description vector;

[0384] Perform a logical comparison calculation on the character content of the string information and the second condition vector to obtain the status information of the first condition.

[0385] In yet another further optional example, the event description information includes array information, and the condition satisfaction information includes a numerical comparison condition;

[0386] Construct an associated condition vector based on the reference numerical values in the numerical comparison condition, and extract an associated description vector based on the array information.

[0387] Further, construct a third description vector based on the maximum and minimum values of the array information, and construct a fourth description vector based on the storage location of the array information;

[0388] Perform a logical comparison calculation on the associated condition vector and the third description vector;

[0389] When the associated condition vector is less than the maximum value in the third description vector and greater than the minimum value in the third description vector, obtain the array content of the array information based on the fourth description vector;

[0390] Search for the associated condition vector in the array content of the array information to obtain the status information of the first condition.

[0391] Optionally, the associated description vector is constructed based on the event description information of the first condition in at least two non-related business states.

[0392] In yet another application scenario of the present application, the service event is based on the file management function provided by the file management application, also known as the file management service event; for example, at least one of deleting the first file, selecting the first file, setting access permissions for the first file, etc. Correspondingly:

[0393] · Obtain the trigger logic matrix of the file management service event.

[0394] Exemplarily, there is a trigger logic relationship between the file management service event and m conditions; that is, whether the file management service event is triggered is related to the m conditions. In one example, the file management service event is to match the first account as a teammate role in a virtual game; whether the file management service event is triggered is related to m conditions such as whether the file size of the first file exceeds the size threshold, whether the file format of the first file belongs to the candidate format set, and whether the file name of the first file includes characters in the first language. There is at least one of the AND logic or the OR logic relationship among the m conditions.

[0395] The trigger logic matrix includes n trigger logic sequences with a size of m; the m bits in one trigger logic sequence correspond to the m conditions respectively. Each trigger logic sequence in the trigger logic matrix is used to indicate a combination of conditions for triggering the file management service event; the combination of conditions is at least one condition that needs to be in a satisfied state when the file management service event is triggered.

[0396] Wherein, m is an integer greater than 1, and whether the file management service event is triggered is related to at least two conditions. n is a positive integer, and the trigger logic matrix is used to indicate at least one combination of conditions for triggering the file management service event.

[0397] · Obtain a status sequence with a size of m.

[0398] The status sequence includes the status information of all or part of the m conditions, and the status information of one condition includes that the condition is in a satisfied state or an unsatisfied state. Exemplarily, the status sequence is used to indicate that at least one condition is in a triggered state; there is at least one bit in the status sequence with a value of the first value (for example, the value is 1).

[0399] · When the status sequence hits any one of the trigger logic sequences in the trigger logic matrix, trigger the file management service event.

[0400] When the status sequence hits any one of the trigger logic sequences in the trigger logic matrix, the status information of all or part of the conditions described in the status sequence hits the combination of conditions indicated by the trigger logic sequence; it meets the conditions that need to be in a satisfied state when the trigger execution file management service event is indicated in the trigger logic matrix.

[0401] Optionally, it further includes: constructing a first trigger matrix and a second trigger matrix based on a trigger logic matrix; the first trigger matrix includes n first trigger sequences with a size of m; the value of the i-th bit in the first trigger sequence is used to indicate whether the file management service event is triggered when the first condition to the i-th condition of the file management service event are in a satisfied state, where i is a positive integer not exceeding m; the second trigger matrix includes n second trigger sequences with a size of m; the value of the j-th bit in the second trigger sequence is used to indicate whether the file management service event is triggered when the j-th condition of the file management service event is in an unsatisfied state and the other m - 1 conditions except the j-th condition are in a satisfied state, where j is a positive integer not exceeding m;

[0402] Correspondingly, perform at least one trigger logic calculation on the status sequence, the first trigger matrix, and the second trigger matrix to obtain trigger indication information for the file management service event; the trigger logic calculation includes at least one of an AND logic calculation and an OR logic calculation, and the trigger indication information is used to indicate whether the file management service event is triggered;

[0403] When the value of the trigger indication information is the first information value, trigger the file management service event.

[0404] Further, obtain a mask sequence with a size of n, and the values of all bits in the mask sequence are the same;

[0405] Perform an AND logic calculation on the status information of the k-th condition in the status sequence, the value of the k-th bit of the n first trigger sequences, and the mask sequence to obtain indication information corresponding to the k-th condition;

[0406] Update the mask sequence based on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences to obtain an updated mask sequence;

[0407] Increase the value of k and repeat the above two steps until obtaining indication information corresponding to each condition in the status sequence, where k is a positive integer not exceeding n;

[0408] Determine the trigger indication information for the file management service event based on an OR logic operation among the indication information corresponding to each condition in the status sequence.

[0409] Furthermore, perform an OR logic calculation on the status information of the k-th condition in the status sequence and the value of the k-th bit of the n second trigger sequences to obtain mask reference information;

[0410] Perform an AND logic calculation on the mask reference information and the mask sequence to obtain an updated mask sequence.

[0411] In an optional example, it further includes: performing an AND logic calculation on the values of the k-th bit of the mask sequence and the n trigger logic sequences to obtain trigger reference information;

[0412] When the value of the trigger reference information is the second information value, the triggering of the file management service event is abandoned.

[0413] In another optional example, it further includes: performing an OR logic calculation on the indication information corresponding to the k-th condition and the updated mask sequence to obtain interruption reference information;

[0414] When the value of the interruption reference information is the third information value, the calculation result obtained by performing an OR logic calculation on the indication information corresponding to at least one condition obtained by calculation is determined as the trigger indication information.

[0415] Regarding the construction of the first trigger matrix, it includes: performing an OR logic calculation on the values of the (i + 1)-th bit to the m-th bit of the n trigger logic sequences to obtain matrix reference information;

[0416] Performing a numerical conversion on the matrix reference information to determine the values of the i-th bit of the n first trigger sequences, where the numerical conversion is used to indicate converting the information elements with the first numerical value in the matrix reference information to the second numerical value, and converting the information elements with the first numerical value in the matrix reference information to the second numerical value;

[0417] Increasing the value of i and repeating the above two steps until the values of the m bits of the n first trigger sequences are obtained;

[0418] Based on the values of the m bits of the n first trigger sequences, the first trigger matrix is constructed.

[0419] Regarding the construction of the second trigger matrix, it includes: performing a numerical conversion on the trigger logic matrix to determine the second trigger matrix;

[0420] Among them, the numerical conversion is used to indicate converting the matrix elements with the first numerical value in the trigger logic matrix to the second numerical value, and converting the matrix elements with the first numerical value in the trigger logic matrix to the second numerical value.

[0421] Optionally, the status sequence is used to indicate whether all or part of the m conditions are in a satisfied state in at least two non-related service states of the file management service event.

[0422] In an optional design, regarding the status information of the first condition, it further includes:

[0423] Obtaining the condition satisfaction information and event description information of the first condition, where the condition satisfaction information is used to indicate the conditions required for the first condition to be in a satisfied state, and the event description information is used to indicate the actual parameter information of the first condition;

[0424] Construct an associated condition vector based on the condition satisfaction information, and construct an associated description vector based on the event description information;

[0425] Perform vector logical calculations on the associated condition vector and the associated description vector to obtain the status information of the first condition, and the status sequence is constructed based on the status information of the first condition.

[0426] In a further optional example, the event description information includes numerical information, and the condition satisfaction information includes a numerical comparison condition;

[0427] Construct an associated condition vector based on the reference value in the numerical comparison condition, and construct an associated description vector based on the numerical content of the numerical information;

[0428] Perform the comparison operation corresponding to the numerical comparison condition on the associated condition vector and the associated description vector to obtain the status information of the first condition.

[0429] In another further optional example, the event description information includes string information, and the condition satisfaction information includes a character comparison condition;

[0430] Construct an associated condition vector based on the reference character in the character comparison condition, and extract the associated description vector based on the string information.

[0431] Furthermore, construct a first condition vector based on the size of the reference character in the character comparison condition, and construct a second condition vector based on the character content of the reference character in the character comparison condition;

[0432] Construct a first description vector based on the size of the string information, and construct a second description vector based on the storage location of the string information;

[0433] Perform logical comparison calculations on the first condition vector and the first description vector;

[0434] When the first condition vector and the first description vector are the same, obtain the character content of the string information based on the second description vector;

[0435] Perform logical comparison calculations on the character content of the string information and the second condition vector to obtain the status information of the first condition.

[0436] In yet another further optional example, the event description information includes array information, and the condition satisfaction information includes a numerical comparison condition;

[0437] Construct an associated condition vector based on the reference value in the numerical comparison condition, and extract the associated description vector based on the array information.

[0438] Further, a third description vector is constructed based on the maximum and minimum values of the array information, and a fourth description vector is constructed based on the storage location of the array information;

[0439] Perform a logical comparison calculation on the association condition vector and the third description vector;

[0440] In the case where the association condition vector is less than the maximum value in the third description vector and greater than the minimum value in the third description vector, obtain the array content of the array information based on the fourth description vector;

[0441] Search for the association condition vector in the array content of the array information to obtain the status information of the first condition.

[0442] Optionally, the association description vector is constructed based on the event description information of the first condition in at least two non-associated service states.

[0443] Those of ordinary skill in the art can understand that the above embodiments can be implemented independently, or the above embodiments can be freely combined to form a new embodiment to implement the method for processing service events of the present application.

[0444] Figure 13 The structural block diagram of a service event processing device provided by an exemplary embodiment of the present application is shown. The device includes:

[0445] An acquisition module 810, configured to acquire the trigger logic matrix of the service event, where the trigger logic matrix includes n trigger logic sequences with a size of m, there is a trigger logic relationship between the service event and m conditions, and each trigger logic sequence in the trigger logic matrix is used to indicate a combination of conditions for triggering the service event; m is an integer greater than 1, and n is a positive integer;

[0446] The acquisition module 810 is further configured to acquire a status sequence with a size of m, where the status sequence includes the status information of all or part of the m conditions, and the status sequence is used to indicate that at least one condition is in a satisfied state;

[0447] A processing module 820, configured to trigger the service event when the status sequence hits any one of the trigger logic sequences in the trigger logic matrix.

[0448] In an optional implementation manner of this embodiment, the processing module 820 is further configured to:

[0449] Based on the trigger logic matrix, a first trigger matrix and a second trigger matrix are constructed; the first trigger matrix includes n first trigger sequences each of size m; the value of the i-th bit in the first trigger sequence is used to indicate whether the service event is triggered when the first condition to the i-th condition of the service event are in a satisfied state, where i is a positive integer not exceeding m; the second trigger matrix includes n second trigger sequences each of size m; the value of the j-th bit in the second trigger sequence is used to indicate whether the service event is triggered when the j-th condition of the service event is in an unsatisfied state and the m - 1 conditions other than the j-th condition are in a satisfied state, where j is a positive integer not exceeding m;

[0450] Perform at least one trigger logic calculation on the state sequence, the first trigger matrix, and the second trigger matrix to obtain trigger indication information for the service event; the trigger logic calculation includes at least one of an AND logic calculation and an OR logic calculation, and the trigger indication information is used to indicate whether the service event is triggered;

[0451] When the value of the trigger indication information is a first information value, trigger the service event.

[0452] In an alternative implementation of this embodiment, the processing module 820 is further configured to:

[0453] Obtain a mask sequence of size n, where the values of all bits in the mask sequence are the same;

[0454] Perform an AND logic calculation on the state information of the k-th condition in the state sequence, the value of the k-th bit of the n first trigger sequences, and the mask sequence to obtain indication information corresponding to the k-th condition;

[0455] Update the mask sequence based on the state information of the k-th condition in the state sequence and the value of the k-th bit of the n second trigger sequences to obtain an updated mask sequence;

[0456] Increase the value of k and repeat the above two steps until indication information corresponding to each condition in the state sequence is obtained, where k is a positive integer not exceeding n;

[0457] Determine the trigger indication information of the service event based on an OR logic operation among the indication information corresponding to each condition in the state sequence.

[0458] In an alternative implementation of this embodiment, the processing module 820 is further configured to:

[0459] Perform an OR logic calculation on the state information of the k-th condition in the state sequence and the value of the k-th bit of the n second trigger sequences to obtain mask reference information;

[0460] Perform an AND logic calculation on the mask reference information and the mask sequence to obtain the updated mask sequence.

[0461] In an alternative implementation of this embodiment, the processing module 820 is further configured to:

[0462] Perform an AND logic calculation on the k-th bit value of the mask sequence and the n trigger logic sequences to obtain trigger reference information;

[0463] In the case where the value of the trigger reference information is the second information value, abandon triggering the service event.

[0464] In an alternative implementation of this embodiment, the processing module 820 is further configured to:

[0465] Perform an OR logic calculation on the indication information corresponding to the k-th condition and the updated mask sequence to obtain interruption reference information;

[0466] In the case where the value of the interruption reference information is the third information value, determine the calculation result obtained by performing an OR logic calculation on the indication information corresponding to at least one condition obtained by calculation as the trigger indication information.

[0467] In an alternative implementation of this embodiment, the matrix elements in the trigger logic matrix take on a first value and a second value, and the acquisition module 810 is further configured to:

[0468] Perform an OR logic calculation on the values of the (i + 1)-th bit to the m-th bit of the n trigger logic sequences to obtain matrix reference information;

[0469] Perform a numerical conversion on the matrix reference information to determine the value of the i-th bit of the n first trigger sequences, where the numerical conversion is used to indicate converting information elements with a value of the first value in the matrix reference information to the second value, and converting information elements with a value of the first value in the matrix reference information to the second value;

[0470] Increase the value of i and repeat the above two steps until the values of the m bits of the n first trigger sequences are obtained;

[0471] Construct the first trigger matrix based on the values of the m bits of the n first trigger sequences.

[0472] In an alternative implementation of this embodiment, the matrix elements in the trigger logic matrix take on a first value and a second value, and the acquisition module 810 is further configured to:

[0473] Perform a numerical conversion on the trigger logic matrix to determine the second trigger matrix;

[0474] The numerical conversion is used to indicate that matrix elements with a value of the first numerical value in the trigger logic matrix are converted to the second numerical value, and matrix elements with a value of the first numerical value in the trigger logic matrix are converted to the second numerical value.

[0475] In an alternative implementation of this embodiment, the state sequence is used to indicate whether all or some of the m conditions are in a satisfied state in at least two mutually independent service states of the service event.

[0476] In an alternative implementation of this embodiment, the obtaining module 810 is further configured to obtain condition satisfaction information and event description information of a first condition, where the condition satisfaction information is used to indicate conditions required for the first condition to be in the satisfied state, and the event description information is used to indicate actual parameter information of the first condition;

[0477] The processing module 820 is further configured to construct an associated condition vector based on the condition satisfaction information, and construct an associated description vector based on the event description information;

[0478] The processing module 820 is further configured to perform a vector logic calculation on the associated condition vector and the associated description vector to obtain state information of the first condition, and the state sequence is constructed based on the state information of the first condition.

[0479] In an alternative implementation of this embodiment, the event description information includes numerical information, and the condition satisfaction information includes a numerical comparison condition;

[0480] The processing module 820 is further configured to:

[0481] Construct the associated condition vector based on a reference value in the numerical comparison condition, and construct the associated description vector based on the numerical content of the numerical information;

[0482] Perform a comparison operation corresponding to the numerical comparison condition on the associated condition vector and the associated description vector to obtain the state information of the first condition.

[0483] In an alternative implementation of this embodiment, the event description information includes string information, and the condition satisfaction information includes a character comparison condition;

[0484] The processing module 820 is further configured to:

[0485] Construct the associated condition vector based on the reference characters in the character comparison condition, and extract the associated description vector based on the string information.

[0486] In an alternative implementation of this embodiment, the associated condition vector includes a first condition vector and a second condition vector, the associated description vector includes a first description vector and a second description vector, and the processing module 820 is further configured to:

[0487] Construct the first condition vector based on the size of the reference characters in the character comparison condition, and construct the second condition vector based on the character content of the reference characters in the character comparison condition;

[0488] Construct the first description vector based on the size of the string information, and construct the second description vector based on the storage location of the string information;

[0489] Perform a logical comparison calculation on the first condition vector and the first description vector;

[0490] In the case where the first condition vector is the same as the first description vector, obtain the character content of the string information based on the second description vector;

[0491] Perform a logical comparison calculation on the character content of the string information and the second condition vector to obtain the status information of the first condition.

[0492] In an alternative implementation of this embodiment, the event description information includes array information, and the condition satisfaction information includes a numerical comparison condition;

[0493] The processing module 820 is further configured to:

[0494] Construct the associated condition vector based on the reference value in the numerical comparison condition, and extract the associated description vector based on the array information.

[0495] In an alternative implementation of this embodiment, the processing module 820 is further configured to:

[0496] Construct a third description vector based on the maximum and minimum values of the array information, and construct a fourth description vector based on the storage location of the array information;

[0497] Perform a logical comparison calculation on the associated condition vector and the third description vector;

[0498] In the case where the associated condition vector is less than the maximum value in the third description vector and greater than the minimum value in the third description vector, obtain the array content of the array information based on the fourth description vector;

[0499] Search for the associated condition vector in the array content of the array information to obtain the status information of the first condition.

[0500] In an alternative implementation of this embodiment, the associated description vector is constructed based on the event description information of the first condition in at least two non-associated service states.

[0501] It should be noted that when the device provided in the above embodiment implements its functions, only the division of the above-mentioned functional modules is used for illustration. In actual applications, the above functions can be assigned to different functional modules according to actual needs, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0502] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the method; the technical effects obtained by each module performing operations are the same as those in the embodiment related to the method, and will not be elaborated here.

[0503] An embodiment of the present application further provides a computer device, which includes: a processor and a memory, and at least one segment of computer instructions are stored in the memory; the processor is configured to execute at least one segment of computer instructions in the memory to implement the processing method of service events provided in the above method embodiments.

[0504] Optionally, the computer device is a server. Exemplarily, Figure 14 is a structural block diagram of a server provided by an exemplary embodiment of the present application.

[0505] Generally, the server 2300 includes: a processor 2301 and a memory 2302.

[0506] The processor 2301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 2301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 2301 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 2301 may further include an artificial intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.

[0507] The memory 2302 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 2302 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 2302 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 2301 to implement the processing method of the service event provided in the method embodiment of the present application.

[0508] In some embodiments, the server 2300 may further optionally include: an input interface 2303 and an output interface 2304. The processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 may be connected through a bus or signal lines. Each peripheral device may be connected to the input interface 2303 and the output interface 2304 through a bus, signal lines, or a circuit board. The input interface 2303 and the output interface 2304 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 2301 and the memory 2302. In some embodiments, the processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2301, the memory 2302, the input interface 2303, and the output interface 2304 can be implemented on a separate chip or circuit board, and the embodiments of the present application do not limit this.

[0509] Those skilled in the art can understand that the structure shown above does not constitute a limitation on the server 2300, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt different component arrangements.

[0510] In an exemplary embodiment, a chip is further provided, and the chip includes programmable logic circuits and / or computer instructions, which are used to implement the processing method of the service event described in the above aspects when the chip runs on a computer device.

[0511] In an exemplary embodiment, a computer program product is further provided. The computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor reads and executes the computer instructions from the computer-readable storage medium to implement the processing method of the service event provided by the above method embodiments.

[0512] In an exemplary embodiment, a computer-readable storage medium is further provided. The computer-readable storage medium stores computer instructions, and the computer instructions are loaded and executed by the processor to implement the processing method of the service event provided by the above method embodiments.

[0513] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk, or an optical disc, etc.

[0514] Those skilled in the art should be able to realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium accessible by a general-purpose or special-purpose computer.

[0515] The above are only alternative embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included within the protection scope of the present application.

Claims

1. A method for processing a business event, characterized in that: The method is performed by a computer device, and the method comprises: Acquire a trigger logic matrix of the service event, the trigger logic matrix comprising n trigger logic sequences of size m, the service event having a trigger logic relationship with the m conditions, each trigger logic sequence in the trigger logic matrix being used to indicate a condition combination that triggers the service event; m is an integer greater than 1, and n is a positive integer; Acquire a state sequence of size m, wherein the state sequence includes state information of all or part of the m conditions, and the state sequence is used to indicate that at least one condition is in a satisfied state; When the state sequence matches any one of the trigger logic sequences in the trigger logic matrix, the service event is triggered.

2. The method according to claim 1, characterized in that The method further comprises: Based on the trigger logic matrix, a first trigger matrix and a second trigger matrix are constructed; the first trigger matrix includes n first trigger sequences of size m; the value of the i-th bit in the first trigger sequence is used to indicate whether the business event is triggered when the first condition to the i-th condition of the business event are in a satisfied state, and i is a positive integer not exceeding m; the second trigger matrix includes n second trigger sequences of size m; the value of the j-th bit in the second trigger sequence is used to indicate whether the business event is triggered when the j-th condition of the business event is not satisfied and m-1 conditions other than the j-th condition are satisfied, and j is a positive integer not exceeding m; When the state sequence hits any one of the trigger logic sequences in the trigger logic matrix, triggering the service event includes: Perform at least one trigger logic calculation on the state sequence, the first trigger matrix and the second trigger matrix to obtain trigger indication information of the service event; the trigger logic calculation includes at least one of an AND logic calculation or a logic calculation, and the trigger indication information is used to indicate whether the service event is triggered; When the value of the trigger indication information is the first information value, the service event is triggered.

3. The method according to claim 2, characterized in that The performing at least one trigger logic calculation on the state sequence, the first trigger matrix, and the second trigger matrix to obtain the trigger indication information of the service event includes: Obtain a mask sequence of size n, wherein the values ​​of each bit in the mask sequence are the same; Performing an AND logic calculation on the state information of the kth condition in the state sequence, the value of the kth bit of the n first trigger sequences, and the mask sequence to obtain indication information corresponding to the kth condition; Based on the state information of the kth condition in the state sequence and the value of the kth bit of the n second trigger sequences, the mask sequence is updated to obtain an updated mask sequence; Increase the value of k, repeat the above two steps until the indication information corresponding to each condition in the state sequence is obtained, where k is a positive integer not exceeding n; The trigger indication information of the service event is determined based on performing an OR logic operation between the indication information corresponding to each condition in the state sequence.

4. The method according to claim 3, characterized in that The updating of the mask sequence based on the state information of the kth condition in the state sequence and the value of the kth bit of the n second trigger sequences to obtain an updated mask sequence includes: Performing an OR logic operation on the state information of the kth condition in the state sequence and the value of the kth bit of the n second trigger sequences to obtain mask reference information; Perform an AND logic calculation on the mask reference information and the mask sequence to obtain the updated mask sequence.

5. The method according to claim 3, characterized in that: The method further comprises: Performing an AND logic calculation on the mask sequence and the value of the kth bit of the n trigger logic sequences to obtain trigger reference information; When the value of the trigger reference information is the second information value, triggering the service event is abandoned.

6. The method according to claim 3, characterized in that: The method further comprises: Performing OR logic calculation on the indication information corresponding to the kth condition and the updated mask sequence to obtain interruption reference information; In the case where the value of the interrupt reference information is the third information value, the indication information corresponding to the at least one condition obtained by calculation is subjected to an OR logic calculation to obtain a calculation result, which is determined as the trigger indication information.

7. The method according to claim 2, characterized in that The matrix elements in the trigger logic matrix are taken as first values ​​and second values. The constructing a first trigger matrix based on the trigger logic matrix includes: Performing OR logic calculation on the values ​​of the i+1th bit to the mth bit of the n trigger logic sequences to obtain matrix reference information; Performing a numerical conversion on the matrix reference information to determine a value of an i-th bit of n first trigger sequences, wherein the numerical conversion is used to indicate that an information element whose value is the first numerical value in the matrix reference information is converted to the second numerical value, and an information element whose value is the first numerical value in the matrix reference information is converted to the second numerical value; Increase the value of i and repeat the above two steps until the values ​​of m bits of the n first trigger sequences are obtained; The first trigger matrix is ​​constructed based on the values ​​of the m bits of the n first trigger sequences.

8. The method according to claim 2, characterized in that: The matrix elements in the trigger logic matrix are taken as first values ​​and second values, and the second trigger matrix is ​​constructed based on the trigger logic matrix, including: Performing numerical conversion on the trigger logic matrix to determine the second trigger matrix; The numerical conversion is used to indicate that the matrix elements in the trigger logic matrix whose values ​​are the first numerical values ​​are converted to the second numerical values, and the matrix elements in the trigger logic matrix whose values ​​are the first numerical values ​​are converted to the second numerical values.

9. The method according to any one of claims 1 to 8, characterized in that: The state sequence is used to indicate whether all or part of the m conditions are satisfied under at least two unrelated business states of the business event.

10. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: Acquire condition satisfaction information and event description information of a first condition, wherein the condition satisfaction information is used to indicate a condition required for the first condition to be in the satisfied state, and the event description information is used to indicate actual parameter information of the first condition; constructing an associated condition vector based on the condition satisfaction information, and constructing an associated description vector based on the event description information; Vector logic calculation is performed on the association condition vector and the association description vector to obtain state information of the first condition, and the state sequence is constructed based on the state information of the first condition.

11. The method according to claim 10, characterized in that The event description information includes numerical information, and the condition satisfaction information includes numerical comparison conditions; The step of constructing an associated condition vector based on the condition satisfaction information and constructing an associated description vector based on the event description information includes: constructing the association condition vector based on the reference numerical value in the numerical comparison condition, and constructing the association description vector based on the numerical content of the numerical information; The performing vector logic calculation on the association condition vector and the association description vector to obtain the state information of the first condition includes: A comparison operation corresponding to the numerical comparison condition is performed on the association condition vector and the association description vector to obtain state information of the first condition.

12. The method according to claim 10, characterized in that The event description information includes character string information, and the condition satisfaction information includes character comparison conditions; The step of constructing an associated condition vector based on the condition satisfaction information and constructing an associated description vector based on the event description information includes: The associated condition vector is constructed based on the reference character in the character comparison condition, and the associated description vector is extracted based on the character string information.

13. The method according to claim 12, characterized in that The associated condition vector includes a first condition vector and a second condition vector, the associated description vector includes a first description vector and a second description vector, and constructing the associated condition vector based on the reference character in the character comparison condition, and extracting the associated description vector based on the character string information, comprises: constructing the first condition vector based on the size of the reference character in the character comparison condition, and constructing the second condition vector based on the character content of the reference character in the character comparison condition; constructing the first description vector based on the size of the string information, and constructing the second description vector based on the storage location of the string information; The performing vector logic calculation on the association condition vector and the association description vector to obtain the state information of the first condition includes: Performing a logical comparison calculation on the first condition vector and the first description vector; When the first condition vector and the first description vector are the same, obtaining character content of the string information based on the second description vector; A logical comparison calculation is performed on the character content of the character string information and the second condition vector to obtain state information of the first condition.

14. The method according to claim 10, characterized in that The event description information includes array information, and the condition satisfaction information includes a numerical comparison condition; The step of constructing an associated condition vector based on the condition satisfaction information and constructing an associated description vector based on the event description information includes: The association condition vector is constructed based on the reference numerical value in the numerical comparison condition, and the association description vector is extracted based on the array information.

15. The method according to claim 14, characterized in that The associated description vector includes a third description vector and a fourth description vector, and the extracting the associated description vector based on the array information includes: constructing the third description vector based on the maximum value and the minimum value of the array information, and constructing the fourth description vector based on the storage position of the array information; The performing vector logic calculation on the association condition vector and the association description vector to obtain the state information of the first condition includes: Performing a logical comparison calculation on the association condition vector and the third description vector; When the association condition vector is smaller than the maximum value in the third description vector and larger than the minimum value in the third description vector, obtaining the array content of the array information based on the fourth description vector; The associated condition vector is searched in the array content of the array information to obtain the state information of the first condition.

16. The method according to claim 10, characterized in that The association description vector is constructed based on event description information of the first condition in at least two unrelated business states.

17. A device for processing business events, characterized in that: The device comprises: an acquisition module, used for acquiring a trigger logic matrix of the service event, wherein the trigger logic matrix includes n trigger logic sequences of size m, wherein the service event has a trigger logic relationship with the m conditions, and each trigger logic sequence in the trigger logic matrix is ​​used for indicating a combination of conditions that trigger the service event; m is an integer greater than 1, and n is a positive integer; The acquisition module is further used to acquire a state sequence of size m, wherein the state sequence includes state information of all or part of the m conditions, and the state sequence is used to indicate that at least one condition is in a satisfied state; The processing module is used to trigger the service event when the state sequence matches any one of the trigger logic sequences in the trigger logic matrix.

18. A computer device, characterized in that: The computer device includes: a processor and a memory, wherein the memory stores at least one segment of computer instructions; the processor is used to execute the at least one segment of computer instructions in the memory to implement the business event processing method as described in any one of claims 1 to 16.

19. A computer-readable storage medium, characterized in that: The readable storage medium stores computer instructions, which are loaded and executed by a processor to implement the method for processing business events as described in any one of claims 1 to 16.

20. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor reads and executes the computer instructions from the computer-readable storage medium to implement the method for processing business events as described in any one of claims 1 to 16.