Business processing method, device, computer equipment, storage medium and program product

By generating flowchart files to collect log data for transient data, the problem of transient data mining in Internet services is solved, and effective analysis of business problems and efficient utilization of data is achieved.

CN118260341BActive Publication Date: 2025-02-25DITU (BEIJING) TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211674844.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-26
Publication Date
2025-02-25
Estimated Expiration
2042-12-26

AI Technical Summary

Technical Problem

How to effectively mine transient data to support business analysis, especially in Internet businesses such as online car-hailing, food delivery, etc.

Method used

By obtaining the execution configuration file of the target service, compiling and generating a syntax tree file, and combining the orchestration configuration file to generate a flow chart file, thereby collecting and processing the transient data.

Benefits of technology

Data mining of transient data is realized, effective analysis and solutions for business problems are provided, and data utilization efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118260341B_ABST
    Figure CN118260341B_ABST
Patent Text Reader

Abstract

The present application relates to a business processing method, apparatus, computer equipment, storage medium and program product. The method comprises: obtaining execution configuration files of each target process corresponding to the target business, and compiling each execution configuration file to obtain a syntax tree file; obtaining an orchestration configuration file, and generating a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file; wherein the orchestration configuration file at least includes the first trigger relationship corresponding to each target process, and the flowchart file is used to collect log data for transient data corresponding to the target business. This method can be used to perform data mining on transient data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data collection technology, and in particular to a business processing method, device, computer equipment, storage medium and program product. Background Art

[0002] With the rapid development of Internet technology, more and more businesses are being carried out through the Internet, such as online car-hailing business, food delivery business, etc. In the process of carrying out business through the Internet, various types of data will be generated, and transient data is one of them.

[0003] Transient data refers to streaming data generated on a large scale during the business operation. For example, in the online car-hailing business, the data sensed by the sensors installed on the online car-hailing and the data collected by the GPS (Global Positioning System) installed on the online car-hailing are all transient data. A large amount of transient data is of great significance for business analysis. For example, by analyzing the data sensed by the sensors, the opening and closing of roads can be discovered in a timely manner, so as to plan the driving routes of online car-hailing more reasonably, etc.

[0004] Therefore, how to conduct data mining on transient data for business analysis has become a problem that needs to be solved urgently. Summary of the invention

[0005] Based on this, it is necessary to provide a business processing method, device, computer equipment, storage medium and program product that can perform data mining on transient data in response to the above technical problems.

[0006] In a first aspect, the present application provides a service processing method. The method comprises:

[0007] Obtaining execution configuration files of each target process corresponding to the target business, and compiling each of the execution configuration files to obtain a syntax tree file;

[0008] Obtaining an orchestration configuration file, and generating a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file;

[0009] The orchestration configuration file at least includes first trigger relationships corresponding to the target processes respectively, and the flowchart file is used to collect log data for transient data corresponding to the target services.

[0010] In one embodiment, generating a flowchart file corresponding to the target service according to the arrangement configuration file and the syntax tree file includes:

[0011] Parse the syntax tree file to obtain second trigger relationships corresponding to the target processes and the parsed syntax tree file, wherein the second trigger relationship includes a reference relationship and / or a scheduling relationship;

[0012] The flowchart file is generated according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file, wherein the first trigger relationship includes a subscription relationship and / or a callback relationship.

[0013] In one embodiment, generating the flowchart file according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file includes:

[0014] According to the parsed syntax tree file, construct a sub-process in each of the target processes to obtain a process compilation file, wherein the sub-process includes at least one of a microservice call process, a data format conversion, and a branch decision process;

[0015] The process compilation file is edited and processed using the first trigger relationship and the second trigger relationship to obtain the flow chart file.

[0016] In one of the embodiments, for each of the target processes, the reference relationship is at least used to indicate calling other target processes through the target sub-process in the target process;

[0017] The scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time;

[0018] The subscription relationship is at least used to indicate that other target processes are triggered by the execution result of the target process;

[0019] The callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events.

[0020] In one embodiment, the method further comprises:

[0021] For the target process, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, then in the process of generating the flowchart file, the target sub-process of the target process is configured in the flowchart file to call the target external microservice, and the target external microservice is used to output the selection result of selecting a target process from the multiple candidate processes for reference.

[0022] In one of the embodiments, the target external microservice is implemented based on a machine learning algorithm, and the method further includes:

[0023] Context data corresponding to the target external microservice is obtained, and the target external microservice is trained according to the context data.

[0024] In a second aspect, the present application also provides a service processing device. The device includes:

[0025] A first acquisition module is used to acquire execution configuration files of each target process corresponding to the target business, and compile each execution configuration file to obtain a syntax tree file;

[0026] A second acquisition module, used to acquire an orchestration configuration file, and generate a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file;

[0027] The orchestration configuration file at least includes first trigger relationships corresponding to the target processes respectively, and the flowchart file is used to collect log data for transient data corresponding to the target services.

[0028] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method described in the first aspect are implemented.

