Business processing method, device, equipment and storage medium for multi-level organizations

By using cloud-native pipeline interface engine and task creation programs in multi-level organization business systems, the pipelines and tasks are automatically created, and the problems of inefficiency and poor applicability in the existing technology are solved, and efficient business creation and simplified system maintenance are achieved.

CN114090137BActive Publication Date: 2025-09-02CHINA MERCHANTS FINANCE HLDG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111449553.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-30
Publication Date
2025-09-02
Estimated Expiration
2041-11-30

AI Technical Summary

Technical Problem

Existing business systems for multi-level organizations are inefficient, poorly applicable when creating pipelines or tasks, difficult to maintain code, and high participation from professional developers, resulting in code compatibility issues.

Method used

Use cloud-native pipeline interface engine and task creation programs to automatically create target pipelines and tasks, and use cloud-native container clusters for scheduling to avoid code editing and professional developers' participation.

Benefits of technology

Improves the efficiency and applicability of pipelines and task creation, simplifies system maintenance, and avoids compatibility issues for different developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114090137B_ABST
    Figure CN114090137B_ABST
Patent Text Reader

Abstract

The present invention discloses a business processing method, apparatus, device, and storage medium for a multi-level organization. The method comprises: obtaining a target business chain, the target business chain comprising at least two business execution nodes; determining a target execution node from the at least two business execution nodes, and obtaining a target creation request corresponding to the target execution node; if the target creation request is a pipeline creation request, calling a cloud-native-based pipeline interface engine to create a target pipeline corresponding to the target execution node; if the target creation request is a task creation request, calling a cloud-native-based task creation program to create a target task corresponding to the target execution node; and completing the business creation operation of the target business chain based on the target pipelines and / or target tasks corresponding to all the target execution nodes. This method can effectively improve the creation efficiency of target pipelines and / or target tasks, improve their applicability, and facilitate code maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a business processing method, apparatus, device and storage medium for a multi-level organization. Background Art

[0002] In existing business systems for multi-tiered organizations, each business chain consists of at least two business execution nodes. Business needs necessitate the creation of approval or other pipelines, or user-defined tasks, for specific business execution nodes. In existing business systems for multi-tiered organizations, pipeline or task creation requires the involvement of specialized developers. This process is inefficient and lacks adaptability. Furthermore, software code corresponding to pipelines or tasks created by different developers is incompatible, complicating the business system code and hindering code maintenance. Summary of the Invention

[0003] Embodiments of the present invention provide a business processing method, apparatus, device and storage medium for multi-level organizations to solve the problems of low efficiency, poor applicability and difficulty in code maintenance in creating pipelines or tasks in existing business systems for multi-level organizations.

[0004] A business processing method for a multi-level organization, comprising:

[0005] Acquire a target service chain, where the target service chain includes at least two service execution nodes;

[0006] Determine a target execution node from at least two of the service execution nodes, and obtain a target creation request corresponding to the target execution node;

[0007] If the target creation request is a pipeline creation request, calling the cloud-native-based pipeline interface engine to create a target pipeline corresponding to the target execution node;

[0008] If the target creation request is a task creation request, calling a cloud-native-based task creation program to create a target task corresponding to the target execution node;

[0009] Based on the target pipelines and / or target tasks corresponding to all the target execution nodes, the service creation operation of the target service chain is completed.

[0010] A business processing device for a multi-level organization, comprising:

[0011] A target service chain acquisition module is configured to acquire a target service chain, wherein the target service chain includes at least two service execution nodes;

[0012] a target creation request acquisition module, configured to determine a target execution node from at least two of the service execution nodes, and acquire a target creation request corresponding to the target execution node;

[0013] A target pipeline creation module is configured to, if the target creation request is a pipeline creation request, call a cloud-native-based pipeline interface engine to create a target pipeline corresponding to the target execution node;

[0014] A target task creation module is configured to, if the target creation request is a task creation request, call a cloud-native-based task creation program to create a target task corresponding to the target execution node;

[0015] The service creation operation module is used to complete the service creation operation of the target service chain based on the target pipelines and / or target tasks corresponding to all the target execution nodes.

[0016] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the business processing method for multi-level organizations is implemented.

[0017] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned business processing method for multi-level organizations.

[0018] The above-mentioned business processing method, device, equipment and storage medium for multi-level organizations, after determining the target execution node from at least two business execution nodes in the target business chain, can call a pre-set cloud-native-based pipeline interface engine to quickly create a target pipeline corresponding to the target execution node, which helps to improve the efficiency of creating the target pipeline. It can also call a pre-set cloud-native-based task creation task to quickly create a target task corresponding to the target execution node, which helps to improve the efficiency of creating the target task. By adopting a unified cloud-native-based pipeline interface engine or task creation program, any working node in the cloud-native container cluster can be scheduled autonomously, without the need to run a replica node (such as a Slave node) first, and without the need for professional developers to develop, which can improve the applicability of the target pipeline and / or target task creation, and without the need for code editing, it is convenient for system code maintenance, and can avoid the low adaptability and incompatibility problems caused by independent development by different developers. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0020] Figure 1 This is a schematic diagram of an application environment of a business processing method for a multi-level organization according to an embodiment of the present invention;

[0021] Figure 2 This is a flow chart of a business processing method for a multi-level organization in one embodiment of the present invention;

[0022] Figure 3 is another flow chart of a business processing method for a multi-level organization in one embodiment of the present invention;

[0023] Figure 4 is another flow chart of a business processing method for a multi-level organization in one embodiment of the present invention;

