Process processing method, device and network equipment
By obtaining and analyzing the sub-service data of the AI service design business, generating virtual child nodes and automatically distributing the services of the task nodes, the problem of inefficiency in the AI service design business is solved, and the process automation and efficiency improvement is achieved.
Patent Information
- Application Number
- CN202210460588.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-04-28
AI Technical Summary
When performing AI service design business, all service personnel of the upper and lower service need to be notified to fill in and process, resulting in low efficiency.
By obtaining the attribute data of the task node, analyzing the sub-service data, generating virtual child nodes, and automatically distributing the service of the task node to the virtual child nodes, the process is automated.
It reduces the manual error rate, improves process processing efficiency, and can automatically generate virtual child nodes and automatically distribute the services of task nodes.
Smart Images

Figure CN114816520B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a process processing method, device and network equipment. Background Art
[0002] At present, when designing the architecture of a project for unified management of the entire life cycle of artificial intelligence (AI) business needs, it is considered that the AI upper-level service will connect to multiple lower-level sub-services, and the number of sub-services is not fixed. Only the developers of the AI upper-level head node service can determine the number when drawing the AI service topology. And AI service design is only a node in the overall life cycle of AI business needs. When executing the AI service design business, it is necessary to notify all service personnel of the upper-level and lower-level services to fill in the processing, which is not only inefficient but also prone to errors. Summary of the invention
[0003] The purpose of the embodiments of the present invention is to provide a process processing method, device and network device to solve the problem that when executing AI service design business in the prior art, all service personnel of the upper and lower services need to be notified to fill in the process, resulting in low efficiency. The specific technical solution is as follows:
[0004] In a first aspect of the present invention, a process processing method is provided, comprising:
[0005] Obtaining attribute data of the task node, the attribute data including: node type and corresponding execution parameters;
[0006] In the case where the node type is a batch type, obtaining corresponding sub-service data according to the hypertext transfer protocol address included in the execution parameter;
[0007] Parsing the sub-service data to obtain a sub-service array object;
[0008] Performing a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects;
[0009] Determine N virtual sub-nodes through the N sub-business objects, each of the N virtual sub-nodes has a corresponding virtual sub-node business, the N virtual sub-nodes are associated with the task node, and N is a positive integer greater than or equal to 1;
[0010] Execute the N virtual sub-node services corresponding to the N virtual sub-nodes.
[0011] In a second aspect of the present invention, there is also provided a process processing device, comprising:
[0012] A first acquisition module is used to acquire attribute data of a task node, wherein the attribute data includes: a node type and corresponding execution parameters;
[0013] A second acquisition module, used to acquire corresponding sub-service data according to the hypertext transfer protocol address included in the execution parameter;
[0014] A first parsing module, used for parsing the sub-service data to obtain a sub-service array object;
[0015] A first processing module, configured to perform a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects;
[0016] A second processing module is used to determine N virtual sub-nodes through the N sub-business objects, each of the N virtual sub-nodes has a corresponding virtual sub-node business, the N virtual sub-nodes are associated with the task node, and N is a positive integer greater than or equal to 1;
[0017] The first execution module is used to execute N virtual sub-node services corresponding to the N virtual sub-nodes.
[0018] In a third aspect of an embodiment of the present invention, a network device is further provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0019] Memory, used to store computer programs;
[0020] The processor is used to implement the above-mentioned process processing method when executing the program stored in the memory.
[0021] In a fourth aspect of the implementation of the present invention, a computer-readable storage medium is further provided, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes any of the process processing methods described above.
[0022] In a fifth aspect of the implementation of the present invention, there is also provided a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the process processing methods described above.
[0023] The process processing method of the embodiment of the present invention, when the node type of the task node is a batch type, accesses the task system through the Hypertext Transfer Protocol address, obtains the sub-business data configured by the task system, and obtains the sub-business array object by parsing the sub-business data, and performs a first data conversion on the N character strings in the sub-business array object, thereby obtaining N sub-business objects. The required N virtual sub-nodes can be determined through the N sub-business objects, and then the business of the task node is automatically distributed to the N virtual sub-nodes. The N virtual sub-nodes execute their respective virtual sub-node businesses through the process system. The entire process can automatically generate N virtual sub-nodes and automatically distribute the business of the task node to the N virtual sub-nodes, which not only reduces the manual error rate but also improves the process processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.
[0025] Figure 1 One of the step flow charts of the process processing method provided by an embodiment of the present invention;
[0026] Figure 2 A schematic diagram of a serial transfer method provided by an embodiment of the present invention;
[0027] Figure 3 A schematic diagram of a parallel flow method provided by an embodiment of the present invention;
[0028] Figure 4 A second flowchart of the process processing method provided by an embodiment of the present invention;
[0029] Figure 5 A structural block diagram of a process processing device provided by an embodiment of the present invention;
[0030] Figure 6 A structural block diagram of a network device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0032] like Figure 1 As shown, an embodiment of the present invention provides a process processing method, which can be applied to a process system, and the process system communicates with a business system. The process processing method may specifically include the following steps:
[0033] Step 101: Acquire attribute data of a task node, wherein the attribute data includes: node type and corresponding execution parameters.
[0034] Specifically, the process system is configured with a business process template and the attribute data of each task node in the process, which includes the node type, the execution parameters corresponding to the node type, etc. Among them, there are mainly three types of node types, request type, email type and batch type.
[0035] In the case where the node type is a request type, the configured execution parameters corresponding to the request type may include: parameter name, parameter sequence number, Hypertext Transfer Protocol (HTTP) address, first request parameter, synchronous or asynchronous request type, etc. The HTTP address may be a synchronous HTTP address or an asynchronous HTTP address, which is not specifically limited here.
[0036] When the node type is an email type, the configured execution parameters corresponding to the email type may include: parameter name, parameter sequence number, email template address, dynamic recipient, email dynamic content parameter, notification or audit email type, etc.
[0037] When the node type is a batch type, the configured execution parameters corresponding to the batch type may include: a second request parameter, a flow mode (serial or parallel), and the like.
[0038] Step 102, when the node type is a batch type, obtain corresponding sub-service data according to the hypertext transfer protocol address included in the execution parameter.
[0039] Specifically, when the node type is a batch type, the execution parameters configured corresponding to the request type may also include: a hypertext transfer protocol address for accessing the business system. The process system accesses the business system through the hypertext transfer protocol address and obtains dynamically configured sub-business data from the business system.
[0040] The above-mentioned Hypertext Transfer Protocol address is a synchronous HTTP address. The sub-business data is the response data returned by the business system according to the HTTP address, and may include but is not limited to the following contents: attribute data of all virtual sub-nodes, etc.
[0041] Step 103: parse the sub-service data to obtain a sub-service array object.
[0042] Specifically, the process system obtains the attribute data of all virtual sub-nodes from the business process template, parses the attribute data of all virtual sub-nodes, and obtains a collection of attribute data strings of all virtual sub-nodes, that is, a sub-business array object.
[0043] Step 104: Perform a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects.
[0044] Specifically, the sub-business array object contains N strings, and the process system performs a first data conversion on the N strings to obtain corresponding N sub-business objects. Among them, a string contains all execution parameters of a virtual sub-node. The first data conversion represents the conversion of the data format between the string and the object.
[0045] Step 105: determine N virtual sub-nodes through the N sub-business objects, each of the N virtual sub-nodes has a corresponding virtual sub-node business, the N virtual sub-nodes are associated with the task node, and N is a positive integer greater than or equal to 1.
[0046] Specifically, the process system can determine N virtual sub-nodes through the above-mentioned N sub-business objects, that is, one sub-business object corresponds to one virtual sub-node. In addition, the process system establishes an association relationship between the N virtual sub-nodes and the task node, and the association relationship indicates that the parent node of the N virtual sub-nodes is the task node. In the case where the process system establishes an association relationship between the N virtual sub-nodes and the task node, the business system can split the business of the task node into N sub-businesses, and distribute the N sub-businesses to the N virtual sub-nodes, that is, each of the N virtual sub-nodes has a corresponding sub-business (i.e., virtual sub-node business), and the N virtual sub-nodes correspond to N virtual sub-node businesses.
[0047] It should be noted that, since the sub-business data is dynamically configured, the sub-business data obtained by the process system changes dynamically, and the number of virtual sub-nodes obtained by the process system based on the sub-business data also changes dynamically. In addition, since the task node is associated with the virtual sub-node, the task node is equivalent to a dynamic task node, and the number of virtual sub-nodes associated with the task node changes dynamically, and the number of sub-businesses of the task node also changes dynamically.
[0048] Step 106: Execute the N virtual sub-node services corresponding to the N virtual sub-nodes.
[0049] Specifically, each virtual sub-node executes the corresponding virtual sub-node business through the process system. If at least one virtual sub-node business execution fails, the process system obtains the virtual sub-node business execution failure information of the above virtual sub-node, and obtains the business execution failure information of the parent node (i.e., the task node) of the above virtual sub-node, and sets the task node to a failed state, indicating that the business execution of the task node has failed.
[0050] Since the process system can access the task system through a pre-configured Hypertext Transfer Protocol address, it can obtain the sub-business data configured by the task system, and obtain the sub-business array object by parsing the sub-business data, and perform a first data conversion on the N character strings in the sub-business array object, thereby obtaining N sub-business objects. The required N virtual sub-nodes can be determined through the N sub-business objects, and then the business of the task node can be automatically distributed to the N virtual sub-nodes. The N virtual sub-nodes execute their respective virtual sub-node businesses through the process system. The entire process can automatically generate N virtual sub-nodes and automatically distribute the business of the task node to the N virtual sub-nodes, which not only reduces the manual error rate, but also improves the process processing efficiency.
[0051] As an optional embodiment, the step 101 of obtaining attribute data of the task node may specifically include:
[0052] Obtaining an identifier of the task node;
[0053] Acquire attribute data corresponding to the identifier of the task node.
[0054] Specifically, the business system configures relevant data, generates a new task, namely the business of the task node, based on the relevant data, and sends the task node identifier to the process system. The process system obtains the task node identifier and obtains the attribute data of the task node from the business process template based on the identifier.
[0055] As an optional embodiment, the step 103 parses the sub-service data to obtain a sub-service array object, specifically including:
[0056] Parsing the sub-service data to obtain character string data corresponding to the sub-service array parameter name contained in the execution parameter;
[0057] The character string data is subjected to a second data conversion to obtain a sub-business array object.
[0058] Specifically, when the node type is a batch type, the execution parameter may also include: a sub-business array parameter name. The process system obtains the sub-business array parameter name contained in the execution parameter from the business process template, performs data parsing on the sub-business data according to the sub-business array parameter name, and extracts the value corresponding to the sub-business array parameter name in the sub-business data, that is, the string data. The string data is subjected to a second data conversion to obtain a converted sub-business array object. The second data conversion indicates the conversion of the data format between the string and the array object.
[0059] As an optional embodiment, the step 106 executes N virtual sub-node services corresponding to the N virtual sub-nodes, specifically including:
[0060] Obtaining the flow mode of the task node;
[0061] Execute the N virtual sub-node services according to the flow mode;
[0062] When the services of the N virtual sub-nodes are completed, it is determined that the services of the task node are completed.
[0063] Specifically, the process system first obtains the flow mode of the task node, and executes N virtual sub-node businesses according to the flow mode until the N virtual sub-node businesses corresponding to the N virtual sub-nodes are completed. Completing the N virtual sub-node businesses means completing the business of the parent node (i.e., the task node) of the N virtual sub-nodes.
[0064] As an optional embodiment, the flow mode is a serial flow mode, and the step of executing the N virtual sub-node services according to the flow mode may specifically include:
[0065] Executing a first virtual sub-node service among the N virtual sub-node services according to the serial flow mode;
[0066] When the first virtual sub-node service is completed, determining whether there is an unfinished second virtual sub-node service after the first virtual sub-node service;
[0067] If there is any unfinished second virtual sub-node service, the second virtual sub-node service is executed in the serial flow manner until the N virtual sub-node services are completed.
[0068] Specifically, if the flow mode of the task node is a serial flow mode, the process system needs to execute N virtual sub-node services in serial order in accordance with the serial flow mode. In the process of executing N virtual sub-node services in serial order, if the first virtual sub-node service is completed, it is necessary to determine whether there is an unfinished second virtual sub-node service after the first virtual sub-node service. If there is an unfinished second virtual sub-node service, continue to execute the second virtual sub-node service in serial order, and so on, until the N virtual sub-node services are completed, that is, the service of the task node is completed.
[0069] If the first virtual sub-node service is completed, the process system can determine whether the service of the virtual sub-node is completed by obtaining the status of each virtual sub-node. That is, if the obtained status of the virtual sub-node is completed, it is determined that the service of the virtual sub-node is completed; otherwise, if the obtained status of the virtual sub-node is uncompleted, it is determined that the service of the virtual sub-node is uncompleted.
[0070] For example: if the task node's flow mode is serial flow mode, the process system needs to execute N virtual sub-node businesses in serial order according to the serial flow mode, that is, first execute the first virtual sub-node business among the N virtual sub-node businesses corresponding to the serial N virtual sub-nodes, and then after completing the first virtual sub-node business, the state of the first virtual sub-node can be set to the completed state and the completion time can be recorded, and it can be determined whether there is a second virtual sub-node business after the first virtual sub-node business and the second virtual sub-node business is not completed; if there is a second virtual sub-node business and the second virtual sub-node business is not completed, then execute the second virtual sub-node business. And so on, until the last virtual sub-node business is completed, indicating that the task node's business has been completed, the task node's state can be set to the completed state, and the completion time can be recorded.
[0071] If the first virtual sub-node service is the first virtual sub-node service that is serially ordered, then the second virtual sub-node service is the second virtual sub-node service that is serially ordered. If the first virtual sub-node service is the second virtual sub-node service that is serially ordered, then the second virtual sub-node service is the third virtual sub-node service that is serially ordered, and so on. The second virtual sub-node service is the virtual sub-node service that is serially ordered one after the first virtual sub-node service.
[0072] The above serial transfer method is described below through a specific embodiment:
[0073] If the value of N is 3, there are 3 virtual sub-nodes, corresponding to 3 virtual sub-node services. If the flow mode is serial flow mode, the flow mode is as follows: Figure 2 As shown. Each solid circle represents a task node, and the three dotted circles in the dotted box represent the three virtual sub-node services corresponding to the three virtual sub-nodes of one of the task nodes. According to the direction of the arrow, the virtual sub-node service b1 in the dotted box needs to be executed first; after completing the virtual sub-node service b1, if there are other virtual sub-node services after the virtual sub-node service b1, the virtual sub-node service b2 in the dotted box is executed according to the direction of the arrow; after completing the virtual sub-node service b2, if there are other virtual sub-node services after the virtual sub-node service b2, the virtual sub-node service b3 in the dotted box is executed according to the direction of the arrow; when the virtual sub-node service b3 is completed, since there are no other virtual sub-node services after the virtual sub-node service b3, it means that the service of the task node is completed.
[0074] As an optional embodiment, the flow mode may also be a parallel flow mode, and the step of executing the N virtual sub-node services according to the flow mode may specifically include:
[0075] According to the parallel flow mode, executing the N virtual sub-node services in parallel;
[0076] When a third virtual sub-node service among the N virtual sub-node services is completed, determining whether there is an unfinished fourth virtual sub-node service among the N virtual sub-node services;
[0077] If there is no unfinished fourth virtual sub-node service, it is determined that the N virtual sub-node services are completed.
[0078] Specifically, if the flow mode of the task node is a parallel flow mode, the process system needs to execute N virtual sub-node businesses in parallel according to the parallel flow mode, that is, execute the N virtual sub-node businesses together. If the third virtual sub-node business among the N virtual sub-node businesses is completed, the status of the third virtual sub-node can be set to a completed status and the completion time can be recorded. It is also necessary to determine whether the other virtual sub-node businesses among the N virtual sub-node businesses except the third virtual sub-node business are completed. If the fourth virtual sub-node among the N virtual sub-node businesses is not completed, it means that the business of the task node is not completed; if the N virtual sub-node businesses are all completed, it means that the business of the task node has been completed, the status of the task node can be set to a completed status, and the completion time can be recorded.
[0079] It should be noted that, when N virtual sub-node services are executed in parallel, the start time is the same, but the end time is not necessarily the same, so the N virtual sub-node services executed in parallel are not necessarily completed at the same time.
[0080] Among them, the third virtual sub-node business is any one of the N parallel virtual sub-node businesses, the fourth virtual sub-node business is an unfinished virtual sub-node business among the N parallel virtual sub-node businesses except the third virtual sub-node business, and the third virtual sub-node business and the fourth virtual sub-node business do not indicate the order of precedence.
[0081] The above parallel transfer method is described below through a specific embodiment:
[0082] If the value of N is 3, there are 3 virtual sub-nodes, corresponding to 3 virtual sub-node services. If the flow mode is parallel flow mode, the flow mode is as follows: Figure 3As shown. Each solid circle represents a task node, and the three dotted circles in the dotted box represent the three virtual sub-node services corresponding to the three virtual sub-nodes of one of the task nodes. According to the direction of the arrows, the three virtual sub-node services in the dotted box need to be executed in parallel; if the virtual sub-node service b4 in the dotted box is completed, it is necessary to determine whether the other two virtual sub-node services (i.e., virtual sub-node service b5 and virtual sub-node service b6) are completed. If at least one of the other two virtual sub-node services is not completed, it means that the service of the task node is not completed; if the other two virtual sub-node services are completed, it means that the service of the task node is completed. Similarly, if the virtual sub-node service b5 in the dotted box is completed, it is necessary to determine whether the other two virtual sub-node services (i.e., virtual sub-node service b4 and virtual sub-node service b6) are completed. If at least one of the other two virtual sub-node services is not completed, the service of the task node is not completed; if the other two virtual sub-node services are completed, it means that the service of the task node is completed. Similarly, if the virtual sub-node business b6 in the dotted box is completed, it is necessary to determine whether the other two virtual sub-node businesses (i.e., virtual sub-node business b4 and virtual sub-node business b5) are completed. If at least one of the other two virtual sub-node businesses is not completed, the business of the task node is not completed; if the other two virtual sub-node businesses are completed, it means that the business of the task node has been completed.
[0083] The above scheme is described in detail below through a specific embodiment:
[0084] The process system specifically includes: request node implementation class RequestNodeServiceImpl, mail node implementation class MailNodeServiceImpl, mail tool class MailUtil; Figure 4 As shown, the process system may further include: a receiving class FlowController, an execution class FlowService, a dynamic traversal node implementation class BatchNodeServiceImpl, and a request tool class RequestUtil.
[0085] Among them, the process system configures relevant data (i.e., business process template), and the business system sends the business data corresponding to the business process template to the process system. After the process system receives the business data, it generates a new task according to the business data and the business process template, i.e., the business collection of all task nodes, and specifically implements the following steps:
[0086] Step a1: The receiving class FlowController receives the identifier of the task node sent by the process system, obtains the attribute data of the task node according to the identifier of the task node, and sends the attribute data to the execution class FlowService.
[0087] Step a2: If the node type in the attribute data is determined to be a batch type, the execution class FlowService distributes the attribute data to the dynamic traversal node implementation class BatchNodeServiceImpl according to the attribute data, triggering the execution task of the task node.
[0088] It should be noted that if the node type in the attribute data is a request type, a request is sent to the business system to obtain the request result, and whether to execute the business of the next task node is determined based on the request result.
[0089] If the node type in the attribute data is an email type, an email is sent to a dynamic recipient, the email sending result is obtained, and whether to execute the business of the next task node is determined according to the email sending result.
[0090] Step a3: The dynamic traversal node implementation class BatchNodeServiceImpl sends a hypertext transfer protocol address for accessing the business system to the business system through the request tool class RequestUtil according to the attribute data. When the business system receives the hypertext transfer protocol address, it returns the sub-business data.
[0091] Step a4: Request the tool class RequestUtil to obtain the sub-service data, and send the sub-service data to the dynamic traversal node implementation class BatchNodeServiceImpl.
[0092] Step a5: Dynamically traverse the node implementation class BatchNodeServiceImpl to parse the sub-business data and obtain the sub-business array object; and perform a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects; determine N virtual sub-nodes through the N sub-business objects, and associate the N virtual sub-nodes with the task nodes, and inform the execution class FlowService of the generated N virtual sub-nodes.
[0093] Step a6: The execution class FlowService obtains the flow mode of the task node, and the virtual subnode executes the corresponding virtual subnode service according to the flow mode by executing the class FlowService. If the type of the executed virtual subnode is a request type, the virtual subnode executes the corresponding virtual subnode service through the request node implementation class RequestNodeServiceImpl; if the type of the executed virtual subnode is a mail type, the virtual subnode executes the corresponding virtual subnode service through the mail node implementation class MailNodeServiceImpl.
[0094] It should be noted that if the type of the virtual subnode is a request type, the request node implementation class RequestNodeServiceImpl executes the request logic and sends an execution request to the business system. After the business system completes the execution request, it can automatically assign the next virtual subnode service. After the assignment is completed, the execution result of the completed virtual subnode service is returned to the receiving class FlowController in the process system.
[0095] If the type of the virtual subnode is the mail type, the mail node implementation class MailNodeServiceImpl executes the mail logic and sends mail to the dynamic recipient. The dynamic recipient goes to the business system to process the mail content. After the processing is completed, the dynamic recipient can assign the next virtual subnode service in the business system. After the assignment is completed, the business system returns the execution result of the completed virtual subnode service to the receiving class FlowController in the process system.
[0096] Step a7: The receiving class FlowController receives the execution result, sets the state of the virtual subnode to completed, obtains the attribute data of the task node of the virtual subnode, and sends the attribute data to the execution class FlowService.
[0097] Step a8: The execution class FlowService determines the node type of the task node based on the attribute data. If the node type of the task node is a batch type, it searches for the status of the virtual subnodes of the task node and the flow mode of the task node. If the flow mode is parallel and there are unfinished virtual subnode businesses, wait for the unfinished virtual subnode businesses to be completed. If the flow mode is parallel and all virtual subnode businesses have been completed, it means that the business of the task node is completed and can be transferred to the next task node. If the flow mode is serial, find out whether there are other virtual subnodes behind the current virtual subnode. If so, return to step a6; if not, it means that the business of the task node is completed and can be transferred to the next task node.
[0098] In summary, in the above embodiment of the present invention, when the node type of the task node is a batch type, according to the needs of different task nodes, the task system is accessed through the hypertext transfer protocol address to obtain the sub-business data dynamically configured by the task system, and the sub-business array object is obtained by parsing the sub-business data, and the N character strings in the sub-business array object are subjected to the first data conversion, thereby obtaining N sub-business objects, and the required N virtual sub-nodes can be determined through the N sub-business objects, and then the business of the task node is automatically distributed to the N virtual sub-nodes, and the N virtual sub-nodes execute their respective virtual sub-node businesses through the process system. The entire process can obtain different sub-business data according to different needs of the task node, generate N virtual sub-nodes and automatically distribute the business of the task node to the N virtual sub-nodes, which can not only reduce the manual error rate, but also improve the process processing efficiency; and, according to the needs of different task nodes, different flow modes configured by the business process template are obtained, and the virtual sub-node associated with the task node executes the corresponding virtual sub-node business through the above-mentioned flow mode, thereby processing the business of different task nodes using the same business process template, realizing the generalization of the business process template and reducing the workload of the business party.
[0099] like Figure 5 As shown, an embodiment of the present invention provides a process processing device 500, which can be applied to a network device, wherein the network device involved in the embodiment of the present application can be a process system. The following embodiment is described by taking the network device as a process system as an example.
[0100] The first acquisition module 501 is used to acquire attribute data of a task node, wherein the attribute data includes: a node type and corresponding execution parameters;
[0101] A second acquisition module 502, configured to acquire corresponding sub-service data according to the hypertext transfer protocol address included in the execution parameter;
[0102] A first parsing module 503, used to parse the sub-service data to obtain a sub-service array object;
[0103] A first processing module 504 is used to perform a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects;
[0104] A second processing module 505 is used to determine N virtual sub-nodes through the N sub-business objects, each of the N virtual sub-nodes has a corresponding virtual sub-node business, the N virtual sub-nodes are associated with the task node, and N is a positive integer greater than or equal to 1;
[0105] The first execution module 506 is configured to execute N virtual sub-node services corresponding to the N virtual sub-nodes.
[0106] Optionally, the first parsing module 503 is specifically configured to:
[0107] Parsing the sub-service data to obtain character string data corresponding to the sub-service array parameter name contained in the execution parameter;
[0108] The character string data is subjected to a second data conversion to obtain a sub-business array object.
[0109] Optionally, the first execution module 506 is specifically configured to:
[0110] Obtaining the flow mode of the task node;
[0111] Execute the N virtual sub-node services according to the flow mode;
[0112] When the services of the N virtual sub-nodes are completed, it is determined that the services of the task node are completed.
[0113] Optionally, the transfer mode is a serial transfer mode, and when the first execution module 506 executes the N virtual sub-node services according to the transfer mode, it is specifically used to:
[0114] Executing a first virtual sub-node service among the N virtual sub-node services according to the serial flow mode;
[0115] When the first virtual sub-node service is completed, determining whether there is an unfinished second virtual sub-node service after the first virtual sub-node service;
[0116] If there is any unfinished second virtual sub-node service, the second virtual sub-node service is executed in the serial flow manner until the N virtual sub-node services are completed.
[0117] Optionally, the transfer mode is a parallel transfer mode, and when the first execution module 506 executes the N virtual sub-node services according to the transfer mode, it is specifically used to:
[0118] According to the parallel flow mode, executing the N virtual sub-node services in parallel;
[0119] When a third virtual sub-node service among the N virtual sub-node services is completed, determining whether there is an unfinished fourth virtual sub-node service among the N virtual sub-node services;
[0120] If there is no unfinished fourth virtual sub-node service, it is determined that the N virtual sub-node services are completed.
[0121] It should be noted that the process processing device embodiment is a device corresponding to the above-mentioned process processing method. All implementation methods of the above-mentioned embodiments are applicable to the device embodiment and can achieve the same technical effects, which will not be elaborated here.
[0122] In summary, in the above embodiment of the present invention, when the node type of the task node is a batch type, according to the needs of different task nodes, the task system is accessed through the hypertext transfer protocol address to obtain the sub-business data dynamically configured by the task system, and the sub-business array object is obtained by parsing the sub-business data, and the N character strings in the sub-business array object are subjected to the first data conversion, thereby obtaining N sub-business objects, and the required N virtual sub-nodes can be determined through the N sub-business objects, and then the business of the task node is automatically distributed to the N virtual sub-nodes, and the N virtual sub-nodes execute their respective virtual sub-node businesses through the process system. The entire process can obtain different sub-business data according to different needs of the task node, generate N virtual sub-nodes and automatically distribute the business of the task node to the N virtual sub-nodes, which can not only reduce the manual error rate, but also improve the process processing efficiency; and, according to the needs of different task nodes, different flow modes configured by the business process template are obtained, and the virtual sub-node associated with the task node executes the corresponding virtual sub-node business through the above-mentioned flow mode, thereby processing the business of different task nodes using the same business process template, realizing the generalization of the business process template and reducing the workload of the business party.
[0123] The embodiment of the present invention further provides a network device, which may be a process system. The following embodiment is described by taking the network device as a process system as an example. Figure 6 As shown, the network device includes a processor 61, a communication interface 62, a memory 63 and a communication bus 64, wherein the processor 61, the communication interface 62, and the memory 63 communicate with each other through the communication bus 64;
[0124] Memory 63, used for storing computer programs;
[0125] The processor 61 is used to execute the program stored in the memory 63 to implement the following steps:
[0126] Obtaining attribute data of the task node, the attribute data including: node type and corresponding execution parameters;
[0127] In the case where the node type is a batch type, obtaining corresponding sub-service data according to the hypertext transfer protocol address included in the execution parameter;
[0128] Parsing the sub-service data to obtain a sub-service array object;
[0129] Performing a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects;
[0130] Determine N virtual sub-nodes through the N sub-business objects, each of the N virtual sub-nodes has a corresponding virtual sub-node business, the N virtual sub-nodes are associated with the task node, and N is a positive integer greater than or equal to 1;
[0131] Execute the N virtual sub-node services corresponding to the N virtual sub-nodes.
[0132] Optionally, when parsing the sub-service data to obtain the sub-service array object, the processor 61 is specifically configured to:
[0133] Parsing the sub-service data to obtain character string data corresponding to the sub-service array parameter name contained in the execution parameter;
[0134] The character string data is subjected to a second data conversion to obtain a sub-business array object.
[0135] Optionally, when executing the N virtual sub-node services corresponding to the N virtual sub-nodes, the processor 61 is specifically configured to:
[0136] Obtaining the flow mode of the task node;
[0137] Execute the N virtual sub-node services according to the flow mode;
[0138] When the services of the N virtual sub-nodes are completed, it is determined that the services of the task node are completed.
[0139] Optionally, the flow mode is a serial flow mode, and when the processor 61 executes the N virtual sub-node services according to the flow mode, it is specifically used to:
[0140] Executing a first virtual sub-node service among the N virtual sub-node services according to the serial flow mode;
[0141] When the first virtual sub-node service is completed, determining whether there is an unfinished second virtual sub-node service after the first virtual sub-node service;
[0142] If there is any unfinished second virtual sub-node service, the second virtual sub-node service is executed in the serial flow manner until the N virtual sub-node services are completed.
[0143] Optionally, the flow mode is a parallel flow mode, and when the processor 61 executes the N virtual sub-node services according to the flow mode, it is specifically used to:
[0144] According to the parallel flow mode, executing the N virtual sub-node services in parallel;
[0145] When a third virtual sub-node service among the N virtual sub-node services is completed, determining whether there is an unfinished fourth virtual sub-node service among the N virtual sub-node services;
[0146] If there is no unfinished fourth virtual sub-node service, it is determined that the N virtual sub-node services are completed.
[0147] The communication bus mentioned in the above network device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0148] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0149] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0150] In another embodiment provided by the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the process processing method described in any of the above embodiments.
[0151] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the process processing methods described in the above embodiments.
[0152] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0153] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0154] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0155] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A process processing method, characterized in that: Applied to a process system, the process system communicates with a business system, the method comprises: Acquire attribute data of the task node, the attribute data including: node type and corresponding execution parameters; wherein the process system is configured with attribute data of each task node in the process; In the case where the node type is a batch type, obtaining corresponding sub-service data according to the hypertext transfer protocol address included in the execution parameter; Parsing the sub-service data to obtain a sub-service array object; Performing a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects; Determine N virtual sub-nodes through the N sub-business objects, each of the N virtual sub-nodes has a corresponding virtual sub-node business, the N virtual sub-nodes are associated with the task node, and N is a positive integer greater than or equal to 1; Execute the N virtual sub-node services corresponding to the N virtual sub-nodes.
2. The method according to claim 1, characterized in that The parsing of the sub-service data to obtain a sub-service array object includes: Parsing the sub-service data to obtain character string data corresponding to the sub-service array parameter name contained in the execution parameter; The character string data is subjected to a second data conversion to obtain a sub-business array object.
3. The method according to claim 1, characterized in that The executing the N virtual sub-node services corresponding to the N virtual sub-nodes includes: Obtaining the flow mode of the task node; Execute the N virtual sub-node services according to the flow mode; When the services of the N virtual sub-nodes are completed, it is determined that the services of the task node are completed.
4. The method according to claim 3, characterized in that: The flow mode is a serial flow mode, and executing the N virtual sub-node services according to the flow mode includes: Executing a first virtual sub-node service among the N virtual sub-node services according to the serial flow mode; When the first virtual sub-node service is completed, determining whether there is an unfinished second virtual sub-node service after the first virtual sub-node service; If there is any unfinished second virtual sub-node service, the second virtual sub-node service is executed in the serial flow manner until the N virtual sub-node services are completed.
5. The method according to claim 3, characterized in that: The flow mode is a parallel flow mode, and executing the N virtual sub-node services according to the flow mode includes: According to the parallel flow mode, executing the N virtual sub-node services in parallel; When a third virtual sub-node service among the N virtual sub-node services is completed, determining whether there is an unfinished fourth virtual sub-node service among the N virtual sub-node services; If there is no unfinished fourth virtual sub-node service, it is determined that the N virtual sub-node services are completed.
6. A process processing device, characterized in that: Applied to a process system that communicates with a business system, including: A first acquisition module is used to acquire attribute data of a task node, wherein the attribute data includes: a node type and corresponding execution parameters; wherein the attribute data of each task node in the process is configured in the process system; A second acquisition module, used to acquire corresponding sub-service data according to the hypertext transfer protocol address included in the execution parameter; A first parsing module, used for parsing the sub-service data to obtain a sub-service array object; A first processing module, configured to perform a first data conversion on the N character strings in the sub-business array object to obtain N sub-business objects; A second processing module is used to perform a second data conversion on the N sub-business objects to generate N virtual sub-nodes, each of the N virtual sub-nodes has a corresponding virtual sub-node business, and the N virtual sub-nodes are associated with the task node, where N is a positive integer greater than or equal to 1; The first execution module is used to execute N virtual sub-node services corresponding to the N virtual sub-nodes.
7. The device according to claim 6, characterized in that The first parsing module is specifically used for: Parsing the sub-service data to obtain character string data corresponding to the sub-service array parameter name contained in the execution parameter; The character string data is subjected to a second data conversion to obtain a sub-business array object.
8. The device according to claim 6, characterized in that The first execution module is specifically used to: Obtaining the flow mode of the task node; Execute the N virtual sub-node services according to the flow mode; When the services of the N virtual sub-nodes are completed, it is determined that the services of the task node are completed.
9. A network device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor is used to implement the process processing method described in any one of claims 1 to 5 when executing a program stored in a memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the process processing method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Method and device for acquiring topological graph data object, and electronic equipment
CN114116065A