[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0030] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0031] The above-mentioned business processing method, device, computer equipment, storage medium and program product obtain the execution configuration file of each target process corresponding to the target business, compile each execution configuration file to obtain a syntax tree file, and then obtain the orchestration configuration file, and then generate a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file. The orchestration configuration file at least includes the first trigger relationship corresponding to each target process. In this way, log data collection can be performed on the transient data corresponding to the target business according to the flowchart file. Exemplarily, each target process can be executed according to the topological order, trigger relationship and other execution parameters of each target process and its sub-process indicated by the flowchart file to process the transient data and obtain log-related data corresponding to the transient data, thereby realizing data mining of the transient data. Subsequently, based on the log-related data, the relevant business problems existing in the target business can be effectively analyzed to achieve effective utilization of the transient data. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is an internal structure diagram of a computer device in one embodiment;

[0033] Figure 2 A flowchart of a business processing method in an embodiment;

[0034] Figure 3 A schematic diagram of updating the configuration of an exemplary computer device in one embodiment;

[0035] Figure 4 A schematic diagram of a process for generating a flowchart file in one embodiment;

[0036] Figure 5 is a flow chart of step 402 in one embodiment;

[0037] Figure 6 A schematic diagram is provided for compiling and constructing an exemplary process in an embodiment;

[0038] Figure 7 A schematic diagram of an exemplary Flow execution in one embodiment;

[0039] Figure 8 A schematic diagram of an exemplary process of constructing a flow graph file Flow Graph in an embodiment;

[0040] Fig. 9 A reference diagram of an exemplary reference relationship in an embodiment;

[0041] Fig.10 is a scheduling schematic diagram of an exemplary scheduling relationship in an embodiment;

[0042] Fig.11A subscription diagram of an exemplary subscription relationship in one embodiment;

[0043] Fig.12 A callback diagram of an exemplary callback relationship in one embodiment;

[0044] Fig.13 A schematic diagram of an exemplary process of optimizing a target external microservice in an embodiment;

[0045] Fig.14 FIG. 4 is a structural block diagram of a service processing device in an embodiment. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0047] With the rapid development of Internet technology, more and more businesses are being carried out through the Internet, such as online car-hailing business, food delivery business, etc. In the process of carrying out business through the Internet, various types of data will be generated, and transient data is one of them.

[0048] Transient data refers to streaming data generated on a large scale during the course of business operations. It is time-varying and volatile, and usually has a large amount of data. For example, in the online car-hailing business, the data sensed by the sensors installed on the online car-hailing and the data collected by the GPS (Global Positioning System) installed on the online car-hailing are all transient data. A large amount of transient data is of great significance for business analysis. For example, by analyzing the data sensed by the sensors, the opening and closing of roads can be discovered in a timely manner, so as to plan the driving routes of online car-hailing more reasonably, and so on.

[0049] Therefore, how to conduct data mining on transient data for business analysis has become a problem that needs to be solved urgently.

[0050] In view of this, an embodiment of the present application provides a business processing method, which obtains execution configuration files of each target process corresponding to the target business, compiles each execution configuration file, obtains a syntax tree file, and then obtains an orchestration configuration file, and then generates a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file. The orchestration configuration file includes at least a first trigger relationship corresponding to each target process. In this way, log data collection can be performed on the transient data corresponding to the target business according to the flowchart file. Exemplarily, each target process can be executed according to the topological order, trigger relationship and other execution parameters of each target process and its sub-process indicated by the flowchart file to process the transient data and obtain log-related data corresponding to the transient data, thereby realizing data mining of the transient data. Subsequently, based on the log-related data, relevant business problems existing in the target business can be effectively analyzed to achieve effective utilization of the transient data.

[0051] The following is a brief description of the implementation environment involved in the business processing method provided in the embodiment of the present application.

[0052] For example, the service processing method provided in the embodiment of the present application can be used for Figure 1 In the computer device shown, the computer device may be a gateway device, or the computer device may be a server, and a gateway program for implementing a gateway function is deployed in the server, and the gateway device (or the server with the gateway program deployed) may interact with the cloud native microservice. Figure 1 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business processing method is implemented.

[0053] Those skilled in the art will understand that Figure 1The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0054] It should be noted that the execution subject of the business processing method provided in the embodiment of the present application may also be a data processing device, and the data processing device may be implemented as part or all of a computer device through software, hardware, or a combination of software and hardware. In the following method embodiments, the execution subject is a computer device as an example for explanation.

[0055] In one embodiment, Figure 2 As shown, a business processing method is provided, comprising the following steps:

[0056] Step 201 : The computer device obtains execution configuration files of each target process corresponding to the target business, and compiles each execution configuration file to obtain a syntax tree file.

[0057] The target business is, for example, the online ride-hailing business. In the online ride-hailing business, for map traffic events, it is usually necessary to perform data mining on the transient data related to the map in order to discover the opening and closure of roads in real time; in customer service complaint processing, it is necessary to perform data mining on the transient data related to the user work order content in order to handle user complaints in a timely manner; and for traffic safety scenarios, it is necessary to perform data mining on the transient data related to the vehicle's driving status in order to intervene in the driver's fatigue situation in a timely manner.

[0058] In order to realize data mining of transient data, in an embodiment of the present application, the computer device first obtains the execution configuration file of each target process corresponding to the target business. The execution configuration file of each target process can be the user input obtained by the computer device. The execution configuration file of each target process is written in a flowchart language. Each execution configuration file may include the configuration information of the sub-process within the corresponding target process and the related trigger relationship between each target process.

[0059] It should be noted that in the embodiments of the present application, for the convenience of description, the target process may also be referred to as Flow (Chinese: Flow), and the execution configuration file of the target process may be referred to as a Flow file.

[0060] After the computer device obtains the Flow file of each target process, it enters the file compilation phase and compiles each execution configuration file using syntax parsing and semantic parsing to obtain an abstract syntax tree, namely, a syntax tree file.

[0061] Step 202: The computer device obtains an orchestration configuration file, and generates a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file.

[0062] The orchestration configuration file may be a user input acquired by a computer device, and the orchestration configuration file includes at least first trigger relationships corresponding to each target process, and the first trigger relationship of a target process may be a trigger relationship between the target process and other target processes.

[0063] After the computer device obtains the arrangement configuration file, it constructs the trigger relationship between the target processes based on the syntax tree file according to the first trigger relationship corresponding to each target process indicated in the arrangement configuration file, and obtains a flowchart file.

[0064] In some possible implementations, some trigger relationships corresponding to the target process can also be configured directly in the flowchart language, that is, configured by the user in the execution configuration file. After the computer device compiles the syntax tree file, the relevant trigger relationships of the target process configured by the user can be parsed from the syntax tree file, and then the flowchart file is generated according to the parsed trigger relationships, the parsed syntax tree file and the orchestration configuration file. The specific implementation methods will be described below.

[0065] In an embodiment of the present application, a flowchart file is used to collect log data for transient data corresponding to a target business. Exemplarily, a computer device may execute each target process according to the topological order, trigger relationship and other execution parameters of each target process and its sub-process indicated by the flowchart file to process the transient data and obtain log-related data corresponding to the transient data, thereby realizing data mining of the transient data. Subsequently, based on the log-related data, relevant business problems existing in the target business may be effectively analyzed to realize effective utilization of the transient data.

[0066] In one possible implementation, the computer device may also provide an operation and display interface. After the computer device loads a transient data stream and executes a flowchart file to obtain log data, the log data is displayed through the display interface. The user observes and analyzes the log data through the display interface, and can write and optimize the orchestration logic, change the configuration, and debug the process based on the analysis results.

[0067] For example, see Figure 3 , Figure 3A schematic diagram of an exemplary computer device performing configuration updates. After a user changes the configuration based on the log data displayed by the computer device, for example, after changing the execution configuration file and / or the orchestration configuration file, the updated execution configuration file and / or the orchestration configuration file can be stored in a configuration center, which can be a distributed file system outside the computer device, or of course, a memory inside the computer device. After the computer device obtains the updated execution configuration file and / or the orchestration configuration file, it executes the business processing method of the embodiment of the present application to obtain a flowchart file, and then notifies each computing processing node of the updated flowchart file ( Figure 3 As shown in the nodes 1 to n), each computing and processing node of the computer device can use the latest flowchart file in the subsequent log data collection, so as to realize the timely effectiveness of the configuration, non-stop switching and state inheritance.

[0068] In the related technology, 1) Apache Flink is a common real-time data processing framework in the industry, which can well support the work of real-time data mining process orchestration. However, the general development process of Apache Flink for streaming tasks is development => compilation => upload to cluster => run debugging => collect logs. The entire development cycle lacks interactivity and cannot dynamically interact with data in the environment. However, in the embodiment of the present application, by visually displaying log data, users can observe and analyze log data through the display interface, and can write and optimize the orchestration logic, change configuration and debug processes, etc. according to the analysis results.

[0069] 2) Some OLAP Engine data warehouse systems, such as Kylin, Doris, etc., can store large-scale analytical data and build multi-dimensional indexes to support real-time query and analysis. However, OLAP Engine cannot meet the needs of large-scale real-time transient data. However, the business processing method of the embodiment of the present application generates a flowchart file for log collection of transient data, which can meet the data mining and analysis needs of transient data.

[0070] 3) Netflix Conductor is an open source process engine written in Java. It is a process orchestration engine for microservices and is used to build processes based on microservices. The engine can orchestrate and manage complex microservice processes. The orchestration process of Netflix Conductor is not interactive and does not support analysis and mining of transient data. However, in the embodiment of the present application, it supports optimizing the orchestration logic, changing the configuration and debugging the process, and also supports data mining and analysis of transient data, which improves the intelligence of process orchestration.