[0024] Figure 5 is another flow chart of a business processing method for a multi-level organization in one embodiment of the present invention;

[0025] Figure 6 is another flow chart of a business processing method for a multi-level organization in one embodiment of the present invention;

[0026] Figure 7 is another flow chart of a business processing method for a multi-level organization in one embodiment of the present invention;

[0027] Figure 8 is another flow chart of a business processing method for a multi-level organization in one embodiment of the present invention;

[0028] Figure 9 is a schematic diagram of a business processing device for a multi-level organization according to an embodiment of the present invention;

[0029] Figure 10 FIG. 1 is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0031] The business processing method for multi-level organizations provided by the embodiment of the present invention can be applied as follows: Figure 1 Specifically, the business processing method for multi-level organizations is applied in a business system for multi-level organizations, and the business system for multi-level organizations includes: Figure 1 The client and server shown communicate over a network, creating pipelines or tasks on target business chains corresponding to multiple business execution nodes, completing business creation operations for the target business chains and ensuring efficient processing of these operations. The client, also known as the user end, refers to the program that corresponds to the server and provides local services to clients. The client can be installed on, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented as a standalone server or a server cluster consisting of multiple servers.

[0032] In one embodiment, if Figure 2 As shown, a business processing method for multi-level organizations is provided, which is applied in Figure 1 The server in the example is used as an example, and the steps are as follows:

[0033] S201: Acquire a target service chain, where the target service chain includes at least two service execution nodes;

[0034] S202: Determine a target execution node from at least two service execution nodes, and obtain a target creation request corresponding to the target execution node;

[0035] S203: If the target creation request is a pipeline creation request, the cloud-native-based pipeline interface engine is called to create a target pipeline corresponding to the target execution node;

[0036] S204: If the target creation request is a task creation request, call a cloud-native-based task creation program to create a target task corresponding to the target execution node;

[0037] S205: Based on the target pipelines and / or target tasks corresponding to all target execution nodes, the service creation operation of the target service chain is completed.

[0038] The target business chain refers to the business chain to be created. A business execution node refers to the execution node in the target business chain. A business execution node is the basic unit of the target business chain. For example, the target business chain for software product development includes stages such as software development, software testing, software release, and operations monitoring.

[0039] As an example, in step S201, the server may receive a request from a user client to select a target business chain for which a pipeline or task needs to be created from existing business chains. Alternatively, the server may receive a request from a user client to autonomously select at least two business execution nodes to create and obtain the target business chain. In this example, after obtaining the target business chain, the server may control the client's current page to display the target business chain. An existing business chain refers to a business chain that was established before the current system time.

[0040] The target execution node refers to the business execution node corresponding to the pipeline or task that needs to be created this time. The target creation request refers to the request to create the pipeline or task this time.

[0041] As an example, in step S202, when the server controls the client's current page to display at least two business execution nodes of the target business chain, it can receive a user operation client and determine the target execution node for which the pipeline or task needs to be created from the at least two business execution nodes. After determining the target execution node, a target creation request corresponding to the target execution node can be obtained. The target creation request can be a pipeline creation request or a task creation request. Among them, a pipeline creation request refers to a request for creating a pipeline, for example, a request for creating an approval pipeline or other pipeline. A task creation request is a request for creating a task.

[0042] For example, a target business chain includes at least two business execution nodes, A, B, C, and D. The user can select business execution node A as the target execution node through the client, trigger a create instruction based on the target execution node, select a request type based on the create instruction, and obtain a target creation request. The request type here refers to whether the user chooses to create a pipeline or a task. After selecting target execution node A, right-click on it and select the pipeline type or task type on the prompt interface to form the target creation request.

[0043] The cloud-native pipeline interface engine refers to an interface engine developed based on cloud-native technologies for pipeline creation. It can adapt to any user process, including but not limited to approval pipelines and sub-processes. The target pipeline refers to the pipeline being created.

[0044] As an example, in step S203, when the server recognizes that the target creation request is a pipeline creation request, it can call the cloud-native-based pipeline interface engine to create a target pipeline corresponding to the target execution node. In this example, by calling the cloud-native-based pipeline interface engine, the corresponding pipeline configuration parameters are input into the pipeline interface engine so that the target pipeline corresponding to the target execution node is created based on the pipeline configuration parameters. The target pipeline can be a pipeline that connects to a third-party platform for business processing, or it can be a pipeline that jumps to other processing personnel for processing.

[0045] Among them, the cloud-native-based task creation program is a program developed in advance based on cloud-native technology to implement task creation.

[0046] As an example, in step S204, upon recognizing that the target creation request is a pipeline creation request, the server may invoke a cloud-native task creation program to create a target task corresponding to the target execution node. In this example, by invoking the cloud-native task creation program and entering the user's desired task configuration parameters, the target task can be created by autonomously configuring a custom script or a custom runtime environment for the task.

[0047] As an example, in step S205, after completing the creation of the target pipelines corresponding to all target execution nodes and / or completing the target tasks corresponding to all target execution nodes, the server can complete the business creation operation of the target business chain based on the target pipelines and / or target tasks corresponding to all target execution nodes, and can quickly create target pipelines and / or target tasks in the business execution nodes in the target business chain, thereby improving the creation efficiency of target pipelines and / or target tasks.

