CN109583746B - Method and device for setting routing rule of flow and readable storage medium - Google Patents
Method and device for setting routing rule of flow and readable storage medium Download PDFInfo
- Publication number
- CN109583746B CN109583746B CN201811420337.2A CN201811420337A CN109583746B CN 109583746 B CN109583746 B CN 109583746B CN 201811420337 A CN201811420337 A CN 201811420337A CN 109583746 B CN109583746 B CN 109583746B
- Authority
- CN
- China
- Prior art keywords
- node
- task
- routing
- handled
- flow
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0633—Workflow analysis
Landscapes
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Operations Research (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Educational Administration (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a method and a device for setting a routing rule of a process and a readable storage medium. The method comprises the following steps: when a task to be handled is opened and task handling is carried out, node information of a target node is obtained, the target node is the node next to a process node where the task to be handled is located, and when the node type of the target node is determined to be a routing node, a routing rule is obtained from an extended attribute and is stored in the extended attribute of the routing node in advance; before the form of the task to be handled is submitted, when the target node is determined to meet the corresponding routing rule according to the service data corresponding to the form of the task to be handled, the branch transmission line identifier corresponding to the target node is recorded in the extended attribute of the target node, and when the flow of the task to be handled is transferred to the target node, the flow of the task to be handled is transferred to the transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the target node.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for setting a routing rule of a process and a readable storage medium.
Background
The business process is composed of a workflow process and a process form related to the workflow process for information filling and interaction, wherein the workflow process is a flow representation and has standard description language and rules.
The process of the business process flow circulation is as follows: the routing rules of the flow are preset in the flow, the variables in the flow are assigned when the flow analyzes the transmission lines in the service flow operation period, the variable values are obtained by the flow engine, and the routing rules of the transmission lines are verified according to the routing rules. The existing method is to assign values to variables in a flow by means of data docking between a form and the flow, specifically, to create homonymous variables for the flow and the form, wherein the flow and the form both need to create a physical table for maintaining the variables, the type of the variables created by the form is a workflow interface type, and when the form is submitted, the homonymous variables in the flow are automatically assigned values.
However, in the above method, on one hand, because the process and the form need to create a physical table for maintaining variables, that is, create two physical tables, the database storage is increased, and on the other hand, when the form is submitted, the form engine needs to traverse all variables, take out the variables of the workflow interface type, and assign values to the variables in the process, which increases the pressure of the form engine. During the operation period of the service process, the process engine needs to check the routing rule of each transmission line, and the transmission lines meeting the routing rule are circulated, so that the pressure of the process engine is increased.
Disclosure of Invention
The embodiment of the invention provides a method and a device for setting a routing rule of a process and a readable storage medium, which can reduce the storage of a database and reduce the pressure of a form engine and a process engine.
In a first aspect, an embodiment of the present invention provides a method for setting a routing rule of a flow, including:
when a task to be handled is opened for task handling, node information of a target node is obtained, wherein the node information comprises a node type and an extended attribute, and the target node is the next node of a process node where the task to be handled is located;
when the node type of the target node is determined to be a routing node, a routing rule is obtained from the extended attribute, and the routing rule is stored in the extended attribute of the routing node in advance;
before the form of the task to be handled is submitted, when the target node is determined to meet the corresponding routing rule according to the service data corresponding to the form of the task to be handled, the branch transmission line identifier corresponding to the target node is recorded in the extended attribute of the target node, and when the flow of the task to be handled is transferred to the target node, the flow of the task to be handled is transferred to the transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the target node.
Optionally, the method further includes:
and when the target node does not meet the corresponding routing rule according to the service data corresponding to the flow form of the task to be handled, pushing indication information for indicating that the routing rule is not met to a user.
Optionally, before opening the task to be handled and performing task handling, the method further includes:
binding a form for the process of the task to be handled;
acquiring metadata of the form according to the identifier of the form, analyzing and storing the metadata in a process template of the process, wherein the metadata of the form at least comprises data of a plurality of form fields;
and setting a routing rule for the transmission line of the flow of the task to be handled, selecting a form field according to the metadata of the form when the routing rule is set, and storing the set routing rule in the extended attribute of the routing node.
Optionally, the storage format of the routing rule of the routing node is transmission line identifier and corresponding routing rule.
In a second aspect, an embodiment of the present invention provides an apparatus for setting a routing rule of a flow, including:
the task processing method comprises the steps that a first obtaining module is used for obtaining node information of a target node when a task to be handled is opened for task handling, wherein the node information comprises a node type and an extended attribute, and the target node is the next node of a process node where the task to be handled is located;
a second obtaining module, configured to obtain a routing rule from the extended attribute when it is determined that the node type of the target node is a routing node, where the routing rule is pre-stored in the extended attribute of the routing node;
the first processing module is configured to record a branch transmission line identifier corresponding to the target node in an extended attribute of the target node when the target node is determined to meet a corresponding routing rule according to service data corresponding to the form of the task before the form of the task to be handled is submitted, and is configured to transfer the flow of the task to be handled to a transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the target node when the flow of the task to be handled is transferred to the target node.
Optionally, the first processing module is further configured to:
and when the target node does not meet the corresponding routing rule according to the service data corresponding to the flow form of the task to be handled, pushing indication information for indicating that the routing rule is not met to a user.
Optionally, the apparatus further comprises:
the binding module is used for binding a form for the flow of the task to be handled before opening the task to be handled for task handling;
the second processing module is used for acquiring metadata of the form according to the identifier of the form and analyzing and storing the metadata in the flow template of the flow, wherein the metadata of the form at least comprises data of a plurality of form fields;
and the third processing module is used for setting a routing rule for the transmission line of the flow of the task to be handled, selecting a form field according to the metadata of the form when the routing rule is set, and storing the set routing rule in the extended attribute of the routing node.
Optionally, the storage format of the routing rule of the routing node is transmission line identifier and corresponding routing rule.
In a third aspect, an embodiment of the present invention provides an apparatus for setting a routing rule of a flow, where the apparatus includes:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the method for setting the routing rule of the flow in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when the computer program is executed by at least one processor of an apparatus for setting a routing rule of a flow, the apparatus for setting a routing rule of a flow performs the method for setting a routing rule of a flow of the first aspect.
In a fifth aspect, an embodiment of the present invention provides a program product, which includes a computer program, and the computer program is stored in a readable storage medium. The at least one processor of the apparatus for setting a routing rule of a flow may read the computer program from a readable storage medium, and the at least one processor executes the computer program to cause the apparatus for setting a routing rule of a flow to implement the method for setting a routing rule of a flow of the first aspect.
The method, the device and the readable storage medium for setting the routing rule of the process, provided by the embodiment of the invention, have the advantages that the routing rule of the routing node is pre-stored in the extended attribute of the routing node, when the task to be handled is opened for task handling, the node information of the target node is obtained, the target node is the next node of the process node where the task to be handled is located, the node information comprises the node type and the extended attribute, when the node type of the target node is determined to be the routing node, the routing rule can be directly obtained from the extended attribute, before the form of the task to be handled is submitted, when the target node is determined to meet the corresponding routing rule according to the service data corresponding to the form of the task to be handled, the branch transmission line identifier corresponding to the target node is recorded in the extended attribute of the target node, and therefore, when the flow of the task to be handled is transferred to the target node, the transmission line identifier corresponding to the branch transmission line identifier stored in the extended attribute of the target node can be Compared with the prior art that the flow engine needs to check the routing rule of each transmission line and then flows to the transmission line meeting the routing rule, the flow engine is not needed to check the routing rule of each transmission line in the embodiment of the invention, and the pressure of the flow engine is reduced. When the form is submitted, the form engine is not required to traverse all variables, and the pressure of the form engine is reduced. In addition, in the embodiment of the invention, the routing rule is directly stored in the extended attribute of the routing node, and the extended attribute of the routing node can be directly obtained in the process of running the process.
Drawings
In order to clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an embodiment of a method for setting a routing rule of a flow according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of all nodes in a process;
fig. 3 is a flowchart of an embodiment of a method for setting a routing rule of a flow according to an embodiment of the present invention;
FIG. 4 is a diagram of one example of selecting form fields for a transmission line of a flow of tasks to be handled;
fig. 5 is a flowchart of an embodiment of a method for setting a routing rule of a flow according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an embodiment of an apparatus for setting a routing rule of a flow according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an embodiment of an apparatus for setting a routing rule of a flow according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an embodiment of an apparatus for setting a routing rule of a flow according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without any creative efforts shall fall within the protection scope of the embodiments of the present invention.
First, some terms in the embodiments of the present invention are explained below to facilitate understanding by those skilled in the art.
1. Forms, representing structured data exchange, are a simple way to enable users to interact with a network server, the simplest of which are usually created to solicit feedback from users, on the network, forms can be used for search engines, voting, e-commerce, online applications, and the like.
The method and the device for setting the routing rule of the process, which are provided by the embodiment of the invention, can be applied to at least one computer or network server.
Fig. 1 is a flowchart of an embodiment of a method for setting a routing rule of a flow according to an embodiment of the present invention, where an execution main body of this embodiment may be a device for setting a routing rule of a flow, and the device for setting a routing rule of a flow may be implemented by software and/or hardware, as shown in fig. 1, the method of this embodiment may include:
s101, when the task to be handled is opened and the task is handled, node information of a target node is obtained, the node information comprises a node type and an extended attribute, and the target node is the next node of a process node where the task to be handled is located.
Specifically, the nodes in the process include a start node, a manual node (also called a manually participating node, a routing node (i.e., a branch judgment node), and an end node, fig. 2 is a schematic diagram of all nodes in one process, as shown in fig. 2, fig. 2 shows a process of asking for approval, where the nodes in the process include the start node, the end node, and one routing node, and further include 4 nodes that are all manual nodes.
The target node is a node next to the process node where the task to be handled is located, for example, the process is a-B-C, and when the task to be handled is located at the node B, the target node is the node C next to the node B.
The node information may further include a node identifier, where the node identifier is used to identify which node is, to distinguish different nodes, and specifically, the node information of the node corresponding to the node identifier may also be obtained through the node identifier, and the node type includes a routing node and a non-routing node.
S102, when the node type of the target node is determined to be the routing node, the routing rule is obtained from the extended attribute, and the routing rule is stored in the extended attribute of the routing node in advance.
Specifically, taking the flow shown in fig. 2 as an example, if the number of leave-asking days of the routing node is greater than 7 and less than 15, the routing node is examined and approved by the head of the department and then examined and approved by hr, and if the number of leave-asking days is less than or equal to 7, the routing node is examined and approved by hr.
In this embodiment, the pre-storing the routing rule of the routing node in the extended attribute of the routing node may specifically include:
and S11, before opening the task to be handled and performing task handling, binding the form for the flow of the task to be handled.
Specifically, a process may bind a plurality of forms, and after the process binds the forms, the metadata of the forms is obtained according to the identifiers of the forms.
And S12, acquiring the metadata of the form according to the identifier of the form, analyzing and storing the metadata in the flow template of the flow, wherein the metadata at least comprises data of a plurality of form fields.
Specifically, the metadata of the form is obtained according to the identifier of the form, and is analyzed, specifically, the metadata is json-ized, and the metadata obtained through analysis includes data of a plurality of form fields and identifiers of the form fields. And storing the analyzed metadata of the form in the flow template of the flow so as to directly acquire the metadata of the form from the flow template of the current flow without secondary analysis when a routing rule is set subsequently.
S13, setting a routing rule for the transmission line of the flow of the task to be handled, selecting a form field according to the metadata of the form when the routing rule is set, and storing the set routing rule in the extended attribute of the routing node.
Specifically, as shown in fig. 2, two branches behind the routing node are two transmission lines, and a routing rule of the transmission lines is set, where the routing rule is manually set, specifically, an attribute page of the transmission line is opened, a form field is loaded according to metadata of the form, an arithmetic operator of the form field and the page is double-clicked, and the routing rule is set. For example, any of the name, number of days to leave, reason for leave, product manager approval, hr approval, and department leader approval in the flow shown in FIG. 2 is a form field.
Optionally, in this embodiment, the storage format of the routing rule of the routing node may be transmission line identifier and a corresponding routing rule, for example, "transmission line identifier: routing rules ".
S103, before the form of the task to be handled is submitted, when the target node is determined to meet the corresponding routing rule according to the service data corresponding to the form of the task to be handled, the branch transmission line identifier corresponding to the target node is recorded in the extended attribute of the target node, and when the flow of the task to be handled is transferred to the target node, the flow of the task to be handled is transferred to the transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the target node.
Specifically, the method of this embodiment may further include: and when the target node does not meet the corresponding routing rule according to the service data corresponding to the flow form of the task to be handled, pushing indication information for indicating that the routing rule is not met to the user. When the routing rule is not satisfied, the responsible person is informed in time, so that the abnormity in the operation period can be avoided, and the user experience is improved. It should be noted that, a routing node generally sets a routing rule, and when it is determined that a target node does not satisfy the routing rule, indication information for indicating that the routing rule is not satisfied is pushed to a user.
In this embodiment, before submitting the form of the task to be handled, it is determined that the target node satisfies the corresponding routing rule according to the service data corresponding to the form of the task to be handled, and the branch transmission line identifier corresponding to the target node is recorded in the extended attribute of the target node, for example, recorded as "transmission line identifier satisfying the routing rule", so that when the flow flows downward, the extended attribute of the routing node is obtained, and the flow is transferred to the transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute. When the form is submitted, the form engine is not required to traverse all variables, and the pressure of the form engine is reduced. In addition, in this embodiment, the routing rule is directly stored in the extended attribute of the routing node, and in the process of running the process, the extended attribute of the routing node can be directly obtained.
The method for setting routing rules of a flow provided by this embodiment includes pre-storing routing rules of routing nodes in extended attributes of the routing nodes, acquiring node information of a target node when a task to be handled is opened for task handling, the target node being a node next to the routing node where the task to be handled is located, the node information including a node type and an extended attribute, and when the node type of the target node is determined to be the routing node, directly acquiring the routing rules from the extended attributes, and before submitting a form of the task to be handled, recording branch transmission line identifiers corresponding to the target node in the extended attributes of the target node when determining that the target node satisfies the corresponding routing rules according to service data corresponding to the form of the task to be handled, so that when the flow of the task to be handled is transferred to the target node, the flow can be transferred to transmission lines corresponding to the branch transmission line identifiers according to the branch transmission line identifiers stored in the extended attributes of the target node, compared with the prior art that the flow engine needs to check the routing rule of each transmission line and then flows to the transmission lines meeting the routing rule, the flow engine is not needed to check the routing rule of each transmission line in the embodiment of the invention, and the pressure of the flow engine is reduced. When the form is submitted, the form engine is not required to traverse all variables, and the pressure of the form engine is reduced. In addition, in the embodiment of the invention, the routing rule is directly stored in the extended attribute of the routing node, and the extended attribute of the routing node can be directly obtained in the process of running the process.
The following describes the technical solution of the embodiment of the method shown in fig. 1 in detail by using a specific embodiment.
Fig. 3 is a flowchart of an embodiment of a method for setting a routing rule of a flow according to an embodiment of the present invention, where an execution subject of this embodiment may be a device for setting a routing rule of a flow, for example, a flow designer, and the flow designer may be implemented by software and/or hardware, and in this embodiment, how to store a routing rule of a routing node in an extended attribute of the routing node in advance in a flow design stage is mainly described, as shown in fig. 3, the method of this embodiment may include:
s201, binding a form for the process of the task to be handled.
Specifically, a process may bind a plurality of forms, and after the process binds the forms, the metadata of the forms is obtained according to the identifiers of the forms.
S202, obtaining the metadata of the form according to the identifier of the form.
Specifically, the metadata of the form is analyzed, and the metadata obtained through analysis includes data of a plurality of form fields and identifiers of the form fields.
And S203, storing the metadata obtained by analysis in a flow template of the flow.
And storing the analyzed metadata of the form in the flow template of the flow so as to directly acquire the metadata of the form from the flow template of the current flow without secondary analysis when a routing rule is set subsequently.
S204, loading form fields, setting a routing rule for a transmission line of the process of the task to be handled, and selecting the form fields according to the metadata of the forms when the routing rule is set.
Specifically, fig. 4 is a schematic diagram of an example of selecting form fields when a transmission line of a flow of a task to be handled is set up with a routing rule, as shown in fig. 4, specifically, for example, a transmission line attribute page is opened, the name, the gender and the age on the left side are all one form field, the left-side form field is double-clicked to select, for example, 2 form fields of the name and the gender are selected, the routing rule of the transmission line is set up as "name ═ joming" & & gender & "male" shown in fig. 4, specifically, when it is determined in the subsequent running period whether the routing node satisfies the routing rule, if the name is "joming" and the gender is "male", it is determined that the routing rule is satisfied, otherwise, it is determined that the routing rule is not satisfied.
And S205, storing the set routing rule in the extended attribute of the routing node.
In this embodiment, a routing rule is set for a transmission line of a flow of a task to be handled in a flow design stage, a form field is selected according to metadata of a form when the routing rule is set, and the routing rule of a routing node is stored in advance in an extended attribute of the routing node, so that in a flow operation process, when the task to be handled is opened for task handling, and when the node type of a target node is determined to be the routing node, the routing rule can be directly obtained from the extended attribute of the routing node.
Fig. 5 is a flowchart of an embodiment of a method for setting a routing rule of a flow according to an embodiment of the present invention, where an execution main body of this embodiment may be a device for setting a routing rule of a flow, and in this embodiment, a flow process of a flow during a flow operation period is mainly described, as shown in fig. 5, the method of this embodiment may include:
s301, opening the task to be handled and conducting task handling.
S302, node information of a node next to the process node where the task to be handled is located is obtained, and the node information comprises a node type and an extended attribute.
And S303, before the form of the task to be handled is submitted, judging whether the node type of the next node is a routing node, if so, executing S304, and if not, transferring the process downwards.
S304, obtaining the routing rule from the extended attribute of the next node.
S305, judging whether the next node meets the corresponding routing rule according to the service data corresponding to the form of the task to be handled, if so, executing S306, and if not, executing S308.
S306, recording the branch transmission line identification corresponding to the next node in the extension attribute of the next node.
And S307, when the flow of the task to be processed is transferred to the routing node, transferring the flow to the transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the routing node.
And S308, pushing indication information for indicating that the routing rule is not satisfied to the user.
Specifically, in this embodiment, before submitting the form of the task to be handled, it is determined whether the routing node satisfies the corresponding routing rule, if the routing node satisfies the extended attribute of the routing node (i.e., the identifier of the branch transmission line corresponding to the routing node is recorded in the extended attribute of the routing node), if the routing node does not satisfy the extended attribute, the user is prompted directly on the foreground, and there is no subsequent node satisfying the routing rule, so that the user can directly modify the routing node, and the exception during the process operation period is avoided.
Taking the flow shown in fig. 2 as an example, if the number of leave-asking days of the routing node is greater than 7 and less than 15, the routing node is examined and approved by the leader of the department, and then the routing node is examined and approved by hr, if the number of leave-asking days is less than or equal to 7, the routing node is examined and approved by hr, if the number of leave-asking days is 16, the routing node does not satisfy the routing rule, and the routing node is notified to a responsible person in time when the routing rule does not satisfy, so that the abnormal operation period can be avoided, and the.
In this embodiment, before submitting the form of the task to be handled, when determining that the routing node satisfies the corresponding routing rule, the branch transmission line identifier corresponding to the routing node is recorded in the extended attribute of the routing node, so that the flow acquires the extended attribute of the routing node when flowing downwards, and flows to the transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute, without checking by a flow engine, thereby reducing the pressure of the flow engine. When the form is submitted, the form engine is not required to traverse all variables, and the pressure of the form engine is reduced. In addition, in this embodiment, the routing rule is directly stored in the extended attribute of the routing node, and in the process of running the process, the extended attribute of the routing node can be directly obtained. Furthermore, when the routing rule is not satisfied, indication information for indicating that the routing rule is not satisfied is pushed to the user, so that the abnormity in the operation period can be avoided, and the user experience is improved.
Fig. 6 is a schematic structural diagram of an embodiment of an apparatus for setting a routing rule of a flow according to an embodiment of the present invention, and as shown in fig. 6, the apparatus of this embodiment may include: a first acquisition module 11, a second acquisition module 12 and a first processing module 13, wherein,
the first obtaining module 11 is configured to, when opening a task to be handled and performing task handling, obtain node information of a target node, where the node information includes a node type and an extended attribute, and the target node is a node next to a flow node where the task to be handled is located.
The second obtaining module 12 is configured to, when it is determined that the node type of the target node is a routing node, obtain a routing rule from the extended attribute, where the routing rule is pre-stored in the extended attribute of the routing node.
The first processing module 13 is configured to record, before the form of the task to be handled is submitted, a branch transmission line identifier corresponding to the target node in the extended attribute of the target node when it is determined that the target node meets the corresponding routing rule according to the service data corresponding to the form of the task to be handled, and when the flow of the task to be handled is transferred to the target node, the flow of the task to be handled is transferred to a transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the target node.
Further, the first processing module 13 is further configured to:
and when the target node does not meet the corresponding routing rule according to the service data corresponding to the flow form of the task to be handled, pushing indication information for indicating that the routing rule is not met to a user.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle thereof is similar, which is not described herein again.
The apparatus for setting routing rules of flows provided in this embodiment, pre-stores the routing rules of the routing nodes in the extended attributes of the routing nodes, obtains node information of a target node when opening a task to be handled for task handling, where the target node is a node next to the routing node where the task to be handled is located, where the node information includes a node type and an extended attribute, and when determining that the node type of the target node is the routing node, may directly obtain the routing rules from the extended attributes, and before submitting a form of the task to be handled, when determining that the target node satisfies the corresponding routing rules according to service data corresponding to the form of the task to be handled, records branch transmission line identifiers corresponding to the target node in the extended attributes of the target node, so that when the flow of the task to be handled flows to the target node, the flow of the task to be handled may turn to transmission lines corresponding to the branch transmission line identifiers according to the branch transmission line identifiers stored in the extended attributes of the target node, compared with the prior art that the flow engine needs to check the routing rule of each transmission line and then flows to the transmission lines meeting the routing rule, the flow engine is not needed to check the routing rule of each transmission line in the embodiment of the invention, and the pressure of the flow engine is reduced. When the form is submitted, the form engine is not required to traverse all variables, and the pressure of the form engine is reduced. In addition, in the embodiment of the invention, the routing rule is directly stored in the extended attribute of the routing node, and the extended attribute of the routing node can be directly obtained in the process of running the process.
Fig. 7 is a schematic structural diagram of an embodiment of an apparatus for setting a routing rule of a flow according to an embodiment of the present invention, as shown in fig. 7, the apparatus of this embodiment may further include, on the basis of the apparatus shown in fig. 6: a binding module 14, a second processing module 15 and a third processing module 16, wherein,
the binding module 14 is configured to bind the form for the flow of the task to be handled before opening the task to be handled for task handling.
The second processing module 15 is configured to obtain metadata of the form according to the identifier of the form, and analyze and store the metadata in the flow template of the flow, where the metadata of the form at least includes data of a plurality of form fields.
The third processing module 16 is configured to set a routing rule for the transmission line of the flow of the task to be handled, select a form field according to the metadata of the form when the routing rule is set, and store the set routing rule in the extended attribute of the routing node.
In this embodiment, optionally, the storage format of the routing rule of the routing node is transmission line identifier and a corresponding routing rule.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of an embodiment of an apparatus for setting a routing rule of a flow according to an embodiment of the present invention, and as shown in fig. 8, the apparatus of this embodiment may include: a memory 201 and a processor 202,
a memory 201 for storing program instructions, which may be a flash (flash memory).
A processor 202 for calling and executing program instructions in the memory to implement the steps of the method shown in fig. 1 or fig. 4. Reference may be made in particular to the description relating to the preceding method embodiment.
The apparatus of this embodiment may also include an input/output interface 203. The input/output interface 203 may include a separate output interface and input interface, or may be an integrated interface that integrates input and output. The output interface is used for outputting data, the input interface is used for acquiring input data, the output data is a general name output in the method embodiment, and the input data is a general name input in the method embodiment.
An embodiment of the present invention further provides a readable storage medium, in which a computer program is stored, and when at least one processor of an apparatus for setting a routing rule of a flow executes the computer program, the apparatus for setting a routing rule of a flow is a method for setting a routing rule of a flow shown in fig. 1.
An embodiment of the present invention also provides a program product including a computer program, where the computer program is stored in a readable storage medium. The at least one processor of the apparatus for setting a routing rule of a flow may read the computer program from a readable storage medium, and the at least one processor executes the computer program to cause the apparatus for setting a routing rule of a flow to implement the method for setting a routing rule of a flow shown in fig. 1.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (8)
1. A method for setting routing rules of a process, comprising:
when a task to be handled is opened for task handling, node information of a target node is obtained, wherein the node information comprises a node type and an extended attribute, and the target node is the next node of a process node where the task to be handled is located;
when the node type of the target node is determined to be a routing node, a routing rule is obtained from the extended attribute, and the routing rule is stored in the extended attribute of the routing node in advance;
before submitting the form of the task to be handled, when determining that the target node meets the corresponding routing rule according to the service data corresponding to the form of the task to be handled, recording a branch transmission line identifier corresponding to the target node in the extended attribute of the target node, wherein the branch transmission line identifier is used for enabling the flow of the task to be handled to flow to a transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the target node when the flow of the task to be handled is transferred to the target node;
before opening the task to be handled for task handling, the method further comprises the following steps:
binding a form for the process of the task to be handled;
acquiring metadata of the form according to the identifier of the form, analyzing and storing the metadata in a process template of the process, wherein the metadata of the form at least comprises data of a plurality of form fields;
and setting a routing rule for the transmission line of the flow of the task to be handled, selecting a form field according to the metadata of the form when the routing rule is set, and storing the set routing rule in the extended attribute of the routing node.
2. The method of claim 1, further comprising:
and when the target node does not meet the corresponding routing rule according to the service data corresponding to the flow form of the task to be handled, pushing indication information for indicating that the routing rule is not met to a user.
3. The method of claim 1,
the storage format of the routing rule of the routing node is transmission line identification and the corresponding routing rule.
4. An apparatus for setting a routing rule of a flow, comprising:
the task processing method comprises the steps that a first obtaining module is used for obtaining node information of a target node when a task to be handled is opened for task handling, wherein the node information comprises a node type and an extended attribute, and the target node is the next node of a process node where the task to be handled is located;
a second obtaining module, configured to obtain a routing rule from the extended attribute when it is determined that the node type of the target node is a routing node, where the routing rule is pre-stored in the extended attribute of the routing node;
the first processing module is used for recording a branch transmission line identifier corresponding to the target node in the extended attribute of the target node when the target node is determined to meet the corresponding routing rule according to the service data corresponding to the form of the task to be handled before the form of the task to be handled is submitted, and is used for transferring the flow of the task to be handled to a transmission line corresponding to the branch transmission line identifier according to the branch transmission line identifier stored in the extended attribute of the target node when the flow of the task to be handled is transferred to the target node;
the binding module is used for binding a form for the flow of the task to be handled before opening the task to be handled for task handling;
the second processing module is used for acquiring metadata of the form according to the identifier of the form and analyzing and storing the metadata in the flow template of the flow, wherein the metadata of the form at least comprises data of a plurality of form fields;
and the third processing module is used for setting a routing rule for the transmission line of the flow of the task to be handled, selecting a form field according to the metadata of the form when the routing rule is set, and storing the set routing rule in the extended attribute of the routing node.
5. The apparatus of claim 4, wherein the first processing module is further configured to:
and when the target node does not meet the corresponding routing rule according to the service data corresponding to the flow form of the task to be handled, pushing indication information for indicating that the routing rule is not met to a user.
6. The apparatus of claim 4,
the storage format of the routing rule of the routing node is transmission line identification and the corresponding routing rule.
7. An apparatus for setting a routing rule of a flow, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the method of setting routing rules of a process according to any of claims 1-3.
8. A readable storage medium, wherein a computer program is stored in the readable storage medium, and when the computer program is executed by at least one processor of an apparatus for setting routing rules of a flow, the apparatus for setting routing rules of a flow performs the method for setting routing rules of a flow according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811420337.2A CN109583746B (en) | 2018-11-26 | 2018-11-26 | Method and device for setting routing rule of flow and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811420337.2A CN109583746B (en) | 2018-11-26 | 2018-11-26 | Method and device for setting routing rule of flow and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109583746A CN109583746A (en) | 2019-04-05 |
CN109583746B true CN109583746B (en) | 2020-10-30 |
Family
ID=65924296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811420337.2A Active CN109583746B (en) | 2018-11-26 | 2018-11-26 | Method and device for setting routing rule of flow and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109583746B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110389748A (en) * | 2019-06-17 | 2019-10-29 | 平安银行股份有限公司 | Business data processing method and terminal device |
CN110413367B (en) * | 2019-07-31 | 2022-09-23 | 北京字节跳动网络技术有限公司 | Task creation method and device, storage medium and electronic equipment |
CN110515600A (en) * | 2019-09-02 | 2019-11-29 | 政采云有限公司 | A kind of method and apparatus of workflow conditional configuration |
CN111222783A (en) * | 2019-12-31 | 2020-06-02 | 深圳市创梦天地科技有限公司 | Method for processing workflow and electronic equipment |
CN111652580B (en) * | 2020-05-29 | 2023-02-14 | 深圳平安医疗健康科技服务有限公司 | Method and device for processing data of nodes |
CN112199012A (en) * | 2020-07-24 | 2021-01-08 | 上海泛微网络科技股份有限公司 | Data processing method and related equipment |
CN115051948B (en) * | 2022-05-19 | 2023-10-13 | 天翼云科技有限公司 | VPC distributed network element data transmission method and device and electronic equipment |
CN115225572B (en) * | 2022-07-13 | 2023-05-26 | 阿里巴巴(中国)有限公司 | Processing method and device of routing information, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104091222A (en) * | 2014-05-08 | 2014-10-08 | 武大吉奥信息技术有限公司 | Workflow engine supporting multimode driving |
CN104850665A (en) * | 2015-06-12 | 2015-08-19 | 江苏中威科技软件***有限公司 | Method and system for realizing flow circulation based on flow embedding |
CN106408272A (en) * | 2016-10-26 | 2017-02-15 | 金航数码科技有限责任公司 | Distributed deployment based cross-system process engine collaboration system and method |
CN107480184A (en) * | 2017-07-06 | 2017-12-15 | 联动优势科技有限公司 | A kind of data access method and equipment |
-
2018
- 2018-11-26 CN CN201811420337.2A patent/CN109583746B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104091222A (en) * | 2014-05-08 | 2014-10-08 | 武大吉奥信息技术有限公司 | Workflow engine supporting multimode driving |
CN104850665A (en) * | 2015-06-12 | 2015-08-19 | 江苏中威科技软件***有限公司 | Method and system for realizing flow circulation based on flow embedding |
CN106408272A (en) * | 2016-10-26 | 2017-02-15 | 金航数码科技有限责任公司 | Distributed deployment based cross-system process engine collaboration system and method |
CN107480184A (en) * | 2017-07-06 | 2017-12-15 | 联动优势科技有限公司 | A kind of data access method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109583746A (en) | 2019-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109583746B (en) | Method and device for setting routing rule of flow and readable storage medium | |
US9704115B2 (en) | Automating workflow participation | |
US9875465B2 (en) | Process control device, process control method, and non-transitory computer-readable medium | |
CN108509556B (en) | Data migration method and device, server and storage medium | |
US20160275627A1 (en) | Methods systems and computer program products for applying generated rules for personalized interview experience | |
US20140180780A1 (en) | Automated incentive computation in crowdsourcing systems | |
KR20170081239A (en) | Impact analysis | |
US20150088567A1 (en) | Methods for building project teams and devices thereof | |
US20120150825A1 (en) | Cleansing a Database System to Improve Data Quality | |
CN110795479A (en) | Method and device for distributed ETL scheduling based on data | |
CN112561485B (en) | Warranty product rule determination method and device, computer equipment and storage medium | |
US20140156324A1 (en) | Selective automated transformation of tasks in crowdsourcing systems | |
CN113407677B (en) | Method, apparatus, device and storage medium for evaluating consultation dialogue quality | |
JP6718345B2 (en) | Text analysis method, text analysis device, and program | |
US20150178658A1 (en) | Onboarding by Analyzing Practices of Best Hiring Managers | |
CN114489950A (en) | Component adapting method and device, electronic equipment and storage medium | |
US8918406B2 (en) | Intelligent analysis queue construction | |
US8412732B2 (en) | Automatically generating a set of event processing rules for use in a complex event processing system | |
CN109829048B (en) | Electronic device, interview assisting method, and computer-readable storage medium | |
JP6508327B2 (en) | Text visualization system, text visualization method, and program | |
CN116090888A (en) | Decision engine configuration management method, device, electronic equipment and program product | |
CN116011955A (en) | Robot flow automation demand realization method, device, equipment and storage medium | |
CN113902303A (en) | Privacy model automatic recommendation system, algorithm, equipment and storage medium based on user satisfaction | |
JP2022102973A (en) | Web counseling device and web counseling method | |
CN112529207A (en) | Model optimization method, device, storage medium and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |