Business process execution method and device, electronic device and storage medium
By receiving business requests, determining parameter types, and invoking preset atomic services, and using a low-code orchestration framework to configure business processes, the problem of business process execution caused by communication barriers between the technical team and the demand side was solved, and logical and leak-free business process execution was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD
- Filing Date
- 2022-12-26
- Publication Date
- 2026-07-21
Smart Images

Figure CN116339690B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of program development technology, and more specifically, to a method, apparatus, electronic device, and storage medium for executing a business process. Background Technology
[0002] With the development of enterprise informatization, in the current software customization development process, clients often raise numerous requirements regarding business processes, data collection, and interface design. Normally, the technical team doesn't understand how the business operates, and the client doesn't understand the system language and logic, leading to a cognitive and communication gap between the two parties. While some technical teams can understand the client's business processes and complete the development using correct logic, most simply develop according to the "menu," easily resulting in self-contradictory system logic, bugs (vulnerabilities), and inefficient processes.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] The present invention provides a method, apparatus, electronic device and storage medium for executing a business process, so as to at least solve the technical problems of logical contradictions and vulnerabilities that are prone to occur in the execution of business processes in related technologies.
[0005] According to one aspect of the present invention, a method for executing a business process is provided, comprising: receiving a business request to be executed, wherein the business request to be executed carries business parameters and an operation type, and the operation type corresponds to an execution node; determining the parameter type of the business parameters when the execution node satisfies preset execution conditions, wherein the preset execution conditions are node execution conditions pre-set for each execution node; invoking a preset atomic service corresponding to the parameter type, wherein the preset atomic service includes pre-encapsulated execution code; executing the preset atomic service to obtain an execution result, and returning the execution result if the execution node has no child nodes.
[0006] Optionally, before receiving the business request to be executed, the method further includes: configuring service information of the preset atomic service; constructing a preset process configuration model based on the service information; and configuring an orchestration business process based on the preset process configuration model, wherein the orchestration business process is a process of executing business according to the orchestrated execution order of the execution nodes and the relationship between the execution nodes.
[0007] Optionally, the service information includes: process information, input parameter list, and process arrangement list, wherein the process information includes: process identifier and process description; the input parameter list includes: input parameter identifier, input parameter type, default value, and filling status; the process arrangement list includes: execution order of execution nodes and the relationship between execution nodes, wherein the execution node includes: node name, parent node, operation type, target source, node execution condition, execution content, and node remarks.
[0008] Optionally, before receiving the service request to be executed, the method further includes: determining the execution code of the execution node based on the execution content of the execution node and the target source, wherein the execution content includes an operation mode consistent with the operation type corresponding to the execution node, and the target source is the data source to be operated on; encapsulating the execution code to generate the preset atomic service associated with the execution node.
[0009] Optionally, the step of executing the preset atomic service includes: executing the preset atomic service based on the orchestration business process using orchestration execution rules, wherein the orchestration execution rules are rules for executing the execution content according to the operation type and the target source, and are used for the judgment of each judgment branch in the orchestration business process.
[0010] Optionally, the step of executing the preset atomic service using the orchestration execution rules includes: when the parameter type is a database type, transmitting the execution content in the execution node to a preset database indicated by the target source in the execution node, and executing the execution content in the preset database to complete the execution of the preset atomic service; when the parameter type is an interface type, transmitting the execution content in the execution node to a preset interface indicated by the target source in the execution node, and executing the execution content in the preset interface to complete the execution of the preset atomic service; when the parameter type is a process call type, transmitting the execution content in the execution node to a preset process call indicated by the target source in the execution node, and executing the execution content in the preset process call to complete the execution of the preset atomic service; when the parameter type is a basic statement type, transmitting the execution content in the execution node to a preset script interpreter indicated by the target source in the execution node, and executing the execution content in the preset script interpreter to complete the execution of the preset atomic service; when the parameter type is another type, executing the execution content according to the execution method of the other type to complete the execution of the preset atomic service.
[0011] Optionally, after executing the preset atomic service and obtaining the execution result, the method further includes: storing the execution result in a variable memory named after the node name of the execution node; and, if the execution node has child nodes, executing the child nodes in a loop based on the result value in the execution result until the result value obtained from executing the child nodes falls within a preset threshold range.
[0012] According to another aspect of the present invention, an execution apparatus for a business process is also provided, comprising: a receiving unit, configured to receive a business request to be executed, wherein the business request to be executed carries business parameters and an operation type, and the operation type corresponds to an execution node; a determining unit, configured to determine the parameter type of the business parameters when the execution node satisfies preset execution conditions, wherein the preset execution conditions are node execution conditions pre-set for each execution node; a calling unit, configured to call a preset atomic service corresponding to the parameter type, wherein the preset atomic service includes pre-encapsulated execution code; and an execution unit, configured to execute the preset atomic service, obtain an execution result, and return the execution result when the execution node has no child nodes.
[0013] Optionally, the execution device further includes: a first configuration module, configured to configure service information of the preset atomic service before receiving a service request to be executed; a first construction module, configured to construct a preset process configuration model based on the service information; and a second configuration module, configured to configure an orchestration process based on the preset process configuration model, wherein the orchestration process is a process of executing services according to the orchestrated execution order of the execution nodes and the relationship between the execution nodes.
[0014] Optionally, the service information includes: process information, input parameter list, and process arrangement list, wherein the process information includes: process identifier and process description; the input parameter list includes: input parameter identifier, input parameter type, default value, and filling status; the process arrangement list includes: execution order of execution nodes and the relationship between execution nodes, wherein the execution node includes: node name, parent node, operation type, target source, node execution condition, execution content, and node remarks.
[0015] Optionally, the execution device further includes: a first determining module, configured to determine the execution code of the execution node based on the execution content of the execution node and the target source before receiving the service request to be executed, wherein the execution content includes an operation mode consistent with the operation type corresponding to the execution node, and the target source is a data source to be operated on; and a first encapsulation module, configured to encapsulate the execution code and generate the preset atomic service associated with the execution node.
[0016] Optionally, the execution unit includes: a first execution module, used to execute the preset atomic service based on the orchestration business process and using orchestration execution rules, wherein the orchestration execution rules are rules for executing the execution content according to the operation type and the target source, and are used for judgment of each judgment branch in the orchestration business process.
[0017] Optionally, the first execution module includes: a first execution submodule, configured to, when the parameter type is a database type, transmit the execution content in the execution node to a preset database indicated by the target source in the execution node, and execute the execution content in the preset database to complete the execution of the preset atomic service; a second execution submodule, configured to, when the parameter type is an interface type, transmit the execution content in the execution node to a preset interface indicated by the target source in the execution node, and execute the execution content in the preset interface to complete the execution of the preset atomic service; and a third execution submodule, configured to, when the parameter type is a process call type... The execution content in the execution node is transmitted to the preset process call indicated by the target source in the execution node, and the execution content is executed in the preset process call to complete the execution of the preset atomic service; the fourth execution submodule is used to transmit the execution content in the execution node to the preset script interpreter indicated by the target source in the execution node when the parameter type is a basic statement type, and execute the execution content in the preset script interpreter to complete the execution of the preset atomic service; the fifth execution submodule is used to execute the execution content according to the execution method of the other type when the parameter type is other types to complete the execution of the preset atomic service.
[0018] Optionally, the execution device further includes: a first storage module, used to store the execution result in a variable memory named after the node name of the execution node after executing the preset atomic service and obtaining the execution result; and a first loop module, used to loop through the child node according to the result value in the execution result when the execution node has the child node, until the result value obtained by executing the child node is within a preset threshold range.
[0019] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is executed, the execution method for controlling the device where the computer-readable storage medium is located to perform the above-mentioned business process is executed.
[0020] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the above-described execution method of the business process.
[0021] In this disclosure, a business request to be executed is received. If the execution node meets preset execution conditions, the parameter type of the business parameter is determined. A preset atomic service corresponding to the parameter type is called and executed. The execution result is obtained, and if the execution node has no child nodes, the execution result is returned. This disclosure allows for the determination of the parameter type of the business parameter in the received business request when the execution node corresponding to the operation type in the received business request meets preset execution conditions. Then, the preset atomic service corresponding to the parameter type is called and executed. If the execution node has no child nodes, the obtained execution result is returned. By standardizing atomic services in the business execution process, the logic of business process execution is realized, vulnerabilities are avoided, and the technical problem of logical contradictions and vulnerabilities in the execution of business processes in related technologies is solved. Attached Figure Description
[0022] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0023] Figure 1 This is a flowchart of an optional business process execution method according to an embodiment of the present invention;
[0024] Figure 2 This is a schematic diagram of an optional configuration-based low-code program orchestration framework according to an embodiment of the present invention;
[0025] Figure 3 This is a schematic diagram of an optional process node execution flow according to an embodiment of the present invention;
[0026] Figure 4 This is a schematic diagram of an optional configuration-based low-code program orchestration flow according to an embodiment of the present invention;
[0027] Figure 5 This is a schematic diagram of an optional business process execution device according to an embodiment of the present invention;
[0028] Figure 6 This is a hardware structure block diagram of an electronic device (or mobile device) for executing a business process according to an embodiment of the present invention. Detailed Implementation
[0029] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0031] It should be noted that all information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent information from the aforementioned user or organization.
[0032] This invention proposes a configuration-based low-code program orchestration framework that can be used by non-professional business or operations personnel to quickly orchestrate program service technical solutions. By atomicizing databases, interfaces, and other components involved in business software process development, and unifying interface configuration, configuration personnel can configure according to a unified configuration logic to achieve business services. At the same time, it can manage logs and permissions for key atomic services to control risks.
[0033] The present invention will now be described in detail with reference to various embodiments.
[0034] Example 1
[0035] According to an embodiment of the present invention, an embodiment of a method for executing a business process is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0036] Figure 1 This is a flowchart of an optional business process execution method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:
[0037] Step S101: Receive a service request to be executed, wherein the service request to be executed carries service parameters and operation type, and the operation type corresponds to an execution node.
[0038] Step S102: If the execution node meets the preset execution conditions, determine the parameter type of the business parameter. The preset execution conditions are the node execution conditions set in advance for each execution node.
[0039] Step S103: Invoke the preset atomic service corresponding to the parameter type, wherein the preset atomic service includes pre-encapsulated execution code.
[0040] Step S104: Execute the preset atomic service, obtain the execution result, and return the execution result if the execution node has no child nodes.
[0041] Through the above steps, a business request to be executed can be received. If the execution node meets the preset execution conditions, the parameter type of the business parameter can be determined, a preset atomic service corresponding to the parameter type can be called, the preset atomic service can be executed, the execution result can be obtained, and if the execution node has no child nodes, the execution result can be returned. In this embodiment of the invention, when the execution node corresponding to the operation type in the received business request meets the preset execution conditions, the parameter type of the business parameter in the business request to be executed can be determined, and then the preset atomic service corresponding to the parameter type can be called and executed. If the execution node has no child nodes, the obtained execution result is returned. By standardizing the atomic services in the business execution process, the logic of business process execution can be realized, vulnerabilities can be avoided, and thus the technical problem of logical contradictions and vulnerabilities in the execution of business processes in related technologies can be solved.
[0042] The embodiments of the present invention will now be described in detail with reference to the steps described above.
[0043] Figure 2 This is a schematic diagram of an optional configuration-based low-code program orchestration framework according to an embodiment of the present invention, such as... Figure 2As shown, it includes: standardized process configuration model, orchestration and execution rules, and standardized atomic service interface model.
[0044] The following is combined with Figure 2 Each step is explained in detail.
[0045] Optionally, before receiving a business request to be executed, the process includes: configuring service information for a preset atomic service; constructing a preset process configuration model based on the service information; and configuring an orchestration business process based on the preset process configuration model, wherein the orchestration business process is a process of executing business according to the execution order of the orchestrated execution nodes and the relationship between the execution nodes.
[0046] In this embodiment of the invention, the service information of atomic services (i.e., preset atomic services) can be configured first, and then a preset process configuration model (i.e., standardized process configuration model) can be constructed based on this service information. Then, the orchestration business process can be configured based on the preset process configuration model. The orchestration business process is a process of executing business according to the execution order of the orchestrated execution nodes and the relationship between the execution nodes (e.g., parent-child relationship).
[0047] In this embodiment, the overall process can be arranged in tabular form.
[0048] Optionally, the service information includes: process information, input parameter list, and process arrangement list. The process information includes: process identifier and process description; the input parameter list includes: input parameter identifier, input parameter type, default value, and filling status; the process arrangement list includes: execution order of execution nodes and the relationship between execution nodes. The execution node includes: node name, parent node, operation type, target source, node execution conditions, execution content, and node remarks.
[0049] In this embodiment of the invention, the standardized process configuration model includes: basic process information (i.e., process information), input parameter list, process orchestration list, etc. (i.e., service information includes: process information, input parameter list, and process orchestration list). The basic process information includes: process name, process identifier, process description, etc.; the input parameter list includes: input parameter name, input parameter identifier, input parameter type, default value, whether it is required (i.e., filled status), etc.; the process orchestration list includes: the basic process node execution order and the relationship model between nodes (i.e., the execution order of execution nodes and the relationship between execution nodes), and each execution node includes: node name, parent node, operation type (e.g., update, add, query, etc.), target source (e.g., database source, service source, etc.), node execution conditions (e.g., reaching a certain value, executing at a certain time, etc.), execution content (e.g., adding a certain value, etc.), node remarks, etc.
[0050] Table 1 shows basic information about an optional process according to an embodiment of the present invention:
[0051] Table 1
[0052] Serial Number Attribute Name Attribute Description 1 Process Identifier A unique identifier for the process. 2 Process Name Current process name. 3 Process Description A written description of the current process.
[0053] Table 2 is a list of optional input parameters according to an embodiment of the present invention, as shown in Table 2:
[0054] Table 2
[0055]
[0056]
[0057] Table 3 shows an optional process node according to an embodiment of the present invention:
[0058] Table 3
[0059]
[0060] Optionally, before receiving the business request to be executed, the method further includes: determining the execution code of the execution node based on the execution content and the target source, wherein the execution content includes an operation method consistent with the operation type corresponding to the execution node, and the target source is the data source to be operated on; encapsulating the execution code to generate a preset atomic service associated with the execution node.
[0061] In this embodiment of the invention, the execution code of the execution node can be determined based on the execution content and the target source (for example, if the execution content is querying a name and the target source is the database to be queried, then the execution code for querying the name in that database can be determined). The execution content includes an operation method consistent with the operation type corresponding to the execution node (such as query, update, etc.), and the target source is the data source to be operated on. Then, the execution code can be encapsulated to generate a preset atomic service associated with the execution node.
[0062] In this embodiment, the operation type of the execution node is adapted to the standardized atomic service interface model. The standardized atomic service interface model includes the service type name, target source, specific execution method for the executed content, and the data format returned that can be directly used within this framework. For example:
[0063] When a preset atomic service is used as a base statement atomic service, the execution content in the base statement of the standard process atomic service type can be a standard preset expression (such as an ECMAScript expression, ECMAScript being a scripting programming language).
[0064] When the default atomic service is the exit process atomic service, the execution content of the exit process of the standard process atomic service type can be a standard default expression (such as an ECMAScript expression). After the node is executed, the process will be terminated and the execution result of the execution content will be returned to the caller.
[0065] When the default atomic service is a process call atomic service, the target source of the standard process atomic service type process call can be a configured process, and the execution content is the input parameters of the corresponding process.
[0066] When the default atomic service is CONTINUE (used to terminate the execution of subsequent child nodes and sibling child nodes), the standard process atomic service CONTINUE can terminate the subsequent operations of the current level node and continue the new cycle of the parent node.
[0067] When the default atomic service is BREAK (used to terminate the execution of subsequent child nodes of the current parent node), the standard process atomic service BREAK can terminate the loop operation of the parent node of the current node.
[0068] When the default atomic service is a delayed call to the atomic service, the target source of the delayed call to the standard process atomic service can be a configured process, and the execution content can be the delayed execution time and the corresponding process input parameters.
[0069] When the default atomic service is the database atomic service, the database atomic service type includes operations such as adding, deleting, modifying, querying, committing, and rolling back transactions. Its target source can be a specific data source, and the content to be executed can be the corresponding SQL statement (a type of database statement).
[0070] When the default atomic service is an interface atomic service, the interface atomic service type includes interface calls, the target source can be a specific interface, and the execution content can be the corresponding interface message.
[0071] Table 4 shows an optional atomic capability type for process nodes according to an embodiment of the present invention:
[0072] Table 4
[0073]
[0074]
[0075] Step S101: Receive a service request to be executed, wherein the service request to be executed carries service parameters and operation type, and the operation type corresponds to an execution node.
[0076] In this embodiment of the invention, a business request to be executed can be received first. The business request carries business parameters (such as the ID number in a name query business) and operation type (such as query operation). The operation type corresponds to an execution node (such as the execution node used to execute the query operation).
[0077] Step S102: If the execution node meets the preset execution conditions, determine the parameter type of the business parameter. The preset execution conditions are the node execution conditions set in advance for each execution node.
[0078] In this embodiment of the invention, if the execution node meets the preset execution conditions (the preset execution conditions are node execution conditions set in advance for each execution node, such as execution only starting when a certain value is reached), the parameter type of the business parameters (such as database type, interface type, process call type, basic statement type, etc.) can be determined.
[0079] Step S103: Invoke the preset atomic service corresponding to the parameter type, wherein the preset atomic service includes pre-encapsulated execution code.
[0080] In this embodiment of the invention, a corresponding preset atomic service (which includes pre-packaged execution code) can be called according to the parameter type. For example, when the parameter type is a database type, a pre-packaged database atomic service can be called, which can reduce code development and complete the execution of the business process through logic alone.
[0081] Step S104: Execute the preset atomic service, obtain the execution result, and return the execution result if the execution node has no child nodes.
[0082] Optionally, the step of executing a preset atomic service includes: executing the preset atomic service based on the orchestration business process and using orchestration execution rules, wherein the orchestration execution rules are rules for executing the content according to the operation type and the target source, and are used to orchestrate the judgment of each judgment branch in the business process.
[0083] In this embodiment of the invention, a pre-defined atomic service can be executed to obtain an execution result (e.g., obtaining a certain value). If the execution node does not have child nodes, the execution result can be returned directly. The specific steps for executing the pre-defined atomic service include: firstly, according to the orchestration business process, the pre-defined atomic service can be executed using orchestration execution rules. These orchestration execution rules are rules for executing the content based on the operation type and target source, and are used for judging each decision branch in the orchestration business process (i.e., in the orchestration business process, the orchestration execution rules can be used to determine which process branch to execute).
[0084] In this embodiment, the orchestration execution rules can be as follows: first, the input parameters are verified according to the input parameter type and rules. After successful verification, the execution is carried out according to the orchestration order of the process nodes. When it is determined that the current execution node meets the node execution conditions, the execution content can be executed according to the operation type and target source definition.
[0085] Optionally, the steps of executing a preset atomic service using orchestration execution rules include: when the parameter type is database, transferring the execution content in the execution node to the preset database indicated by the target source in the execution node, and executing the execution content in the preset database to complete the execution of the preset atomic service; when the parameter type is interface, transferring the execution content in the execution node to the preset interface indicated by the target source in the execution node, and executing the execution content in the preset interface to complete the execution of the preset atomic service; when the parameter type is process call, transferring the execution content in the execution node to the preset process call indicated by the target source in the execution node, and executing the execution content in the preset process call to complete the execution of the preset atomic service; when the parameter type is basic statement, transferring the execution content in the execution node to the preset script interpreter indicated by the target source in the execution node, and executing the execution content in the preset script interpreter to complete the execution of the preset atomic service; when the parameter type is other types, executing the execution content according to the execution method of other types to complete the execution of the preset atomic service.
[0086] In this embodiment of the invention, if the parameter type is a database type, the execution content in the execution node can be transmitted to the preset database indicated by the target source in the execution node, and the execution content can be executed in the preset database to complete the execution of the preset atomic service; if the parameter type is an interface type, the execution content in the execution node can be transmitted to the preset interface indicated by the target source in the execution node, and the execution content can be executed in the preset interface to complete the execution of the preset atomic service; if the parameter type is a process call type, the execution content in the execution node can be transmitted to the preset process call indicated by the target source in the execution node, and the execution content can be executed in the preset process call to complete the execution of the preset atomic service; if the parameter type is a basic statement type, the execution content in the execution node can be transmitted to the preset script interpreter indicated by the target source in the execution node, and the execution content can be executed in the preset script interpreter to complete the execution of the preset atomic service; if the parameter type is other types, the execution content can be executed according to the execution method of other types to complete the execution of the preset atomic service.
[0087] Optionally, after executing the preset atomic service and obtaining the execution result, the method further includes: storing the execution result in a variable memory named after the node name of the execution node; and, if the execution node has child nodes, executing the child nodes in a loop based on the result value in the execution result until the result value obtained from executing the child nodes falls within a preset threshold range.
[0088] In this embodiment of the invention, the execution result can be stored in an internal variable memory named "node name" for subsequent nodes to access (i.e., the execution result is stored in a variable memory named after the node name of the executing node). If the current node has child nodes and the execution result has a value, the execution result is executed in an array-like manner, looping through the child nodes until the value obtained from executing the child nodes falls within a preset threshold range (i.e., when the executing node has child nodes, the child nodes are executed in a loop based on the result value in the execution result until the result value obtained from executing the child nodes falls within a preset threshold range, which can be preset according to actual conditions).
[0089] Figure 3 This is a schematic diagram of an optional process node execution flow according to an embodiment of the present invention, such as... Figure 3 As shown, when a node executes, it first checks if the current node meets the execution conditions. If not, it executes the next node. Otherwise, it checks if the current parameter type is a database type. If it is, the execution content is sent to the database for execution. If it is not a database type, it checks if the current parameter type is an interface type. If it is, the execution content is sent to the interface for execution. If it is not an interface type, it checks if the current parameter type is a process call type. If it is, the execution content is sent to the internally defined process call for execution. If it is not a process call type, it checks if the current parameter type is a basic statement type. If it is, the execution content is sent to the script interpreter for execution. If it is not a basic statement type, it checks if the current parameter type is another type. If it is another type, the execution content is executed according to the type's execution method. After execution, the execution result is stored in the memory of an internal variable named after the node. Then, it checks if the current node has child nodes. If it does, it calls the child nodes in a loop based on the result set. If it does not exist, it executes the next node. If it is not another type, it checks if it is an exit type. If it is, the execution content is output as the process return value and the process exits. Otherwise, it executes the next node.
[0090] Figure 4 This is a schematic diagram of an optional configuration-based low-code program orchestration flow according to an embodiment of the present invention, such as... Figure 4As shown, the process can be invoked based on the business parameters and operation type in the received business request to be executed, and then the input parameters are validated. If the validation is successful, the process node list can be executed, and then the result is returned.
[0091] In this embodiment of the invention, a configuration-based low-code program orchestration framework is proposed by using a low-code configuration model and atomic capabilities in standardized business processes. This framework enables business personnel to quickly understand and use it for application development, thereby lowering the threshold for software developers. Only business personnel who understand business processes and basic logical judgments can configure and orchestrate business services through the interface within this framework.
[0092] The following is a detailed description with reference to another embodiment.
[0093] Example 2
[0094] The business process execution device provided in this embodiment includes multiple implementation units, each of which corresponds to a specific implementation step in Embodiment 1 above.
[0095] Figure 5 This is a schematic diagram of an optional business process execution device according to an embodiment of the present invention, such as... Figure 5 As shown, the execution device may include: a receiving unit 50, a determining unit 51, a calling unit 52, and an execution unit 53, wherein,
[0096] The receiving unit 50 is used to receive a service request to be executed, wherein the service request to be executed carries service parameters and operation type, and the operation type corresponds to an execution node;
[0097] The determining unit 51 is used to determine the parameter type of the business parameter when the execution node meets the preset execution conditions, wherein the preset execution conditions are the node execution conditions set in advance for each execution node;
[0098] Calling unit 52 is used to call a preset atomic service corresponding to the parameter type, wherein the preset atomic service includes pre-encapsulated execution code;
[0099] Execution unit 53 is used to execute preset atomic services, obtain execution results, and return execution results if the execution node has no child nodes.
[0100] The aforementioned execution device can receive a business request to be executed through a receiving unit 50, determine the parameter type of the business parameters through a determining unit 51 when the execution node meets preset execution conditions, call a preset atomic service corresponding to the parameter type through a calling unit 52, execute the preset atomic service through an execution unit 53, obtain the execution result, and return the execution result if the execution node has no child nodes. In this embodiment of the invention, when the execution node corresponding to the operation type in the received business request meets preset execution conditions, the parameter type of the business parameters in the business request to be executed can be determined, and then the preset atomic service corresponding to the parameter type can be called and executed. If the execution node has no child nodes, the obtained execution result is returned. By standardizing the atomic services in the business execution process, the logic of business process execution can be realized, vulnerabilities can be avoided, and the technical problem of logical contradictions and vulnerabilities in the execution of business processes in related technologies can be solved.
[0101] Optionally, the execution device further includes: a first configuration module, configured to configure service information of a preset atomic service before receiving a business request to be executed; a first construction module, configured to construct a preset process configuration model based on the service information; and a second configuration module, configured to configure and orchestrate a business process based on the preset process configuration model, wherein the orchestrated business process is a process of executing business according to the execution order of the orchestrated execution nodes and the relationship between the execution nodes.
[0102] Optionally, the service information includes: process information, input parameter list, and process arrangement list. The process information includes: process identifier and process description; the input parameter list includes: input parameter identifier, input parameter type, default value, and filling status; the process arrangement list includes: execution order of execution nodes and the relationship between execution nodes. The execution node includes: node name, parent node, operation type, target source, node execution conditions, execution content, and node remarks.
[0103] Optionally, the execution device further includes: a first determining module, used to determine the execution code of the execution node based on the execution content and the target source before receiving the business request to be executed, wherein the execution content includes an operation method consistent with the operation type corresponding to the execution node, and the target source is the data source to be operated; and a first encapsulation module, used to encapsulate the execution code and generate a preset atomic service associated with the execution node.
[0104] Optionally, the execution unit includes: a first execution module, used to execute preset atomic services based on the orchestration business process and using orchestration execution rules, wherein the orchestration execution rules are rules for executing the content according to the operation type and the target source, and are used to orchestrate the judgment of each judgment branch in the business process.
[0105] Optionally, the first execution module includes: a first execution submodule, used to transmit the execution content in the execution node to a preset database indicated by the target source in the execution node when the parameter type is database type, and execute the execution content in the preset database to complete the execution of the preset atomic service; a second execution submodule, used to transmit the execution content in the execution node to a preset interface indicated by the target source in the execution node when the parameter type is interface type, and execute the execution content in the preset interface to complete the execution of the preset atomic service; a third execution submodule, used to transmit the execution content in the execution node to a preset process call indicated by the target source in the execution node when the parameter type is process call type, and execute the execution content in the preset process call to complete the execution of the preset atomic service; a fourth execution submodule, used to transmit the execution content in the execution node to a preset script interpreter indicated by the target source in the execution node when the parameter type is basic statement type, and execute the execution content in the preset script interpreter to complete the execution of the preset atomic service; and a fifth execution submodule, used to execute the execution content according to the execution method of other types when the parameter type is other types, to complete the execution of the preset atomic service.
[0106] Optionally, the execution device further includes: a first storage module, used to store the execution result in a variable memory named after the node name of the execution node after executing the preset atomic service and obtaining the execution result; and a first loop module, used to loop through the child nodes according to the result value in the execution result when the execution node has child nodes, until the result value obtained by executing the child nodes is within a preset threshold range.
[0107] The aforementioned execution device may also include a processor and a memory. The aforementioned receiving unit 50, determining unit 51, calling unit 52, execution unit 53, etc., are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.
[0108] The aforementioned processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and by adjusting kernel parameters, preset atomic services can be executed to obtain execution results. If the execution node has no child nodes, the execution result is returned.
[0109] The aforementioned memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0110] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing an initialization program with the following method steps: receiving a business request to be executed, determining the parameter type of the business parameter if the execution node meets the preset execution conditions, calling the preset atomic service corresponding to the parameter type, executing the preset atomic service, obtaining the execution result, and returning the execution result if the execution node does not have child nodes.
[0111] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to perform the above-described business process execution method.
[0112] According to another aspect of the present invention, an electronic device is also provided, including one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the above-described execution method of the business process.
[0113] Figure 6 This is a hardware structure block diagram of an electronic device (or mobile device) for executing a business process according to an embodiment of the present invention. Figure 6 As shown, an electronic device may include one or more ( Figure 6 The processor 602 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 604 for storing data may also be included. In addition, it may include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 6 The structure shown is for illustrative purposes only and does not limit the structure of the electronic device described above. For example, the electronic device may also include components that are more... Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown.
[0114] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0115] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0116] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0117] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0118] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0119] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0120] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for executing a business process, characterized in that, include: Receive a service request to be executed, wherein the service request to be executed carries service parameters and operation type, and the operation type corresponds to an execution node; If the execution node meets the preset execution conditions, the parameter type of the business parameter is determined, wherein the preset execution conditions are node execution conditions set in advance for each execution node; Invoke a preset atomic service corresponding to the parameter type, wherein the preset atomic service includes pre-encapsulated execution code; The preset atomic service is executed to obtain the execution result, and the execution result is returned if the execution node has no child nodes; Before receiving the business request to be executed, the process further includes: determining the execution code of the execution node based on the execution content and target source of the execution node, wherein the execution content includes an operation method consistent with the operation type corresponding to the execution node, and the target source is the data source to be operated on; encapsulating the execution code to generate the preset atomic service associated with the execution node, wherein the operation type is adapted to a standardized atomic service interface model, and the standardized atomic service interface model includes a service type name, target source, specific execution method of the execution content, and data format directly used within this framework.
2. The execution method according to claim 1, characterized in that, Before receiving the business request to be executed, it also includes: Configure the service information of the preset atomic service; Based on the service information, a preset process configuration model is constructed; Based on the preset process configuration model, an orchestration business process is configured, wherein the orchestration business process is a process of executing business according to the orchestrated execution order of the execution nodes and the relationship between the execution nodes.
3. The execution method according to claim 2, characterized in that, The service information includes: process information, input parameter list, and process arrangement list. The process information includes: process identifier and process description. The input parameter list includes: input parameter identifier, input parameter type, default value, and filling status. The process arrangement list includes: execution order of execution nodes and the relationship between execution nodes. The execution node includes: node name, parent node, operation type, target source, node execution conditions, execution content, and node remarks.
4. The execution method according to claim 3, characterized in that, The steps for executing the preset atomic service include: Based on the orchestration business process, the preset atomic service is executed using orchestration execution rules, wherein the orchestration execution rules are rules for executing the execution content according to the operation type and the target source, and are used for the judgment of each judgment branch in the orchestration business process.
5. The execution method according to claim 4, characterized in that, The steps of executing the preset atomic service using the orchestration execution rules include: When the parameter type is database type, the execution content in the execution node is transmitted to the preset database indicated by the target source in the execution node, and the execution content is executed in the preset database to complete the execution of the preset atomic service; When the parameter type is an interface type, the execution content in the execution node is transmitted to the preset interface indicated by the target source in the execution node, and the execution content is executed in the preset interface to complete the execution of the preset atomic service; When the parameter type is a process call type, the execution content in the execution node is transmitted to the preset process call indicated by the target source in the execution node, and the execution content is executed in the preset process call to complete the execution of the preset atomic service; When the parameter type is a basic statement type, the execution content in the execution node is transmitted to the preset script interpreter indicated by the target source in the execution node, and the execution content is executed in the preset script interpreter to complete the execution of the preset atomic service; If the parameter type is other than other types, the execution content is executed according to the execution method of the other type to complete the execution of the preset atomic service.
6. The execution method according to claim 1, characterized in that, After executing the preset atomic service and obtaining the execution result, the process also includes: The execution result is stored in a variable memory named after the node name of the execution node; If the execution node has child nodes, the child nodes are executed cyclically based on the result values in the execution results until the result values obtained from executing the child nodes fall within a preset threshold range.
7. A business process execution device, characterized in that, include: A receiving unit is used to receive a service request to be executed, wherein the service request to be executed carries service parameters and an operation type, and the operation type corresponds to an execution node; The determining unit is configured to determine the parameter type of the business parameter when the execution node meets the preset execution conditions, wherein the preset execution conditions are node execution conditions set in advance for each execution node; The invocation unit is used to invoke a preset atomic service corresponding to the parameter type, wherein the preset atomic service includes pre-encapsulated execution code; An execution unit is used to execute the preset atomic service, obtain the execution result, and return the execution result if the execution node has no child nodes; The execution device further includes: a first determining module, configured to determine the execution code of the execution node based on the execution content and target source of the execution node before receiving the business request to be executed, wherein the execution content includes an operation method consistent with the operation type corresponding to the execution node, and the target source is the data source to be operated on; and a first encapsulation module, configured to encapsulate the execution code to generate the preset atomic service associated with the execution node, wherein the operation type is adapted to a standardized atomic service interface model, and the standardized atomic service interface model includes a service type name, a target source, a specific execution method of the execution content, and a data format directly used within this framework.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the computer-readable storage medium is located to perform the execution method of the business process according to any one of claims 1 to 6.
9. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the execution method of the business process according to any one of claims 1 to 6.