[0048] In this example, after determining the target pipelines and / or target tasks corresponding to all target execution nodes, the server determines whether the target execution node simultaneously creates the target pipeline and target task; if the target execution node simultaneously creates the target pipeline and target task, the server obtains the business execution attributes corresponding to the target pipeline and target task, and completes the business creation operation of the target execution node in the target business chain based on the business execution attributes, target pipeline, and target task; if the target execution node does not simultaneously create the target pipeline and target task, the server completes the business creation operation of the target execution node in the target business chain based on the target pipeline or target task corresponding to the target execution node. The business execution attribute is an attribute used to determine whether the target pipeline and target task can be executed in parallel. For example, the business execution attribute can be a dependent execution attribute, that is, an execution attribute that indicates a dependency relationship between the target pipeline and the target task, that is, if either the target pipeline or the target task is executed first, its execution result needs to be used as the input of the latter. It can be understood that when the business execution attribute is a dependent execution attribute, the target execution order between the target pipeline and the target task needs to be configured independently. For another example, a business execution attribute can be a parallel execution attribute, meaning that the target pipeline and target task have no dependencies and can be executed in parallel. Understandably, after a target execution node is created for a target pipeline and a target task, its corresponding business execution attribute must be pre-configured to determine the order in which the target pipeline and target task are executed.

[0049] In the business processing method for multi-level organizations provided by this embodiment, after determining the target execution node from at least two business execution nodes in the target business chain, a pre-set cloud-native-based pipeline interface engine can be called to quickly create a target pipeline corresponding to the target execution node, which helps to improve the efficiency of creating the target pipeline. A pre-set cloud-native-based task creation task can also be called to quickly create a target task corresponding to the target execution node, which helps to improve the efficiency of creating the target task. By adopting a unified cloud-native-based pipeline interface engine or task creation program, any working node in the cloud-native container cluster can be scheduled autonomously without having to run a replica node (such as a Slave node) first, and without the need for professional developers to develop. This can improve the applicability of target pipeline and / or target task creation, and does not require code editing, which facilitates system code maintenance and avoids the problems of low adaptability and incompatibility caused by independent development by different developers.

[0050] In one embodiment, if Figure 3 As shown, step S203, that is, if the target creation request is a pipeline creation request, calling the cloud-native-based pipeline interface engine to create a target pipeline corresponding to the target execution node, includes:

[0051] S301: If the target creation request is a pipeline creation request, obtain the target interface location according to the pipeline creation request;

[0052] S302: Displaying an interface configuration interface of the target interface position, and obtaining pipeline configuration parameters corresponding to the target interface position based on the interface configuration interface;

[0053] S302: Call the cloud-native-based pipeline interface engine, process the pipeline configuration parameters corresponding to the target interface location, and create a target pipeline corresponding to the target execution node.

[0054] The target interface location is the interface location corresponding to the pipeline to be created. Specifically, it corresponds to the target execution node. This can be either an intra-node interface location or an inter-node interface location. An intra-node interface location refers to the interface location embedded within each service execution node during execution. An inter-node interface location refers to the interface location embedded between two adjacent service execution nodes during execution.

[0055] As an example, in step S301, after the server identifies that the target creation request is a pipeline creation request, it can parse and identify the interface location information carried in the pipeline creation request to obtain the target interface location, which can be understood as the interface location where the pipeline needs to be created.

[0056] Among them, the pipeline configuration parameters are parameters that are configured by the user and are related to the pipeline to be created.

[0057] As an example, in step S302, upon recognizing a pipeline creation request, the server can control the client to redirect and display the interface configuration interface corresponding to the target interface location. This interface configuration interface is used for the user to independently configure pipeline configuration parameters. Next, based on the interface configuration interface, the server can receive the pipeline configuration parameters corresponding to the target interface location that the user has independently entered on the interface configuration interface. In this example, the pipeline configuration parameters include parameters such as the interface name, interface location, authentication method, operating environment, and node execution properties.

[0058] As an example, in step S303, the server can call a cloud-native pipeline interface engine to process the pipeline configuration parameters corresponding to the target interface location input by the user, and quickly create a target pipeline corresponding to the target execution node.

[0059] Understandably, the server provides a cloud-native-based pipeline interface engine to facilitate users to independently create pipelines, including but not limited to the creation of target pipelines such as approval processes and sub-pipelines. For example, on any target execution node in the target business chain, the cloud-native-based pipeline engine and the pipeline configuration parameters set by the user are processed to quickly create the target pipeline. Since the system is pre-configured with a cloud-native-based pipeline interface engine, any worker node in the container cluster can be scheduled. Unlike traditional pipeline businesses, there is no need to pre-run Jenkins slave nodes, which helps improve the efficiency and applicability of pipeline creation.

[0060] In one embodiment, if Figure 4 As shown, step S204, that is, if the target creation request is a task creation request, calling the cloud-native task creation program to create the target task corresponding to the target execution node includes:

[0061] S401: If the target creation request is a task creation request, jump to the task configuration interface based on the task creation request;

[0062] S402: Based on the task configuration interface, obtain task configuration parameters, where the task configuration parameters include a target script identifier and a target environment identifier;

[0063] S403: Querying the cloud-native image repository based on the target environment identifier to determine whether the operating environment image corresponding to the target environment identifier is included;

[0064] S404: If the running environment image corresponding to the target environment identifier is included, then based on the target script identifier and the target environment identifier, a target task corresponding to the target execution node is created;

[0065] S405: If the runtime environment image corresponding to the target environment identifier is not included, the runtime environment image is uploaded to the image warehouse, and a target task corresponding to the target execution node is created based on the target script identifier and the target environment identifier.