[0071] In the intelligent information processing and decision-making system in the cloud native scenario, it is often necessary to analyze and mine real-time transient data, such as customer service complaint processing, rapid discovery of map traffic events, traffic safety situation awareness, etc. The embodiment of the present application obtains the execution configuration file of each target process corresponding to the target business, and compiles each execution configuration file to obtain a syntax tree file, and then obtains the orchestration configuration file, and then generates a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file. The orchestration configuration file includes at least the first trigger relationship corresponding to each target process. In this way, log data collection can be performed on the transient data corresponding to the target business according to the flowchart file. Exemplarily, each target process can be executed according to the topological order, trigger relationship and other execution parameters of each target process and its sub-process indicated by the flowchart file to process the transient data and obtain log-related data corresponding to the transient data, thereby realizing data mining of the transient data. Subsequently, based on the log-related data, relevant business problems existing in the target business can be effectively analyzed to achieve effective utilization of transient data.

[0072] In one embodiment, based on Figure 2 The embodiment shown, see Figure 4 This embodiment relates to a process of how a computer device generates a flowchart file corresponding to a target service according to an arrangement configuration file and a syntax tree file. Figure 4 As shown, the process includes step 401 and step 402:

[0073] Step 401: The computer device parses the syntax tree file to obtain the second trigger relationship corresponding to each target process and the parsed syntax tree file.

[0074] The second trigger relationship includes a reference relationship and / or a scheduling relationship. The specific meanings of the reference relationship and the scheduling relationship will be introduced in the following embodiments.

[0075] In an embodiment of the present application, for ease of implementation, the second trigger relationships corresponding to the target processes can be directly configured in the flowchart language, that is, configured by the user in the execution configuration file. After the computer device compiles the syntax tree file, the second trigger relationships corresponding to the target processes configured by the user can be parsed from the syntax tree file, and the parsed syntax tree file can also be obtained.

[0076] The parsed syntax tree file is a syntax tree file without the second trigger relationship. In a possible implementation, the parsed syntax tree file may include configuration information of the sub-process within the target process for the computer device to perform process compilation and construction.

[0077] Step 402: The computer device generates a flowchart file according to the first trigger relationship, the second trigger relationship, and the parsed syntax tree file.

[0078] The first trigger relationship includes a subscription relationship and / or a callback relationship. The specific meanings of the subscription relationship and the callback relationship will be introduced in the following embodiments.

[0079] In one possible implementation, see Figure 5 , the computer device can execute Figure 5 Steps 501 and 502 shown implement the process of step 402:

[0080] Step 501: The computer device constructs sub-processes in each target process according to the parsed syntax tree file to obtain a process compilation file.

[0081] The sub-process includes at least one of a microservice calling process, a data format conversion, and a branch decision process.

[0082] The computer device enters the process compilation construction phase according to the parsed syntax tree file. The process compilation is the configuration of a simple process. The process compilation contains three basic primitives: external service call logic, branch processing logic and data format conversion logic. The three primitives can express a simple business process, namely Flow. For example, see Figure 6 , Figure 6 A schematic diagram is constructed for an exemplary process compilation. The computer device will build microservice calls, data format conversions and / or branch decisions for the target process according to the semantics of each Flow (i.e., the target process) to obtain a process compilation file.

[0083] The Flow will eventually be placed into a large diagram, namely, a flowchart file, by the computer device. The process of the computer device generating the flowchart file will be described in step 502 .

[0084] For further information, see Figure 7 , Figure 7 is an exemplary schematic diagram of the execution of Flow, where a computer device executes a flowchart file (i.e. Figure 7 When you run the Flow Graph (or Flow graph) shown in the flowchart file, the service call and data format conversion will be executed according to the topological order of the sub-flows in the Flow in the flowchart file. When a branch is encountered, the intermediate state calculated above will be read to make a decision and trigger the call of the corresponding sub-flow (for example Figure 7 Sub-process A) shown.

[0085] Step 502: The computer device arranges the process compilation file using the first trigger relationship and the second trigger relationship to obtain a flow chart file.

[0086] After the process compilation and construction is completed, the computer device obtains the process compilation file, and then enters the construction phase of Flow Graph (i.e., flowchart file), that is, the process orchestration construction phase. The computer device will use the orchestration configuration file read from the configuration center, specifically, the first trigger relationship and the second trigger relationship to perform orchestration processing on the process compilation file to obtain a flowchart file, that is, it will build the reference, scheduling, subscription and callback relationship between Flows based on the process compilation file, and finally generate Flow Graph. In this way, the various links and relationships of compilation and orchestration will be expressed as a large graph, and the computer device can execute the Flow Graph through the Flow executor to collect log data for transient data corresponding to the target business.

[0087] The following describes the process of generating a flow graph file Flow Graph by a computer device in combination with the diagram. Figure 8 , Figure 8 The figure is a schematic diagram of an exemplary process of constructing a flow graph file Flow Graph.

[0088] like Figure 8 As shown, the computer device obtains the execution configuration file of each target process corresponding to the target business ( Figure 8 After that, the computer device compiles each execution configuration file to obtain a syntax tree file; then, the computer device parses the syntax tree file to obtain the second trigger relationship corresponding to each target flow and the parsed syntax tree file; then, the computer device constructs the sub-flow in each target flow according to the parsed syntax tree file (i.e. Figure 8 The process compilation construction process shown in the figure: constructing microservice calls, constructing data process transformation, and constructing branch decisions) to obtain a process compilation file; then, the computer device uses the first trigger relationship (i.e., the subscription relationship and callback relationship included in the orchestration configuration file obtained from the configuration center) and the second trigger relationship (i.e., the reference relationship and scheduling relationship obtained by parsing the syntax tree file) to compile the process compilation file to obtain a flowchart file (i.e. Figure 8 Flow Graph shown in the figure) to complete the construction of the flowchart file.

[0089] The following is an introduction to the meanings of the reference relationship, scheduling relationship, subscription relationship, and callback relationship mentioned above.

[0090] Specifically, for each target process:

[0091] 1) The reference relationship is at least used to indicate that other target processes are called through the target subprocess in the target process.

[0092] 2) The scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time.

