Business processing method and device
The discrete parallel model is used to generate the rule base and feature domain, and the target attribute information is parsed based on the target business identifier, which solves the problems of low efficiency of audit rule parsing and single rule in the existing technology, realizes multi-dimensional audit of business attribute information, and improves efficiency. Comprehensiveness and efficiency of audits.
Patent Information
- Application Number
- CN202111510513.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-10
AI Technical Summary
In the existing technology, the parsing efficiency of audit rules is low and the rules are single, which makes it impossible to implement multi-dimensional audit of business attribute information, resulting in incomplete audit.
The discrete parallel model is used to generate the rule base and feature domain, the target node and target attribute information are determined through the target business identifier, and the target attribute information is parsed based on the target business flow rules to achieve multi-faceted analysis of the target object.
It improves the comprehensiveness of the review, simplifies the understanding of specific changes in each rule, improves review efficiency, and enables review in multiple dimensions of resource constraints and time constraints.
Smart Images

Figure CN114185915B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a business processing method. The present application also relates to a business processing device, a computing device, and a computer-readable storage medium. Background Art
[0002] With the continuous development of computer technology, users' demand for information review is also increasing. For example, for pictures uploaded to public platforms, in addition to reviewing whether they comply with regulatory requirements, it may also be necessary to review picture attributes such as picture clarity. In order to meet users' different review requirements for information, corresponding review rules need to be formulated for each review requirement for information review.
[0003] However, there are many ways to set audit rules, and the audit scenarios are relatively complex. When auditing the attribute information of the business based on the audit rules, each audit rule needs to be parsed one by one to realize the audit of the information. This parsing method is inefficient, and one audit rule can only meet the audit of a certain dimension of the information, resulting in an incomplete audit.
[0004] Therefore, how to achieve multi-dimensional review of business attribute information is a technical problem that needs to be solved urgently by technical personnel in this field. Summary of the invention
[0005] In view of this, the embodiment of the present application provides a business processing method. The present application also relates to a business processing device, a computing device, and a computer-readable storage medium to solve the problems of low audit rule parsing efficiency and single audit rule in the prior art.
[0006] According to a first aspect of an embodiment of the present application, a service processing method is provided, which is applied to a target node of a discrete parallel model, and includes:
[0007] receiving a service transfer request, wherein the service transfer request carries a target service identifier of a target object;
[0008] Determining a target service flow rule corresponding to the target node based on the target service identifier in a rule base, wherein the rule base is generated based on a discrete parallel model;
[0009] Determining target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model;
[0010] The target attribute information is parsed based on the target business flow rule to obtain a flow result.
[0011] According to a second aspect of an embodiment of the present application, a service processing device is provided, which is applied to a target node of a discrete parallel model, including:
[0012] A receiving module is configured to receive a service transfer request, wherein the service transfer request carries a target service identifier of a target object;
[0013] A first determination module is configured to determine a target service flow rule corresponding to the target node based on the target service identifier in a rule base, wherein the rule base is generated based on a discrete parallel model;
[0014] A second determination module is configured to determine target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model;
[0015] The parsing module is configured to parse the target attribute information based on the target business flow rule to obtain a flow result.
[0016] According to a third aspect of an embodiment of the present application, a computing device is provided, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the business processing method when executing the computer instructions.
[0017] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores computer instructions, and when the computer instructions are executed by a processor, the steps of the business processing method are implemented.
[0018] The business processing method provided by the present application receives a business flow request, wherein the business flow request carries a target business identifier of a target object; determines a target business flow rule corresponding to the target node in a rule base based on the target business identifier, wherein the rule base is generated based on a discrete parallel model; determines target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model; and parses the target attribute information based on the target business flow rule to obtain a flow result.
[0019] The business processing method provided in one embodiment of the present application determines the target business flow rules corresponding to the target node based on the target business identifier, which is convenient for intuitively understanding the specific changes of each rule; based on the target business flow rules, the target attribute information of the target object is parsed to obtain the flow result, thereby realizing multi-faceted analysis of the target attribute information and improving the comprehensiveness of the review. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1is a flow chart of a business processing method provided by an embodiment of the present application;
[0021] Figure 2 It is a processing flow chart of a business processing method applied to comment review business provided by an embodiment of the present application;
[0022] Figure 3 It is a structural diagram of a service processing device provided by an embodiment of the present application;
[0023] Figure 4 It is a structural block diagram of a computing device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0024] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0025] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present application refers to any or all possible combinations of one or more associated listed items.
[0026] It should be understood that, although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present application, 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 one or more embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0027] First, the terms involved in one or more embodiments of the present application are explained.
[0028] Discrete parallel model: A system model suitable for describing concurrent phenomena, which can be represented by a mesh graph, such as a petri net, in which the state elements and change elements in the net are represented by nodes and transitions, respectively. Each node represents a resource, and the transition represents the change that causes the resource flow. The flow relationship describes the direction of resource flow. The transition can only have a direct flow relationship with the node, and a petri net supports only one isolated node or transition. The individual resource attributes specified on the node, transition, and flow relationship are called feature tokens.
[0029] Colored Petri net: Based on the Petri net, the resource categories are distinguished. Individuals of the same type of resources are dyed with the same color, and individuals of different types are dyed with different colors.
[0030] At present, there are more and more information and content products that encourage users to actively share. In order to improve user sharing and usage experience, the platform will formulate review rules, filter out bad content, and display high-quality content. According to the content presentation form, the content is divided into text, pictures, videos, and audio. The review rules for each type of content are different. Even if they belong to the same video category, the review requirements for short videos and long videos are different. The review rules of some businesses include scheduled tasks, and some rules are triggered by third-party services. Such review scenarios are complex and diverse, making it difficult to abstract a set of general process rule frameworks. The current conventional solution is to customize each review rule.
[0031] However, customized review rules cannot be dynamically expanded, have low reusability, and high development costs. Secondly, it is difficult to understand the specific changes of a rule from the code, especially when a complex rule is scattered in multiple project codes. After multiple iterations, it is difficult to summarize the complete impact scope of a rule. Furthermore, review rules are limited to the properties of an individual content and cannot be applied to review rules that also include resource constraints and time constraints.
[0032] The business processing method of this application can solve the problem that the current audit rules are limited to "content attribute logic comparison" and expand to multiple dimensions of resource constraints and time constraints in the context of the entire audit scenario. The visual arrangement of audit rules in the form of feature tokens facilitates intuitive understanding of the specific changes of each rule.
[0033] In the present application, a business processing method is provided. The present application also relates to a business processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0034] Figure 1 A flowchart of a service processing method provided by an embodiment of the present application is shown, which specifically includes the following steps:
[0035] Step 102: Receive a service transfer request, wherein the service transfer request carries a target service identifier of a target object.
[0036] Among them, the business flow request refers to a request to transfer the target object between the nodes of the discrete parallel model, wherein the discrete parallel model refers to a model composed of nodes, transitions and connecting arcs between nodes and transitions. The target object can flow between the nodes of the discrete parallel model. Each node or transition has a corresponding business flow rule. Based on the business flow rule, the flow direction of the target object between the nodes and libraries of the discrete parallel model can be determined; the target node of the discrete parallel model refers to any node among the multiple nodes of the discrete parallel model that needs to be transferred; the target object refers to the object in the target business, for example, the image to be reviewed in the image review business, the video to be reviewed in the video review business, etc.; the target business identifier refers to the field that uniquely identifies the target business, for example, the identifier of the image review business "image review"; based on the target business identifier of the target object, the target business that the target object needs to execute can be determined. For example, if the business identifier of image A is "image size review", it is determined that image A needs to be reviewed for image size; if the business identifier of image A is "image source review", it is determined that image A needs to be reviewed for image source.
[0037] In practical applications, a business transfer request can be generated by triggering the execution of the target business in a discrete parallel model. Specifically, the target business identifier of the target business is determined, and a business transfer request is generated based on the target business identifier. For example, a business transfer request is generated by triggering the execution of a video size review business in a discrete parallel model, that is, the videos to be reviewed in subsequent video size review businesses can be reviewed by transferring between nodes in the discrete parallel model. Each video to be reviewed has a corresponding video size review identifier, and based on the video size review identifier, it can be determined that the video to be reviewed needs to undergo a business review of the video size.
[0038] In a specific implementation of the present application, taking the picture clarity review business as an example, a business transfer request is received, and the target business identifier "picture clarity review" in the business transfer request is determined; based on the target business identifier "picture clarity review", the target business is determined to be the picture clarity review business; all pictures to be reviewed in the picture clarity review business correspond to the target business identifier "picture clarity review".
[0039] The target business identifier corresponding to the target object flowing between the nodes of the discrete parallel model can be determined through the received business flow request. The target business can be determined based on the target business identifier, which facilitates the subsequent flow of the target object between the nodes of the discrete parallel model based on the business processing rules corresponding to the target business.
[0040] In practical applications, in order to realize the flow of target objects between nodes of the discrete parallel model, before receiving a business flow request, it is necessary to create a discrete parallel model based on business information related to the target business. Specifically, before receiving the business flow request, it also includes:
[0041] Receiving target attribute information of a target service, and generating a feature domain according to the target attribute information;
[0042] A feature token is created based on the feature domain, and a rule base is generated according to the feature token.
[0043] Among them, target attribute information refers to information related to the target business, such as user ID, user information, title information, introduction, etc.; target attribute information may include business content information, business rule information, and business process information related to the target business, wherein business content information refers to the attribute information of the target object. For example, the target business is image clarity review, and the content information may be the attribute information of the image to be reviewed, including image dimension information, image size information, etc. Business rule information refers to rule information for determining the flow of the target object in a discrete parallel model. For example, the rule information is that the image to be reviewed with an image size information exceeding 100k is transferred to the second-instance node. Business process information refers to the attribute information of the node or transition where the target object is located during the flow process. For example, the process information is the transition of the image to be reviewed from the first-instance node to the second-instance node.
[0044] The feature domain refers to the collection of target attribute information. When the feature domain of the current discrete parallel model does not contain attribute information, the feature domain is composed of the target attribute information. When the feature domain of the current discrete parallel model contains attribute information, the attribute information in the target attribute information that overlaps with the attribute information in the feature domain is ignored, and the attribute information that does not overlap with the attributes in the feature domain is added to the feature domain. The attribute information in the feature domain shares a set of attribute field names. For example, the system assigns a business number to the target business, and when a new business is connected to the discrete parallel model, it is necessary to bind the business meaning, optional value range, associated information value method, set value method, etc. of each attribute field to achieve the purpose of accessing different attributes of each business in the same way. At the same time, it is also necessary to register business attributes.
[0045] A feature token refers to an attribute information judgment field created with a feature domain as the data source. A feature token contains variables, calculation types, and values. Variables and values need to be compatible or automatically convertible, and variables and values can be feature access paths. Variables can be attribute values of the target object. For example, the image size of the image to be reviewed is 300k.
[0046] Calculation type refers to the type of calculation for the attribute value of the target object. Calculation types include assignment type (such as equal to), single operation type (such as negation, existence, non-existence), comparison type (such as equal to, not equal to, greater than or equal to, within the upper and lower boundaries, not within the lower boundary), matching type (such as value in list, list existence value, regular matching value, etc.), aggregation type (such as maximum value, minimum value, total number, etc.). The value can be a threshold value or threshold field set based on the target business rules, for example, image size 100k, pending review status, etc.
[0047] A feature token is created based on the rule information in the target attribute information, and a business flow rule of the target object is created according to the feature token and the rule information, and the business flow rule is added to the rule base.
[0048] In a specific implementation of the present application, json tags can be added to the fixed attribute fields of the feature domain, json tags can be added to the variable attribute fields and expressed in the form of a map, and the feature domain as a whole can be used as the starting point, and the json tags added to the attribute fields can be read layer by layer to a certain attribute field as the end point, and the feature access path of the attribute field can be obtained in a comma-separated manner. In actual applications, tags that have the same effect as json tags can be used, and this application does not make specific limitations.
[0049] In actual applications, a business flow request will specify a target object. After receiving the business flow request, the target attribute information corresponding to the target object can be loaded into the feature domain of the discrete parallel model to be used as the data source of the feature token; and a target object can flow in parallel on multiple nodes at the same time. When a business flow request is received, the node where the target object is located will be used as the trigger starting point. After a successful flow, the target object may flow to multiple other nodes in parallel or flow serially on one node, and the node where the target object is located after the flow will be used as the latest node.
[0050] Specifically, before receiving a business flow request, the feature domain and feature token of the discrete parallel model need to be adjusted based on the target attribute information of the target business, so that the target object corresponding to the target business can flow between nodes in the discrete parallel model.
[0051] In a specific implementation of the present application, taking the video content review business as an example, the video attribute information of the video to be reviewed corresponding to the video content review business is obtained, and the video attribute information is added to the feature domain of the discrete parallel model; the feature token of the discrete parallel model is adjusted according to the updated feature domain, and further based on the adjusted feature token, the business flow rules are generated and stored in the rule base.
[0052] By adjusting the discrete parallel model according to the target attribute information of the target business, it is convenient to subsequently transfer the target object corresponding to the target business between the nodes of the discrete parallel model, thereby completing the processing of the target business based on the discrete parallel model.
[0053] Step 104: Determine the target service flow rule corresponding to the target node in a rule base based on the target service identifier, wherein the rule base is generated based on a discrete parallel model.
[0054] Specifically, the rule base refers to a database containing business flow rules for target objects. After generating a feature token based on the target attribute information of the target business, the business flow rules generated based on the feature token are combined into a rule base; in the rule base, the target business is determined according to the target business identifier carried in the business flow request, and the target business flow rule corresponding to the target node of the discrete parallel model is determined; the target business flow rule refers to the business flow rule corresponding to the target node.
[0055] In practical applications, before determining the flow of the target object between the nodes of the discrete parallel model, it is necessary to determine the target node where the target object is located and to which node it can flow based on the flow information corresponding to the target object; after determining the target node where the target object is located, it is necessary to obtain the business flow rules corresponding to the target node, specifically, based on the target business identifier and the target node, search the target business flow rules corresponding to the target business identifier in the rule base of the discrete parallel model as the target business flow rules of the target node, and subsequently process the target object in the target node based on the determined target business flow rules.
[0056] In a specific implementation of the present application, taking node A as an example, in the rule base of the discrete parallel model, the business flow rule "determine whether the image size is greater than 100k" corresponding to the business identifier "image review" is determined based on the business identifier "image review" and node A where the image to be reviewed is located.
[0057] By parsing the target attribute information corresponding to the target object based on the business flow rules, the discrete parallel model can process the target business in multiple dimensions.
[0058] In practical applications, the specific method of determining the target service flow rule corresponding to the target node based on the target service identifier in the rule base includes:
[0059] Determining a service flow rule set in a rule base based on the target service identifier;
[0060] A target service flow rule corresponding to the target node is determined in the service flow rule set.
[0061] Among them, the business flow rule set refers to a set of business flow rules related to the target business. For example, the rule base includes picture size judgment rules and picture clarity judgment rules, both of which are picture review rules. Then the business flow rule set can be composed of picture size judgment rules and picture clarity judgment rules.
[0062] In practical applications, the rule base of the discrete parallel model may contain multiple business flow rule sets. Based on the target business identifier in the business flow request, the target business flow set corresponding to the target business in the rule base may be determined; after determining the target business flow set, the target business flow rule corresponding to the target node may be determined from the multiple business flow rules in the target business flow set.
[0063] In a specific implementation of the present application, taking the target business identifier as video review as an example, the target business identifier "video review" in the business flow request is determined; in the rule base of the discrete parallel model, the video review flow rule set corresponding to the identifier is determined based on the "video review" identifier; it is determined that the image to be reviewed is in node B, and the video size review rule corresponding to node B is determined in the video review flow rule set.
[0064] Step 106: Determine target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model.
[0065] Specifically, after determining the target business flow rule and the target business identifier corresponding to the target node, the target attribute information required for the target object under the target business to flow through the target node can be determined according to the target business flow rule and the target business identifier.
[0066] In practical applications, the feature domain of the discrete parallel model contains target attribute information corresponding to the target business. Based on the target business flow rules, it can be determined which attribute fields in the target attribute information are used for the flow of the target object in the target node. According to the target business identifier, the specific meaning of the attribute field can be determined. For example, in the image review business, the target business flow rules determine that the flow of the image to be reviewed in the target node requires the image clarity attribute field. Based on the target business identifier, it can be determined that the specific value of the image clarity attribute field is 480p.
[0067] In practical applications, the method for determining the target attribute information corresponding to the target object in the feature domain according to the target business flow rule and the target business identifier includes:
[0068] Determine the target feature token in the target business flow rule;
[0069] The target attribute information corresponding to the target object is determined based on the target feature token and the target service identifier.
[0070] Among them, the target feature token refers to any one of the multiple feature tokens in the target business flow rule. For example, the target business flow rule is "picture size is greater than 100k||picture clarity is greater than 480p", among which "picture size is greater than 100k" and "picture clarity is greater than 480p" are both feature tokens. According to the target feature token, it can be determined that the picture size field and the picture clarity field need to be determined when the picture to be reviewed flows in the target node. According to the target business identifier, the picture size of 200k and the picture clarity of 480p of the picture to be reviewed can be obtained in the feature domain.
[0071] In a specific implementation of the present application, taking the video review business as an example, the business flow rule for the video to be reviewed at node C is "the video is not in MP4 format||the video is in the video list"; the feature tokens in the business flow rule are determined to be "the video is not in MP4 format" and "the video is in the video list"; the video format field and the video range field are determined in the feature domain according to the feature token, and the video format information "AVI" corresponding to the video format field and the video range information "in the video list" corresponding to the video range field are obtained in the feature domain according to the business identifier "video review".
[0072] By determining the target attribute information corresponding to the target object in the feature domain according to the target business flow rule and the target business identifier, it is convenient to subsequently parse the target attribute information corresponding to the target object based on the target business flow rule to obtain the flow result.
[0073] Step 108: parse the target attribute information based on the target business flow rule to obtain a flow result.
[0074] Specifically, after the target attribute information is determined, the target attribute information can be parsed by the target business flow rule to obtain the flow result of the target object in the discrete parallel model.
[0075] In practical applications, the method for parsing the target attribute information based on the target business flow rule to obtain the flow result includes:
[0076] Determine the characteristic token and operation identifier in the target business flow rule;
[0077] The target attribute information is parsed according to the feature token and the operation identifier to obtain a flow result.
[0078] Among them, the operation identifier refers to the operation symbol between the feature tokens in the business flow rule, such as the equal sign, the inequality sign, the brackets, etc.; the feature token refers to the attribute information judgment rule generated according to the target attribute information, for example, the image status = pending review status, the image size is greater than 100k, etc.; the target attribute information is processed according to the feature tokens and operation identifiers determined in the target business flow rule to obtain the flow result of the target object, wherein the flow result refers to the flow information obtained by parsing the target attribute information according to the target business flow rule, for example, determining that the pending review image is transferred from the first instance node to the second instance node.
[0079] In a specific implementation of the present application, taking the image review business as an example, it is determined that the image to be reviewed is at node C and the business flow rule corresponding to node C is "image size is greater than 20k&&image clarity is greater than 480p"; the feature tokens in the business flow rule are determined to be "image size is greater than" and "image clarity is greater than 480p" and the operation identifier is determined to be "&&"; the flow result of the image to be reviewed in the discrete parallel model is obtained according to the determined feature tokens and operation identifiers.
[0080] In practical applications, the specific method of parsing the target attribute information according to the feature token and the operation identifier to obtain the flow result includes:
[0081] Determine the flow result to be processed according to the feature token and the target attribute information;
[0082] The flow result is calculated based on the flow result to be processed and the operation identifier.
[0083] Among them, the flow result to be processed refers to the calculation result of the target feature token obtained according to the target attribute information and the target feature token. For example, the business flow rule is "picture size is greater than 100k||picture clarity is greater than or equal to 480p", and the attribute information obtained in the feature domain is "picture size 10k" and "picture clarity 480p". The calculation results of the feature token obtained according to the attribute information and the business flow rule are "no" and "yes" respectively, that is, the picture size is less than the value of the feature token in the business flow rule 100k, and the picture clarity 480p is equal to 480p in the business flow rule; after determining the flow result to be processed, the flow result of the target object can be calculated according to the operation identifier and the flow result to be processed.
[0084] In a specific implementation of the present application, taking the video review business as an example, the business flow rule of the first-instance node where the image to be reviewed is located is determined to be "the video is in MP4 format||the video is in the video list", and the feature tokens "the video is in MP4 format" and "the video is in the video list" and the operation identifier "||" in the business flow rule are determined; according to the attribute information "video format MP4" and "the video is not in the video list" obtained in the feature domain, the calculation results of the feature tokens are determined to be "yes" and "no" respectively; according to the feature tokens and the operation identifier "||", the flow result "the image to be reviewed is transferred to the second-instance node" is obtained.
[0085] In practical applications, the specific method for determining the flow result to be processed according to the feature token and the target attribute information includes:
[0086] Determine a target feature token and a variable identifier in the target feature token;
[0087] Determining, in the target attribute information, target feature attribute information corresponding to the target feature token based on the variable identifier;
[0088] The target to-be-processed flow result of the target feature token is determined according to the target feature attribute information and the calculation identifier and calculation threshold in the target feature token.
[0089] Among them, the variable identifier refers to the identifier of the attribute field that needs to be determined in the flow process of the target object. For example, if the feature token is "image size is less than 100k", the variable identifier is "image size". Based on the variable identifier, the image size field can be determined in the target attribute information. In practical applications, when the discrete parallel model is a colored petri net, the variable identifier can be the color information bound to the feature token, and the target feature attribute information can be determined in the feature domain through the color information; the target feature attribute information refers to the attribute information corresponding to the variable identifier in the target attribute information, for example, the attribute information corresponding to the variable identifier "image size" is "image size 50k"; the target feature token is any feature token in the business flow rule, and the target feature token contains a calculation identifier and a calculation threshold, wherein the calculation identifier refers to the calculation symbol in the target feature token, such as equal sign, inequality sign, or, and, etc. The calculation threshold refers to the threshold set in the target feature token, for example, "100k" in the feature token "image size <100k" is the calculation threshold; the target to-be-processed flow result refers to the calculation result corresponding to the target feature token obtained by calculating according to the target feature attribute information and the target feature token.
[0090] In a specific implementation of the present application, taking the video review business as an example, the business flow rule of the first-instance node where the image to be reviewed is located is "video format = MP4 format || video is in the video list"; the target feature token is determined to be "video format = MP4 format", and the variable identifier is "video format", and the attribute information is determined in the target attribute information according to the variable identifier as "video format is AVI"; the calculation identifier in the target feature token is determined to be "=" and the calculation threshold is "MP4 format", then the calculation result of the target feature token obtained according to the attribute information "video format is AVI", the calculation identifier "=" and the calculation threshold "MP4 format" is "No".
[0091] In practical applications, the specific method for calculating the flow result based on the to-be-processed flow result and the operation identifier includes:
[0092] Determine the operation order according to the operation identifier and the preset operation priority;
[0093] The flow result is calculated based on the operation order, the operation identifier and the flow result to be processed.
[0094] The preset operation priority refers to the priority determined according to the operation identifier. For example, when the operation identifier is a bracket, the contents in the bracket need to be operated first, or multiplication and division are performed first and then addition and subtraction operations.
[0095] Specifically, after determining the target business flow rules, it is necessary to determine the operation order according to the operation identifier in the target business flow rules, that is, determine the operation order based on the operation rules corresponding to the operation rules, and then calculate in sequence based on the operation order, operation identifier and the flow results to be processed, so as to obtain the final calculation result.
[0096] Furthermore, in order to improve the computing efficiency and efficiently parse the target attribute information based on the target business flow rules, the pending flow results corresponding to the feature tokens can be gradually calculated based on the operation order and the operation identifier to obtain the flow results of the target object. For example, the business flow rule is "feature token 1&&(feature token 2||!Feature token 3)", and the operation order is: calculate feature token 1 to obtain the pending calculation result r1, and then calculate the feature token 2 in the brackets to obtain the calculation result r2. If the calculation result r2 of feature token 2 is false, then the calculation result in the brackets is determined to be false, and the flow result of the target object can be determined to be r2 without the need to perform a calculation on feature token 3. If the calculation result r2 of feature token 2 is true, then it is necessary to calculate the calculation result r3 of feature token 3 and invert r3 according to the operation identifier "!" to obtain r-3. The calculation result ri in the brackets is determined according to r2 and r-3, and the final flow result is obtained based on ri and r1.
[0097] In actual applications, the business flow rules may include operations such as assignment to adjust the target attribute information corresponding to the target object. For example, the status information "unapproved" of the audit image is assigned to "pending for review". After obtaining the flow result, the corresponding target attribute information in the feature domain needs to be updated so that the information in the feature domain is the latest attribute information. Specifically, after parsing the target attribute information based on the target business flow rule to obtain the flow result, it also includes:
[0098] The target attribute information in the feature domain is updated based on the flow attribute information in the flow result.
[0099] Among them, the circulation attribute information refers to the attribute information that changes during the circulation process. For example, during the circulation process, the review status of the image to be reviewed is changed from "unreviewed status" to "pending review status" based on the business circulation rules, and the review status information is determined to be the circulation attribute information; according to the circulation attribute information determined in the circulation result, the corresponding attribute information in the feature domain is adjusted to complete the update of the feature domain.
[0100] Specifically, before adjusting the target attribute information in the feature domain, you can copy the current feature domain as the old version of the feature domain, and then adjust the feature domain, including adjusting the business content information, business rule information, and business process information as the new version of the feature domain; after a certain flow is completed, you can copy the new version of the feature domain as the old version of the feature domain for this flow.
[0101] In practical applications, after parsing the target attribute information based on the target business flow rule to obtain the flow result, the method further includes:
[0102] The target object in the target node is processed based on the transfer result.
[0103] In actual applications, the transfer result includes processing information for the target object. For example, the processing information may be transferring the target object from the first instance node to the second instance node, or ending the transfer and returning the transfer result to the client, etc.
[0104] In a specific implementation of the present application, taking the image review business as an example, the flow result of the image to be reviewed in the first-instance node is determined, and the processing information in the flow result is determined to be "transferring the first-instance node to the second-instance node"; according to the processing information, the image to be reviewed is transferred to the second-instance node.
[0105] The business processing method provided in one embodiment of the present application determines the target business flow rules corresponding to the target node based on the target business identifier, which is convenient for intuitively understanding the specific changes of each rule; based on the target business flow rules, the target attribute information of the target object is parsed to obtain the flow result, thereby realizing multi-faceted analysis of the target attribute information and improving the comprehensiveness of the review.
[0106] The following combination Figure 2 , taking the application of the business processing method provided by this application in the comment review business as an example, the business processing method is further explained. Among them, Figure 2 A processing flow chart of a business processing method for review and approval business provided by an embodiment of the present application is shown, which specifically includes the following steps:
[0107] Step 202: Receive a service transfer request, and determine the target service identifier of the target object carried in the service transfer request.
[0108] In this embodiment, the discrete parallel model is adjusted based on the user's review requirements for comment resources, specifically by obtaining attribute information corresponding to the comment review business, and adding the obtained attribute information to the feature domain of the discrete parallel model; updating or creating feature tokens based on the updated feature domain, and adding the business flow rules generated based on the feature tokens to the rule library to which the discrete parallel model is added.
[0109] Step 204: Determine a service flow rule set in a rule base based on the target service identifier.
[0110] In this embodiment, a comment review business flow rule set corresponding to the comment review business identifier is determined in a rule base corresponding to the discrete parallel model according to the comment review business identifier.
[0111] Step 206: Determine the target service flow rule corresponding to the target node in the service flow rule set.
[0112] In this embodiment, the target comment review business flow rule corresponding to the review node where the comment to be reviewed is located is determined in the comment review business flow rule.
[0113] Step 208: Determine the target feature token in the target business flow rule.
[0114] In this embodiment, the target comment review business flow rule is "comment resource status = pending review status && total number of comment characters <15 characters"; the characteristic tokens in the target comment review business flow rule are determined to be "comment resource status = pending review status" and "total number of comment characters <15 characters" respectively.
[0115] Step 210: Determine the target attribute information corresponding to the target object based on the target feature token and the target business identifier.
[0116] In this embodiment, based on the feature tokens "comment resource status = pending review status", "total number of comment characters <15 characters" and the comment review service identifier, a comment attribute information set corresponding to the pending review comment is determined in the feature domain.
[0117] Step 212: Determine the variable identifier in the target feature token, and determine the target feature attribute information corresponding to the target feature token in the target attribute information based on the variable identifier.
[0118] In this embodiment, the variable identifier of the feature token "comment resource status = pending review status" is determined to be "comment resource status", and the variable identifier of the feature token "total number of comment characters <15 characters" is determined to be "total number of comment characters"; according to the variable identifier "comment resource status", the attribute information corresponding to the pending review comment is determined in the comment attribute information set to be "comment resource status unreviewed", and according to the variable identifier "total number of comment characters", the attribute information corresponding to the pending review comment is determined in the comment attribute information set to be "total number of comment characters 5".
[0119] Step 214: Obtain the target to-be-processed flow result of the target feature token according to the target feature attribute information and the calculation identifier and calculation threshold in the target feature token.
[0120] In this embodiment, the calculation identifier in the feature token "Comment resource status = pending review status" is determined to be "=" and the calculation threshold is "pending review status", and the pending flow result of the feature token "Comment resource status = pending review status" is calculated to assign the comment resource status of the pending review comment to "pending review status"; the calculation identifier of the feature token "Total number of comment characters <15 characters" is determined to be "<" and the calculation threshold is "15 characters", and the pending flow result of the feature token "Total number of comment characters <15 characters" is calculated to be "yes", that is, the total number of comment characters is less than 15 characters.
[0121] Step 216: Determine the operation identifier in the target feature token, and calculate the flow result based on the operation identifier and the processing flow result.
[0122] In this embodiment, the operation identifier in the target comment review business flow rule is determined to be "&&", and the operation order is determined according to the operation identifier and the calculation priority of the operation identifier. The characteristic tokens "comment resource status = pending review status" and the characteristic token "comment resource status = pending review status" are first calculated, and finally the "&&" between the two characteristic tokens is calculated. The flow result is "yes", and the flow information in the flow result is to transfer the pending review comments from the review node to the second review transition.
[0123] Step 218: Update the target attribute information in the feature domain based on the flow attribute information in the flow result, and process the target object in the target node according to the flow result.
[0124] In this embodiment, the flow attribute information in the flow result is determined to be "change the unreviewed status to the pending review status", and the comment resource status of the pending review comments in the feature domain is changed to the pending review status according to the flow attribute information; and the pending review comments are transferred to the second review transition according to the flow information in the flow result.
[0125] The business processing method provided in one embodiment of the present application determines the target business flow rules corresponding to the target node based on the target business identifier, which is convenient for intuitively understanding the specific changes of each rule; based on the target business flow rules, the target attribute information of the target object is parsed to obtain the flow result, thereby realizing multi-faceted analysis of the target attribute information and improving the comprehensiveness of the review.
[0126] Corresponding to the above method embodiment, the present application also provides a service processing device embodiment, Figure 3 FIG. 1 shows a schematic diagram of the structure of a service processing device provided by an embodiment of the present application. Figure 3 As shown, the device comprises:
[0127] The receiving module 302 is configured to receive a service transfer request, wherein the service transfer request carries a target service identifier of a target object;
[0128] A first determination module 304 is configured to determine a target service flow rule corresponding to the target node based on the target service identifier in a rule base, wherein the rule base is generated based on a discrete parallel model;
[0129] A second determination module 306 is configured to determine target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model;
[0130] The parsing module 308 is configured to parse the target attribute information based on the target business flow rule to obtain a flow result.
[0131] In a specific implementation of the present application, the device further includes a receiving submodule configured to:
[0132] Receiving target attribute information of a target service, and generating a feature domain according to the target attribute information;
[0133] A feature token is created based on the feature domain, and a rule base is generated according to the feature token.
[0134] Optionally, the first determining module 304 is further configured to:
[0135] Determining a service flow rule set in a rule base based on the target service identifier;
[0136] A target service flow rule corresponding to the target node is determined in the service flow rule set.
[0137] Optionally, the second determining module 306 is further configured to:
[0138] Determine the target feature token in the target business flow rule;
[0139] The target attribute information corresponding to the target object is determined based on the target feature token and the target service identifier.
[0140] Optionally, the parsing module 308 is further configured to:
[0141] Determine the characteristic token and operation identifier in the target business flow rule;
[0142] The target attribute information is parsed according to the feature token and the operation identifier to obtain a flow result.
[0143] Optionally, the parsing module 308 is further configured to:
[0144] Determine the flow result to be processed according to the feature token and the target attribute information;
[0145] The flow result is calculated based on the flow result to be processed and the operation identifier.
[0146] Optionally, the parsing module 308 is further configured to:
[0147] Determine a target feature token and a variable identifier in the target feature token;
[0148] Determining, in the target attribute information, target feature attribute information corresponding to the target feature token based on the variable identifier;
[0149] The target to-be-processed flow result of the target feature token is determined according to the target feature attribute information and the calculation identifier and calculation threshold in the target feature token.
[0150] Optionally, the parsing module 308 is further configured to:
[0151] Determine the operation order according to the operation identifier and the preset operation priority;
[0152] The flow result is calculated based on the operation order, the operation identifier and the flow result to be processed.
[0153] Optionally, the device further includes an updating module configured to:
[0154] The target attribute information in the feature domain is updated based on the flow attribute information in the flow result.
[0155] Optionally, the device further comprises a processing module configured to:
[0156] The target object in the target node is processed based on the transfer result.
[0157] The business processing device of the present application includes a receiving module, which receives a business flow request, wherein the business flow request carries a target business identifier of a target object; a first determination module, which determines a target business flow rule corresponding to the target node in a rule base based on the target business identifier, wherein the rule base is generated based on a discrete parallel model; a second determination module, which determines the target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model; and a parsing module, which parses the target attribute information based on the target business flow rule to obtain a flow result. The business processing device of the present application obtains a flow result based on a target business flow rule, realizes multi-faceted parsing of the target attribute information corresponding to the target object based on the target business flow rule, and thereby realizes multi-dimensional parsing of the target business.
[0158] The above is a schematic scheme of a service processing device of this embodiment. It should be noted that the technical scheme of the service processing device and the technical scheme of the service processing method described above are of the same concept, and the details not described in detail in the technical scheme of the service processing device can be referred to the description of the technical scheme of the service processing method described above.
[0159] Figure 4 The block diagram of a computing device 400 according to an embodiment of the present application is shown. The components of the computing device 400 include but are not limited to a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and the database 450 is used to store data.
[0160] The computing device 400 also includes an access device 440 that enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of network interface (e.g., a network interface card (NIC)) wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0161] In one embodiment of the present application, the above components of the computing device 400 and Figure 4 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 4 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of the present application. Those skilled in the art may add or replace other components as needed.
[0162] Computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. Computing device 400 may also be a mobile or stationary server.
[0163] The processor 420 implements the steps of the business processing method when executing the computer instructions.
[0164] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned business processing method belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned business processing method.
[0165] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which implement the steps of the business processing method as described above when executed by a processor.
[0166] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned business processing method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned business processing method.
[0167] The above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0168] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0169] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0170] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0171] The preferred embodiments of the present application disclosed above are only used to help explain the present application. The optional embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the present application. The present application selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present application, so that those skilled in the art can understand and use the present application well. The present application is only limited by the claims and their full scope and equivalents.
Claims
1. A business processing method, characterized in that: Target nodes applied to discrete parallel models include: receiving a service transfer request, wherein the service transfer request carries a target service identifier of a target object; Determining a target service flow rule corresponding to the target node based on the target service identifier in a rule base, wherein the rule base is generated based on a discrete parallel model; Determining target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model; Parsing the target attribute information based on the target business flow rule to obtain a flow result; The business transfer request refers to a request to transfer the target object between nodes of the discrete parallel model. The target object refers to an object in the target business. Based on the target business identifier of the target object, the target business that the target object needs to execute can be determined. The feature domain refers to the collection of target attribute information; the rule base refers to the database containing the business flow rules of the target object. After the feature token is generated based on the target attribute information of the target business, the business flow rules generated based on the feature token are composed into the rule base; the feature domain of the discrete parallel model contains the target attribute information corresponding to the target business. Based on the target business flow rules, it can be determined which attribute fields in the target attribute information are used for the flow of the target object at the target node; the feature token refers to the attribute information judgment field created with the feature domain as the data source; Parsing the target attribute information based on the target business flow rule to obtain a flow result includes: determining a feature token and an operation identifier in the target business flow rule, and parsing the target attribute information according to the feature token and the operation identifier to obtain a flow result.
2. The service processing method according to claim 1, characterized in that: Before receiving the business flow request, it also includes: Receiving target attribute information of a target service, and generating a feature domain according to the target attribute information; A feature token is created based on the feature domain, and a rule base is generated according to the feature token.
3. The service processing method according to claim 1, characterized in that: Determining the target service flow rule corresponding to the target node based on the target service identifier in the rule base includes: Determining a service flow rule set in a rule base based on the target service identifier; A target service flow rule corresponding to the target node is determined in the service flow rule set.
4. The service processing method according to claim 1, characterized in that: Determining target attribute information corresponding to the target object in the feature domain according to the target business flow rule and the target business identifier includes: Determine the target feature token in the target business flow rule; The target attribute information corresponding to the target object is determined based on the target feature token and the target service identifier.
5. The service processing method according to claim 1, characterized in that: Parsing the target attribute information based on the target business flow rule to obtain a flow result includes: Determine the characteristic token and operation identifier in the target business flow rule; The target attribute information is parsed according to the feature token and the operation identifier to obtain a flow result.
6. The service processing method according to claim 5, characterized in that: Parsing the target attribute information according to the feature token and the operation identifier to obtain a flow result includes: Determine the flow result to be processed according to the feature token and the target attribute information; The flow result is calculated based on the flow result to be processed and the operation identifier.
7. The service processing method according to claim 6, characterized in that: Determining the flow result to be processed according to the feature token and the target attribute information includes: Determine a target feature token and a variable identifier in the target feature token; Determining, in the target attribute information, target feature attribute information corresponding to the target feature token based on the variable identifier; The target to-be-processed flow result of the target feature token is determined according to the target feature attribute information and the calculation identifier and calculation threshold in the target feature token.
8. The service processing method according to claim 6, characterized in that: Calculating the flow result based on the to-be-processed flow result and the operation identifier includes: Determine the operation order according to the operation identifier and the preset operation priority; The flow result is calculated based on the operation order, the operation identifier and the flow result to be processed.
9. The service processing method according to any one of claims 1 to 8, characterized in that: After parsing the target attribute information based on the target business flow rule to obtain the flow result, the method further includes: The target attribute information in the feature domain is updated based on the flow attribute information in the flow result.
10. The service processing method according to any one of claims 1 to 8, characterized in that: After parsing the target attribute information based on the target business flow rule to obtain the flow result, the method further includes: The target object in the target node is processed based on the transfer result.
11. The service processing method according to any one of claims 1 to 8, characterized in that: The discrete parallel model refers to a model composed of nodes, transitions, and connection arcs between nodes and transitions. The target object flows between the nodes of the discrete parallel model. Each node or transition has a corresponding business flow rule. The flow direction of the target object between the nodes and places of the discrete parallel model is determined based on the business flow rule. The feature domain contains target attribute information corresponding to the target business, wherein the target attribute information includes at least one of business content information, business rule information, and business process information corresponding to the target business.
12. A service processing device, characterized in that: Target nodes applied to discrete parallel models include: A receiving module is configured to receive a service transfer request, wherein the service transfer request carries a target service identifier of a target object; A first determination module is configured to determine a target service flow rule corresponding to the target node based on the target service identifier in a rule base, wherein the rule base is generated based on a discrete parallel model; A second determination module is configured to determine target attribute information corresponding to the target object in a feature domain according to the target business flow rule and the target business identifier, wherein the feature domain is generated based on a discrete parallel model; A parsing module, configured to parse the target attribute information based on the target business flow rule to obtain a flow result; The business transfer request refers to a request to transfer the target object between nodes of the discrete parallel model. The target object refers to an object in the target business. Based on the target business identifier of the target object, the target business that the target object needs to execute can be determined. The feature domain refers to the collection of target attribute information; the rule base refers to the database containing the business flow rules of the target object. After the feature token is generated based on the target attribute information of the target business, the business flow rules generated based on the feature token are composed into the rule base; the feature domain of the discrete parallel model contains the target attribute information corresponding to the target business. Based on the target business flow rules, it can be determined which attribute fields in the target attribute information are used for the flow of the target object at the target node; the feature token refers to the attribute information judgment field created with the feature domain as the data source; Parsing the target attribute information based on the target business flow rule to obtain a flow result includes: determining a feature token and an operation identifier in the target business flow rule, and parsing the target attribute information according to the feature token and the operation identifier to obtain a flow result.
13. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the computer instructions, the steps of the method according to any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Process instancing method and device for authority graded business
CN106952081A
Data auditing and checking method and system
CN106971002A
Auditing method and device
CN111985857A
Business-oriented risk control method and device
CN112651619A
Query Processor
US20170169068A1