[0066] As an example, in step S401 , after identifying that the target creation request is a task creation request, the server may control the client to jump to display a task configuration interface, where the task configuration interface is an interface for the user to independently configure task parameters.

[0067] Among them, task configuration parameters are parameters related to the task to be created that are configured by the user. In this example, the task configuration parameters include a target script identifier and a target environment identifier. The target script identifier is an identifier used to uniquely identify the target task script to be called. The target environment identifier refers to the identifier corresponding to the operating environment required by the target task script. The target task script refers to the script used to implement the specific functions of the target task. Furthermore, the task configuration parameters may also include task execution conditions. The task execution conditions refer to the prerequisites for the execution of the target task script.

[0068] As an example, in step S402, after controlling the client to display the task configuration interface, the server can receive the task configuration parameters input by the user on the task configuration interface based on the task configuration interface, that is, obtain task configuration parameters such as the target script identifier and the target environment identifier, so as to complete the creation of the target task according to the task configuration parameters.

[0069] The operating environment image refers to an image file generated based on a certain operating environment.

[0070] As an example, in step S403, when the server obtains task configuration parameters such as the target script identifier and the target environment identifier based on the task configuration interface, it can first query the cloud-native image repository based on the target environment identifier to determine whether the image repository contains the operating environment image corresponding to the target environment identifier, so as to determine whether the target task to be created can be run.

[0071] As an example, in step S404, when the server contains the operating environment image corresponding to the target environment identifier in the cloud-native image warehouse, it means that the operating environment image corresponding to the target environment identifier has been stored before the current time of the system. There is no need to perform an upload operation. The target task corresponding to the target execution node can be created directly based on the target script identifier and the target environment identifier, which helps to ensure the smooth progress of the target task and saves the processing time of the operating environment image upload operation. For example, when the task execution conditions are met, the operating environment image corresponding to the target environment identifier can be loaded to create the target operating environment. In the created target operating environment, the target task script corresponding to the target script identifier is executed.

[0072] As an example, in step S405, when the server does not contain the operating environment image corresponding to the target environment identifier in the cloud-native image warehouse, it means that the operating environment image corresponding to the target environment identifier has not been stored before the current time of the system, and an upload operation needs to be performed, that is, the operating environment image corresponding to the target environment identifier is uploaded to the image warehouse, and then based on the target script identifier and the target environment identifier, the target task corresponding to the target execution node is created, which helps to ensure the smooth progress of the target task. For example, when the task execution conditions are met, the operating environment image corresponding to the target environment identifier can be loaded to create a target operating environment, and the target task script corresponding to the target script identifier is executed under the created target operating environment.

[0073] Understandably, the server provides a cloud-native task creation program to facilitate users to independently configure task configuration parameters such as the target script identifier and target environment identifier, and query whether the operating environment image corresponding to the target environment identifier is stored in the image repository to decide whether the operating environment image needs to be uploaded, which helps to ensure the operability of the created target task.

[0074] In one embodiment, if Figure 5 As shown, after step S205, that is, after the business creation operation of the target business chain is completed based on the target pipelines and / or target tasks corresponding to all target execution nodes, the business processing method for the multi-level organization includes:

[0075] S501: Monitor the node status of all target execution nodes in the target business chain, and determine the target execution node with the node status of "processing" as the current execution node;

[0076] S502: If the current execution node has a target pipeline and a target task, obtain the business execution attribute;

[0077] S503: If the business execution attribute is a dependent execution attribute, obtain the target execution order, execute the target pipeline and the target task in sequence based on the target execution order, and obtain the current execution result corresponding to the current execution node;

[0078] S504: If the business execution attribute is a parallel execution attribute, execute the target pipeline, obtain the pipeline execution result, execute the target task in parallel, obtain the task execution result, and obtain the current execution result corresponding to the current execution node based on the pipeline execution result and the task execution result.

[0079] As an example, in step S501, after completing the service creation operation for the target service chain, the server monitors the node status of each target execution node. The node status can be pending, processing, or completed. In this example, the target execution node in the processing state is determined as the current execution node, i.e., the target execution node that the system needs to execute at the current time.

[0080] As an example, in step S502, after determining the current execution node, the server needs to analyze whether the current execution node contains both the target pipeline and the target task. If the current execution node contains both the target pipeline and the target task, it is necessary to obtain the pre-configured business execution attributes between the target pipeline and the target task, so as to determine the execution mode or execution order between the target pipeline and the target task based on the business execution attributes. The execution mode here can be a serial execution mode or a parallel execution mode. If the current execution node does not contain both the target pipeline and the target task, it means that it only contains the target pipeline, or only contains the target task. Then, the target pipeline can be executed alone to obtain the pipeline execution result; or the target task can be executed alone to obtain the task execution result.

[0081] As an example, in step S503, when the server determines that the business execution attribute corresponding to the current execution node is a dependent execution attribute, it indicates that there is a dependency relationship between the target pipeline and the target task, that is, it is necessary to execute one of the processes first, use the execution result of the previously executed process as the input of the later executed process, and then execute the latter process. In this example, the current execution node A in the target business chain contains both the target pipeline and the target task, and its business execution attribute is a dependent execution attribute. At this time, it is necessary to obtain the target execution order, which is the execution order between the target pipeline and the target task; then, based on the target execution order, the target pipeline and the target task are executed in sequence to obtain the current execution result corresponding to the current execution node to ensure the reliability of the execution of the target pipeline and the target task.