[0093] 3) The subscription relationship is at least used to indicate that other target processes are triggered by the execution results of the target process.

[0094] 4) The callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events.

[0095] For reference relationships, the reference relationship Include is an immediate and active trigger for the sub-process, similar to the function call relationship in programming, that is, one process calls another process. Fig. 9 , Fig. 9 The figure is a reference diagram of an exemplary reference relationship. The reference relationship can occur in any process in Flow A. The reference does not need to access the cache of the computer device. The parameter passed in during the reference is the variable result calculated in Flow A before the reference.

[0096] In the embodiment of the present application, the reference relationship is at least used to indicate that other target processes are called through the target sub-process in the target process. For example, the reference relationship can represent the target sub-process ( Fig. 9 Subprocess 2) in the call other target processes (such as Fig. 9 Of course, the reference relationship can also occur in other processes in Flow A, such as Fig. 9 The branch decision process shown.

[0097] For the scheduling relationship, the scheduling relationship Schedule is an asynchronous active trigger relationship, see Fig.10 , Fig.10 FIG. 1 is a scheduling diagram of an exemplary scheduling relationship. Fig.10 As shown, scheduling can delay self-triggering, that is, the computer device triggers the execution of Flow after a delay of a period of time, thereby realizing the function of While loop in programming.

[0098] In the embodiment of the present application, the scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time. Fig.10 ,A context state cache database can be set in the computer device for the preset target process, e.g. Fig.10As shown in Flow A, when the computer device runs the Flow, the computer device will first execute the calculation process in Flow A through the Flow executor, and then cache the calculated context state into the context state cache database. Then, the computer device will wait for a period of time according to the scheduling configuration time. Then, the computer device will actively read the cached context state through the Flow executor to trigger Flow A again. Flow A will decide whether to continue scheduling through branches.

[0099] The context state cache database may adopt a dictionary data structure, and each service request generates a unique identification ID. The content cached in the context state cache database is customized by the user according to different services. The context state can be automatically saved through the context state cache database, and the automatic transfer of the context state can be achieved by finding the saved context state through the identification ID.

[0100] For example, the scheduling relationship can be used in traffic event mining, which usually requires accumulating user behaviors for a period of time and then applying statistical models to predict the state of the environment.

[0101] For the subscription relationship, Subscribe is an immediate and passive triggering method, which can be regarded as a cross-process calling relationship. The subscription relationship can direct part of the traffic to the new process without modifying the logic of the parent process.

[0102] In the embodiment of the present application, the subscription relationship is at least used to indicate that the execution result of the target process triggers other target processes. Fig.11 , Fig.11 A subscription diagram of an exemplary subscription relationship is shown in FIG. Fig.11 As shown, Flow A is subscribed by Flow B and Flow C. The subscription is a one-to-many relationship. During execution, the computer device will first calculate the calculation process in Flow A through the Flow executor and cache the calculated result variables in the memory. Then, the computer device will check the subscription relationship configuration, trigger Flow B and Flow C to execute according to the subscribed flow and access conditions set in the subscription relationship, and pass in the result variables cached in the memory as parameters.

[0103] Regarding the callback relationship, the callback relationship is an asynchronous passive trigger. Unlike the scheduling relationship, the scheduling relationship is actively triggered by the target process itself, while the callback relationship is generally passively triggered by a request message from an external microservice or queue.

[0104] In the embodiment of the present application, the callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events. Fig.12 , Fig.12 is a callback diagram of an exemplary callback relationship, such as Fig.12 As shown, assuming that in the callback relationship configuration, Flow A will call back to trigger the execution of Flow B, and the timeout will trigger the execution of Flow C. The computer device first executes the calculation in Flow A through the Flow executor. A process (i.e., subprocess) in Flow A will rely on external microservices. The computer device saves the context state in the calculation result of Flow A to the context state cache database. Then, the computer device sends a message to the external microservice and Flow A is suspended. Then, the computer device will periodically determine whether the callback has timed out through the Flow executor. If it has timed out, Flow C will be executed. If it has not timed out, it will continue to wait for external messages. After the external microservice completes the processing and returns the callback message, the computer device receives the message through the Flow executor, and the computer device reads the above context state in the cache database to trigger the execution of Flow B.

[0105] Exemplarily, the callback relationship can be used in a customer service complaint handling business scenario, in which manual review is often required. At this time, a process in Flow A will wait for manual processing feedback to arrive before continuing.

[0106] The above-mentioned embodiment realizes the intelligent orchestration of each target process corresponding to the target business by configuring reference relationship, scheduling relationship, subscription relationship and callback relationship. The construction of the new process can be completed without the need to modify the called service, thereby realizing interactive process orchestration for transient data. The configuration method based on the Flow diagram has simple configuration logic, high configuration efficiency and saves power consumption of computer equipment.

[0107] In one embodiment, based on Figure 5 In the embodiment shown, the service processing method of this embodiment further includes the following step A1:

[0108] Step A1, for the target process, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, the computer device configures the target subprocess of the target process to call the target external microservice in the flowchart file during the process of generating the flowchart file.

[0109] The target external microservice is used to output a selection result of selecting a target process from multiple candidate processes for reference.

[0110] In the embodiment of the present application, both the process compilation process and the process orchestration process support intelligent decision-making. Intelligent decision-making means that during the compilation process, the computer device can automatically decide which branch to call through an external microservice, without the need for hard-coded branch processing logic; during the orchestration process, the computer device can automatically decide which process to call through an external microservice, also without the need for hard-coded branch processing logic.

[0111] First, taking the process compilation process as an example, assuming that there are currently three reasoning microservices available for reference, the computer device can call an external intelligent decision-making service, which can be implemented using a machine learning algorithm. After receiving the decision result, the computer device performs the necessary data format conversion. Based on the result of the conversion, it makes inferences by referring to the corresponding reasoning microservice, such as the confidence of the prediction, and decides to call other processes or sub-processes for execution according to the confidence threshold.

[0112] Secondly, taking the process orchestration process as an example, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, in this way, when the computer device is configuring the flowchart file, it can configure the target sub-process of the target process to call the target external microservice in the flowchart file, and use the target external microservice to decide which target process needs to be referenced. The computer device can directly reference the corresponding target process based on the decision result, without having to try to reference each candidate process one by one and then select the final target process for reference, thereby reducing the processing resource usage of the computer device and helping to improve data mining efficiency.

[0113] In a possible implementation, the target external microservice is implemented based on a machine learning algorithm, which may be, for example, a neural network algorithm or a tree algorithm, for implementing selection decisions. The computer device may also obtain context data corresponding to the target external microservice, and train the target external microservice according to the context data, so that optimization for the target external microservice may be achieved through context feedback, thereby obtaining more accurate decision results during use and improving the accuracy of data mining.

[0114] For example, see Fig.13 , Fig.13 FIG. 1 is a schematic diagram of an exemplary process of optimizing a target external microservice. Fig.13 As shown, according to the intelligent decision configuration in the flowchart file, when the computer device executes a certain target process, it prepares relevant features. For example, in the scenario of reasoning based on pictures, the relevant features prepared by the computer device are the extracted image features, and then the target external microservice (i.e. Fig.13The intelligent decision-making microservice shown in the figure) performs data conversion after receiving the decision result, and then makes an intelligent decision according to the decision result. After the execution is completed, the buried data corresponding to the target process is saved. The buried data is the mining result obtained by mining transient data.

[0115] Furthermore, the computer device can extract context data corresponding to the target external microservice from the embedded data. The context data can be the input data and output data of the target external microservice. The context data is used as sample data, and then the target external microservice is trained according to the context data to achieve optimization of the target external microservice.

[0116] In the above embodiment, the branching of process compilation and the calling process of process arrangement support intelligent decision-making.

[0117] The above process includes forward decision reasoning and backward model retraining and updating, which is similar to the back-propagation training process of neural networks, to achieve the optimization of target external microservices.

[0118] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0119] Based on the same inventive concept, the embodiment of the present application also provides a business processing device for implementing the business processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more business processing device embodiments provided below can refer to the limitations on the business processing method above, and will not be repeated here.

