Process network arrangement method and device based on discrete parallel model
Through the process network orchestration method based on discrete parallel model, the problem of difficult to orchestrate complex content review processes in the existing technology is solved, the flexibility and cost saving of the process network are achieved, and multi-version switching and circulation adjustment are supported.
Patent Information
- Application Number
- CN202111508565.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2041-12-10
AI Technical Summary
It is difficult for the existing technology to arrange complex and diverse content review processes in a general way, resulting in waste of resources, low reuse and high development costs.
Using the process network orchestration method based on discrete parallel model, by receiving target service registration requests, obtaining audit content information, rule information and process information, determining the model element set and feature token collection, orchestrating the initial process network and binding feature tokens, Generate a process network for target services.
It realizes a process network that maintains and applies multiple versions of the service simultaneously, supports serial and parallel circulation and adjustment, saves development costs, and improves the flexibility and reusability of the process network.
Smart Images

Figure CN114186848B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of process network orchestration, and in particular to a process network orchestration method based on a discrete parallel model. The present application also relates to a process network orchestration device based on a discrete parallel model, a computing device, and a computer-readable storage medium. Background Art
[0002] With the development of the Internet, users are sharing more and more information and content products through the Internet. In order to improve the sharing and usage experience of users and create a positive sharing environment, the network platform will develop a review system to filter out bad content and display high-quality content. In the review process, due to the diversity of the review content, the review rules for each content are different; due to the different content, the collaborative relationship between manual review and machine review is also different. In complex and diverse review scenarios, it is difficult to compile the flow details of the entire process in a universal way. Therefore, how to provide a universal content review process system process network is an urgent problem to be solved. Summary of the invention
[0003] In view of this, the embodiment of the present application provides a process network orchestration method based on a discrete parallel model. The present application also relates to a process network orchestration device based on a discrete parallel model, a computing device, and a computer-readable storage medium to solve the problems existing in the prior art of building multiple audit systems to cope with different business contents, thereby causing waste of resources, low reuse, and high development costs.
[0004] According to a first aspect of an embodiment of the present application, a process network orchestration method based on a discrete parallel model is provided, which is applied to a client, wherein the discrete parallel model is composed of model elements, and the model elements include a place, a transition, and a directed arc between the place and the transition, including:
[0005] Receive a target business registration request, and obtain audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request;
[0006] Determine a model element set according to the audit rule information, and determine a feature token set corresponding to the model element set according to the audit content information and the audit rule information;
[0007] Arrange the model elements in the model element set according to the audit process information to generate an initial process network;
[0008] The feature tokens in the feature token set are bound to the initial process network according to the audit rule information to generate a target process network corresponding to the target business.
[0009] According to a second aspect of an embodiment of the present application, a process network orchestration device based on a discrete parallel model is provided, comprising:
[0010] An acquisition module is configured to receive a target business registration request, and acquire audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request;
[0011] A determination module is configured to determine a model element set according to the audit rule information, and determine a feature token set corresponding to the model element set according to the audit content information and the audit rule information;
[0012] An arrangement module is configured to arrange the model elements in the model element set according to the audit process information to generate an initial process network;
[0013] The generation module is configured to bind the feature tokens in the feature token set to the initial process network according to the audit rule information, and generate a target process network corresponding to the target business.
[0014] 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 process network orchestration method based on a discrete parallel model when executing the computer instructions.
[0015] 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 process network orchestration method based on a discrete parallel model are implemented.
[0016] The process network orchestration method based on discrete parallel model provided by the present application is applied to the client, the discrete parallel model is composed of model elements, the model elements include library places, transitions and directed arcs between library places and transitions, by receiving the target business registration request, obtaining the audit content information, audit rule information and audit process information corresponding to the target business according to the registration request; determining the model element set according to the audit rule information, determining the feature token set corresponding to the model element set according to the audit content information and the audit rule information; arranging the model elements in the model element set according to the audit process information to generate an initial process network; binding the feature tokens in the feature token set to the initial process network according to the audit rule information, and generating the target process network corresponding to the target business. Provide a process network that can maintain and apply multiple versions of a business at the same time, can switch safely from multiple versions, support serial and parallel flow and adjustment, and save development costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flowchart of a process network orchestration method based on a discrete parallel model provided by an embodiment of the present application;
[0018] Figure 2 It is a process network configuration diagram provided by an embodiment of the present application;
[0019] Figure 3 A schematic diagram of a directed arc type provided by an embodiment of the present application is shown;
[0020] Figure 4 It is a processing flow chart of a process network orchestration method based on a discrete parallel model for updating a video review service version provided in an embodiment of the present application;
[0021] Figure 5 It is the binding relationship between the model element and the feature token in one embodiment of the present application;
[0022] Figure 6 It is a structural diagram of a process network orchestration device based on a discrete parallel model provided in one embodiment of the present application;
[0023] Figure 7 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 and includes 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] Petri net (discrete parallel model): a tool for mathematical representation of discrete parallel systems. It is a mesh model. The state elements and change elements in the mesh model are represented by places and transitions respectively. Each place represents a resource. Transitions represent changes that cause resource flow. Flow relations describe the direction of resource flow. Transitions can only have direct flow relations with all places. A petri net supports only one isolated place or transition. The individual attributes of resources established on place, transition, and flow relations are called feature tokens. The tags of general petri nets only represent the number, while the tags of colored petri nets can represent multiple meanings and can be set and express certain meanings.
[0029] Currently, there are two solutions to solve the problem that it is difficult to organize the flow details of the entire process in a universal way:
[0030] The first conventional solution is to build their own audit systems for multiple business products and customize each audit rule. That is, in one or more project codes, all information such as each audit rule, flow path, dependency between manual and machine review, objects and methods of triggering flow, etc. are clearly written to facilitate rapid launch. The first solution requires building multiple sets of audits, which has high development costs, and will repeat the same functions, resulting in low reuse.
[0031] Another solution is to visually arrange the state flow path of the audit rules based on the finite state machine theory, so as to build a process system that is common to multiple businesses. Among them, the details, triggers, role assignments, etc. of each audit rule are still customized in the code. This solution ensures the independence between each business audit scenario, and the key points of the state flow path of the unified flow state are recognized, saving the development cost of some state path changes. The specific changes of the audit rules are still customized in the code, and some developers may maintain the relevant audit rule documents. The rule implementation code and summary documents are separated, the update progress is inconsistent, and the time and manpower cost of maintaining a unified audit process is high. A global status field cannot describe the local changes of a content, nor can it describe the concurrent execution scenario and implement resource number restrictions. For example, rules such as: more than 10 contents must pass before proceeding to the next step can only be implemented in code. The lack of factors in the orchestration process may cause the flow results to not meet expectations during multiple iterations. It is difficult to understand the details of a rule from the code, especially a complex rule scattered in multiple project codes, after multiple iterations, to summarize the complete impact range of a rule. At the same time, any non-state changes require additional development.
[0032] Based on this, in the present application, a process network orchestration method based on a discrete parallel model is provided. The present application also involves a process network orchestration device based on a discrete parallel model, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0033] Figure 1 A flowchart of a process network orchestration method based on a discrete parallel model provided according to an embodiment of the present application is shown, which specifically includes the following steps:
[0034] Step 102: Receive a target business registration request, and obtain audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request.
[0035] Among them, the target business registration request can be understood as a registration request for a new business or an update registration request for an old business, and the target business request carries information such as audit content information, audit rule information, and audit process information. The audit content information can be understood as business content information, which includes business information, content information, etc.; the audit rule information can be understood as rule information for auditing the target business, which includes audit rules, binding information, etc.; the audit process information can be understood as process information for auditing the target business, which includes process information, process notes, etc.
[0036] In actual applications, when a business administrator adds or updates a business process network, a target business registration request will be issued. After receiving the target business registration request, the client will assign a unique version number to the business process network. If the target business is to update an old business, the version number value is greater than all existing version numbers under the same business. After the version number is assigned, the version status of the current business process network is "to be configured". The client can obtain the audit content information, audit rule information, and audit process information according to the target business registration request, and can configure the business process network based on the above information.
[0037] In a specific embodiment of the present application, a service administrator wants to update a picture review process network and sends a picture review service registration request. After receiving the picture review service registration request, the client assigns version number V1.1 to the updated picture review service according to the existing picture review service version number V1.0. The review picture content information, review picture rule information, and review picture process information are obtained according to the picture review service registration request.
[0038] In another specific embodiment of the present application, the service administrator wants to add a new video review process network and sends a video review service registration request. After receiving the video review service registration request, the client does not find the same service and assigns version number V1.0 to the newly added video review service. The review video content information, review video rule information, and review video process information are obtained according to the video review service registration request.
[0039] Step 104: Determine a model element set according to the audit rule information, and determine a feature token set corresponding to the model element set according to the audit content information and the audit rule information.
[0040] Among them, the model element set includes model elements such as library and transition. A library node contains a unique number, the business number, remarks, broadcast business meaning, system operation attribute bit, authority, etc. The broadcast business meaning can be understood as being used to broadcast between the current business and third-party business, so as to facilitate the unified understanding of the process nodes by all parties. The system operation attribute can be understood as being used to describe the operation to be done at the current node, for example, when to call back the review results to the business party, etc. A transition node contains a unique number, the business number to which it belongs, remarks, trigger type, trigger configuration, etc. The trigger type specifies the format of the trigger configuration, and the trigger type and configuration can be expanded by itself. The trigger type includes manual, automatic, service, and time. If the trigger type is manual trigger, it is necessary to configure the number of single manual triggers, the task mode of pulling and pushing the pending content, etc. If the trigger type is automatic trigger, it is necessary to configure whether to reset to the previous node or stay at the latest node after the automatic flow fails, etc. If the trigger type is service trigger, it is necessary to configure whether it is a message queue or API trigger, etc. If the trigger type is time trigger, it is necessary to configure whether it is a timed trigger or how long after the current time, etc.
[0041] The feature token set includes feature tokens corresponding to places, transitions, and directed arcs. A feature token includes: a unique number, a business number, a color, a calculation type, a variable feature path, a variable fixed value, a value feature path, a value fixed value, a data type, and a remark. A feature token forms an "ACB" statement, where A is a variable, C is a calculation type, and B is a value. Both the variable and the value come only from fixed values or feature paths. From the unified feature structure provided by the system, the variable feature path and the value feature path referenced by the token can be specified. The feature structure includes: information such as the audit content information and audit rule information corresponding to the target business, and information such as the places, transitions, and new and old feature structures before and after the update corresponding to the target business. Among them, the calculation type is divided into assignment class and conditional judgment class. The variable of the former must be a variable feature path, and the calculation type is an equal sign. The calculation result of the latter statement is a Boolean value, and C is a conditional operation, including: single operation types such as negation, existence, non-existence, etc., logical comparison types of two or more operations such as equality, inequality, greater than or equal to, etc., aggregation operations such as statistic greater than, maximum value less than, and specified value exists in the set.
[0042] In actual applications, the client can determine the number and type of model elements required for the current target business based on the audit rules; and can determine the feature tokens corresponding to the current target business and the model elements based on the audit content information and the audit rule information.
[0043] In a specific embodiment of the present application, following the above example, the client determines a model element set based on the audit rules "pending review, first review, and completed" in the image audit rule information. The model element set includes two place nodes, a transition node, and a directed arc connecting the place and the transition. The client determines three feature tokens corresponding to the model element based on the "image business" in the audit content information and the audit rules "pending review, first review, and completed" in the audit rule information. Figure 2 , Figure 2 This is a flow network configuration diagram provided by an embodiment of the present application, wherein two places are the initial node (the place node to be reviewed) and the end node; one transition is the first trial transition. The three feature tokens are the feature token A of the node to be reviewed, the feature token B of the first trial node, and the feature token C of the directed arc for judging whether the review is passed.
[0044] If the target business registration request is to update an old business, the client can pull the model elements that have been created under the same business as the target business, that is, the historical model element set, and create new model elements based on the historical model element set to generate a model element set corresponding to the target business; if the target business registration request is to create a new business, the client can directly create model elements according to the audit rule information to generate a model element set corresponding to the target business.
[0045] Specifically, determining a model element set according to the audit rule information includes:
[0046] When a historical process network corresponding to the target business is found in the process network library, a model element set is determined based on the historical process network corresponding to the target business;
[0047] When no historical process network corresponding to the target business is found in the process network library, a model element set is created.
[0048] The process network library can be understood as a database storing process networks of all old versions of audit services; the historical process network can be understood as an old version of the process network of the same service as the target service.
[0049] In actual applications, when an old version of a service needs to be updated, the process network of the old version of the service can be pulled for reuse. It should be noted that the process networks of multiple old versions of services can be pulled or the process network of a specified old version of services can be pulled.
[0050] In a specific embodiment of the present application, following the above example, when the target business registration request is to update the image review business, the client searches for the process network of the historical image review business from the process network library, pulls the latest version of the process network of the historical image review business, and obtains the historical model element set therein.
[0051] In another specific embodiment of the present application, following the above example, when the target business registration request is to update the image review business, the client searches for the process network of the historical image review business from the process network library, obtains the process network of all versions of the historical image review business, obtains model elements as needed, and forms a historical model element set.
[0052] After pulling the process network of the historical image review business, the historical model element set in the process network is obtained, and on this basis, new model elements are created according to the review rule information to form a model element set corresponding to the target business.
[0053] Specifically, a model element set is determined based on the historical process network corresponding to the target business, including:
[0054] Obtaining a set of historical model elements corresponding to the historical process network;
[0055] The historical model element set is processed according to the audit rule information to generate a model element set corresponding to the target business.
[0056] In actual applications, in the acquired historical model element set, it is possible that all model elements can be reused, or it is possible that only some model elements can be reused. For example, when the audit rule of the target business is "pass machine audit", and the audit rule of the model elements in the acquired historical model elements is "pass manual audit", the changes in the historical model elements cannot be reused.
[0057] In a specific embodiment of the present application, following the above example, the client obtains the process network of the historical image review business from the process network library, the version number of which is V1.0, and pulls out the historical model element set therein. According to the review rule information "pass machine review", a new transition node is created to replace the historical transition node in the historical model element set, and a model element set corresponding to the target business is generated.
[0058] In a specific embodiment of the present application, following the above example, the client obtains the process network of the historical image review business from the process network library, the version number of which is V1.0, and pulls out the historical model element set therein. When it is determined that the historical model element set is the same as the model element set corresponding to the target business, the historical model element set can be used directly, that is, the historical model element set is used as the model element set corresponding to the target business.
[0059] When the target business registration request is to create a new business review process, a new model element set can be directly created according to the review rule information.
[0060] Specifically, creating the model element set includes:
[0061] Model elements are created according to the audit rule information to generate a model element set.
[0062] In actual applications, if the target business registration request is to create a new business, the client cannot find the process network of the same historical audit business as the target business in the process network library, and directly creates a new model element set based on the audit rule information.
[0063] In a specific embodiment of the present application, following the above example, if the client fails to find the same historical image review business as the image review business in the process network library, it chooses to directly create a new model element set based on the review process information.
[0064] Similarly, if the target business registration request is to update an old business, the client can pull the feature tokens that have been created under the same business as the target business, that is, the historical feature token set, and create a new feature token based on the historical feature token set to generate a feature token set corresponding to the target business; if the target business registration request is to create a new business, the client can directly create a feature token based on the audit content information and audit rule information to generate a feature token set corresponding to the target business.
[0065] Specifically, determining the feature token set corresponding to the model element set according to the audit content information and the audit rule information includes:
[0066] When a historical process network corresponding to the target business is found in the process network library, the feature token set is determined based on the historical process network corresponding to the target business;
[0067] When no historical process network corresponding to the target business is found in the process network library, the feature token set is created.
[0068] In actual applications, when it is necessary to update the old version of the business, the feature token set in the historical process network can be pulled, and new feature tokens can be created based on the requirements of the audit content information and audit rule information to generate a feature token set corresponding to the target business.
[0069] In a specific embodiment of the present application, following the above example, when the target business registration request is to update the image review business, the client searches for the process network of the historical image review business from the process network library, pulls the latest version of the process network of the historical image review business, and obtains the historical feature token set therein.
[0070] In another specific embodiment of the present application, following the above example, when the target business registration request is to update the image review business, the client searches for the process network of the historical image review business from the process network library, obtains the process network of all versions of the historical image review business, obtains model elements as needed, and forms a historical feature token set.
[0071] After pulling the process network of the historical image review business, the historical model element set in the process network is obtained, and on this basis, new model elements are created according to the review content information and review rule information to form a model element set corresponding to the target business.
[0072] Specifically, determining a feature token set based on a historical process network corresponding to the target business includes:
[0073] Obtaining a set of historical feature tokens corresponding to the historical process network;
[0074] The historical feature token set is processed according to the audit content information and the audit rule information to generate a feature token set.
[0075] In actual applications, only some of the feature tokens in the acquired historical feature token set can be reused. For example, when the review rule of the feature token in the target business is "the review rate of the content in the review content set is greater than the pre-review threshold", and the review rule of the feature token in the acquired historical feature token is "all the content in the review content set has passed the review", the feature token in the historical feature token cannot be reused.
[0076] In a specific embodiment of the present application, following the above example, the client obtains the process network of the historical image review business from the process network library, the version number of which is V1.0, and pulls out the historical feature token set therein. According to the review content information and the review rule information "the review rate of the images in the review content set exceeds the pre-review threshold", a new feature token is created to replace the historical feature token in the historical model element set, and a feature token set corresponding to the target business is generated.
[0077] Similarly, when the target business registration request is to create a new business review process, a new feature token set can be directly created based on the review content information and review rule information.
[0078] Specifically, create a feature token set, including:
[0079] A feature token is created according to the audit content information and the audit rule information to generate a feature token set.
[0080] In actual applications, if the target business registration request is to create a new business, the client cannot find the process network of the same historical audit business as the target business in the process network library, so it directly creates a new feature token set based on the audit content information and audit rule information.
[0081] In a specific embodiment of the present application, following the above example, if the client fails to find the same historical image review business as the image review business in the process network library, it chooses to directly create a new model element set based on the review content information and the review process information.
[0082] A new model element set is directly created according to the audit content information and the audit process information. A feature token can be generated by obtaining an audit content in the audit content information and an audit rule in the corresponding audit rule information.
[0083] Specifically, creating a feature token according to the audit content information and the audit rule information includes:
[0084] Determine the target audit sub-content information in the audit content information, and determine the target audit sub-rule information corresponding to the target audit sub-content information from the audit rule information;
[0085] A target feature token corresponding to the target audit sub-content information is created based on the target audit sub-content information and the target audit sub-rule information.
[0086] Among them, the target audit sub-content information can be understood as a piece of audit content information in the audit content information. For example, the target audit sub-content information can be "image color". The target audit sub-rule information can be understood as a piece of audit rule information in the audit rule information. For example, the target audit sub-rule information can be "whether the color of the audit image is black".
[0087] In actual applications, there are many different feature tokens in the feature token set corresponding to the target, each feature token corresponds to a model element, and each feature token is generated according to different audit content information and corresponding audit rule information.
[0088] In a specific embodiment of the present application, following the above example, an audit sub-content information A1 is determined in the audit content information corresponding to the target business, and the audit sub-content information A1 is "the capacity of the image". An audit sub-rule information A2 corresponding to the audit sub-content information A1 is determined in the audit rule information corresponding to the target business, and the audit sub-rule information A2 is "whether the capacity is greater than 1M". A feature token "whether the capacity of the audit image is greater than 1M" can be generated based on the audit sub-content information A1 and the audit sub-rule information A2.
[0089] After generating multiple feature tokens, you can combine multiple feature tokens into fixed rules according to the system-defined syntax. A fixed rule includes: unique number, business number, rule details, remarks, version number, and calculation type. If the version number is not specified, it means that any version of the process network under the same business can be referenced. The rule details are statements composed of several feature tokens. The calculation types are divided into variable and conditional types. There are two forms of variable fixed rules: several assignment feature tokens, and conditional assignments of conditional judgment and assignment feature tokens. Conditional fixed rules can only be composed of several conditional judgment feature tokens.
[0090] You can also configure corresponding color information for feature tokens. Configure colors for each feature token based on the rule color information in the audit rule information. A feature token can be configured with one color or none. The color comes from the pre-registered rule color. A color includes: unique number, business number, color name, granularity, and remarks. Granularity includes: business, node, content parent set, content subset, etc. Different color names display corresponding colors in the visualization interface. The fields pointed to by the variable feature path of the same color support aggregation operations of different granularities, such as statistics, maximum values, etc. These aggregation operations are included in the calculation type.
[0091] Specifically, after generating the feature token set, it also includes:
[0092] Rule color information is configured for at least one feature token in the feature token set according to the audit rule information.
[0093] In actual applications, feature tokens of the same color are configured to indicate that all feature tokens belong to a resource set. For example, if the feature tokens of comments under the same video are all configured in red, the number of comments under the current video can be calculated.
[0094] In a specific embodiment of the present application, following the above example, after generating a feature token set according to the review content information and the review rule information, the feature tokens in the feature token set can all be configured as yellow, and the number of review images can be counted.
[0095] Step 106: Arrange the model elements in the model element set according to the audit process information to generate an initial process network.
[0096] The audit process information can be understood as the flow relationship information of the model elements in the rule model element set. For example, the audit process information can be "the initial node flows to the first trial transition, the first trial transition flows to the second trial transition, and the second trial transition flows to the end node".
[0097] In practical applications, after generating a model element set, it is necessary to connect the model elements in the model element set to generate an initial process network.
[0098] In a specific embodiment of the present application, following the above example, the model element set corresponding to the image review business includes "a repository node to be reviewed, a first-instance transition node, an end node, and two connecting arcs". According to the review process information "the repository node to be reviewed flows to the first-instance transition node, and the first-instance transition node flows to the end node", directed arcs are used to connect the repository node to be reviewed, the first-instance transition node, and the end node in sequence, thereby generating an initial process network.
[0099] Specifically, arranging the model elements in the model element set according to the audit process information includes:
[0100] Determining flow direction information of model elements in the model element set according to the audit process information;
[0101] The model elements in the model element set are connected according to the flow direction information.
[0102] Among them, the flow information can have directed arcs to indicate the flow direction of a content in the repository and transition. A directed arc includes: unique number, version number, repository number, transition number, flow direction, type, enabling condition, output change, remarks, etc.: divided into input and output according to the flow direction, input is from repository to transition, output is from transition to repository, and single-arrow directed arc arrow points to the end point. According to different directed arc types, enabling conditions can be bound to several conditional rules, and can be bound in both input and output flow directions. Output changes are only set on the directed arc of the output flow direction, and are bound to several change rules.
[0103] Directed arc types include: direct order, OR split, OR merge, AND split, and AND merge, which respectively describe the scenarios of direct flow in order, flow according to conditions, and simultaneous flow. Different types have different scheduling restrictions, such as Figure 3 As shown, Figure 3 A schematic diagram of a directed arc type in a specific embodiment of the present application is shown.
[0104] Direct order restricts the content to have only one optional flow path, and it is directly enabled. The enabling condition is empty and there is no need to calculate the enabling condition. That is, if it is an input flow, such as direct order 1, there is only one directed arc downstream of the place, and the upstream of the place is not affected. There is also only one directed arc upstream of the transition, and the downstream of the transition is not affected. The same is true for direct order 2 of the output flow.
[0105] OR splitting provides multiple directed arcs with input flows to a place downstream, such as OR splitting 1, or multiple directed arcs with output flows to a transition downstream, such as OR splitting 2. Both are OR splitting types, and the enabling condition is not empty. When a content reaches the place or transition, the computing enabling conditions of all downstream directed arcs are calculated, and the calculation result is only one enabling condition.
[0106] OR merge describes a directed arc with multiple output flows upstream of a place, all of which are of OR merge type, and the enabling condition is not empty. When any calculation result is enabled, the content can actively close the transition trigger process on other OR merge lines and successfully flow to the place. On the path from the starting place to the OR merge directed arc, there must be one or more OR split or AND split type directed arcs.
[0107] AND split provides multiple directed arcs with output flows for a downstream transition, all of which are AND split types, and the enabling condition is empty. They can flow simultaneously without interfering with each other. AND merge describes that multiple directed arcs with output flows all point to the same transition, without setting enabling conditions. The upstream of the transition all flows concurrently, and the flow order does not interfere with each other. The transition is enabled only after all upstream places are enabled. There must be one or more AND split type directed arcs on the path from the starting place to the AND merge directed arc.
[0108] In practical applications, the flow relationship between places and transitions can be determined according to demand, and each model element can be arranged according to the flow relationship to generate an initial process network.
[0109] In a specific embodiment of the present application, following the above example, the model element set corresponding to the image review business includes "a repository node to be reviewed, a transition node for the first instance, an end node, and two connecting arcs". According to the review process information "the repository node to be reviewed flows to the transition node for the first instance, and the transition node for the first instance flows to the end node", the directed arc type is determined to be a direct-sequence directed arc. Then, the direct-sequence directed arc is used to connect the repository node to be reviewed, the transition node for the first instance, and the end node in sequence, thereby generating an initial process network.
[0110] Step 108: Bind the feature tokens in the feature token set to the initial process network according to the audit rule information to generate a target process network corresponding to the target business.
[0111] The target process network can be understood as a process network bound to a feature token.
[0112] In practical applications, after generating a feature token set, the feature tokens in the feature token set can be bound to the corresponding initial process network. Multiple feature tokens can be bound to a place, transition or directed arc in an initial process network.
[0113] In a specific embodiment of the present application, following the above example, the three feature tokens are respectively bound to the "to-be-reviewed repository node, the first-instance transition node, and the directed arc downstream of the first-instance transition node" according to the audit rule information.
[0114] Specifically, binding the feature tokens in the feature token set to the initial process network according to the audit rule information includes:
[0115] Obtaining model element binding information in the audit rule information;
[0116] Determine at least one feature token in the feature token set according to the model element binding information;
[0117] Bind the at least one feature token to a corresponding model element.
[0118] The model element binding information may be understood as the binding relationship information between the model element and the feature token.
[0119] A place binding relationship includes: unique number, version number, node number, feature change, feature constraint, and remarks. Place binding change rules do not include conditional feature tokens, which are feature domain changes that flow to the place; binding condition rules are feature restriction conditions before flow to the place.
[0120] A transition binding relationship includes: unique number, version number, transition number, operation item, and remarks. A transition can set several operation items. One operation item is bound to several change rules and can include conditional feature tokens. Each time a transition is triggered, at most one operation item is guaranteed to take effect. The effective operation item will be attached to the feature domain structure and participate in the calculation of the downstream flow relationship of the transition. Transitions of different trigger types have different restrictions on operation items. For example, manual triggering must set multiple operation items, and only one of the trigger transitions can be submitted each time. Automatic triggering must have no operation items, and there are no restrictions on service and time triggering.
[0121] In actual applications, binding feature tokens, places, and transitions are performed, and each binding relationship carries a version number. If the current orchestration is to update an old version of the process network, all binding relationships of the old version will be copied to the new version number and adjusted on the copy. Places and transitions are connected to form a mesh structure with directed arcs. In the visual interface, nodes and transitions are represented by different graphics, such as nodes are circles and transitions are squares.
[0122] In a specific embodiment of the present application, following the above example, the "binding relationship of the repository to be reviewed", "binding relationship of the first-instance transition" and "directed arc binding relationship downstream of the first-instance transition" in the review rule information are obtained, and the three feature tokens are respectively bound to the corresponding repository, transition and directed arc to generate a target process network corresponding to the image review business.
[0123] After the new version of the process network is generated, the starting node in the process network needs to be updated. Specifically, after the target process network corresponding to the target business is generated, it also includes:
[0124] The enabling state of the starting model element in the target process network is updated.
[0125] The starting model element can be understood as the starting node of the process network; and the startup state can be understood as the usage state of the current process network.
[0126] In actual applications, after the new version of the process network is assembled, a starting node of the configuration version is updated to "success", and the arrangement of a process network is completed. Business administrators enable multiple versions of the process network as needed. Once the system receives a flow request from the outside, the request specifies the business and content. The system uses the latest version of the process network by default. If the business enables multiple versions at the same time, the request parameter specifies the version number. If it is content that has been reviewed, it will continue to circulate on the same version number and will only switch to other versions when it is reviewed again.
[0127] In a specific embodiment of the present application, following the above example, after generating a target process network corresponding to the image review business, the activation status of the start node is updated to "success", which indicates that the current target process network begins to enter the use state.
[0128] The present application provides a process network orchestration method based on a discrete parallel model, which receives a target business registration request, obtains the audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request; determines a model element set according to the audit rule information, and determines a feature token set corresponding to the model element set according to the audit content information and the audit rule information; orchestrates the model elements in the model element set according to the audit process information to generate an initial process network; binds the feature tokens in the feature token set to the initial process network according to the audit rule information to generate a target process network corresponding to the target business. A visual process network orchestration method is provided to achieve a process network in which a business simultaneously maintains and applies multiple versions. The process network can be securely switched from multiple versions, and supports serial and parallel transfer and adjustment. By reusing historical process networks, the effect of saving development costs is achieved.
[0129] The following combination Figure 4 Taking the application of the process network arrangement method based on the discrete parallel model provided by this application in updating the video review business version as an example, the process network arrangement method based on the discrete parallel model is further explained. Figure 4 A processing flow chart of a process network orchestration method based on a discrete parallel model for updating a video review service version provided by an embodiment of the present application is shown, which specifically includes the following steps:
[0130] Step 402: Receive a video review service version registration request, and obtain the review content information, review rule information, and review process information corresponding to the video review service according to the video review service version registration request.
[0131] In a specific embodiment of the present application, the client receives a registration request for an updated version of the video review service originally issued by the business management, and assigns a unique version number V2.0, which is the largest in the same business, to this version to be updated. According to the registration request for the updated version, the review content information "video type", review rule information "whether it is animation (pending review), machine review (first review), manual review (second review)", and review process information "pending review, first review, second review, end" corresponding to the video review service are obtained.
[0132] Step 404: Query the historical process network of the video service in the process network library, and determine the model element set according to the query result and the audit rule information.
[0133] In a specific embodiment of the present application, following the above example, the client searches the process network library for the same historical process network as the video review service, obtains the historical process network of the video review service, and the version number of the historical process network is V1.0. The historical model element set in the historical process network is pulled. The historical model element set contains two library nodes and one transition node. According to the review content information "video type, video size", a new "second review" transition node is created in the historical model element set, and a model element set corresponding to the process network with version number V2.0 of the video review service is generated.
[0134] Step 406: Query the historical process network of the video service in the process network library, and determine the feature token set according to the query result.
[0135] In a specific embodiment of the present application, following the above example, the client searches the process network library for the same historical process network as the video review service, obtains the historical process network of the video review service, the version number of which is V1.0, and pulls the historical feature token set in the historical process network, which contains four feature tokens. Based on the review content information "video type" and the review rule information "manual review", a new feature token "manual review video type" is created in the historical model element set, and a feature token set corresponding to the process network with version number V2.0 of the video review service is generated.
[0136] Step 408: Determine the flow direction information of the model elements in the model element set according to the audit process information, and connect the model elements in the model element set according to the flow direction information.
[0137] In a specific embodiment of the present application, following the above example, the client determines the flow information as "pending review flows to first review, first review flows to second review, second review flows to end" based on the review process information, and arranges four model elements in the model element set, and the arrangement order is "pending review repository node flows to first review transition node, first review transition node flows to second review transition node, second review transition node flows to end node", thereby generating an initial process network.
[0138] Step 410: Obtain the model element binding information in the review rule information, bind the feature token to the corresponding model element according to the model element binding information, and generate a process network corresponding to the video review business.
[0139] In a specific embodiment of the present application, the above example is used to obtain the model element binding information in the audit rule information, and the feature token is bound to the corresponding model element. For details, see Figure 5 , Figure 5 The binding relationship between the model element and the feature token in an embodiment of the present application is shown. Figure 5 It includes the pending review place node, which binds the feature token A to the pending review place node; the first-instance transition node, which binds the feature token B to the first-instance transition node; the second-instance transition node, which binds the feature token C to the second-instance transition node; the directed line downstream of the second-instance transition node, which binds the feature token D to the directed line downstream of the second-instance transition node.
[0140] After the binding is completed, a process network corresponding to the video review business is generated, with the version number V2.0.
[0141] After the new version of the process network is assembled, the status of the start node of the process network is updated to "success", which means that the process network is successfully orchestrated and the process network can be enabled.
[0142] The present application provides a process network arrangement method based on a discrete parallel model for updating a video review service version. By receiving a video review service version registration request, the audit content information, audit rule information, and audit process information corresponding to the video review service are obtained according to the video review service version registration request. The historical process network of the video service is queried in the process network library, and a model element set is determined according to the query result and the audit rule information. The historical process network of the video service is queried in the process network library, and a feature token set is determined according to the query result. The flow direction information of the model elements in the model element set is determined according to the audit process information; the model elements in the model element set are connected according to the flow direction information. The model element binding information in the audit rule information is obtained, and at least one feature token is determined in the feature token set according to the model element binding information, and the at least one feature token is bound to the corresponding model element to generate a target process network corresponding to the target service. A new version of the process network is arranged for the video review service through a visual pre-arrangement method, so that a service can maintain and apply multiple versions of the process network at the same time. The process network based on the discrete parallel model allows users to understand the specific changes in the process and control the details of serial and parallel flows.
[0143] Corresponding to the above method embodiment, the present application also provides a process network orchestration device embodiment based on a discrete parallel model, Figure 6 FIG. 1 shows a schematic diagram of a process network orchestration device based on a discrete parallel model provided by an embodiment of the present application. Figure 6 As shown, the device comprises:
[0144] The acquisition module 602 is configured to receive a target business registration request, and acquire the audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request;
[0145] A determination module 604 is configured to determine a model element set according to the audit rule information, and determine a feature token set corresponding to the model element set according to the audit content information and the audit rule information;
[0146] An arrangement module 606 is configured to arrange the model elements in the model element set according to the audit process information to generate an initial process network;
[0147] The generation module 608 is configured to bind the feature tokens in the feature token set to the initial process network according to the audit rule information, and generate a target process network corresponding to the target business.
[0148] Optionally, the determining module 604 is further configured to:
[0149] When a historical process network corresponding to the target business is found in the process network library, a model element set is determined based on the historical process network corresponding to the target business;
[0150] When no historical process network corresponding to the target business is found in the process network library, a model element set is created.
[0151] Optionally, the determining module 604 is further configured to:
[0152] Obtaining a set of historical model elements corresponding to the historical process network;
[0153] The historical model element set is processed according to the audit rule information to generate a model element set corresponding to the target business.
[0154] Optionally, the determining module 604 is further configured to:
[0155] Model elements are created according to the audit rule information to generate a model element set.
[0156] Optionally, the determining module 604 is further configured to:
[0157] When a historical process network corresponding to the target business is found in the process network library, the feature token set is determined based on the historical process network corresponding to the target business;
[0158] When no historical process network corresponding to the target business is found in the process network library, the feature token set is created.
[0159] Optionally, the determining module 604 is further configured to:
[0160] Obtaining a set of historical feature tokens corresponding to the historical process network;
[0161] The historical feature token set is processed according to the audit content information and the audit rule information to generate a feature token set.
[0162] Optionally, the determining module 604 is further configured to:
[0163] A feature token is created according to the audit content information and the audit rule information to generate a feature token set.
[0164] Optionally, the determining module 604 is further configured to:
[0165] Determine the target audit sub-content information in the audit content information, and determine the target audit sub-rule information corresponding to the target audit sub-content information from the audit rule information;
[0166] A target feature token corresponding to the target audit sub-content information is created based on the target audit sub-content information and the target audit sub-rule information.
[0167] Optionally, the determining module 604 may also be configured to:
[0168] Rule color information is configured for at least one feature token in the feature token set according to the audit rule information.
[0169] Optionally, the arrangement module 606 is further configured to:
[0170] Determining flow direction information of model elements in the model element set according to the audit process information;
[0171] The model elements in the model element set are connected according to the flow direction information.
[0172] Optionally, the arrangement module 606 is further configured to:
[0173] Obtaining model element binding information in the audit rule information;
[0174] Determine at least one feature token in the feature token set according to the model element binding information;
[0175] Bind the at least one feature token to a corresponding model element.
[0176] Optionally, the data processing engine may also be configured as:
[0177] The enabling state of the starting model element in the target process network is updated.
[0178] The present application provides a process network orchestration device based on a discrete parallel model, wherein the discrete parallel model is composed of model elements, wherein the model elements include a place, a transition, and directed arcs between the place and the transition, and comprises: an acquisition module configured to receive a target business registration request, and acquire the audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request; a determination module configured to determine a model element set according to the audit rule information, and determine a feature token set corresponding to the model element set according to the audit content information and the audit rule information; an orchestration module configured to orchestrate the model elements in the model element set according to the audit process information to generate an initial process network; a generation module configured to bind the feature tokens in the feature token set to the initial process network according to the audit rule information, and generate a target process network corresponding to the target business. A visual orchestration process network method is provided to realize a process network in which a business simultaneously maintains and applies multiple versions, and the process network can be safely switched from multiple versions, and supports serial and parallel flow and adjustment, and achieves the effect of saving development costs by reusing historical process networks.
[0179] The above is a schematic scheme of a process network orchestration device based on a discrete parallel model of this embodiment. It should be noted that the technical scheme of the process network orchestration device based on a discrete parallel model and the technical scheme of the process network orchestration method based on a discrete parallel model belong to the same concept. For details not described in detail in the technical scheme of the process network orchestration device based on a discrete parallel model, please refer to the description of the technical scheme of the process network orchestration method based on a discrete parallel model.
[0180] Figure 7 The structure block diagram of a computing device 700 provided according to an embodiment of the present application is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.
[0181] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. 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 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether 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.
[0182] In one embodiment of the present application, the above components of the computing device 700 and Figure 7 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 7 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.
[0183] The computing device 700 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. The computing device 700 may also be a mobile or stationary server.
[0184] When the processor 720 executes the computer instructions, the steps of the process network orchestration method based on the discrete parallel model are implemented.
[0185] 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 process network orchestration method based on the discrete parallel model are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the process network orchestration method based on the discrete parallel model.
[0186] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the process network orchestration method based on the discrete parallel model as described above.
[0187] 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 process network orchestration method based on the discrete parallel model belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the process network orchestration method based on the discrete parallel model.
[0188] 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.
[0189] 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.
[0190] 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.
[0191] 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.
[0192] 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 process network orchestration method based on discrete parallel model, characterized in that: Applied to the client, the discrete parallel model is composed of model elements, and the model elements include places, transitions, and directed arcs between places and transitions, including: Receive a target business registration request, and obtain audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request; Determine a model element set according to the audit rule information, and determine a feature token set corresponding to the model element set according to the audit content information and the audit rule information; Arrange the model elements in the model element set according to the audit process information to generate an initial process network; Binding the feature tokens in the feature token set to the initial process network according to the audit rule information to generate a target process network corresponding to the target business; Arranging the model elements in the model element set according to the audit process information includes: Determining flow direction information of model elements in the model element set according to the audit process information; The model elements in the model element set are connected according to the flow direction information.
2. The process network arrangement method according to claim 1, characterized in that: Determining a model element set according to the audit rule information includes: When a historical process network corresponding to the target business is found in the process network library, a model element set is determined based on the historical process network corresponding to the target business; When no historical process network corresponding to the target business is found in the process network library, a model element set is created.
3. The process network arrangement method according to claim 2, characterized in that: A set of model elements is determined based on the historical process network corresponding to the target business, including: Obtaining a set of historical model elements corresponding to the historical process network; The historical model element set is processed according to the audit rule information to generate a model element set corresponding to the target business.
4. The process network arrangement method according to claim 2, characterized in that: Creating the model element set, including: Model elements are created according to the audit rule information to generate a model element set.
5. The process network arrangement method according to claim 1, characterized in that: Determining a feature token set corresponding to the model element set according to the audit content information and the audit rule information includes: When a historical process network corresponding to the target business is found in the process network library, the feature token set is determined based on the historical process network corresponding to the target business; When no historical process network corresponding to the target business is found in the process network library, the feature token set is created.
6. The process network arrangement method according to claim 5, characterized in that: Determining a feature token set based on a historical process network corresponding to the target business includes: Obtaining a set of historical feature tokens corresponding to the historical process network; The historical feature token set is processed according to the audit content information and the audit rule information to generate a feature token set.
7. The process network arrangement method according to claim 5, characterized in that: Create a feature token collection, including: A feature token is created according to the audit content information and the audit rule information to generate a feature token set.
8. The process network arrangement method according to claim 7, characterized in that: Creating a feature token according to the audit content information and the audit rule information includes: Determine the target audit sub-content information in the audit content information, and determine the target audit sub-rule information corresponding to the target audit sub-content information from the audit rule information; A target feature token corresponding to the target audit sub-content information is created based on the target audit sub-content information and the target audit sub-rule information.
9. The process network arrangement method according to claim 6 or 7, characterized in that: After generating the feature token set, it also includes: Rule color information is configured for at least one feature token in the feature token set according to the audit rule information.
10. The process network arrangement method according to any one of claims 1 to 8, characterized in that: Binding the feature tokens in the feature token set to the initial process network according to the audit rule information includes: Obtaining model element binding information in the audit rule information; Determine at least one feature token in the feature token set according to the model element binding information; Bind the at least one feature token to a corresponding model element.
11. The process network arrangement method according to any one of claims 1 to 8, characterized in that: After generating the target process network corresponding to the target business, the method further includes: The enabling state of the starting model element in the target process network is updated.
12. A process network orchestration device based on a discrete parallel model, characterized in that: The discrete parallel model is composed of model elements, and the model elements include places, transitions, and directed arcs between places and transitions, including: An acquisition module is configured to receive a target business registration request, and acquire audit content information, audit rule information, and audit process information corresponding to the target business according to the registration request; A determination module is configured to determine a model element set according to the audit rule information, and determine a feature token set corresponding to the model element set according to the audit content information and the audit rule information; An arrangement module is configured to arrange the model elements in the model element set according to the audit process information to generate an initial process network; A generating module, configured to bind the feature tokens in the feature token set to the initial process network according to the audit rule information, and generate a target process network corresponding to the target business; Arranging the model elements in the model element set according to the audit process information includes: Determining flow direction information of model elements in the model element set according to the audit process information; The model elements in the model element set are connected according to the flow direction information.
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.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