[0082] For example, when the target execution order is that the target pipeline precedes the target task, it means that the execution of the target task needs to depend on the execution result of the target pipeline, that is, it is necessary to execute the target pipeline first to obtain the pipeline execution result of the target pipeline; then use the pipeline execution result as the input of a target task, execute the target task, and obtain the task execution result. For another example, when the target execution order is that the target task precedes the target pipeline, it means that the execution of the target pipeline needs to depend on the execution result of the target task, that is, it is necessary to execute the target task first to obtain the task execution result of the target task; then use the task execution result as the input of the target pipeline, execute the target pipeline, and obtain the pipeline execution result. In this example, the current execution result refers to the result of the last execution process, which can be a task execution result or a pipeline execution result.

[0083] As an example, in step S504, when the server determines that the business execution attribute corresponding to the current execution node is a parallel execution attribute, it indicates that there is no dependency relationship between the target pipeline and the target task, and the two can be executed in parallel, that is, the target pipeline is executed, the pipeline execution result is obtained, the target task is executed in parallel, and the task execution result is obtained, so as to improve the processing efficiency of the target pipeline and the target task. Then, the server can obtain the current execution result corresponding to the current execution node based on the pipeline execution result and the task execution result. For example, when the current execution node A contains both the target pipeline and the target task, its business execution attribute is not a dependent execution attribute, which indicates that the execution of the target task does not need to depend on the execution result of the target pipeline, and the execution of the target pipeline does not need to depend on the execution result of the target task, that is, the target pipeline and the target task can be executed in parallel to improve processing efficiency.

[0084] In one embodiment, if Figure 6 As shown, in step S504, executing the target task and obtaining the task execution result include:

[0085] S601: Obtain a target script identifier and a target environment identifier corresponding to a target task;

[0086] S602: Obtain the current operating environment and determine whether the current operating environment matches the target operating environment corresponding to the target environment identifier;

[0087] S603: If the current operating environment matches the target operating environment, execute the target task script corresponding to the target script identifier to obtain the task execution result;

[0088] S604: If the current operating environment does not match the target operating environment, then based on the target environment identifier, download the operating environment image corresponding to the target environment identifier from the cloud-native image repository, create the target operating environment based on the operating environment image, execute the target task script corresponding to the target script identifier, and obtain the task execution result.

[0089] As an example, in step S601, when the server determines that a target task needs to be executed, it needs to obtain a target script identifier and a target environment identifier corresponding to the target task. The target script identifier is an identifier used to uniquely identify the target task script to be called. The target environment identifier is an identifier corresponding to the operating environment required by the target task script. The target task script is a script used to implement the specific functions of the target task.

[0090] The current operating environment refers to the operating environment of the system at the current time. The target operating environment refers to the operating environment corresponding to the target environment identifier, that is, the operating environment formed by loading the operating environment image corresponding to the target environment identifier.

[0091] As an example, in step S602, the server obtains the current operating environment, and then determines whether the current operating environment matches the target operating environment corresponding to its target environment identifier to determine whether the target task script can be directly executed on the current operating environment.

[0092] As an example, in step S603, when the server detects and determines that the current operating environment matches the target operating environment, it determines that the current operating environment meets the environmental requirements of the target task script corresponding to the target script identifier, and can directly execute the target task script corresponding to the target script identifier on the current operating environment to obtain the task execution result to ensure the operability of the target task script.

[0093] As an example, in step S604, when the server detects and determines that the current operating environment does not match the target operating environment, it determines that the current operating environment does not meet the environmental requirements of the target task script corresponding to the target script identifier, and cannot be directly used in the current operating environment. It is necessary to download the operating environment image corresponding to the target environment identifier from the image repository based on the target environment identifier, load the operating environment image to create the target operating environment corresponding to the target environment identifier, and then execute the target task script corresponding to the target script identifier to obtain the task execution result to ensure the operability of the target task script.

[0094] In one embodiment, if Figure 7 As shown, before step S601, that is, before obtaining the target script identifier and the target environment identifier corresponding to the target task, the business processing method for multi-level organizations further includes:

[0095] S701: Obtaining the task execution conditions corresponding to the target task;

[0096] S702: Obtain the current system operating conditions and determine whether the current system operating conditions meet the task execution conditions;

[0097] S703: If the current system working condition meets the task execution condition, then obtain the target script identifier and target environment identifier corresponding to the target task;

[0098] S704: If the current system working condition does not meet the task execution condition, a condition matching failure message is displayed.

[0099] As an example, in step S701, when the server determines that the target task needs to be executed, it needs to obtain the task execution condition corresponding to the target task. The task execution condition refers to the prerequisite for executing the target task script.

[0100] The current operating condition of the system refers to the operating condition of the system at the current time.

[0101] As an example, in step S702, the server obtains the current operating conditions of the system and determines whether the current operating conditions of the system meet the task execution conditions corresponding to the target task to determine whether the target task can be executed, so as to ensure that the execution of the target task meets its prerequisites and meets user needs.

[0102] As an example, in step S703, when the server determines that the prerequisites for executing the target task are met when the current working conditions of the system meet the task execution conditions, step S601 can be executed, that is, obtaining the target script identifier and target environment identifier corresponding to the target task in order to perform subsequent operations and complete the execution operation of the target task so that the execution of the target task meets its user needs.

[0103] As an example, in step S704, when the server determines that the preconditions for executing the target task are not met, if the current system operating conditions do not meet the task execution conditions, a condition matching failure message may be displayed on the client. This condition matching failure message is a reminder message that the current system operating conditions do not meet the task execution conditions.

