Business process processing method and device, computer equipment, storage medium and program product
By selecting, dragging and dropping process nodes in the process node diagram, the process node diagram of the target business trigger node is generated and automatically executed on the server side, which solves the problem of low efficiency caused by fixed business policy execution nodes in the existing technology and realizes automatic Define automated execution and efficient processing of business processes.
Patent Information
- Application Number
- CN202410851996.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-24
AI Technical Summary
In existing business process processing technology, the execution nodes of business policies are fixed and cannot be dynamically adjusted according to application scenarios, resulting in the need for cumbersome manual operations to adjust the execution logic of business policy nodes related to business processes, which is inefficient.
By selecting the target business trigger node in the process node graph construction interface, and dragging and dropping the process node in the canvas operation interface, a process node graph of the target business trigger node is generated. The server receives the request and automatically executes the process node based on the connection sequence of the process node graph. , to realize the automated execution of customized business processes.
It improves the efficiency of business processing, reduces manual operations, flexibly creates process node diagrams that are more suitable for application scenarios, and realizes the automated execution of business processes.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a business process processing method, apparatus, computer equipment, storage medium and program product. Background Art
[0002] With the development of computer technology, the processing technology of business processes in business systems has also developed accordingly. However, in the existing business process processing, the execution of business policies in the business process is executed in fixed nodes, and it is impossible to dynamically adjust the execution nodes of business policies related to the business process according to the application scenario. As a result, more cumbersome manual operations are still required to adjust the node execution logic of business policies related to the business process, resulting in low business processing efficiency. Summary of the invention
[0003] Based on this, it is necessary to provide a business process processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve business processing efficiency in response to the above technical problems.
[0004] In a first aspect, the present application provides a business process processing method, which is applied to a terminal, comprising:
[0005] In response to a selection operation on a business trigger node in a process node diagram construction interface, a corresponding target business trigger node is determined; a canvas operation interface corresponding to the target business trigger node is displayed on the process node diagram construction interface; the canvas operation interface includes a process node display area and a canvas area, and the target business trigger node is used to trigger when a business process corresponding to the target business identifier is executed;
[0006] In response to a selection operation in the process node display area, placing a process node corresponding to the selection operation in the canvas area;
[0007] In response to the processing operations on each process node in the canvas area, a process node diagram corresponding to the target business trigger node is obtained.
[0008] The present application provides a business process processing method, which is applied to a server and includes:
[0009] Receiving a service processing request sent by a terminal, the service processing request including a target service identifier; determining a target service triggering node corresponding to the target service identifier based on the target service identifier;
[0010] Determine a target process node graph corresponding to the target business trigger node; wherein the target process node graph is obtained by placing the process node corresponding to the selection operation in the canvas operation interface corresponding to the target business trigger node in response to the terminal's selection operation in the process node display area in the canvas operation interface, and responding to the processing operation on each process node in the canvas area;
[0011] Based on the connection sequence of each process node in the target process node graph, run each process node to obtain the process node processing results corresponding to each process node.
[0012] In a second aspect, the present application also provides a business process processing device, applied to a terminal, comprising:
[0013] A determination module, for determining a corresponding target business trigger node in response to a selection operation on a business trigger node in a process node diagram construction interface; displaying a canvas operation interface corresponding to the target business trigger node in the process node diagram construction interface; the canvas operation interface includes a process node display area and a canvas area, and the target business trigger node is used to trigger when a business process corresponding to the target business identifier is executed;
[0014] A selection module, for responding to a selection operation in the process node display area, placing a process node corresponding to the selection operation in the canvas area;
[0015] The processing module is used to obtain a process node diagram corresponding to a target business trigger node in response to a processing operation on each process node in the canvas area.
[0016] The present application also provides a business process processing device, which is applied to a server and includes:
[0017] A receiving module, configured to receive a service processing request sent by a terminal, the service processing request including a target service identifier, and determine a target service triggering node corresponding to the target service identifier;
[0018] A determination module, used to determine a target process node graph corresponding to a target business trigger node; wherein the target process node graph is obtained by placing a process node corresponding to the selection operation in the canvas operation interface corresponding to the target business trigger node in response to a selection operation in the process node display area of the canvas operation interface by the terminal, and responding to a processing operation on each process node in the canvas area;
[0019] The running module is used to run each process node based on the connection sequence of each process node in the target process node diagram to obtain the process node processing results corresponding to each process node.
[0020] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the business process processing method when executing the computer program.
[0021] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps in the business process processing method are implemented.
[0022] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the business process processing method when executed by a processor.
[0023] The above-mentioned business process processing method, device, computer equipment, storage medium and program product determine the corresponding target business trigger node in response to the selection operation of the business trigger node in the process node diagram construction interface through the terminal; display the canvas operation interface corresponding to the target business trigger node in the process node diagram construction interface; and in response to the selection operation in the process node display area of the canvas operation interface, place the process node corresponding to the selection operation in the canvas area of the canvas operation interface, so as to obtain the process node diagram corresponding to the target business trigger node in response to the processing operation on each process node in the canvas area; the server receives the business processing request sent by the terminal, and determines the target business trigger node corresponding to the target business identifier based on the target business identifier included in the business processing request, and determines the target process node diagram corresponding to the target business trigger node, and the target process node diagram responds to the target business through the terminal. The selection operation of the process node display area in the canvas operation interface corresponding to the business trigger node places the process node corresponding to the selection operation in the canvas area, responds to the processing operation of each process node in the canvas area, and then runs each process node based on the connection sequence of each process node in the target process node diagram to obtain the process node processing result corresponding to each process node, thereby realizing the interaction of the custom business process between the server and the terminal. The terminal realizes the flexible setting of the process node diagram corresponding to each business trigger node. The design of the custom process node diagram provides a data basis for the server to realize the automatic execution of the custom process node diagram. The design of the custom process node diagram is conducive to the flexible production of a process node diagram that is more suitable for the application scenario, so that the server can automatically execute the business process based on the process node diagram that is more suitable for the application scenario, thereby greatly improving the efficiency of business processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0025] FIG1 is an application environment diagram of a business process processing method in one embodiment;
[0026] Figure 2 A flowchart of a business process processing method in one embodiment;
[0027] Figure 3A flowchart of a business process processing method in another embodiment;
[0028] Figure 4 A schematic diagram of a process node diagram construction interface in one embodiment;
[0029] Figure 5 A schematic diagram of a node operation condition setting interface in one embodiment;
[0030] Figure 6 A schematic diagram of an action flow node setting interface for clearing gifts in an embodiment;
[0031] Figure 7 A schematic diagram of an operation strategy setting interface in an embodiment;
[0032] Figure 8 A schematic diagram of a content framework for setting an operation strategy in an operation strategy setting interface in an embodiment;
[0033] Fig. 9 A schematic diagram of a setting interface for a certain operation strategy in an embodiment;
[0034] Fig.10 A schematic diagram of a setting interface of a certain operation strategy in another embodiment;
[0035] Fig.11 A process node style diagram in an embodiment;
[0036] Fig.12 A flowchart of a business process in one embodiment;
[0037] Fig.13 is a structural block diagram of a business process processing device in an embodiment;
[0038] Fig.14 is a structural block diagram of a business process processing device in another embodiment;
[0039] FIG15 is a diagram showing the internal structure of a computer device in one embodiment;
[0040] FIG. 16 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0042] The business process processing method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The terminal 102 is used to respond to the selection operation of the business trigger node in the process node diagram construction interface to determine the corresponding target business trigger node; the canvas operation interface corresponding to the target business trigger node is displayed in the process node diagram construction interface; the canvas operation interface includes a process node display area and a canvas area, and the target business trigger node is used to trigger when the business processing corresponding to the target business identifier is executed; in response to the selection operation in the process node display area, the process node corresponding to the selection operation is placed in the canvas area; in response to the processing operation of each process node in the canvas area, the process node diagram corresponding to the target business trigger node is obtained. The server 104 is used to receive a business processing request sent by a terminal, the business processing request includes a target business identifier; based on the target business identifier, determine the target business trigger node corresponding to the target business identifier; determine the target process node diagram corresponding to the target business trigger node; wherein the target process node diagram is obtained by the terminal 102 responding to the selection operation of the process node display area in the canvas operation interface corresponding to the target business trigger node, placing the process node corresponding to the selection operation in the canvas area, and responding to the processing operation of each process node in the canvas area; based on the connection sequence of each process node in the target process node diagram, running each process node, and obtaining the process node processing result corresponding to each process node. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The server 104 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0043] In an exemplary embodiment, Figure 2 As shown, a business process processing method is provided, which is described by taking the method applied to the terminal in FIG. 1 as an example, and includes the following steps 200 to 204. Among them:
[0044] Step S200, in response to the selection operation of the business trigger node in the process node diagram construction interface, determine the corresponding target business trigger node; display the canvas operation interface corresponding to the target business trigger node in the process node diagram construction interface; the canvas operation interface includes a process node display area and a canvas area, and the target business trigger node is used to trigger when the business processing corresponding to the target business identifier is executed.
[0045] The process node diagram construction interface refers to the interface for constructing a business process node diagram. Figure 4 As shown. A business trigger node refers to a node related to implementing a business operation, which is used to trigger when a business process is executed to implement the processed business. A selection operation refers to an operation of selecting a trigger node, and a business trigger node can be selected by clicking. A target business trigger node refers to a business trigger node determined by the current operation. When responding to a selection operation of a business trigger node in the process node diagram construction interface, the target business trigger node is the business trigger node corresponding to the selection operation.
[0046] The canvas operation interface refers to the operation interface for designing the business process node diagram; each business trigger node (i.e. Figure 4 In other words, different business trigger nodes can make corresponding process node diagrams in the corresponding canvas operation interface. When you click to select a business trigger node, the canvas operation interface corresponding to the business trigger node is displayed in the canvas operation area of the process node diagram construction interface. The canvas operation interface includes the process node display area and the canvas area. Figure 4 As shown, Figure 4 The canvas operation interface shown in the figure is the canvas operation interface corresponding to the business trigger node "Create Order 12". The process node display area refers to the area where the process nodes are displayed. The process nodes include conditional process nodes (corresponding to Figure 4 Nodes under the filtering conditions), action flow nodes (corresponding to Figure 4 Nodes under the execution action in the Figure 4 The target business identifier refers to an identifier used to represent the business processing operation.
[0047] Exemplarily, the terminal can respond to the selection operation of the business trigger node in the process node graph construction interface, determine the target business trigger node corresponding to the selection operation, and display the canvas operation interface corresponding to the target business trigger node in the process node graph construction interface. The canvas operation interface includes a process node display area and a canvas area. The process node display area displays the process nodes for constructing the process node graph. Different process nodes correspond to different functions, which provide construction resources for the subsequent construction of the process node graph. Among them, the process nodes can include three types: conditional process nodes, action process nodes and policy process nodes; the conditional process nodes are used to set the judgment conditions for the execution of the process node graph. The judgment conditions set in the conditional process nodes (i.e., the node running conditions) can be satisfied before the process nodes behind the conditional process nodes can be executed. That is, the conditional process nodes are the judgment condition nodes at the execution level of the process node graph. In addition, the conditional process nodes can be double-clicked to jump out of the node running condition setting interface (such as Figure 5 ), and then customize the node operating conditions in the node operating condition setting interface.
[0048] Action flow nodes are fixed functions, and do not have custom settings. There is no corresponding custom setting interface. When executing an action flow node, it is executed according to the fixed business processing logic. It is suitable for a single fixed business processing step. That is, the action flow node gathers business processing functions that do not require custom settings, which helps to avoid redundancy in setting logic. However, not all action flow nodes do not have operations that jump out of the interface. For example, Figure 6 If the action flow node belongs to "Clear Gifts", a pop-up window will appear to select whether to clear the gifts added by the process node diagram (i.e., gifts added by strategy) or the gifts added manually.
[0049] The policy process node can customize the operation strategy in the corresponding operation strategy setting interface, which is suitable for flexible setting of business processing logic that meets the needs of the user. The content framework of the operation strategy setting interface can be as follows Figure 8 As shown, it may include an identification information setting area, an execution condition setting area and an operation rule setting area. The identification information setting area is used to set the policy identification information, the execution condition setting area is used to set the limiting conditions before executing the operation rules, and the operation rule setting area is used to set the operation rules. Different policy process nodes have different content settings in the identification information setting area, the execution condition setting area and the operation rule setting area. The operation policy setting interface corresponding to different policy process nodes is set according to the business function layout related to the policy process node, that is, the operation policy setting interface corresponding to different policy process nodes is different.
[0050] Step S202, in response to a selection operation in the process node display area, placing a process node corresponding to the selection operation in the canvas area.
[0051] Exemplarily, the selection operation may be a drag operation, and the terminal may respond to a drag operation on a process node in a process node display area in a canvas operation interface, and place the process node corresponding to the drag operation in the canvas area, and the terminal may also respond to a drag operation on a process node in the canvas area, and move the process node corresponding to the drag operation to a position corresponding to the drag operation.
[0052] Step S204, in response to the processing operation on each process node in the canvas area, a process node diagram corresponding to the target business triggering node is obtained.
[0053] Among them, the processing operation refers to the operation of setting the process node, including but not limited to dragging the process node, connecting the process node, double-clicking the process node to jump to the setting interface corresponding to the process node to set the function of the process node.
[0054] Exemplarily, the terminal can respond to the drag operation of the process node in the canvas area, move the process node to the position corresponding to the drag operation, and the terminal can respond to the double-click operation of the process node, jump out of the setting interface corresponding to the process node, and input the corresponding setting information, determine the corresponding setting conditions or policies, and respond to the connection operation of each process node to obtain the corresponding directed process node diagram. If the currently constructed process node diagram meets the current needs, the terminal can respond to the click operation of the save button in the process node diagram construction interface to save the constructed process node diagram to the terminal; the terminal can also respond to the click operation of the save button in the process node diagram construction interface, and send the constructed process node diagram to the server, so that the server saves the constructed process node diagram. Among them, when saving the process node diagram, the corresponding saving time of the process node diagram, the association relationship between the process node diagram and the target business trigger node and other information are also saved together.
[0055] The above-mentioned business process processing method determines the corresponding target business trigger node by the terminal responding to the selection operation of the business trigger node in the process node diagram construction interface; displays the canvas operation interface corresponding to the target business trigger node in the process node diagram construction interface; and responds to the selection operation in the process node display area of the canvas operation interface, places the process node corresponding to the selection operation in the canvas area of the canvas operation interface, thereby responding to the processing operation of each process node in the canvas area, obtaining the process node diagram corresponding to the target business trigger node, and realizing flexible setting of the process node diagram corresponding to each business trigger node, and the target business trigger node is used to trigger when the business processing corresponding to the target business identifier is executed, and the business identifier is configured with the business trigger node, which is beneficial for the server to obtain the process node diagram corresponding to the business trigger node according to the relationship between the business identifier and the business trigger node when the business processing is executed, and realize automatic execution according to the process node diagram, and the design of the customized process node diagram is beneficial to the flexible production of a process node diagram that is more suitable for the application scenario, and the flexible design of the process node diagram is beneficial to reduce more cumbersome manual operations, thereby improving the efficiency of business processing.
[0056] In some embodiments, the process nodes include conditional process nodes and policy process nodes; in step S204, in response to the processing operation on each process node in the canvas area, the processing operation includes:
[0057] Step S300, responding to a selection operation on a process node in the canvas area.
[0058] Step S302: If the process node corresponding to the selection operation is a conditional process node, a node operation condition setting interface corresponding to the process node is displayed, and a node operation condition corresponding to the process node is generated in response to the node operation condition setting information input in the node operation condition setting interface.
[0059] Step S304: if the process node corresponding to the selection operation is a policy process node, then an operation policy setting interface corresponding to the process node is displayed, and an operation policy corresponding to the process node is generated in response to the operation policy setting information input in the operation policy setting interface.
[0060] The selection operation of the process node can be a double-click operation belonging to the click operation, that is, the terminal can respond to the double-click operation of the process node in the canvas area. The conditional process node refers to the judgment condition node of the process node diagram. When the node running condition set by the conditional process node is met, the process node after the conditional process node can continue to be executed. The node running condition refers to the judgment condition of the conditional process node. The node running condition setting interface refers to the interface for setting the judgment condition of the conditional process node, which can be as follows Figure 5 As shown, Figure 5This is a node operation condition setting interface in an embodiment. You can double-click the conditional process node to jump out of the node operation condition setting interface.
[0061] A policy process node refers to a process node with a customizable operation policy setting function. The operation policy setting interface refers to the interface for setting the operation policy of a policy process node; you can double-click the policy process node to jump to the operation policy setting interface. Operation policy setting information refers to the relevant information for setting the operation policy, including but not limited to policy identification information, execution condition setting information, and operation rule setting information; the policy identification information includes the operation policy identification and the operation priority identification of the operation policy, the execution condition setting information is used to determine the execution conditions that need to be met before the operation rules corresponding to the policy process node are executed, and the operation rule setting information is used to determine the operation rules of the policy process node. The operation policy refers to the strategy for the operation of the policy process node, including policy identification information, execution conditions, and operation rules. The policy identification information is used to identify the operation policy and the operation priority of the operation policy. The execution condition is used to limit the conditions that need to be met before the operation rules are executed. The operation rules refer to the business data processing rules of the policy process node.
[0062] Exemplarily, the selection operation may be a double-click operation that belongs to the click operation. For different types of process nodes, the corresponding custom settings have different contents. The terminal may respond to the double-click operation on the process node in the canvas area to determine the type of process node corresponding to the double-click operation. If the process node corresponding to the double-click operation is a conditional process node, the node operation condition setting interface corresponding to the conditional process node is displayed, and the node operation condition setting information input in the node operation condition setting interface is responded to to generate the corresponding node operation condition. The node operation condition is transmitted together when the process node diagram is sent to the server, that is, when the server receives the process node diagram, it will also receive the corresponding setting information related to each process node in the process node diagram. Specifically, the node operation condition setting interface may be as follows: Figure 5 As shown in the figure, different types of conditions can be set in the node operation condition setting interface, such as Figure 5 There are two types of conditions: "Order Conditions" and "Order Pool Conditions". For different types of conditions, you can set multiple condition groups, and each condition group can include conditions set by directly selecting content (such as Figure 5 ), or advanced conditions entered directly (such as Figure 5 This application is not limited to Figure 5 The condition type set in .
[0063] If the process node corresponding to the double-click operation is a policy process node, the operation strategy setting interface corresponding to the process node is displayed, and the corresponding operation strategy is generated in response to the operation strategy setting information input in the operation strategy setting interface. Figure 8 As shown, it includes an identification information setting area, an execution condition setting area and an operation rule setting area, and different setting areas may correspond to sub-areas. It should be noted that for different policy process nodes, the settings in the identification information setting area, the execution condition setting area and the operation rule setting area are different, that is, the content framework of the operation policy setting interface corresponding to different policy process nodes includes the identification information setting area, the execution condition setting area and the operation rule setting area, but for different setting areas, the corresponding execution conditions or operation rules are different. The operation policy setting interface corresponding to different policy process nodes is set to adapt to its own functions, thereby realizing the multi-functional division and customized settings of different policy process nodes. For example Fig. 9 and Fig.10 It is the operation strategy setting interface corresponding to different strategy process nodes. Fig. 9 The area corresponding to the order conditions and order pool conditions is the execution condition setting area. Fig. 9 The middle mark rule is the operation rule setting area. Fig.10 The area corresponding to the order conditions and order pool conditions is the execution condition setting area. Fig.10 The audit rules are the operation rule settings area, which is composed of Fig. 9 and Fig.10 It can be seen that Fig. 9 and Fig.10 The corresponding execution condition setting area and operation rule setting area have different settings.
[0064] In the above embodiment, by clicking on the process node, the corresponding setting interface is displayed for different types of process nodes, and customized settings are performed in the setting interface to set the node operating conditions or operating strategies that meet current needs, thereby improving the flexibility of setting execution rules for various types of process nodes. The flexible setting of the execution rules of each process node is conducive to setting execution rules that are more suitable for the application scenario, thereby further improving the efficiency of business processing.
[0065] In some embodiments, the operation strategy setting interface includes an identification information setting area, an execution condition setting area, and an operation rule setting area; in step S304, in response to the operation strategy setting information input in the operation strategy setting interface, generating an operation strategy corresponding to the process node includes:
[0066] Step S400, responding to the policy identification information input into the identification information setting area, responding to the execution condition setting information input into the execution condition setting area, and responding to the operation rule setting information input into the operation rule setting area.
[0067] Step S402: Generate an operation strategy for the process node based on the strategy identification information, the execution condition setting information and the operation rule setting information, and set the operation status of the operation strategy.
[0068] The identification information setting area refers to the area for setting the policy identification information. The execution condition setting area refers to the area for setting the execution condition. The operation rule setting area refers to the area for setting the operation rule. The policy identification information is used to identify the operation policy and the operation priority of the operation policy, which includes but is not limited to the operation policy identification and the operation priority identification.
[0069] Exemplarily, the operation policy setting interface includes an identification information setting area, an execution condition setting area, and an operation rule setting area. The operation policy name can be set in the identification information setting area, and the operation policy name can be used as the operation policy identifier, and the operation priority identifier of the operation policy can be set in the identification information setting area. The effective time of the operation policy can also be set in the identification information setting area, etc.; the execution condition setting information corresponding to the execution condition that must be met before the operation rule is formulated can be entered or selected in the execution condition setting area; and the operation rule setting information corresponding to the operation rule can be entered or selected in the operation rule setting area, or the operation rule identifier corresponding to the formulated operation rule can be directly selected in the operation rule setting area (for example, Fig. 9 In the marking rules, directly select the marking rule corresponding to "Mark 3"); so that the terminal responds to the policy identification information entered in the identification information setting area (including but not limited to the operation policy identification, operation priority identification and effective time), responds to the execution condition setting information entered in the execution condition setting area, and responds to the operation rule setting information entered in the operation rule setting area (including directly selecting the operation rule identification corresponding to the established operation rule), generates the corresponding operation policy, and sets the operation status of the operation policy in the operation policy display interface, where the operation status can be an automatic operation status, a manual operation status and a non-processing status with nothing set. The automatic operation status refers to the state of automatically executing the business processing logic according to the operation policy, and the manual status refers to the state of manually modifying the data. For example, Fig. 9 and Fig.10 This is the operation strategy setting interface corresponding to different strategy process nodes. After the operation strategy setting is confirmed, you can Figure 7 In the operation strategy display interface, set the operation status of the operation strategy. Figure 7 The "Draft" status in the process is a non-processing status where nothing is set.
[0070] In the above embodiment, by customizing the operation strategy that meets the current needs in the operation strategy setting interface, the flexibility of the operation strategy setting corresponding to the policy process node is greatly improved. The flexible setting of the operation strategy corresponding to the policy process node is conducive to improving the adaptability of the execution function of the policy process node to the business processing application scenario, thereby improving the efficiency of business processing to a certain extent.
[0071] In an exemplary embodiment, Figure 3 As shown, a business process processing method is provided, which is described by taking the method applied to the server in FIG. 1 as an example, and includes the following steps 500 to 504. Among them:
[0072] Step S500: receiving a service processing request sent by a terminal, the service processing request including a target service identifier; and determining a target service triggering node corresponding to the target service identifier based on the target service identifier.
[0073] Among them, the business processing request refers to a request for processing the current business-related operation, including the target business identifier; a business identifier has a configuration relationship with one or more business trigger nodes, that is, the business trigger nodes that have a configuration relationship with the business identifier in the business processing request will be triggered. The target business trigger node refers to the business trigger node that has a configuration relationship with the target business identifier; for each business, the relationship between the business identifier and the business trigger node related to the business corresponding to the business identifier can be configured and stored in advance.
[0074] Exemplarily, the server receives a service processing request sent by the terminal, obtains a target service identifier from the service processing request, and determines a target service triggering node corresponding to the target service identifier based on a configuration relationship between the service identifier and the service triggering node.
[0075] Step S502, determine the target process node diagram corresponding to the target business trigger node; wherein the target process node diagram is obtained by the terminal responding to the selection operation of the process node display area in the canvas operation interface corresponding to the target business trigger node, placing the process node corresponding to the selection operation in the canvas area, and responding to the processing operation on each process node in the canvas area.
[0076] The target process node diagram refers to the latest process node diagram in the canvas operation interface corresponding to the target business trigger node when the business processing request is sent.
[0077] Exemplarily, if the server already stores the latest saved process node diagram in the canvas operation interface corresponding to each business trigger node when the business processing request is received, then the latest saved process node diagram corresponding to the target business trigger node when the business processing request is received can be used as the target process node diagram; if the server does not store the latest saved process node diagram in the canvas operation interface corresponding to each business trigger node when the business processing request is received, then a process node diagram acquisition message can be sent to the terminal, so that the terminal will send the latest saved process node diagram corresponding to the target business trigger node to the server when sending the business processing request to the server.
[0078] Step S504, based on the connection sequence of each process node in the target process node graph, run each process node to obtain the process node processing result corresponding to each process node.
[0079] Among them, the process node processing result refers to the data information obtained by running the process node.
[0080] Exemplarily, for the target process node graph of each target business trigger node, the current process node can be determined based on the connection order of each process node in the target process node graph. If the current process node is a conditional process node, the business association information related to the business processing request is obtained. If the business association information meets the node running conditions corresponding to the conditional process node, the backward process node corresponding to the current process node is executed. If the business association information does not meet the node running conditions corresponding to the conditional process node, the operation of the backward process node corresponding to the current process node is terminated.
[0081] In one embodiment, if the process node diagram in the canvas operation interface corresponding to the target business trigger node corresponding to the currently running target process node is modified when the server is running the target process node, that is, the process node diagram in the original canvas operation interface is consistent with the currently running target process node diagram. When the server is running the target process node diagram, modifying the process node diagram in the canvas operation interface will not change the target process node diagram currently running on the server. The server still executes according to the original target process node diagram. If it is to run according to the modified and updated process node diagram, it is necessary to re-trigger the same business processing request, and the server will re-acquire the updated process node diagram to run. Each time the process node diagram is stored, the corresponding storage time is also stored. The updated process node diagram and the target process node diagram can be determined according to the storage time, thereby avoiding a series of execution problems caused by arbitrary changes in the process node diagram, and ensuring accurate and efficient execution of business processing.
[0082] In one embodiment, under the same business, multiple business orders can be selected in batches to generate business processing requests, so that the processing results of each business order can be obtained by running the target process node graph corresponding to the target business trigger node corresponding to the target business identifier in the business request through the server, and the process node processing results obtained by running the target process node graph will be sent to the terminal, so that the terminal will display the data information in the process node processing results to the position corresponding to the business order, thereby completing the display of the business order processing results.
[0083] The above-mentioned business process processing method receives the business processing request sent by the terminal through the server, and determines the target business trigger node corresponding to the target business identifier based on the target business identifier included in the business processing request, and determines the target process node diagram corresponding to the target business trigger node, and the target process node diagram is placed in the canvas area in response to the selection operation of the process node display area in the canvas operation interface corresponding to the target business trigger node by the terminal, and the process node corresponding to the selection operation is obtained in response to the processing operation on each process node in the canvas area, and then based on the connection sequence of each process node in the target process node diagram, each process node is run to obtain the process node processing result corresponding to each process node, thereby realizing the automatic execution of the custom business process, and the target process node diagram can be flexibly set by the canvas operation interface displayed by the terminal, which is conducive to the flexible production of business process node diagrams adapted to business application scenarios, and the server interacts with the terminal, and automatically executes based on the connection sequence of each process node in the process node diagram, and processes the business logic of the process nodes, thereby greatly improving the efficiency of business processing.
[0084] In some embodiments, in step S504, running each process node based on the connection order of each process node in the target process node graph includes:
[0085] Step S600, determining the current process node based on the connection sequence of each process node in the target process node graph.
[0086] Step S602: If the current process node is a conditional process node, and there are at least two current process nodes, then based on the priority rule of the conditional process nodes, the current processing process node is determined from the current process nodes.
[0087] Step S604: If the node running conditions corresponding to the current processing flow node are met, the backward flow node of the current processing flow node is run.
[0088] Step S606: If there is a situation where the node running condition corresponding to the current processing flow node is not met, the running of the backward flow node corresponding to the current processing flow node is terminated.
[0089] Among them, the current process node refers to the currently running process node. The currently processed process node refers to the conditional process node currently being processed. The priority rule of the conditional process node refers to the priority processing rule of the conditional process node when there are multiple conditional process nodes at the same level under the same forward process node in the process node diagram; it can be processed in priority order from left to right. The backward process node refers to the next process node of the currently processed process node.
[0090] Business-related information refers to information associated with the business corresponding to the target business identifier. For example, if it is a business that processes orders, the business-related information is order-related information. Business-related information includes data obtained in various ways, including but not limited to data obtained locally, from redis cache, from databases, etc.
[0091] Exemplarily, for the target process node graph corresponding to each target business trigger node, the current process node can be determined based on the connection order of each process node in the target process node graph. If the current process node is a conditional process node, and there are multiple current process nodes, then when the forward process nodes corresponding to each current process node are the same, and the backward process nodes are different, the current processing process node can be determined from the current process node based on the priority rule of the conditional process node; for each current processing process node, when judging the node running conditions corresponding to the current processing process node, the business association information related to the running conditions of each node is obtained. If the business association information meets the node running conditions corresponding to the current processing process node, the backward process node corresponding to the current processing process node can be executed; if the business association information does not meet the node running conditions corresponding to the current processing process node, the operation of the backward process node corresponding to the current processing process node is terminated. Among them, business association information refers to information associated with the business corresponding to the target business identifier. For example, if it is a business that processes shopping orders, the business association information is the relevant information of the order; the business association information corresponding to different node operating conditions may have the same information, and the business association information corresponding to each node operating condition is the information associated with part of the business corresponding to the target business identifier; the way to obtain business association information includes but is not limited to obtaining it from local, from redis cache, from database, etc.
[0092] For example, it can be combined Figure 4 The process node diagram in the canvas area is used to understand. Figure 4 There are two conditional process nodes, ① and ②. When judging the node running conditions, first judge Figure 4 In the conditional process node ①, when the conditional process node ① is satisfied, the process nodes subsequent to the conditional process node ① are executed. When the process nodes subsequent to the conditional process node ① are executed, it is determined whether the conditional process node ② is satisfied. If the conditional process node ② is satisfied, the process nodes subsequent to the conditional process node ② are executed, which is like Figure 4 There are two branch node processes in the figure. When the conditional process node is met, the branch process can be executed from left to right. First, the branch process corresponding to the conditional process node ① is executed, and then the branch process corresponding to the conditional process node ② is executed.
[0093] In one embodiment, since multiple condition groups can be set in a conditional process node, Fig.11 In the case where there are multiple conditional flow nodes at the same level, and the forward flow nodes and backward flow nodes of each conditional flow node are the same, you can set it or not, because you want to execute Fig.11 When the backward process node in Fig.11 Conditions 1 and 2 in are satisfied, and Fig.11 Conditions 1 and 2 in the situation can be combined into one conditional process node, that is, the condition group of condition 1 is added to the condition group of condition 2, or the condition group of condition 2 is added to the condition group of condition 1. This reduces the analysis of node logic when the server executes the process node diagram, and directly judges multiple groups of conditions in a conditional process node. When multiple groups of conditions are met, the backward process node is executed, which is beneficial to reduce the logic processing computing power and improve data processing efficiency to a certain extent.
[0094] In the above embodiment, the current process node is determined according to the connection order of each process node in the target process node diagram, and when the current process node is a conditional process node and there are at least two current process nodes, the current processing process node is determined from the current process node according to the priority rule of the conditional process node. For each current processing process node, it is determined whether the node running conditions corresponding to the current processing process node are all met, so as to determine whether to run the subsequent process nodes of the current processing process node according to the judgment result, which is conducive to judging whether to execute multiple branch processes according to the conditional process nodes, making the construction of the process node diagram more flexible, and the constructed process node diagram is more adapted to actual needs, which is conducive to improving the efficiency of business processing.
[0095] In some embodiments, the process node processing result includes the operation result corresponding to the operation strategy; step S504 includes:
[0096] Step S700, determining the current process node based on the connection sequence of each process node in the target process node graph.
[0097] Step S702: If the current process node is a policy process node, the operation strategy corresponding to the current process node and belonging to the automatic operation state is used as the target operation strategy, and the target operation strategy includes strategy identification information, execution conditions and operation rules.
[0098] Step S704: determining the current operation strategy from the target operation strategies based on the operation priority identifier in the strategy identifier information of each target operation strategy.
[0099] Step S706: If the execution conditions of the current operation strategy are met, the operation rules are executed to obtain the operation result corresponding to the target operation strategy.
[0100] The target operation strategy refers to the automatic operation strategy corresponding to the current process node. The operation result refers to the data information obtained by running the target operation strategy.
[0101] Exemplarily, if the current process node determined based on the connection order of each process node in the target process node is a policy process node, then the operation strategy with an automatic operation status can be first screened out from the operation strategy corresponding to the current process node, and the operation strategy belonging to the automatic operation status can be used as the target operation strategy. Each target operation strategy has a corresponding operation priority. The current operation strategy can be determined from the target operation strategies according to the operation priority identifier in the policy identification information of each target operation strategy, and when judging whether the execution conditions in the current operation strategy are met, the business association information related to the execution conditions is obtained. If the business association information meets the execution conditions of the current operation strategy, the operation rules in the current operation strategy are executed. If the business association information does not meet the execution conditions of the current operation strategy, the operation rules in the current operation strategy are not executed, and the backward process node of the current process node can be directly executed.
[0102] Among them, business association information refers to information associated with the business corresponding to the target business identifier, for example, if it is a business that processes shopping orders, the business association information is the relevant information of the order; the business association information corresponding to different execution conditions may have the same data information or different data information, but the business association information corresponding to each execution condition is the information associated with part of the business corresponding to the target business identifier; the way to obtain business association information includes but is not limited to obtaining it locally, from redis cache, from database, etc. For process nodes other than conditional process nodes in the target process node diagram, regardless of whether the process node meets the execution conditions and whether the execution is successful, when the execution of the process node is completed, the next process node of the process node can be directly executed, that is, whether the execution of the process node succeeds or fails, the next process node of the process node can be directly executed.
[0103] For example, it can be combined Figure 7 The strategy display interface is used to understand Figure 7 The middle one is the running strategy corresponding to the strategy process node of "marking strategy". Figure 7 The "Automatic Execution" state is the automatic running state. Figure 7Strategy 1 and Strategy 3 in the table are in the automatic running state. When running to the strategy process node, Strategy 1 and Strategy 3 are first used as the target running strategy, and then the current running strategy is determined according to the running priority identifiers of Strategy 1 and Strategy 3, and then processed according to the current running strategy to obtain the running result of the current running strategy.
[0104] In the above embodiment, if the current process node determined based on the connection order of each process node in the target process node diagram is a policy process node, the operation strategy belonging to the automatic operation state is screened out as the target operation strategy, and based on the operation priority identifier of each target operation strategy, the current operation strategy is determined, and it is judged whether the execution conditions of the current operation strategy are met, so as to determine whether to execute the operation rules according to the judgment result, thereby realizing that a policy process node can include operation strategies of multiple operation states, and for each operation strategy, there is a corresponding operation priority, so that the operation strategy can be executed according to the operation priority, and when executing the operation strategy, the execution condition is first judged, and the operation rule is executed when the execution condition is met, so that the functions corresponding to each policy process node are richer and the operation logic is clearer, thereby ensuring that the functions of the process node are rich and diverse, and the efficiency of business processing is better improved.
[0105] In some embodiments, step S706 includes:
[0106] Step S800: taking the execution condition that is not to obtain data from the database for execution as the priority execution condition.
[0107] Step S802: If there is a situation where the priority execution condition is not met, the execution of the operation rule is terminated.
[0108] Step S804: If all the priority execution conditions are met, then when all the execution conditions except the priority execution conditions are met, the operation rules are executed to obtain the operation result corresponding to the target operation strategy.
[0109] The priority execution condition refers to the execution condition that runs first.
[0110] Exemplarily, when there are many execution conditions set in each policy flow node of the business processing configuration, and when there are many promotional activities for merchants and users, the execution of the policy flow node may cause execution timeout. In this case, the business association information that does not change frequently can be cached in redis. In addition, in order to optimize the calculation logic and data access model of the execution conditions to reduce unnecessary calculations and IO (Input / Output) operations, the execution conditions that are not executed by obtaining data from the database can be used as priority execution conditions, which is conducive to first judging the priority execution conditions. When executing the priority execution conditions, there is no need to access the database to obtain the business association information corresponding to the priority execution conditions. If the obtained business association information does not meet the execution priority conditions, there is no need to judge other execution conditions, and the execution of the running rules can be directly terminated, which reduces the number of database accesses. If the obtained business association information meets the priority execution conditions, the business association information corresponding to other execution conditions other than the priority execution conditions is obtained from the cache space including the database, and then the other execution conditions are judged based on the business association information corresponding to the other execution conditions. When the business association information meets the other execution conditions, the running rules are executed, thereby effectively reducing the number of database accesses and unnecessary calculations and IO operations.
[0111] For example, in the purchase business, due to the large number of merchant activities, some users add a large number of different promotional rules in the policy configuration. When the policy is executed in the process node diagram, it will cause the policy execution to time out. If a cache mechanism is added to the policy execution and the information that does not change frequently is cached, subsequent identical requests can be read directly from the cache, reducing the call of information in the database, and first determine the conditions in the policy that are not executed by obtaining data from the database. When the conditions for not obtaining data from the database are met, other conditions are executed. This is beneficial because as long as the conditions for not obtaining data from the database are not met, there is no need to judge other conditions, thereby optimizing the calculation logic and data access mode, and greatly improving data processing efficiency.
[0112] In one embodiment, the operating rules in the operating strategy corresponding to the strategy process node also include operating conditions. When executing the node operating conditions corresponding to the conditional process node and executing the operating rules, the conditions for not obtaining data from the database for execution can be judged first. When the conditions for not obtaining data from the database for execution are met, other conditions are executed and judged, which is beneficial to reduce the number of database accesses, reduce calculation logic, and improve data processing efficiency.
[0113] In the above embodiment, by first taking the execution condition that is not executed by obtaining data from the database as the priority execution condition, once the priority execution condition is not met, the other execution conditions will no longer be judged, and the execution of the operation rule will be terminated directly. When the priority execution conditions are met, other execution conditions will be further judged. When both the priority execution conditions and other execution conditions are met, the operation rule will be executed, which effectively optimizes the calculation logic and data access model, reduces the number of database access times, improves data processing efficiency, and thus greatly improves the efficiency of business processing.
[0114] In some embodiments, the target service triggering nodes include at least two, and the service process processing method further includes:
[0115] Step S900: receiving an update request sent by a terminal, and determining a to-be-processed service triggering node related to the update request from target service triggering nodes.
[0116] Step S902: receiving a prompt message corresponding to the to-be-processed service triggering node sent by the terminal, and determining the current to-be-processed service triggering node based on the priority order of the received prompt messages corresponding to the to-be-processed service triggering nodes.
[0117] Step S904: for each current pending business trigger node, obtain the distributed lock of the current pending business trigger node, and re-execute the process node graph corresponding to the current pending business trigger node based on the update request.
[0118] Among them, the update request refers to a request for data change, including the updated data and the data identifier corresponding to the updated data. There is an association between the data identifier and the business trigger node, and the associated target business trigger node can be determined by the data identifier. The pending business trigger node refers to the target business trigger node on which data changes are to be made. The prompt message refers to a message prompting to obtain a distributed lock, which can be implemented through an ONS (Open Notification Service) message. The priority of the prompt message refers to the time order in which the prompt messages are received.
[0119] Exemplarily, to ensure data consistency, when data related to the current business processing is changed, the server receives an update request sent by the terminal, determines the pending business trigger node related to the update request from the target business trigger node, and feeds back the pending business trigger node to the terminal, so that the terminal triggers the pending trigger business node to generate a prompt message, and sends it to the server. The server determines the current pending business trigger node from the pending business trigger nodes according to the time sequence of the prompt messages corresponding to the received pending business trigger nodes, obtains the distributed lock of the current pending business trigger node, and re- Execute the target process node graph corresponding to the current pending business trigger node. When the current pending business trigger node releases the lock, the next pending business trigger node of the current pending business trigger node is used as the current pending business trigger node, so that the next pending business trigger node obtains the distributed lock and re-executes the corresponding target process node graph, and so on, until each pending business trigger node completes the data update, and each time the data is updated, other scenarios cannot operate on the execution of the process node graph of the current pending business trigger node, which better ensures the consistency of the data and the stability of the execution of the process node graph corresponding to each business trigger node. For example, in the process of shopping order business processing, some orders may be refunded or the address is modified. At this time, the data is updated, and the distributed lock can be restricted to the shopping order, so that other scenarios cannot operate on this order during the execution of the shopping order.
[0120] In the above embodiment, when data is updated, an update request sent by the receiving terminal is received, and the pending business trigger node related to the update request is determined, and then based on the priority of the prompt message corresponding to the pending business trigger node sent by the receiving terminal, the current pending business trigger node is determined, and the distributed lock of the current pending business trigger node is obtained, and based on the update request, the target process node graph corresponding to the current pending business trigger node is re-executed. The setting of the distributed lock is conducive to ensuring the stability of the execution of the process node graph corresponding to each business trigger node, and ensuring the consistency of data under concurrent control.
[0121] In some embodiments, the business processing request includes multiple ones, and the business process processing method further includes: if a process execution overload is detected, distributing a preset number of business processing requests to the downgraded server, so that the downgraded server processes the distributed business processing requests.
[0122] Among them, the downgraded server refers to a server with a low priority. When the server is processed, system resources are given to the server with a high priority as much as possible.
[0123] For example, when a large number of business processing requests are initiated when there are many custom process node graphs, execution overload or downstream service unavailability may occur. To ensure the overall stability of the system, a preset number of business processing requests can be distributed to the downgraded server, and the distributed business processing requests can be processed by the resources of the downgraded server, thereby optimizing and expanding the process execution resources and improving the stability of the system.
[0124] In some embodiments, the order process in a custom configured ERP (Enterprise Resource Planning) order system is described as an example. Figure 4 As a process node diagram construction interface, Figure 4 The trigger node in is the business trigger node. Figure 4 The process node under the filtering condition is the conditional process node. Figure 4 The process node under the execution action is the action process node. Figure 4 The process node under the strategy is the policy process node. The terminal can respond to the selection operation of the business trigger node in the process node construction interface, and use the business trigger node corresponding to the selection operation as the target business trigger node, display the canvas operation interface corresponding to the target business trigger node, and respond to the drag operation of the process node in the process node display area of the canvas operation interface, move the process node corresponding to the drag operation to the canvas area of the canvas operation interface, and connect the process nodes in the canvas area. If you need to add a custom setting strategy for the new process node, you can double-click the process node to enter the corresponding setting interface and customize the strategy in the setting interface. For example, double-click the conditional process node to enter the node operation condition setting interface corresponding to the conditional process node, and you can Figure 5 The displayed interface is used as the node operation condition setting interface, and the node operation conditions are customized in the node operation setting interface; for example, double-clicking the strategy flow node enters the operation strategy setting interface corresponding to the double-clicked strategy flow node, and the operation strategy is customized in the operation strategy setting interface, for example Fig. 9 The displayed interface or Fig.10The interface displayed, it should be known that for different policy process nodes, the interface functions of the corresponding operation policy setting interface are different, that is, the policies that can be set in the operation policy setting interface are different, and the operation policy setting interface corresponding to different policy process nodes is not limited to the interface displayed in this application. When the user determines that the process node diagram designed in the current canvas area is the process node diagram required for the current application scenario, the save button can be clicked, and the terminal responds to the click operation of the save button to save the process node diagram on the canvas area corresponding to the target business trigger node. It can be saved in the terminal or sent to the server so that the server can save it; in addition, for different business processing operations, the server has configured and stored the configuration relationship between the business identifier corresponding to the business processing operation and the corresponding business trigger node. The business identifier of a business processing operation may have a configuration relationship with one or more business trigger nodes.
[0125] Furthermore, it can be combined with Fig.12 The terminal can respond to the business processing operation of the business operation interface, generate a business processing request and send it to the server. The server determines the target business trigger node that has a configuration relationship with the target business identifier based on the target business identifier in the business processing request, and obtains the target process node diagram corresponding to the target business trigger node (corresponding to Fig.12 Get the canvas content from the target process node graph), and then run each process node (corresponding to Fig.12 Execute the relevant canvas content in the process), obtain the process node processing results corresponding to each process node, and send the process node processing results to the terminal for display, update the business information of the relevant interface displayed on the terminal (corresponding to Fig.12 Update order information), where, to ensure the stability of data execution, a distributed lock can be added to the business trigger node of the current custom execution to prevent data consistency when updating. This application can customize different process node diagrams according to the user's current needs in the interface displayed on the front end, and different operation strategies can also be customized for different process nodes, so that in application scenarios that require frequent adjustment of business strategies, the process node diagram adapted to the application scenario can be flexibly set, and the server can execute each process node in each process node diagram according to the process node diagram corresponding to each business trigger node fed back by the terminal, thereby realizing the automatic execution of business processes, without the need for complex and tedious manual operations, thereby better improving the flexibility and response speed of the system, and better improving the efficiency of business processing.
[0126] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0127] Based on the same inventive concept, the embodiment of the present application also provides a business process processing device for implementing the business process processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more business process processing device embodiments provided below can refer to the limitations on the business process processing method above, and will not be repeated here.
[0128] In an exemplary embodiment, Fig.13 As shown, a business process processing device is provided, which is applied to a terminal, including: a determination module 1300, a selection module 1302 and a processing module 1304, wherein:
[0129] Determination module 1300 is used to determine the corresponding target business trigger node in response to the selection operation of the business trigger node in the process node diagram construction interface; the canvas operation interface corresponding to the target business trigger node is displayed in the process node diagram construction interface; the canvas operation interface includes a process node display area and a canvas area, and the target business trigger node is used to trigger when the business processing corresponding to the target business identifier is executed.
[0130] The selection module 1302 is used to place the process node corresponding to the selection operation in the canvas area in response to the selection operation in the process node display area.
[0131] The processing module 1304 is used to obtain a process node diagram corresponding to the target business trigger node in response to the processing operation on each process node in the canvas area.
[0132] In some embodiments, process nodes include conditional process nodes and policy process nodes; in terms of responding to processing operations on each process node in the canvas area, the processing module 1304 is also used to respond to selection operations on process nodes in the canvas area; if the process node corresponding to the selection operation is a conditional process node, the node running condition setting interface corresponding to the process node is displayed, and the node running condition corresponding to the process node is generated in response to the node running condition setting information input in the node running condition setting interface; if the process node corresponding to the selection operation is a policy process node, the running policy setting interface corresponding to the process node is displayed, and the running policy corresponding to the process node is generated in response to the running policy setting information input in the running policy setting interface.
[0133] In some embodiments, the operation strategy setting interface includes an identification information setting area, an execution condition setting area and an operation rule setting area; in terms of generating an operation strategy corresponding to a process node in response to the operation strategy setting information input into the operation strategy setting interface, the processing module 1304 is also used to respond to the policy identification information input into the identification information setting area, the execution condition setting information input into the execution condition setting area, and the operation rule setting information input into the operation rule setting area; based on the policy identification information, the execution condition setting information and the operation rule setting information, generate an operation strategy for the process node and set the operation status of the operation strategy.
[0134] In an exemplary embodiment, Fig.14 As shown, a business process processing device is provided, which is applied to a server, including: a receiving module 1400, a determining module 1402 and an operating module 1404, wherein:
[0135] The receiving module 1400 is configured to receive a service processing request sent by a terminal, the service processing request including a target service identifier, and determine a target service triggering node corresponding to the target service identifier.
[0136] Determination module 1402 is used to determine the target process node diagram corresponding to the target business trigger node; wherein the target process node diagram is obtained by the terminal responding to the selection operation of the process node display area in the canvas operation interface corresponding to the target business trigger node, placing the process node corresponding to the selection operation in the canvas area, and responding to the processing operation on each process node in the canvas area.
[0137] The running module 1404 is used to run each process node based on the connection sequence of each process node in the target process node graph to obtain the process node processing result corresponding to each process node.
[0138] In some embodiments, in terms of running each process node based on the connection order of each process node in the target process node diagram, the running module 1404 is also used to determine the current process node based on the connection order of each process node in the target process node diagram; if the current process node is a conditional process node, and there are at least two current process nodes, then based on the priority rule of the conditional process node, the current processing process node is determined from the current process node; if the node running conditions corresponding to the current processing process node are met, the backward process node of the current processing process node is run; if there is a situation where the node running conditions corresponding to the current processing process node are not met, the operation of the backward process node corresponding to the current processing process node is terminated.
[0139] In some embodiments, the process node processing result includes the operation result corresponding to the operation strategy; the operation module 1404 is also used to determine the current process node based on the connection order of each process node in the target process node diagram; if the current process node is a policy process node, then the operation strategy in the automatic operation state among the operation strategies corresponding to the current process node is used as the target operation strategy, and the target operation strategy includes policy identification information, execution conditions and operation rules; based on the operation priority identification in the policy identification information of each target operation strategy, the current operation strategy is determined from the target operation strategy; if the execution conditions of the current operation strategy are all met, the operation rules are executed to obtain the operation result corresponding to the target operation strategy.
[0140] In some embodiments, the operation module 1404 is also used to use the execution condition that is not executed by obtaining data from the database as the priority execution condition; if there is a situation where the priority execution condition is not met, the execution of the operation rule is terminated; if all the priority execution conditions are met, then when all execution conditions except the priority execution condition are met, the operation rule is executed to obtain the operation result corresponding to the target operation strategy.
[0141] In some embodiments, the target business trigger node includes at least two, and the business process processing device also includes setting a lock module 1406, which is used to receive an update request sent by the terminal, and determine the pending business trigger node related to the update request from the target business trigger node; receive the prompt message corresponding to the pending business trigger node sent by the terminal, and determine the current pending business trigger node based on the priority of the prompt message corresponding to the pending business trigger node received; for each current pending business trigger node, obtain the distributed lock of the current pending business trigger node, and re-execute the target process node graph corresponding to the current pending business trigger node based on the update request.
[0142] In some embodiments, the business processing request includes multiple business processing requests, and the business process processing device also includes a distribution processing module 1408. The distribution processing module 1408 is used to distribute a preset number of business processing requests to the downgraded server if a process execution overload is detected, so that the downgraded server processes the distributed business processing requests.
[0143] Each module in the above-mentioned business process processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0144] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG15. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data related to business process processing. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business process processing method is implemented.
[0145] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG16. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a business process processing method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0146] Those skilled in the art will understand that the structure shown in FIG. 15 or 16 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0147] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0148] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0149] In one embodiment, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0150] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0151] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0152] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0153] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A business process processing method, characterized in that: Applied to a terminal, the method comprises: In response to a selection operation on a business trigger node in a process node graph construction interface, a corresponding target business trigger node is determined; a canvas operation interface corresponding to the target business trigger node is displayed on the process node graph construction interface; the canvas operation interface includes a process node display area and a canvas area, and the target business trigger node is used to trigger when a business process corresponding to a target business identifier is executed; In response to a selection operation in the process node display area, placing a process node corresponding to the selection operation in the canvas area; In response to the processing operation on each of the process nodes in the canvas area, a process node graph corresponding to the target business trigger node is obtained.
2. The method according to claim 1, characterized in that The process nodes include conditional process nodes and strategy process nodes; The response to the processing operation on each of the process nodes in the canvas area includes: In response to a selection operation on a process node in the canvas area; If the process node corresponding to the selection operation is a conditional process node, a node operation condition setting interface corresponding to the process node is displayed, and a node operation condition corresponding to the process node is generated in response to the node operation condition setting information inputted in the node operation condition setting interface; If the process node corresponding to the selection operation is a policy process node, an operation policy setting interface corresponding to the process node is displayed, and an operation policy corresponding to the process node is generated in response to the operation policy setting information input on the operation policy setting interface.
3. The method according to claim 2, characterized in that The operation strategy setting interface includes an identification information setting area, an execution condition setting area and an operation rule setting area; The step of generating the operation strategy corresponding to the process node in response to the operation strategy setting information inputted into the operation strategy setting interface includes: In response to the policy identification information input in the identification information setting area, in response to the execution condition setting information input in the execution condition setting area, and in response to the operation rule setting information input in the operation rule setting area; Based on the policy identification information, the execution condition setting information and the operation rule setting information, an operation policy of the process node is generated, and an operation state of the operation policy is set.
4. A business process processing method, characterized in that: Applied to a server, the method comprises: Receiving a service processing request sent by a terminal, the service processing request including a target service identifier; determining a target service triggering node corresponding to the target service identifier based on the target service identifier; Determine a target process node graph corresponding to the target service trigger node; wherein the target process node graph is obtained by the terminal responding to a selection operation of a process node display area in a canvas operation interface corresponding to the target service trigger node, placing a process node corresponding to the selection operation in the canvas area, and responding to a processing operation on each of the process nodes in the canvas area; Based on the connection sequence of each process node in the target process node graph, each process node is run to obtain the process node processing result corresponding to each process node.
5. The method according to claim 4, characterized in that The running of each process node based on the connection order of each process node in the target process node graph includes: Determine the current process node based on the connection order of each process node in the target process node graph; If the current process node is a conditional process node, and there are at least two current process nodes, then based on the priority rule of the conditional process nodes, determine the current processing process node from the current process nodes; If the node running conditions corresponding to the current processing flow node are met, then the backward flow node of the current processing flow node is run; If there is a situation where the node running condition corresponding to the current processing flow node is not met, the running of the backward flow node corresponding to the current processing flow node is terminated.
6. The method according to claim 4, characterized in that The process node processing result includes the operation result corresponding to the operation strategy; based on the connection order of each process node in the target process node graph, each process node is run to obtain the process node processing result corresponding to each process node, including: Determine the current process node based on the connection order of each process node in the target process node graph; If the current process node is a policy process node, the operation strategy corresponding to the current process node and belonging to the automatic operation state is used as the target operation strategy, and the target operation strategy includes strategy identification information, execution conditions and operation rules; Determining a current operation strategy from the target operation strategies based on the operation priority identifier in the strategy identifier information of each target operation strategy; If the execution conditions of the current operation strategy are met, the operation rules are executed to obtain the operation result corresponding to the target operation strategy.
7. The method according to claim 6, characterized in that If the execution conditions of the current operation strategy are met, the operation rules are executed to obtain the operation result corresponding to the target operation strategy, including: The execution conditions that are not executed by obtaining data from the database are taken as the priority execution conditions; If there is a situation where the priority execution condition is not met, then the execution of the operation rule is terminated; If the priority execution conditions are all met, then when all execution conditions except the priority execution conditions are all met, the operation rules are executed to obtain the operation result corresponding to the target operation strategy.
8. The method according to claim 4, characterized in that The target service triggering nodes include at least two, and the method further includes: Receiving an update request sent by a terminal, and determining a to-be-processed service triggering node related to the update request from the target service triggering node; Receiving a prompt message corresponding to the to-be-processed service triggering node sent by a terminal, and determining a current to-be-processed service triggering node based on a priority order of the prompt messages corresponding to the to-be-processed service triggering nodes received; For each currently pending business trigger node, a distributed lock of the currently pending business trigger node is obtained, and based on the update request, a target process node graph corresponding to the currently pending business trigger node is re-executed.
9. The method according to claim 4, characterized in that The business processing request includes multiple requests, and the method further includes: If a process execution overload situation is detected, a preset number of business processing requests are distributed to the downgraded server, so that the downgraded server processes the distributed business processing requests.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
11. A computer-readable storage medium having a computer program stored thereon, 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 9 are implemented.
12. 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 9 are implemented.
Citation Information
Cited By
Message pushing method and device, equipment and storage medium
CN120639840A
