Order monitoring method, server and storage medium
1. An order monitoring method, comprising:
determining an order fulfillment process corresponding to a target order according to the order type of the target order;
acquiring node configuration information of each node in an order fulfillment process corresponding to the target order;
acquiring node data of each target node included in the fulfillment process of the target order according to the node configuration information of each node; each target node is a part of or all nodes in the order fulfillment process;
and outputting order fulfillment information corresponding to the target orders according to the node data of each target node.
2. The method of claim 1, wherein the obtaining node data of each target node involved in the fulfillment process of the target order according to the node configuration information of each node comprises:
determining a fulfillment sequence of each node in the order fulfillment process according to the node configuration information of each node;
determining a starting node of the order fulfillment process according to the fulfillment sequence, taking the starting node as a current node, and performing the following operations in a circulating manner aiming at the current node until an ending node of the order fulfillment process is taken as the current node; wherein, once circulation process includes:
adding the current node as a target node;
acquiring node data of the current node according to the node configuration information of the current node;
and determining a next node corresponding to the current node according to the fulfillment sequence, and taking the next node as a new current node.
3. The method according to claim 2, wherein the obtaining node data of the current node according to the node configuration information of the current node comprises:
determining a trigger mode of the current node according to the node configuration information of the current node;
if the triggering mode of the current node is a heartbeat triggering mode, determining at least one data request corresponding to the current node according to data request information in node configuration information of the current node, and sequentially obtaining a return value of each data request through a data request interface corresponding to each data request in a service system;
if the triggering mode of the current node is a passive calling mode, receiving a return value sent by the service system; the return value is obtained by the service system calling a data request interface corresponding to the data request of the current node;
and determining the node data of the current node according to the return value.
4. The method of claim 3, wherein determining node data for the current node based on the return value comprises:
determining a data processing logic corresponding to the current node according to the node configuration information; the data processing logic comprises execution variables corresponding to the data requests;
replacing corresponding execution variables in the data processing logic with the return values of the data requests respectively;
and executing the data processing logic, and taking the execution result of the data processing logic as the node data of the current node.
5. The method of claim 4, wherein after taking the results of the execution of the data processing logic as node data for the current node, the method further comprises:
determining whether the current node is abnormal or not according to the node data of the current node;
if so, determining a trigger mode of the current node according to the node configuration information of the current node;
if the triggering mode is a heartbeat triggering mode and the execution times of the data processing logic of the current node are greater than a preset threshold value, outputting alarm information;
if the triggering mode is a heartbeat triggering mode and the execution times of the data processing logic of the current node are less than or equal to the preset threshold, re-executing the data processing logic of the current node, and determining the node data of the current node until determining that the current node is not abnormal or the execution times of the data processing logic are greater than the preset threshold;
and if the triggering mode is a passive calling mode, waiting for receiving a return value sent by the service system, determining the node data of the current node according to the return value, and repeatedly executing the step of determining whether the current node is abnormal according to the node data of the current node until the current node is determined to be abnormal.
6. The method of claim 2, wherein determining the next node corresponding to the current node according to the fulfillment order comprises:
and if the next-level node corresponding to the current node comprises a plurality of branch nodes according to the fulfillment sequence, determining the next node of the current node from the branch nodes according to the node data of the current node and the node configuration information of the branch nodes.
7. The method of claim 6, wherein determining a node next to the current node from each of the branch nodes according to the node data of the current node and the node configuration information of each of the branch nodes comprises:
respectively matching the node data of the current node with the branch rules in the node configuration information of each branch node;
and taking the branch node corresponding to the successfully matched branch rule as the next node of the current node.
8. A server, comprising a memory and a processor:
the memory for storing a computer program operable on the processor;
the processor is used for determining an order fulfillment process corresponding to the target order according to the order type of the target order; acquiring node configuration information of each node in an order fulfillment process corresponding to the target order; acquiring node data of each target node included in the fulfillment process of the target order according to the node configuration information of each node; each target node is a part of or all nodes in the order fulfillment process; and outputting order fulfillment information corresponding to the target orders according to the node data of each target node.
9. The server of claim 8, wherein the processor is specifically configured to:
determining a fulfillment sequence of each node in the order fulfillment process according to the node configuration information of each node;
determining a starting node of the order fulfillment process according to the fulfillment sequence, taking the starting node as a current node, and performing the following operations in a circulating manner aiming at the current node until an ending node of the order fulfillment process is taken as the current node; wherein, once circulation process includes:
adding the current node as a target node;
acquiring node data of the current node according to the node configuration information of the current node;
and determining a next node corresponding to the current node according to the fulfillment sequence, and taking the next node as a new current node.
10. A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, carries out the method of any one of claims 1 to 7.
Background
In recent years, with the improvement of living standard, a large-scale electronic commerce platform has abundant and various business forms, which determine that the platform has a long order fulfillment link, and the link from order placing to sign for by a client comprises a plurality of links.
In the order fulfillment process, due to inherent factors such as the type of the order, the type of goods, the type of the warehouse and the like and inconclusive factors such as address change, rejection of goods, logistics packet loss and the like which may occur in the fulfillment process, the fulfillment process is complicated and has various branches. When the order cannot be circulated by itself due to interruption in fulfillment, a service person needs to monitor an order fulfillment process in a service system through a monitoring system, locate an interrupted node, analyze the interruption reason, adjust abnormal data in the service system, and enable the process to continue to circulate. The process is often complicated, and the acquisition of the cause of the fault often requires the analysis of the types and data of a plurality of nodes upstream. In addition, even after the order fulfillment process is completed, the order fulfillment process requirements of the whole service system are reviewed through the monitoring system, and process personnel can perform process optimization.
At present, the existing technical means is that a monitoring system adopts an order monitoring method to monitor an order fulfillment process; specifically, before the order fulfillment process is operated, the monitoring system monitors the order fulfillment process of the business system in an intrusive monitoring mode; specifically, when each node flows, node data corresponding to the node is acquired. Firstly, when the business system is monitored by adopting the method, the nodes of the order fulfillment process in the business system are seriously coupled with the monitoring system, so that the business is complex and the iteration is difficult; secondly, the intrusive monitoring mode is unchanged, and cannot adapt to changeable practical situations, the process is constantly changed, the dimensionality of node data is constantly changed, and therefore the monitoring system needs to be constantly updated, and the working efficiency of the monitoring system is low.
Disclosure of Invention
The invention provides an order monitoring method, a server and a storage medium, which can improve the working efficiency of order monitoring.
In a first aspect, an embodiment of the present invention provides an order monitoring method, where the method includes:
determining an order fulfillment process corresponding to a target order according to the order type of the target order;
acquiring node configuration information of each node in an order fulfillment process corresponding to the target order;
acquiring node data of each target node included in the fulfillment process of the target order according to the node configuration information of each node; each target node is a part of or all nodes in the order fulfillment process;
and outputting order fulfillment information corresponding to the target orders according to the node data of each target node.
According to the embodiment of the invention, the node data of each target node included in the order fulfillment process of the target order is acquired according to the node configuration information of each node in the order fulfillment process, and the order fulfillment information corresponding to the target order is output according to the determined node data of each target node, so that business personnel can master the order fulfillment process of the target order in real time, process management and fault troubleshooting assistance are realized, and the work efficiency of order monitoring is improved.
An optional implementation manner is that, the obtaining node data of each target node included in the fulfillment process of the target order according to the node configuration information of each node includes:
determining a fulfillment sequence of each node in the order fulfillment process according to the node configuration information of each node;
determining a starting node of the order fulfillment process according to the fulfillment sequence, taking the starting node as a current node, and performing the following operations in a circulating manner aiming at the current node until an ending node of the order fulfillment process is taken as the current node; wherein, once circulation process includes:
adding the current node as a target node;
acquiring node data of the current node according to the node configuration information of the current node;
and determining a next node corresponding to the current node according to the fulfillment sequence, and taking the next node as a new current node.
According to the embodiment of the invention, the fulfillment sequence of each node in the order fulfillment process is determined according to the node configuration information of each node, so that the initial node in the order fulfillment process is determined; taking the initial node as a current node, circularly executing to add the current node as a target node, and acquiring node data of the current node according to node configuration information of the current node; and then determining a next node corresponding to the current node according to the fulfillment sequence, and operating the next node as a new current node until the ending node is used as the current node position, thereby realizing the monitoring of each target node in the order fulfillment process of the target order.
An optional implementation manner is that, the obtaining node data of the current node according to the node configuration information of the current node includes:
determining a trigger mode of the current node according to the node configuration information of the current node;
if the triggering mode of the current node is a heartbeat triggering mode, determining at least one data request corresponding to the current node according to data request information in node configuration information of the current node, and sequentially obtaining a return value of each data request through a data request interface corresponding to each data request in a service system;
if the triggering mode of the current node is a passive calling mode, receiving a return value sent by the service system; the return value is obtained by the service system calling a data request interface corresponding to the data request of the current node;
and determining the node data of the current node according to the return value.
According to the embodiment of the invention, the return values of the data requests are sequentially obtained through the data request interfaces corresponding to the data requests in the service system according to the trigger mode of the current node, or the return values sent by the service system and obtained by calling the data request interfaces corresponding to the data requests are received, so that the decoupling from the service system is realized, the return values are not required to be coupled with the service system to obtain, and the working efficiency of the order monitoring and service system is improved.
An optional implementation manner is that, the determining node data of the current node according to the return value includes:
determining data processing logic corresponding to the target node according to the node configuration information; the data processing logic comprises execution variables corresponding to the data requests;
replacing corresponding execution variables in the data processing logic with the return values of the data requests respectively;
and executing the data processing logic, and taking the execution result of the data processing logic as the node data of the current node.
In the embodiment of the invention, the return value of each data request replaces the corresponding execution variable in the data processing logic, the data processing logic is executed, the obtained execution result is used as the node data of the current node, and the conversion from the return value of the data request to the node data is realized.
In an optional implementation manner, after taking the execution result of the data processing logic as the node data of the current node, the method further includes:
determining whether the current node is abnormal or not according to the node data of the current node;
if so, determining a trigger mode of the current node according to the node configuration information of the current node;
if the triggering mode is a heartbeat triggering mode and the execution times of the data processing logic of the current node are greater than a preset threshold value, outputting alarm information;
if the triggering mode is a heartbeat triggering mode and the execution times of the data processing logic of the current node are less than or equal to the preset threshold, re-executing the data processing logic of the current node, and determining the node data of the current node until determining that the current node is not abnormal or the execution times of the data processing logic are greater than the preset threshold;
and if the triggering mode is a passive calling mode, waiting for receiving a return value sent by the service system, determining the node data of the current node according to the return value, and repeatedly executing the step of determining whether the current node is abnormal according to the node data of the current node until the current node is determined to be abnormal.
After determining that the current node is abnormal, the embodiment of the invention determines the trigger mode of the current node; and according to the determined triggering mode, continuously acquiring the node data of the current node until the current node is determined to be abnormal or the execution times of the data processing logic is determined to be greater than a preset threshold value, and sending an alarm to realize the abnormal judgment of the current node.
An optional implementation manner is that, according to the performing order, determining a next node corresponding to the current node includes:
and if the next-level node corresponding to the current node comprises a plurality of branch nodes according to the fulfillment sequence, determining the next node of the current node from the branch nodes according to the node data of the current node and the node configuration information of the branch nodes.
According to the embodiment of the invention, the next-level node of the current node is determined to comprise a plurality of branch nodes according to the fulfillment sequence, and then the next node of the current node is selected from the branch nodes according to the node data of the current node and the node configuration information of each branch node to realize the determination of the next node of the current node, so that the sequential execution of the order fulfillment process is realized.
An optional implementation manner is that, the determining, from each of the branch nodes, a node next to the current node according to the node data of the current node and the node configuration information of each of the branch nodes, includes:
respectively matching the node data of the current node with the branch rules in the node configuration information of each branch node;
and taking the branch node corresponding to the successfully matched branch rule as the next node of the current node.
The embodiment of the invention matches the node data with the branch rules of all the branch nodes, and takes the branch node corresponding to the successfully matched branch rule as the next node of the current node, thereby accurately determining the next node of the current node.
In a second aspect, an embodiment of the present invention provides a server, including a memory and a processor;
the memory for storing a computer program operable on the processor;
the processor is used for determining an order fulfillment process corresponding to the target order according to the order type of the target order; acquiring node configuration information of each node in an order fulfillment process corresponding to the target order; acquiring node data of each target node included in the fulfillment process of the target order according to the node configuration information of each node; each target node is a part of or all nodes in the order fulfillment process; and outputting order fulfillment information corresponding to the target orders according to the node data of each target node.
In a third aspect, an embodiment of the present invention further provides an order monitoring apparatus, including:
the determining unit is used for determining an order fulfillment process corresponding to the target order according to the order type of the target order;
a first obtaining unit, configured to obtain node configuration information of each node in an order fulfillment process corresponding to the target order;
a second obtaining unit, configured to obtain node data of each target node included in a fulfillment process of the target order according to the node configuration information of each node; each target node is a part of or all nodes in the order fulfillment process;
and the output unit is used for outputting order fulfillment information corresponding to the target order according to the node data of each target node.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, where computer program instructions are stored, and when the instructions are run on a computer, the instructions cause the computer to execute the order monitoring method according to the first aspect.
For technical effects brought by any one implementation manner in the second aspect to the fourth aspect, reference may be made to technical effects brought by a corresponding implementation manner in the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario of an order monitoring method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of an order monitoring method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a node creation interface according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for determining whether a current node is abnormal according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a branch node and a branch rule according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating a method for determining a next node according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating a display interface according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating a display interface according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating a method for monitoring an order according to an embodiment of the present invention;
fig. 10 is a block diagram of a server according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an order monitoring apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Some of the words that appear in the text are explained below:
the heartbeat triggering mode is as follows: the method refers to that the acquisition of the return value of the data acquisition request of the current node and the data processing logic are triggered regularly through a timer. The timer triggers on the premise that the node status of the current node is waiting for execution, execution fails (and the number of executions of the data processing logic does not exceed a limit value).
Passive calling mode: the method refers to that a return value of a data acquisition request of a current node and a data processing logic are triggered by passive calling, and specifically, the return value sent by a service system can be passively received as long as the service system calls a data request interface corresponding to the data request of the current node.
The word "exemplary" is used hereinafter to mean "serving as an example, embodiment, or illustration. Any embodiment described as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The terms "first" and "second" are used herein for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the features, and in the description of embodiments of the invention, "plurality" means two or more unless indicated otherwise.
Currently, the existing order monitoring method is as follows: before the order fulfillment process is operated, the monitoring system adopts an intrusive monitoring mode to monitor the order fulfillment process of the business system; specifically, when each node flows, node data corresponding to the node is acquired. Firstly, when the business system is monitored by adopting the method, the business system is seriously coupled with the monitoring system, so that the business is complex and the iteration is difficult; secondly, the intrusive monitoring mode is unchanged, and cannot adapt to changeable practical situations, the process is constantly changed, the dimensionality of node data is constantly changed, and therefore the monitoring system needs to be constantly updated, and the working efficiency of the monitoring system is low.
Based on the above problems, embodiments of the present invention provide an order monitoring method, a server, and a storage medium, so as to improve the work efficiency of order monitoring. The order recommendation method comprises the following steps: determining an order fulfillment process corresponding to the target order according to the order type of the target order, and acquiring node configuration information of each node in the order fulfillment process; then, acquiring node data of each target node included in the fulfillment process of the target order according to the node configuration information of each node; and according to the node data of each target node, outputting order fulfillment information corresponding to the target order, thereby realizing real-time mastering of the target order fulfillment process by a user, realizing process management and assisting troubleshooting, and further improving the working efficiency of order monitoring.
Fig. 1 shows an application scenario of the order monitoring method according to the embodiment of the present invention, and as shown in fig. 1, the application scenario includes a terminal device 10, a service device 20, and a server 30. The terminal device 10, the service device 20 and the server 30 may be connected by a wired connection or a wireless connection to transmit data. For example, the terminal device 10, the service device 20, and the server 30 may be connected by a data line or a wired network; the terminal device 10, the service device 20 and the server 30 may also be connected through a radio frequency module, a bluetooth module or a wireless network.
The terminal device 10 may be a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, or the like. For example, an order monitoring-related application may be installed on the terminal device 10. Business device 20 may be a server, a business system that performs the fulfillment process for a target order. The server 30 is a monitoring system for executing the order monitoring method provided by the embodiment of the invention.
The server 30 obtains the target order in the service device 20, and determines an order fulfillment process corresponding to the target order according to the order type of the target order; the server 30 obtains the node configuration information of each node in the order fulfillment process, and obtains the node data of each target node from the service equipment 20 according to the node configuration information of each node. Alternatively, the server 30 receives node data of each target node sent by the service device. The server 30 outputs order fulfillment information corresponding to the target order according to the node data of each target node. The terminal device 10 sends an obtaining request for obtaining order fulfillment information to the server 30, and after receiving the obtaining request, the server 30 sends the order fulfillment information to the terminal device 10, so that the terminal device 10 displays the received order fulfillment information in a relevant interface of order monitoring.
As shown in fig. 2, an embodiment of the present invention provides an order monitoring method applied to a server, including the following steps:
step S201, determining an order fulfillment process corresponding to the target order according to the order type of the target order.
After the target order is obtained, the order fulfillment process corresponding to the target order is determined according to the order type of the target order and based on the corresponding relation between the preset order type and the order fulfillment process.
In some embodiments, after the server obtains the initial order from the business device, according to the existing target order in the server, determining the initial order which is not in the existing target order in the initial order, and using the determined initial order as the target order; determining the order type of the target order, and determining the order fulfillment process corresponding to the target order according to the corresponding relation between the order type and the order fulfillment process pre-stored in the server.
In some embodiments, the terminal device may establish a correspondence between an order fulfillment process and an order type; then, the embodiment of the invention stores the established corresponding relation between the order type and the order fulfillment process in the server through the terminal equipment.
Step S202, obtaining node configuration information of each node in the order fulfillment process corresponding to the target order.
The embodiment of the invention obtains the node configuration information of each node in the order fulfillment process corresponding to the target order based on the pre-stored order fulfillment process.
Step S203, obtaining node data of each target node included in the fulfillment process of the target order according to the node configuration information of each node.
It should be noted that each target node is a part of or all nodes in the order fulfillment process.
According to the node configuration information of each node, determining the fulfillment sequence of each node in an order fulfillment process corresponding to a target order; and executing each node in the order fulfillment process in sequence according to the fulfillment sequence.
In some embodiments, embodiments of the present invention use the node being executed in the order fulfillment process as the target node. Then, the embodiment of the invention determines the node data of the target node according to the node configuration information of the target node.
Step S204, according to the node data of each target node, outputting order fulfillment information corresponding to the target order.
In some embodiments, according to the node data of each target node, the embodiment of the present invention determines order fulfillment information corresponding to the target order, and then sends the obtained order fulfillment information to the terminal device, so that the terminal device displays the order fulfillment information of the target order in a corresponding display interface according to the received order fulfillment information, for the user to view.
According to the embodiment of the invention, the node data of each target node included in the order fulfillment process of the target order is acquired according to the node configuration information of each node in the order fulfillment process, and the order fulfillment information corresponding to the target order is output according to the determined node data of each target node, so that business personnel can master the order fulfillment process of the target order in real time, process management and fault troubleshooting assistance are realized, and the work efficiency of order monitoring is improved.
In some embodiments, the present invention may establish the correspondence between the order type and the order fulfillment process in the following manner.
In the implementation, according to the order type, all nodes of the order corresponding to the order type in the fulfillment process are determined; and establishing an order fulfillment process according to the determined nodes.
For example, the order type is a television order, and all nodes that the television order passes through in the fulfillment process are determined to be A, B, C, D; and according to the determined node A, B, C, D, establishing an order fulfillment process A-B-C-D corresponding to the television order.
In specific implementation, according to the order type, the embodiment of the present invention creates node configuration information corresponding to all nodes that the order undergoes in the fulfillment process, thereby establishing an order fulfillment process corresponding to the order type.
It should be noted that the node configuration information of each node includes, but is not limited to: node name, node code, node title, belonging order fulfillment process, detail html, health rule, last node, branch rule, trigger mode, execution time limit, data request information and data processing logic.
The data request information is used for describing data requests executed by the monitoring system at the node and data request interfaces in the service system called when the data requests are executed. The data request information includes, but is not limited to: data request name, data request URL, data request parameter and data request mode. The business system is a fulfillment system corresponding to the order.
And the triggering mode is used for describing a mode of acquiring the node data corresponding to the node by the monitoring system. Specifically, the triggering modes include, but are not limited to: a heartbeat trigger mode and a passive calling mode.
And the data processing logic is used for describing the data processing of the node so as to acquire node data capable of being displayed. Specifically, the monitoring system in the embodiment of the present invention may process the return value corresponding to the data request based on the data processing logic, and obtain a group of node data that can be used for displaying.
It should be noted that the data processing logic includes execution variables corresponding to the respective data requests.
For example, the data processing logic corresponding to the order delivery node in the embodiment of the present invention may be set as:
result.healthStatus=param1.packageNo<>null&¶m1.packageReceiveTime<>null;
result.packageNo=param1.packageNo;
result.ReceiveTime=param1.packageReceiveTime;
result.packageReceiveUserName=param1.packageReceiveUserName;
wherein param1 refers to an execution variable corresponding to the data request, and if the node is triggered in a heartbeat manner, the application scenario is as follows: periodically calling a certain shipping state interface of the business system, and delivering the content returned by the data request to the data processing logic as param 1; result refers to the execution result obtained by executing the data processing logic, and the execution result is used as the node data corresponding to the node, and indicates whether the node is healthy or not, or what information is.
And the detail html is used for html script used by the user and describing data information to be displayed.
For example, the user may configure the detail html in the node configuration information corresponding to the node as:
<span color='red'>$result.healthStatus</span>
<span>$packageNo</span>
<span>$packageReceiveUserName</span>;
information used for describing the node needs to be displayed: the exception node is displayed in red, package number, package receiving user name.
And the last node is used for determining the last node corresponding to the current node and connecting all the nodes to form an order fulfillment process. In addition, the embodiment of the invention can determine the fulfillment sequence of each node in the order fulfillment process according to the last node information of each node.
And the branch rule is used for describing the transfer relation between the node and the next node in the order fulfillment process. Specifically, when creating the order fulfillment process, the embodiment of the present invention needs to define a context of an execution process between a node in the order fulfillment process and a next node, that is, needs to define a branch rule.
In some embodiments, when configuring the node configuration information, the embodiments of the present invention further need to set a data request parameter that needs to be displayed in the node data, so that when obtaining the node data corresponding to the node, the embodiments of the present invention can directly obtain the corresponding node data according to the data request parameter.
For example, by setting the data request parameter to param1.ordercode, the "LS11800" value in the return value corresponding to the data request 1 is obtained. And acquiring the value of the Qingdao city in the return value corresponding to the data request 1 by setting the data request parameter to param1. Therefore, in the definition of the data request parameter corresponding to the data request 1 of the node, the data request parameter corresponding to the request 1 to be displayed can be defined only in a form similar to param1.
In some embodiments, the node creation interface may be used to input node configuration information corresponding to the node, so as to complete the creation of the node in the order fulfillment process.
For example, as shown in fig. 3, in the embodiment of the present invention, node configuration information corresponding to each node in the order fulfillment process may be set through a node creation interface, so as to complete the creation of the order fulfillment process. When a user inputs data request information, the data request information editing frame corresponding to the data request can be added by triggering the 'adding request' key.
According to the embodiment of the invention, the configuration information corresponding to each node in the order fulfillment process is created through the node creation interface, the establishment of the order fulfillment process is completed, and meanwhile, the corresponding relation between the order type and the order fulfillment process is established based on the order type corresponding to the node configuration information corresponding to each node.
In some embodiments, the embodiment of the present invention may create an order fulfillment process through a node creation interface of the terminal device, and establish a corresponding relationship between an order type and the order fulfillment process. Then, the embodiment of the present invention sends the corresponding relationship between the order type and the order fulfillment process established by the terminal device to the server, so that the server stores the corresponding relationship between the order type and the order fulfillment process.
In other embodiments, the embodiment of the present invention may create an interface through a node corresponding to the server, create an order fulfillment process, and establish a corresponding relationship between the order type and the order fulfillment process.
The embodiment of the invention can directly acquire the orders in the service system and determine the target orders from the acquired orders; or, the embodiment of the present invention may receive an order added in the service system, and use the received order as a target order.
In some embodiments, after a target order is obtained, an order type of the target order is determined; and determining an order fulfillment process corresponding to the target order according to the order type of the target order.
In a specific implementation, the order fulfillment process corresponding to the target order is determined according to a preset correspondence between the order type and the order fulfillment process.
For example, the target order obtained in the embodiment of the present invention is 01889176, and the order type of the target order 01889176 is determined to be a television order; based on the preset corresponding relationship between the order type and the order fulfillment process, the order fulfillment process corresponding to the television order is determined, and the order fulfillment process is used as the order fulfillment process corresponding to the target order 01889176.
In some embodiments, after determining the order fulfillment process corresponding to the target order, the embodiments of the present invention obtain node configuration information of each node in the order fulfillment process corresponding to the target order.
According to the node configuration information of each node, the embodiment of the invention obtains the node data of each target node in the fulfillment process of the target order.
In some embodiments, embodiments of the present invention may determine node data for each target node in the following manner.
In implementation, according to the determined node configuration information of each node, the performing sequence of each node in the order performing process is determined.
In some embodiments, the present invention determines the fulfillment order of each node in the order fulfillment process according to the node immediately above the node.
For example, each node included in the order fulfillment process is node a, node B, node C, and node D; wherein, the previous node of the node a is the node B, the node B has no previous node, the previous node of the node C is the node D, and the previous node of the node D is the node a, and then the order performing sequence of each node in the order performing flow is the node B-the node a-the node D-the node C.
In some embodiments, after determining a performance order of each node in the order performance flow, according to the performance order, an initial node of the order performance flow is determined, and the initial node is used as a current node.
In some embodiments, the following operations are performed in a loop manner for a current node until an end node of an order fulfillment process is taken as the current node;
wherein, once circulation process includes:
adding the current node as a target node;
acquiring node data of the current node according to the node configuration information of the current node;
and determining a next node corresponding to the current node according to the fulfillment sequence, and taking the next node as a new current node.
It should be noted that, in the execution process of the order fulfillment process, the current node is a node whose execution state is waiting for execution.
In specific implementation, the embodiment of the present invention may obtain the node data of the current node according to the following manner.
The embodiment of the invention determines the trigger mode of the current node according to the node configuration information of the current node.
In some embodiments, if the triggering mode of the current node is a heartbeat triggering mode, determining at least one data request corresponding to the current node according to data request information in the node configuration information of the current node, and sequentially obtaining a return value of each data request through a data request interface corresponding to each data request of the service system.
In specific implementation, the embodiment of the present invention may directly invoke a data request interface corresponding to the data request in the service system according to the data request corresponding to the current node, and obtain a return value corresponding to the data request.
For example, the embodiment of the present invention may directly invoke a corresponding data request interface in the service system by executing the data request, and obtain a return value corresponding to the data request, as follows:
in some embodiments, in the embodiments of the present invention, an execution sequence of data requests is determined according to data request information in the node configuration information, the data requests are sequentially executed according to the determined execution sequence, a data request interface corresponding to each data request in a service system is sequentially called, and a return value of each data request is obtained.
For example, the data requests in the node configuration information corresponding to the node a are data request 1, data request 2, and data request 3; determining the execution sequence of 3 data requests as a data request 1, a data request 2 and a data request 3 according to data request information corresponding to the data requests; and sequentially executing the data request 1, the data request 2 and the data request 3, and acquiring a return value corresponding to the data request 1, a return value corresponding to the data request 2 and a return value corresponding to the data request 3. As shown in fig. 3, the execution order of the data requests is determined according to the number of the data request information edit box corresponding to the data request when the data request information of the data request is configured in the data request information.
In other embodiments, if the triggering mode of the current node is a passive invocation mode, a return value sent by the service system is received.
It should be noted that the return value is obtained by the service system calling the data request interface corresponding to the data request of the current node.
In specific implementation, in the fulfillment process of a target order, when a service system calls a data request interface corresponding to a data request corresponding to a current node, an acquired return value is sent to a monitoring system; and the current node of the monitoring system receives a return value sent by the service system.
For example, the data request corresponding to the current node is data request 1, where the data request interfaces corresponding to the data request 1 are a and b; and after the service system calls the data request interfaces a and b, sending the obtained return value to the current node of the monitoring system as the return value of the data request 1.
In some embodiments, after obtaining the return value of the data request, the embodiment of the present invention determines the node data of the current node.
In a specific implementation, the embodiment of the present invention may determine the node data of the current node in the following manner.
In some embodiments, the data processing logic corresponding to the current node is determined according to the node configuration information of the current node.
The embodiment of the invention respectively adopts the return value of each data request to replace the corresponding execution variable in the data processing logic; and executing the data processing logic, and taking the execution result of the data processing logic as the node data of the current node.
In specific implementation, in the embodiment of the present invention, the corresponding execution variable is replaced with the obtained return value of each data request, the return value is substituted into the execution script corresponding to the data processing logic, the data processing logic is executed, logic calculation is performed, an execution result is obtained, and the obtained execution result is used as node data of the current node.
For example, in the order fulfillment process, the data request of node a is data request 1; the embodiment of the invention obtains the return value of the data request 1 by executing the data request 1; and replacing the corresponding execution variable in the data processing logic of the node A according to the return value of the data request 1, executing the data processing logic, performing logic calculation to obtain an execution result, and storing the execution result as the node data of the node A in a data record corresponding to the node A.
For example, the return value of data request 1 is:
param1:{
packageNo:"SF2600210527A7N1204",
packageReceiveTime:"2021-05-28 09:32:18",
packageReceiveUserName, "zhuang",
}
replacing the corresponding execution variable in the data processing logic with the return value corresponding to param1, executing the data processing logic, and performing logic calculation to obtain an execution result, as follows:
result:{
healthStatus:true
packageNo:"SF2600210527A7N1204",
ReceiveTime:"2021-05-28 09:32:18",
packagereceiveUserName (Zhang Chuan) "
}
result is the execution result of the data processing logic, which indicates that the node A has no abnormality, and the obtained order related information, the user name, the order placing time and the order number; and storing the obtained result into the data record corresponding to the node A.
For another example, the return value of data request 1 is: when param1 { }, replacing the corresponding execution variable in the data processing logic with the return value corresponding to param1, executing the data processing logic, and performing logic calculation to obtain an execution result, as follows:
{
result.heathStatus=false
packageNo:null,
ReceiveTime:null,
packageReceiveUserName:null
}
here, since the param.packageno does not exist, result.heathstatus ═ false, that is, the node a is abnormal, and the other information corresponding to the node a is null.
In some embodiments, after determining the node data of the current node, the embodiments of the present invention determine whether the current node is abnormal.
In a specific implementation, when the embodiment of the present invention obtains node data, it is further required to determine whether a current node is abnormal according to a health rule in the node configuration information.
In some embodiments, the health rule of the current node is located in the data processing logic of the current node, and the embodiments of the present invention determine whether the current node is abnormal by executing the data processing logic; and the determination result is placed in the node data of the current node.
For example, the health rules corresponding to the warehouse sourcing node according to the embodiment of the present invention are as follows:
the result is that when the number of goods is greater than 1 and the warehouse status is equal to 2, it is determined that the node data is non-abnormal.
In an embodiment, if it is determined that the node data is abnormal, the trigger mode of the current node is determined according to the node configuration information of the current node.
In some embodiments, if the triggering mode is a heartbeat triggering mode, it is determined whether the execution times of the data processing logic of the current node is greater than a preset threshold.
In some embodiments, if the execution times of the data processing logic of the current node is greater than a preset threshold, the alarm information is output.
In specific implementation, after determining that the execution times of the data processing logic of the current node is greater than the preset threshold, the embodiment of the invention outputs the alarm information to the terminal device, so that the user can process the abnormal node according to the alarm information.
In other embodiments, if the execution times of the data processing logic of the current node is less than or equal to the preset threshold, the data processing logic of the current node is re-executed, and the node data of the current node is determined until it is determined that the current node is not abnormal or the execution times of the data processing logic is greater than the preset threshold.
In specific implementation, according to the heartbeat frequency of the heartbeat trigger mode, the data processing logic of the current node is re-executed, the node data of the current node is determined, and the execution times of the data processing logic are recorded.
For example, the heartbeat frequency is 2 seconds; in the embodiment of the invention, the data processing logic of the current node is executed once in 2 seconds, the node data of the current node is determined, and the execution times of the data processing logic are recorded; and then, according to the node data of the current node, determining whether the current node is abnormal or not, and determining whether the execution times of the data processing logic is greater than a preset threshold value or not.
In other embodiments, if the triggering mode is a passive invocation mode, the embodiment of the present invention waits for receiving a return value sent by the service system, determines node data of the current node according to the return value, and repeatedly executes the steps of determining whether the current node is abnormal according to the node data of the current node until it is determined that the current node is not abnormal.
In other embodiments, if the triggering mode is a passive invocation mode, waiting for receiving a return value sent by the service system, determining node data of a current node according to the return value, repeatedly executing the step of determining whether the current node is abnormal according to the node data of the current node, recording the determination times of determining whether the current node is abnormal, and outputting alarm information if the determination times is greater than a preset threshold.
For example, the current node of the embodiment of the present invention waits for receiving a return value sent by the service system, determines node data of the current node according to the return value, repeatedly executes the step of determining whether the current node is abnormal according to the node data of the current node, records that the determination frequency for determining whether the current node is abnormal is 19 times, wherein a preset threshold corresponding to the determination frequency is 18 times, and outputs an alarm message if the determination frequency is greater than the preset threshold, thereby ending the order fulfillment process.
In another embodiment, if it is determined that the current node is not abnormal, the step of determining the next node corresponding to the current node according to the performance order is performed.
As shown in fig. 4, an embodiment of the present invention provides a method for determining whether a current node is abnormal, where, taking a trigger mode of the current node as a heartbeat trigger mode as an example, the method includes the following steps:
step S401, determining the triggering mode of the current node as a heartbeat triggering mode according to the node configuration information of the current node;
step S402, determining at least one data request corresponding to the current node according to the data request information in the node configuration information of the current node;
step S403, sequentially obtaining the return value of each data request through the data request interface corresponding to each data request in the service system;
step S404, determining the data processing logic corresponding to the current node according to the node configuration information;
it should be noted that the data processing logic includes execution variables corresponding to the data requests;
step S405, replacing corresponding execution variables in the data processing logic with the return values of the data requests respectively;
step S406, executing the data processing logic, and taking the execution result of the data processing logic as the node data of the current node;
step S407, determining whether the current node is abnormal according to the node data; if yes, go to step S410; if not, go to step S408;
step S408, determining whether the execution times of the data processing logic is greater than a preset threshold value; if yes, go to step S409; if not, executing step S401;
step S409, sending an alarm;
and step S410, ending.
In some embodiments, after determining that the current node is not abnormal according to the node data of the current node, determining a next node corresponding to the current node according to the embodiments of the present invention.
In some embodiments, after the node data of the current node is obtained, according to the fulfillment order, it is determined whether a next-level node corresponding to the current node includes a plurality of branch nodes.
And if the next-level node corresponding to the current node comprises a plurality of branch nodes, determining the next node of the current node from the branch nodes according to the node data of the current node and the node configuration information of the branch nodes.
In a specific implementation, the embodiment of the present invention may determine the next node of the current node according to the following manner.
In some embodiments, the node data of the current node is respectively matched with the branch rules in the node configuration information of each branch node, and the branch node corresponding to the successfully matched branch rule is used as the next node of the current node.
In specific implementation, the embodiment of the present invention sequentially injects the node data of the current node into the branch rules of each branch node to form a dynamic scenario, and executes the dynamic scenario to obtain an execution result.
According to the execution result, the embodiment of the invention determines whether the node data of the current node is successfully matched with the branch rule, and further determines whether the branch node is the next node.
In some embodiments, if the execution result is that the execution is successful, it is determined that the node data of the current node is successfully matched with the branch rule, and the branch node corresponding to the branch rule is used as the next node of the current node.
In other embodiments, if the execution result is that the execution fails, it is determined that the matching between the node data of the current node and the branch rule fails, and it is determined that the branch node corresponding to the branch rule is not the next node of the current node. Then, the embodiment of the invention determines whether the branch node and the branch rule which are not judged exist; and if the branch node and the branch rule which are not judged still exist, judging the next branch rule, and executing the dynamic script corresponding to the next branch node.
For example, as shown in fig. 5, the current node is an order obtaining node, and the order obtaining node includes branch nodes: a warehouse source searching node, a logistics source searching node and an ending node; the branch rule 1 of the warehouse sourcing node is warehouse sourcing, the branch rule 2 of the logistics sourcing node is logistics sourcing, and the branch rule 3 of the ending node is unpaid. The method comprises the steps of obtaining node data of an order obtaining node; when the acquired node data is that the order is not paid, matching the node data with the branch rules in sequence; after determining that the node data corresponding to the order acquisition node fails to be matched with the branch rule 1, matching the node data with the branch rule 2; after the node data is determined to fail to be matched with the branch rule 2, the node data is matched with the branch rule 3; and after the node data is successfully matched with the branch rule 3, taking the end node corresponding to the branch rule 3 as the next node of the order acquisition node.
As shown in fig. 6, an embodiment of the present invention provides a method for determining a next node, including the following steps:
step S601, acquiring node data corresponding to the current node;
step S602, determining whether the next-level node corresponding to the current node comprises a branch node according to the fulfillment sequence of each node in the order fulfillment process; if yes, go to step S603; if not, executing step S609;
step S603, determining a branch rule of each branch node according to the node configuration information of each branch node;
step S604, matching the node data of the current node with the branch rules of the branch nodes, and determining whether the matching is successful; if yes, go to step S606; if not, executing step S605;
step S605, determining whether unmatched branch nodes exist; if yes, go to step S604; if not, go to step S6067;
step S606, taking the branch node corresponding to the branch rule as the next node of the current node;
and step S607, ending.
In some embodiments, after determining a node next to the current node, the embodiment of the present invention changes the node state of the current node to be executed successfully, changes the node state of the next node to be executed waiting, and uses the next node as a new current node to execute the above operations in a loop until an end node of an order fulfillment process is used as the current node.
It should be noted that the node states include: not activated, waiting for execution, successful execution, failed execution, and terminated execution.
The node state of the current node is waiting for execution; determining that the node data and the node state of the current node without abnormality are successfully executed; determining node data and the abnormal node state of the current node as an execution failure; the node status of other nodes in the order fulfillment process is inactive.
In some embodiments, after the order fulfillment process is executed, according to the target node, a target order fulfillment process corresponding to the target order is obtained in the embodiments of the present invention.
For example, as shown in fig. 7, the order type of the target order is a television order, the order fulfillment process of the television order is obtained, and the order fulfillment process is displayed in a display interface corresponding to the monitoring system; as shown in fig. 8, the dotted node is a non-target node in the order fulfillment process; and determining a target node in an order fulfillment process experienced by the target order in the order fulfillment process to obtain the target order fulfillment process corresponding to the target order, and displaying the target order fulfillment process in a display interface corresponding to the monitoring system.
In some embodiments, according to the order number of the target order, node data of the target node in the fulfillment process of the target order may be obtained.
In some embodiments, a user in the embodiments of the present invention may dynamically present a current fulfillment process of a target order in a display interface of a monitoring system, that is, dynamically present a target fulfillment process of the target order; and assigning the acquired node data to a target node in the target fulfillment process.
In specific implementation, a user can display node data of a target order at a certain target node by triggering nodes in a target fulfillment process in a display interface; in addition, the embodiment of the invention can endow the node with colors according to the health information in the node data. For example, the color of the target node without abnormality is set to yellow, and the color of the target node with abnormality is set to red.
For example, as shown in FIG. 8, a user may obtain invoice information for a target order by triggering a generate invoice node in a target fulfillment process.
In some embodiments, if the target order does not receive the user's viewing request when the order fulfillment process is finished, a prompt message is displayed in the display interface to remind the user that the target order has finished the fulfillment process when the order fulfillment process is finished.
As shown in fig. 9, an embodiment of the present invention provides a flowchart of a complete method for order monitoring, where taking a triggering mode of a current node as a passive invocation mode as an example, the method includes the following steps:
step S901, acquiring a target order, and determining an order type corresponding to the target order;
step S902, determining an order fulfillment process corresponding to the target order according to the corresponding relationship between the order type and the order fulfillment process;
step S903, determining node configuration information of each node in the order fulfillment process;
step S904, determining the fulfillment sequence of each node in the order fulfillment process according to the node configuration information of each node;
step S905, determining an initial node in the order fulfillment process according to the fulfillment sequence, and taking the initial node as a current node;
step S906, adding the current node as a target node;
step S907, determining the triggering mode of the current node as a heartbeat triggering mode according to the node configuration information of the current node;
step S908, determining at least one data request corresponding to the current node according to the data request information in the node configuration information of the current node;
step S909, sequentially obtaining the return value of each data request through the data request interface corresponding to each data request in the service system;
it should be noted that, in the embodiment of the present invention, according to the data request information in the node configuration information, the execution sequence of the data requests is determined, and the data requests are sequentially executed according to the execution sequence, a data request interface corresponding to each data request in the service system is called, and a return value of each data request is obtained;
step S910, determining the data processing logic corresponding to the current node according to the node configuration information;
it should be noted that the data processing logic includes execution variables corresponding to the data requests;
step S911, replacing the corresponding execution variables in the data processing logic with the return values of the data requests respectively;
step S912, executing the data processing logic, and taking the execution result of the data processing logic as the node data of the current node;
step S913, determining whether the current node is abnormal or not according to the node data of the current node; if yes, go to step S914; if not, go to step S916;
step S914, determining that the execution times of the data processing logic of the current node is greater than a preset threshold; if yes, go to step S915; if not, go to step S909;
step S915, sending an alarm;
step S916, determining whether the current node has a branch node according to the fulfillment sequence; if yes, go to step S917; if not, go to step S918;
step S917, determining a branch rule of the branch node according to the node configuration information of the branch node;
step S918, matching the node data of the current node with the branch rules in the node configuration information of the branch nodes respectively, and determining whether the matching is successful; if the matching is successful, executing step S920; if the matching fails, step S919 is executed;
step S919 of determining whether there is an unmatched branch node; if yes, go to step S918; if not, executing step S922;
step S920, taking the branch node corresponding to the branch rule as the next node of the current node;
step S921, taking the next node as a new current node, and executing step S906;
step S922, determining a target order fulfillment process corresponding to the target order according to the node data of the target node;
step S923, a target order fulfillment process is displayed in a display interface;
step S924 ends.
Based on the same inventive concept, the embodiment of the present invention further provides a server, such as the server 30 in fig. 1. Because the principle of the device for solving the problem is similar to the order monitoring method in the embodiment of the invention, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
The server includes at least a memory for storing data and a processor for data processing. The processor for data Processing may be implemented by a microprocessor, a CPU, a GPU (Graphics Processing Unit), a DSP, or an FPGA when executing Processing. For the memory, the memory stores therein an operation instruction, which may be a computer executable code, and the operation instruction implements the steps in the flow of the order monitoring method according to the embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a server according to an embodiment of the present invention; as shown in fig. 10, the server 100 in the embodiment of the present invention includes: including a memory 131, a communication module 133, and one or more processors 132.
A memory 131 for storing computer programs executed by the processor 132. The memory 131 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a program required for running an instant messaging function, and the like; the storage data area can store various instant messaging information, operation instruction sets and the like.
The processor 132 may include one or more Central Processing Units (CPUs), or be a digital processing unit, etc. The processor 132 is configured to implement the order monitoring method when the computer program stored in the memory 131 is called.
The communication module 133 is configured to communicate with a service device to obtain a target account.
The embodiment of the present invention does not limit the specific connection medium among the memory 131, the communication module 133 and the processor 132. In fig. 10, the memory 131 and the processor 132 are connected by a bus 134, the bus 134 is represented by a thick line in fig. 10, and the connection manner between other components is merely illustrative and not limited. The bus 134 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 10, but this is not intended to represent only one bus or type of bus.
Based on the same inventive concept, the embodiment of the present invention further provides an order monitoring apparatus, and as the principle of the apparatus for solving the problem is similar to the order monitoring method in the embodiment of the present invention, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 11, an embodiment of the present invention provides an order monitoring apparatus, including:
a determining unit 1101, configured to determine an order fulfillment process corresponding to the target order according to the order type of the target order;
a first obtaining unit 1102, configured to obtain node configuration information of each node in an order fulfillment process corresponding to the target order;
a second obtaining unit 1103, configured to obtain node data of each target node included in a fulfillment process of the target order according to the node configuration information of each node; each target node is a part of or all nodes in the order fulfillment process;
an output unit 1104, configured to output order fulfillment information corresponding to the target order according to the node data of each target node.
In an optional implementation manner, the second obtaining unit 1103 is specifically configured to:
determining the fulfillment sequence of each node in the order fulfillment process according to the node configuration information of each node;
determining a starting node of an order fulfillment process according to the fulfillment sequence, taking the starting node as a current node, and executing the following operations in a circulating mode aiming at the current node until an ending node of the order fulfillment process is taken as the current node; wherein, once circulation process includes:
adding the current node as a target node;
acquiring node data of the current node according to the node configuration information of the current node;
and determining a next node corresponding to the current node according to the fulfillment sequence, and taking the next node as a new current node.
In an optional implementation manner, the second obtaining unit 1103 is specifically configured to:
determining a trigger mode of the current node according to the node configuration information of the current node;
if the triggering mode of the current node is a heartbeat triggering mode, determining at least one data request corresponding to the current node according to data request information in node configuration information of the current node, and sequentially obtaining a return value of each data request through a data request interface corresponding to each data request in a service system;
if the triggering mode of the current node is a passive calling mode, receiving a return value sent by a service system; the return value is obtained by the service system calling a data request interface corresponding to the data request of the current node;
and determining the node data of the current node according to the return value.
In an optional implementation manner, the second obtaining unit 1103 is specifically configured to:
determining data processing logic corresponding to a target node according to the node configuration information; the data processing logic comprises execution variables corresponding to the data requests;
respectively adopting the return values of the data requests to replace corresponding execution variables in the data processing logic;
and executing the data processing logic, and taking the execution result of the data processing logic as the node data of the current node.
In an optional implementation manner, after taking the execution result of the data processing logic as the node data of the current node, the second obtaining unit 1103 is further configured to:
determining whether the current node is abnormal or not according to the node data of the current node;
if so, determining a trigger mode of the current node according to the node configuration information of the current node;
if the triggering mode is a heartbeat triggering mode and the execution times of the data processing logic of the current node are greater than a preset threshold value, outputting alarm information;
if the triggering mode is a heartbeat triggering mode and the execution times of the data processing logic of the current node are less than or equal to a preset threshold value, re-executing the data processing logic of the current node, and determining the node data of the current node until the current node is determined to be abnormal or the execution times of the data processing logic are greater than the preset threshold value;
and if the triggering mode is a passive calling mode, waiting for receiving a return value sent by the service system, determining the node data of the current node according to the return value, and repeatedly executing the step of determining whether the current node is abnormal according to the node data of the current node until the current node is determined to be abnormal.
In an optional implementation manner, the second obtaining unit 1103 is specifically configured to:
and if the next-level node corresponding to the current node comprises a plurality of branch nodes according to the performance order, determining the next node of the current node from the branch nodes according to the node data of the current node and the node configuration information of the branch nodes.
In an optional implementation manner, the second obtaining unit 1103 is specifically configured to:
respectively matching the node data of the current node with the branch rules in the node configuration information of each branch node;
and taking the branch node corresponding to the successfully matched branch rule as the next node of the current node.
Embodiments of the present invention also provide a computer-readable medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any of the methods described above.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that these are by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:订单创建方法、装置、服务器及存储介质