[0104] In one embodiment, if Figure 8 As shown, after step S503 or step S504, that is, after obtaining the current execution result corresponding to the current execution node, the business processing method for multi-level organizations further includes:

[0105] S801: Determine whether the current execution node is the last service execution node of the target service chain;

[0106] S802: If the current execution node is the last service execution node of the target service chain, determine the current execution result corresponding to the current execution node as the target execution result of the target service chain;

[0107] S803: If the current execution node is not the last service execution node of the target service chain, the current execution result corresponding to the current execution node is sent to the next service execution node, and the node status of the service execution node in the target service chain is updated.

[0108] As an example, in step S801, after obtaining the current execution result corresponding to the current execution node, the server needs to first determine whether the current execution node is the last business execution node corresponding to the target business chain, so as to determine whether subsequent processing is required.

[0109] As an example, in step S802, when the current execution node is the last business execution node of the target business chain, the server determines that there is no next business execution node after the current execution node. At this time, the current execution result corresponding to the current execution node can be directly determined as the target execution result of the target business chain.

[0110] As an example, in step S803, when the current execution node is the last service execution node in the target service chain, the server determines that there is a next service execution node after the current execution node. At this point, the server sends the current execution result corresponding to the current execution node to the next service execution node, and updates the node status of the service execution nodes in the target service chain, so that step S501 can be subsequently executed, i.e., monitoring the node status of all target execution nodes in the target service chain and determining the target execution node with a node status of "processing" as the current execution node. For example, updating the node status of the service execution nodes in the target service chain includes updating the node status of the current execution node to a processing-completed state and updating the node status of the next service execution node to a processing state.

[0111] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0112] In one embodiment, a business processing device for a multi-level organization is provided. The business processing device for a multi-level organization corresponds to the business processing method for a multi-level organization in the above embodiment. Figure 9 As shown, the business processing device for multi-level organizations includes a target business chain acquisition module 901, a target creation request acquisition module 902, a target pipeline creation module 903, a target task creation module 904 and a business creation operation module 905. The functional modules are described in detail as follows:

[0113] A target service chain acquisition module 901 is configured to acquire a target service chain, where the target service chain includes at least two service execution nodes.

[0114] A target creation request acquisition module 902 is configured to determine a target execution node from at least two service execution nodes and acquire a target creation request corresponding to the target execution node;

[0115] The target pipeline creation module 903 is used to call the cloud-native-based pipeline interface engine to create a target pipeline corresponding to the target execution node if the target creation request is a pipeline creation request;

[0116] A target task creation module 904 is configured to call a cloud-native task creation program to create a target task corresponding to a target execution node if the target creation request is a task creation request;

[0117] The service creation operation module 905 is used to complete the service creation operation of the target service chain based on the target pipelines and / or target tasks corresponding to all target execution nodes.

[0118] In one embodiment, the target creation request acquisition module 902 includes:

[0119] a target interface location acquisition unit, configured to acquire the target interface location according to the pipeline creation request if the target creation request is a pipeline creation request;

[0120] A pipeline configuration parameter acquisition unit, configured to display an interface configuration interface of a target interface position, and acquire pipeline configuration parameters corresponding to the target interface position based on the interface configuration interface;

[0121] The target pipeline creation unit is used to call the cloud-native-based pipeline interface engine, process the pipeline configuration parameters corresponding to the target interface location, and create the target pipeline corresponding to the target execution node.

[0122] In one embodiment, the target pipeline creation module 903 includes:

[0123] A task configuration interface jump unit, configured to jump to a task configuration interface based on the task creation request if the target creation request is a task creation request;

[0124] A task configuration parameter acquisition unit is used to acquire task configuration parameters based on the task configuration interface, where the task configuration parameters include a target script identifier and a target environment identifier;

[0125] An operating environment image determination unit is used to query a cloud-native image repository based on a target environment identifier to determine whether the operating environment image corresponding to the target environment identifier is included;

[0126] A first target task creation unit is configured to create a target task corresponding to a target execution node based on a target script identifier and a target environment identifier if the target environment identifier includes a running environment image corresponding to the target environment identifier;

[0127] The second target task creation unit is used to upload the runtime environment image to the image warehouse if the runtime environment image corresponding to the target environment identifier is not included, and create a target task corresponding to the target execution node based on the target script identifier and the target environment identifier.

[0128] In one embodiment, a business processing device for a multi-level organization includes:

[0129] The current execution node determination unit is used to monitor the node status of all target execution nodes in the target business chain, and determine the target execution node with the node status of "processing" as the current execution node;

[0130] A business execution attribute acquisition unit, configured to acquire business execution attributes if the current execution node has a target pipeline and a target task;

[0131] A first current execution result acquisition unit is configured to acquire a target execution order if the business execution attribute is a dependent execution attribute, execute the target pipeline and the target task in sequence based on the target execution order, and acquire a current execution result corresponding to the current execution node;

[0132] The second current execution result acquisition unit is used to execute the target pipeline, obtain the pipeline execution result, execute the target task in parallel, obtain the task execution result, and obtain the current execution result corresponding to the current execution node based on the pipeline execution result and the task execution result if the business execution attribute is a parallel execution attribute.

[0133] In one embodiment, the second current execution result obtaining unit includes:

[0134] The target identifier acquisition subunit is used to obtain the target script identifier and target environment identifier corresponding to the target task;

[0135] The operating environment matching subunit is used to obtain the current operating environment and determine whether the current operating environment matches the target operating environment corresponding to the target environment identifier;