[0120] In one embodiment, Fig.14 As shown, a service processing device is provided, including:

[0121] The first acquisition module 100 is used to acquire execution configuration files of each target process corresponding to the target business, and compile each execution configuration file to obtain a syntax tree file;

[0122] A second acquisition module 200 is used to acquire an orchestration configuration file, and generate a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file;

[0123] The orchestration configuration file at least includes first trigger relationships corresponding to the target processes respectively, and the flowchart file is used to collect log data for transient data corresponding to the target services.

[0124] In one embodiment, the second acquisition module 200 includes:

[0125] A parsing unit, configured to parse the syntax tree file to obtain second trigger relationships corresponding to the target processes and the parsed syntax tree file, wherein the second trigger relationships include reference relationships and / or scheduling relationships;

[0126] A generating unit is used to generate the flowchart file according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file, wherein the first trigger relationship includes a subscription relationship and / or a callback relationship.

[0127] In one of the embodiments, the generation unit is specifically used to construct sub-processes in each of the target processes according to the parsed syntax tree file to obtain a process compilation file, wherein the sub-processes include at least one of a microservice call process, a data format conversion, and a branch decision process; and the process compilation file is orchestrated using the first trigger relationship and the second trigger relationship to obtain the flowchart file.

[0128] In one of the embodiments, for each of the target processes, the reference relationship is at least used to indicate calling other target processes through the target sub-process in the target process;