[0136] The first task execution subunit is configured to execute the target task script corresponding to the target script identifier and obtain the task execution result if the current operating environment matches the target operating environment;

[0137] The second task execution sub-unit is used to download the operating environment image corresponding to the target environment identifier from the cloud-native image repository based on the target environment identifier if the current operating environment does not match the target operating environment, create the target operating environment based on the operating environment image, execute the target task script corresponding to the target script identifier, and obtain the task execution result.

[0138] In one embodiment, the business processing device for a multi-level organization further includes:

[0139] The execution condition acquisition subunit is used to obtain the task execution condition corresponding to the target task;

[0140] The execution condition judgment subunit is used to obtain the current working condition of the system and judge whether the current working condition of the system meets the task execution condition;

[0141] The target identifier acquisition subunit is used to execute and acquire the target script identifier and target environment identifier corresponding to the target task if the current working condition of the system meets the task execution condition;

[0142] The failure message display subunit is used to display a condition matching failure message if the current working condition of the system does not meet the task execution conditions.

[0143] In one embodiment, the business processing device for a multi-level organization further includes:

[0144] A service execution node determination unit, configured to determine whether the current execution node is the last service execution node of the target service chain;

[0145] a target execution result determining unit, configured to determine, if the current execution node is the last service execution node of the target service chain, the current execution result corresponding to the current execution node as the target execution result of the target service chain;

[0146] The node status updating unit is used to send the current execution result corresponding to the current execution node to the next business execution node if the current execution node is not the last business execution node in the target business chain, and update the node status of the business execution node in the target business chain.

[0147] The specific definition of the business processing device for a multi-level organization can be found in the definition of the business processing method for a multi-level organization described above and will not be repeated here. The various modules in the above-mentioned business processing device for a multi-level organization can be implemented in whole or in part through software, hardware, or a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0148] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 10 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. 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 execute data adopted or generated in the process of a business processing method for a multi-level organization. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a business processing method for a multi-level organization is implemented.

[0149] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the business processing method for a multi-level organization in the above embodiment is implemented, for example: Figure 2 S201-S205 shown, or Figures 3 to 9Alternatively, when the processor executes the computer program, the functions of the modules / units in the embodiment of the business processing device for multi-level organizations are realized, for example Figure 9 The functions of the target business chain acquisition module 901, the target creation request acquisition module 902, the target pipeline creation module 903, the target task creation module 904 and the business creation operation module 905 are not described here in detail to avoid repetition.

[0150] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the business processing method for a multi-level organization in the above embodiment is implemented, for example Figure 2 S201-S205 shown, or Figures 3 to 9 Alternatively, when the computer program is executed by a processor, the functions of the modules / units in the embodiment of the business processing device for multi-level organizations are realized, for example Figure 9 The functions of the target business chain acquisition module 901, the target creation request acquisition module 902, the target pipeline creation module 903, the target task creation module 904 and the business creation operation module 905 are not described here in detail to avoid repetition.

[0151] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, which 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 memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0152] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0153] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.

Claims

1. A business processing method for a multi-level organization, characterized in that: include: Acquire a target service chain, where the target service chain includes at least two service execution nodes; Determine a target execution node from at least two of the service execution nodes, and obtain a target creation request corresponding to the target execution node; If the target creation request is a pipeline creation request, the cloud-native-based pipeline interface engine is called to obtain the target interface location according to the pipeline creation request. The target interface location is the interface location corresponding to the pipeline to be created this time, so as to process the pipeline configuration parameters corresponding to the target interface location and create the target pipeline corresponding to the target execution node. The cloud-native-based pipeline interface engine refers to an interface engine pre-developed based on cloud-native technology for realizing pipeline creation, which can adapt to any process of the user; If the target creation request is a task creation request, a cloud-native task creation program is called, and task configuration parameters are obtained according to the pipeline creation request, where the task configuration parameters include a target environment identifier and a target script identifier. Based on the target environment identifier, a cloud-native image repository is queried to determine whether the operating environment image corresponding to the target environment identifier is included, so as to create a target task corresponding to the target execution node. If the operating environment image corresponding to the target environment identifier is included, the target task corresponding to the target execution node is created based on the target script identifier and the target environment identifier. If the operating environment image corresponding to the target environment identifier is not included, the operating environment image is uploaded to the image repository, and the target task corresponding to the target execution node is created based on the target script identifier and the target environment identifier. Based on the target pipelines and / or target tasks corresponding to all the target execution nodes, the service creation operation of the target service chain is completed.

2. The business processing method for multi-level organizations according to claim 1, characterized in that: If the target creation request is a pipeline creation request, the cloud-native-based pipeline interface engine is called to obtain the target interface location according to the pipeline creation request. The target interface location is the interface location corresponding to the pipeline to be created this time, and the pipeline configuration parameters corresponding to the target interface location are processed to create the target pipeline corresponding to the target execution node, including: If the target creation request is a pipeline creation request, obtaining a target interface location according to the pipeline creation request; Displaying an interface configuration interface of the target interface position, and acquiring pipeline configuration parameters corresponding to the target interface position based on the interface configuration interface; The cloud-native-based pipeline interface engine is called to process the pipeline configuration parameters corresponding to the target interface position and create a target pipeline corresponding to the target execution node.

3. The business processing method for multi-level organizations according to claim 1, characterized in that: If the target creation request is a task creation request, a cloud-native task creation program is called to obtain task configuration parameters according to the pipeline creation request, wherein the task configuration parameters include a target environment identifier and a target script identifier, and a cloud-native image repository is queried based on the target environment identifier to determine whether the operating environment image corresponding to the target environment identifier is included, so as to create a target task corresponding to the target execution node; if the operating environment image corresponding to the target environment identifier is included, the target task corresponding to the target execution node is created based on the target script identifier and the target environment identifier; If the operating environment image corresponding to the target environment identifier is not included, uploading the operating environment image to the image repository, and creating a target task corresponding to the target execution node based on the target script identifier and the target environment identifier, including: If the target creation request is a task creation request, jump to the task configuration interface based on the task creation request; Based on the task configuration interface, obtaining task configuration parameters, the task configuration parameters including a target script identifier and a target environment identifier; Querying a cloud-native image repository based on the target environment identifier to determine whether the operating environment image corresponding to the target environment identifier is included; If the operating environment image corresponding to the target environment identifier is included, then based on the target script identifier and the target environment identifier, a target task corresponding to the target execution node is created; If the operating environment image corresponding to the target environment identifier is not included, the operating environment image is uploaded to the image warehouse, and a target task corresponding to the target execution node is created based on the target script identifier and the target environment identifier.

4. The business processing method for multi-level organizations according to claim 1, characterized in that: After completing the business creation operation of the target business chain based on the target pipelines and / or target tasks corresponding to all the target execution nodes, the business processing method for a multi-level organization includes: Monitor the node status of all target execution nodes in the target service chain, and determine the target execution node with a node status of "processing" as the current execution node; If the current execution node is provided with the target pipeline and the target task, obtaining a service execution attribute; If the business execution attribute is a dependent execution attribute, a target execution order is obtained, and based on the target execution order, the target pipeline and the target task are executed in sequence to obtain a current execution result corresponding to the current execution node; If the business execution attribute is a parallel execution attribute, execute the target pipeline, obtain the pipeline execution result, execute the target task in parallel, obtain the task execution result, and based on the pipeline execution result and the task execution result, obtain the current execution result corresponding to the current execution node.

5. The business processing method for multi-level organizations according to claim 4, characterized in that: The executing the target task and obtaining the task execution result includes: Obtaining a target script identifier and a target environment identifier corresponding to the target task; Obtaining the current operating environment, and determining whether the current operating environment matches the target operating environment corresponding to the target environment identifier; If the current operating environment matches the target operating environment, executing the target task script corresponding to the target script identifier to obtain the task execution result; If the current operating environment does not match the target operating environment, based on the target environment identifier, the operating environment image corresponding to the target environment identifier is downloaded from the cloud-native image repository, and based on the operating environment image, the target operating environment is created, and the target task script corresponding to the target script identifier is executed to obtain the task execution result.

6. The business processing method for multi-level organizations according to claim 5, characterized in that: Before acquiring the target script identifier and the target environment identifier corresponding to the target task, the business processing method for a multi-level organization further includes: acquiring a task execution condition corresponding to the target task; Obtaining the current operating condition of the system and determining whether the current operating condition of the system meets the task execution conditions; If the current working condition of the system meets the task execution condition, then obtaining the target script identifier and target environment identifier corresponding to the target task; If the current operating condition of the system does not meet the task execution condition, a condition matching failure message is displayed.

7. The business processing method for multi-level organizations according to claim 4, characterized in that: After obtaining the current execution result corresponding to the current execution node, the business processing method for a multi-level organization further includes: Determine whether the current execution node is the last service execution node of the target service chain; If the current execution node is the last service execution node of the target service chain, determining the current execution result corresponding to the current execution node as the target execution result of the target service chain; If the current execution node is not the last service execution node of the target service chain, the current execution result corresponding to the current execution node is sent to the next service execution node to update the node status of the service execution node in the target service chain.

8. A business processing device for multi-level organizations, characterized in that: include: A target service chain acquisition module is configured to acquire a target service chain, wherein the target service chain includes at least two service execution nodes; a target creation request acquisition module, configured to determine a target execution node from at least two of the service execution nodes, and acquire a target creation request corresponding to the target execution node; A target pipeline creation module is configured to, if the target creation request is a pipeline creation request, call a cloud-native-based pipeline interface engine, obtain a target interface location according to the pipeline creation request, where the target interface location is the interface location corresponding to the pipeline to be created this time, process the pipeline configuration parameters corresponding to the target interface location, and create a target pipeline corresponding to the target execution node. The cloud-native-based pipeline interface engine refers to an interface engine pre-developed based on cloud-native technology for implementing pipeline creation, which can adapt to any user's process; A target task creation module is configured to, if the target creation request is a task creation request, call a cloud-native-based task creation program, obtain task configuration parameters according to the pipeline creation request, the task configuration parameters including a target environment identifier and a target script identifier, and query a cloud-native-based image repository based on the target environment identifier to determine whether the operating environment image corresponding to the target environment identifier is included, so as to create a target task corresponding to the target execution node; if the operating environment image corresponding to the target environment identifier is included, create a target task corresponding to the target execution node based on the target script identifier and the target environment identifier; if the operating environment image corresponding to the target environment identifier is not included, upload the operating environment image to the image repository, and create a target task corresponding to the target execution node based on the target script identifier and the target environment identifier; The service creation operation module is used to complete the service creation operation of the target service chain based on the target pipelines and / or target tasks corresponding to all the target execution nodes.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the business processing method for a multi-level organization according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the business processing method for a multi-level organization as claimed in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Service processing method and device

    CN111897815A

  • Assembly line processing method and device and storage medium

    CN113126961A