[0129] The scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time;

[0130] The subscription relationship is at least used to indicate that other target processes are triggered by the execution result of the target process;

[0131] The callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events.

[0132] In one of the embodiments, the generation unit is also specifically used to, for the target process, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, then in the process of generating the flowchart file, configure the flowchart file to call the target external microservice through the target sub-process of the target process, and the target external microservice is used to output a selection result of selecting a target process from the multiple candidate processes for reference.

[0133] In one of the embodiments, the target external microservice is implemented based on a machine learning algorithm, and the device further includes:

[0134] The training unit is used to obtain context data corresponding to the target external microservice and train the target external microservice according to the context data.

[0135] Each module in the above-mentioned business processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0136] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0137] Obtaining execution configuration files of each target process corresponding to the target business, and compiling each of the execution configuration files to obtain a syntax tree file;

[0138] Obtaining an orchestration configuration file, and generating a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file;

[0139] The orchestration configuration file at least includes first trigger relationships corresponding to the target processes respectively, and the flowchart file is used to collect log data for transient data corresponding to the target services.

[0140] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0141] Parse the syntax tree file to obtain second trigger relationships corresponding to the target processes and the parsed syntax tree file, wherein the second trigger relationship includes a reference relationship and / or a scheduling relationship;

[0142] The flowchart file is generated according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file, wherein the first trigger relationship includes a subscription relationship and / or a callback relationship.

[0143] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0144] According to the parsed syntax tree file, construct a sub-process in each of the target processes to obtain a process compilation file, wherein the sub-process includes at least one of a microservice call process, a data format conversion, and a branch decision process;

[0145] The process compilation file is edited and processed using the first trigger relationship and the second trigger relationship to obtain the flow chart file.

[0146] In one embodiment, for each of the target processes, the reference relationship is at least used to indicate calling other target processes through the target sub-process in the target process;

[0147] The scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time;

[0148] The subscription relationship is at least used to indicate that other target processes are triggered by the execution result of the target process;

[0149] The callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events.

[0150] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0151] For the target process, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, then in the process of generating the flowchart file, the target sub-process of the target process is configured in the flowchart file to call the target external microservice, and the target external microservice is used to output the selection result of selecting a target process from the multiple candidate processes for reference.

[0152] In one embodiment, the target external microservice is implemented based on a machine learning algorithm, and the processor further implements the following steps when executing the computer program:

[0153] Context data corresponding to the target external microservice is obtained, and the target external microservice is trained according to the context data.

[0154] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0155] Obtaining execution configuration files of each target process corresponding to the target business, and compiling each of the execution configuration files to obtain a syntax tree file;

[0156] Obtaining an orchestration configuration file, and generating a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file;

[0157] The orchestration configuration file at least includes first trigger relationships corresponding to the target processes respectively, and the flowchart file is used to collect log data for transient data corresponding to the target services.

[0158] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0159] Parse the syntax tree file to obtain second trigger relationships corresponding to the target processes and the parsed syntax tree file, wherein the second trigger relationship includes a reference relationship and / or a scheduling relationship;

[0160] The flowchart file is generated according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file, wherein the first trigger relationship includes a subscription relationship and / or a callback relationship.

[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0162] According to the parsed syntax tree file, construct a sub-process in each of the target processes to obtain a process compilation file, wherein the sub-process includes at least one of a microservice call process, a data format conversion, and a branch decision process;

[0163] The process compilation file is edited and processed using the first trigger relationship and the second trigger relationship to obtain the flow chart file.

[0164] In one embodiment, for each of the target processes, the reference relationship is at least used to indicate calling other target processes through the target sub-process in the target process;

[0165] The scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time;

[0166] The subscription relationship is at least used to indicate that other target processes are triggered by the execution result of the target process;

[0167] The callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events.

[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0169] For the target process, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, then in the process of generating the flowchart file, the target sub-process of the target process is configured in the flowchart file to call the target external microservice, and the target external microservice is used to output the selection result of selecting a target process from the multiple candidate processes for reference.

[0170] In one embodiment, the target external microservice is implemented based on a machine learning algorithm, and when the computer program is executed by a processor, the following steps are also implemented:

[0171] Context data corresponding to the target external microservice is obtained, and the target external microservice is trained according to the context data.

[0172] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0173] Obtaining execution configuration files of each target process corresponding to the target business, and compiling each of the execution configuration files to obtain a syntax tree file;

[0174] Obtaining an orchestration configuration file, and generating a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file;

[0175] The orchestration configuration file at least includes first trigger relationships corresponding to the target processes respectively, and the flowchart file is used to collect log data for transient data corresponding to the target services.

[0176] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0177] Parse the syntax tree file to obtain second trigger relationships corresponding to the target processes and the parsed syntax tree file, wherein the second trigger relationship includes a reference relationship and / or a scheduling relationship;

[0178] The flowchart file is generated according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file, wherein the first trigger relationship includes a subscription relationship and / or a callback relationship.

[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0180] According to the parsed syntax tree file, construct a sub-process in each of the target processes to obtain a process compilation file, wherein the sub-process includes at least one of a microservice call process, a data format conversion, and a branch decision process;

[0181] The process compilation file is edited and processed using the first trigger relationship and the second trigger relationship to obtain the flow chart file.

[0182] In one embodiment, for each of the target processes, the reference relationship is at least used to indicate calling other target processes through the target sub-process in the target process;

[0183] The scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time;

[0184] The subscription relationship is at least used to indicate that other target processes are triggered by the execution result of the target process;

[0185] The callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events.

[0186] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0187] For the target process, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, then in the process of generating the flowchart file, the target sub-process of the target process is configured in the flowchart file to call the target external microservice, and the target external microservice is used to output the selection result of selecting a target process from the multiple candidate processes for reference.

[0188] In one embodiment, the target external microservice is implemented based on a machine learning algorithm, and when the computer program is executed by a processor, the following steps are also implemented:

[0189] Context data corresponding to the target external microservice is obtained, and the target external microservice is trained according to the context data.

[0190] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application will be processed on the premise of having a legal basis (such as obtaining the consent of the subject of personal information, or being necessary for the performance of a contract, etc.), and will only be processed within the scope of regulations or agreements. The user's refusal to process personal information other than the necessary information required for basic functions will not affect the user's use of basic functions.

[0191] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0192] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0193] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A business processing method, characterized in that: The method comprises: Obtaining execution configuration files of each target process corresponding to the target business, and compiling each of the execution configuration files to obtain a syntax tree file; Acquire an orchestration configuration file, where the orchestration configuration file at least includes first trigger relationships corresponding to the target processes, where the first trigger relationships include subscription relationships and / or callback relationships; Parse the syntax tree file to obtain second trigger relationships corresponding to the target processes and the parsed syntax tree file, wherein the second trigger relationship includes a reference relationship and / or a scheduling relationship; A flowchart file is generated according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file, and the flowchart file is used to collect log data for transient data corresponding to the target business.

2. The method according to claim 1, characterized in that The generating a flowchart file according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file includes: According to the parsed syntax tree file, construct a sub-process in each of the target processes to obtain a process compilation file, wherein the sub-process includes at least one of a microservice call process, a data format conversion, and a branch decision process; The process compilation file is edited and processed using the first trigger relationship and the second trigger relationship to obtain the flow chart file.

3. The method according to claim 1 or 2, characterized in that: For each of the target processes, the reference relationship is at least used to indicate calling other target processes through the target sub-process in the target process; The scheduling relationship is at least used to indicate that during the execution of the target process, the target process is triggered again after waiting for a preset scheduling time; The subscription relationship is at least used to indicate that other target processes are triggered by the execution result of the target process; The callback relationship is at least used to indicate that during the execution of the target process, other target processes are triggered by external events.

4. The method according to claim 3, characterized in that The method further comprises: For the target process, if the reference relationship corresponding to the target process is to select a target process from multiple candidate processes for reference, then in the process of generating the flowchart file, the target sub-process of the target process is configured in the flowchart file to call the target external microservice, and the target external microservice is used to output the selection result of selecting a target process from the multiple candidate processes for reference.

5. The method according to claim 4, characterized in that The target external microservice is implemented based on a machine learning algorithm, and the method further includes: Context data corresponding to the target external microservice is obtained, and the target external microservice is trained according to the context data.

6. A service processing device, characterized in that: The device comprises: A first acquisition module is used to acquire execution configuration files of each target process corresponding to the target business, and compile each execution configuration file to obtain a syntax tree file; A second acquisition module, used to acquire an orchestration configuration file, and generate a flowchart file corresponding to the target business according to the orchestration configuration file and the syntax tree file; The orchestration configuration file at least includes the first trigger relationship corresponding to each of the target processes, and the flowchart file is used to collect log data for transient data corresponding to the target business; Wherein, the second acquisition module includes: A parsing unit, configured to parse the syntax tree file to obtain second trigger relationships corresponding to the target processes and the parsed syntax tree file, wherein the second trigger relationships include reference relationships and / or scheduling relationships; A generating unit is used to generate the flowchart file according to the first trigger relationship, the second trigger relationship and the parsed syntax tree file, wherein the first trigger relationship includes a subscription relationship and / or a callback relationship.

7. The device according to claim 6, characterized in that The generation unit is specifically used to construct a sub-process in each of the target processes according to the parsed syntax tree file to obtain a process compilation file, wherein the sub-process includes at least one of a microservice call process, a data format conversion, and a branch decision process; and use the first trigger relationship and the second trigger relationship to arrange and process the process compilation file to obtain the flowchart file.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Process arrangement method and system, medium and computer program product

    CN114428613A