Application flow deployment method and device, computer device, readable storage medium and program product

By obtaining the initial process template of the template tag and performing detailed configuration and verification, the target application process that meets business needs is generated, which solves the efficiency problem of CI/CD tools in complex deployment scenarios and achieves efficient and reliable application process deployment.

CN119002941BActive Publication Date: 2025-11-07CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411085641.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2025-11-07
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Existing CI/CD tools cannot function effectively when faced with complex deployment scenarios and massive deployment tasks, resulting in poor deployment results.

Method used

By obtaining the initial process template corresponding to the template tag, the initial application process is generated according to the configuration information, and its integrity and business rules are verified to ensure that the structure and logic of the process match the business requirements, and finally the target application process is deployed.

Benefits of technology

It enables efficient and reliable application process deployment, ensuring the reliability and correctness of the process, reducing deployment risks, and possessing high adaptability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119002941B_ABST
    Figure CN119002941B_ABST
Patent Text Reader

Abstract

The application discloses an application flow deployment method and device, computer equipment, a computer readable storage medium and a computer program product, and particularly relates to the field of big data. The method comprises the following steps: obtaining configuration information, the configuration information carrying a template label; obtaining an initial flow template corresponding to the template label, and generating an initial application flow according to the initial flow template and the configuration information; the initial application flow comprises a plurality of task nodes; each task node in the initial application flow is configured according to the configuration information to obtain a target application flow; the target application flow is subjected to integrity verification and business rule verification, and the target application flow is deployed when the verification is passed. The process of generating the initial application flow comprises the following steps: obtaining the initial flow template corresponding to the template label from a template library; and updating the initial flow template according to a flow structure in the configuration information to obtain the initial application flow. The method can efficiently realize automatic deployment.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of big data, and in particular, to an application process deployment method and device, computer equipment, computer readable storage medium, and computer program product. BACKGROUND

[0002] In modern software development and operation, automated deployment has become a key factor in improving efficiency and reducing errors. With the increasing complexity of application programs and deployment tasks, the limitations of manual operation become increasingly significant. Automated deployment can effectively address these challenges and solve common problems in traditional manual deployment.

[0003] Currently, continuous integration (CI) and continuous delivery (CD) have become core tools for improving the efficiency and quality of application process deployment. Continuous integration allows developers to frequently submit code and promptly identify and resolve errors through automated building, testing, and deployment, thereby ensuring software stability and reliability. Continuous delivery further promotes the entire software delivery process based on continuous integration, optimizing the release process, shortening delivery time, reducing human error, and improving software quality.

[0004] Although CI / CD tools can simplify and automate some deployment tasks, they face challenges when dealing with complex deployment scenarios and a large number of deployment tasks. For example, when there are deployment processes with complicated operation steps and multiple roles involved, they cannot be effectively executed, thereby affecting the final deployment results. SUMMARY

[0005] Therefore, it is necessary to provide an application process deployment method, device, computer equipment, computer readable storage medium, and computer program product that can efficiently perform automated deployment to address the above technical problems.

[0006] In a first aspect, the present application provides an application process deployment method, comprising:

[0007] obtaining configuration information, wherein the configuration information carries a template label;

[0008] obtaining an initial process template corresponding to the template label, and generating an initial application process based on the initial process template and the configuration information; the initial application process comprises a plurality of task nodes;

[0009] configuring each task node according to the configuration information to obtain a target application process;

[0010] performing integrity verification and business rule verification on the target application process;

[0011] deploy the target application flow when the integrity verification and the business rule verification are passed; the method comprises:

[0012] obtaining an initial flow template corresponding to the template label from a template library;

[0013] updating the initial flow template according to a flow structure in the configuration information to obtain the initial application flow.

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

[0015] obtaining a function requirement and a task requirement in the configuration information;

[0016] obtaining a node template of each node corresponding to the function requirement and a task template of each task node corresponding to the task requirement;

[0017] configuring the task node template based on the function requirement and configuring the task template based on the task requirement;

[0018] obtaining the target application flow based on the configured node template, the task template and the initial application flow.

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

[0020] saving the target application flow, the configured node template and the configured task template to the template library.

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

[0022] generating a storage path according to a group identifier, a template label and a version number corresponding to the target application flow;

[0023] storing the target application flow and the group identifier, the template label and the version number corresponding to the target application flow into a preset configuration file;

[0024] saving the preset configuration file to the template library according to the storage path.

[0025] In one embodiment, the integrity verification of the target application flow comprises:

[0026] acquire a verification comparison file from a same path of the initial flow template;

[0027] perform calculation on the initial flow template based on the hash algorithm to obtain a reference verification file;

[0028] verify the target application flow based on the verification comparison file and the reference verification file.

[0029] In one of the embodiments, the business rule verification on the target application flow comprises:

[0030] verify a connection order of each of the task nodes in the target application flow and an output parameter of each of the task nodes.

[0031] In the second aspect of the present application, an application flow deployment device is provided, and the device comprises:

[0032] an acquisition module configured to acquire configuration information, wherein the configuration information carries a template label;

[0033] a flow generation module configured to acquire an initial flow template corresponding to the template label and generate an initial application flow according to the initial flow template and the configuration information, wherein the initial application flow comprises a plurality of task nodes;

[0034] a configuration module configured to configure each of the task nodes according to the configuration information to obtain a target application flow;

[0035] a verification module configured to perform integrity verification and business rule verification on the target application flow;

[0036] a deployment module configured to perform integrity verification and business rule verification on the target application flow, and if the integrity verification and the business rule verification are passed, publish the target application flow;

[0037] the flow generation module comprises:

[0038] a first template acquisition unit configured to acquire an initial flow template corresponding to the template label from a template library;

[0039] a template updating unit configured to update the initial flow template according to a flow structure in the configuration information to obtain the initial application flow.

[0040] In one of the embodiments, the configuration module comprises:

[0041] a requirement acquisition unit configured to acquire a functional requirement and a task requirement in the configuration information;

[0042] The second template obtaining unit is configured to obtain a node template of each task node corresponding to the function requirement and a task template of each task node performing a corresponding task corresponding to the task requirement;

[0043] The information configuring unit is configured to configure the node template based on the function requirement and configure the task template based on the task requirement.

[0044] The flow obtaining unit is configured to obtain the target application flow based on the configured task node template, the task template and the initial application flow.

[0045] In one of the embodiments, the configuration module further comprises:

[0046] The template saving unit is configured to save the target application flow, the configured node template and the configured task template to the template library.

[0047] In one of the embodiments, the template saving unit comprises:

[0048] The path generating sub-unit is configured to generate a storage path according to the group identifier, the template label and the version number corresponding to the target application flow;

[0049] The file generating sub-unit is configured to store the target application flow and the group identifier, the template label and the version number corresponding to the target application flow into a preset configuration file respectively;

[0050] The saving unit is configured to save the preset configuration file to the template library according to the storage path.

[0051] In one of the embodiments, the verification module comprises:

[0052] The verification obtaining unit is configured to obtain a first check code in the initial flow template and a verification file from the same path of the initial flow template;

[0053] The first check unit is configured to calculate the verification file based on a hash algorithm to obtain a second check code and verify the target application flow based on the first check code and the second check code.

[0054] In one of the embodiments, the verification module further comprises:

[0055] The second check unit is configured to verify the connection order of each task node in the target application flow and the output parameter of each task node.

[0056] In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described above when executing the computer program.

[0057] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the method described above when executed by a processor.

[0058] In a fifth aspect, the present application provides a computer program product, comprising a computer program, and the computer program implements the steps of the method described above when executed by a processor.

[0059] The application flow deployment method, device, computer device, computer readable storage medium and computer program product described above can obtain an initial flow template corresponding to a template label, and generate an initial application flow according to the initial flow template and configuration information, so as to ensure the correctness of the basic structure and logic of the initial flow. The initial flow template is standardized designed and verified, and can provide a reliable basic framework. The initial flow template is updated according to the configuration information, so as to ensure that the structure and logic of the flow match the specific business requirements. Then, each task node is configured according to the configuration information to obtain a target application flow, so as to ensure that the target application flow is customized and meets the business requirements. Through such detailed configuration, the target application flow not only has the advantages of the standard flow, but also has high adaptability and flexibility. Finally, the target application flow is deployed after integrity verification and business rule verification, so as to ensure the reliability and correctness of the flow and minimize the deployment risk. BRIEF DESCRIPTION OF DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor.

[0061] Figure 1 A flowchart of an application flow deployment method in an embodiment;

[0062] Figure 2 A target flow diagram in an embodiment;

[0063] Figure 3 An e-commerce virtual item transaction flow diagram in an embodiment;

[0064] Figure 4A structural block diagram of an application flow deployment device in an embodiment;

[0065] Figure 5 An internal structural diagram of a computer device in an embodiment. DETAILED DESCRIPTION

[0066] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0067] It should be noted that in the embodiments of the present application, some software, groups, models and other industry existing solutions may be mentioned, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but does not mean that the applicant has or will necessarily use the solution.

[0068] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations. The acquisition, storage, use, processing and other data in the technical solutions of the present application comply with the relevant regulations of national laws and regulations.

[0069] In an embodiment, as shown in Figure 1 An application flow deployment method is provided, and the embodiment is exemplified by applying the method to a terminal. It should be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and can be realized through the interaction of the terminal and the server. In the embodiment, the method includes the following steps:

[0070] In step S102, configuration information is acquired, and the configuration information carries a template label.

[0071] The template tag is an identifier used to uniquely identify a template. It is usually composed of three elements, including the group identifier (groupId), the template identifier (moduleId), and the version number (version). The group identifier is usually the reverse domain name of the company or organization. For example, if the domain name of the company is example.com, the groupId can be com.example; the template identifier refers to the specific name of the template and can only contain letters, numbers, hyphens, and underscores. For example, webapp-deploy; the version number refers to the version number of the template and is used to distinguish different versions of the template. For example, 1.0.0. Combined, a template tag can be com.example.webapp-deploy:1.0.0.

[0072] The configuration information refers to detailed information used to define and guide the generation of the process and the configuration of the tasks. The configuration information usually includes the template tag, the process structure, the functional requirements, and the task requirements. The process structure defines the steps and order of the entire process; the functional requirements define the functions of each task node, such as checking the environment, deploying the database, etc.; the task requirements define the specific indicators and requirements when each functional module executes the task.

[0073] For example, if the worker needs to build a target application process, he or she can select the corresponding template, process, function, and task according to the requirements by selecting the drop-down option box in the corresponding pop-up interface. After the worker selects the corresponding template, process, function, and task, the front-end page sends the configuration information and template tag to the back-end, which generates the corresponding target application process according to the configuration information and template tag.

[0074] Step S104, obtaining an initial process template corresponding to the template tag, and generating an initial application process according to the initial process template and the configuration information; the initial application process includes a plurality of task nodes.

[0075] After receiving the template tag, the template library is connected to find the corresponding initial process template according to the template tag. The directory structure of the template library can be groupId / moduleId / version / moduleId-version.

[0076] The directory of the template library is generated according to the template tag.

[0077] When the template file is searched, for example, the template file is webapp-deploy-1.0.0.par, and is decompressed, the initial process template (such as a BPMN 2.0 file) and the configuration file (such as a plugin.xml) contained are obtained. The BPMN 2.0 file is parsed, all task nodes in the initial process template and their relationships are read, the connections between the nodes are checked, and it is ensured that the basic structure of the process is complete. The plugin.xml file is read and parsed, and configuration variables, environment variables, file resources, and other information are obtained.

[0078] Further, the initial process template is updated according to the process structure in the configuration information, and an initial application process is obtained.

[0079] According to the process structure in the configuration information, the initial process template is adjusted, nodes are added or deleted, and the node connection relationship is updated, so as to meet the specific business requirements. After the above updating, an initial application process suitable for the current business requirements is obtained.

[0080] In step S106, each task node is configured according to the configuration information, and a target application process is obtained.

[0081] According to the functional requirements and task requirements in the configuration information, each task node is initialized and configured. The input and output of each node are set, including the output of the previous node and the calculation result. If a specific task needs to be performed for a node, a task module is configured for the node, and the input and output thereof are set.

[0082] For example, the following is a deployment of a Web application deployment process. Template label: com.example.

[0083] webapp-deploy:1.0.0, the webapp-deploy-1.0.0.par is obtained from the template library, and the initial process template is obtained by decompression. The initial process template includes node environment check, database deployment, application deployment, and testing. The initial process template is parsed, and all task nodes and their relationships are read. According to the configuration information, each task node is configured, and the input and output are set. The functional requirements include environment check and database deployment, and the task requirements include success rate > 99% and response time < 200ms.

[0084] For example, the following is a deployment of a data processing process. Template label: com.example.data-proce

[0085] ssing:2.0.0, obtaining data-processing-2.0.0.par from the template library, and decompressing to obtain an initial process template. The initial process template includes node data import, data cleaning, data analysis, and result export. The initial process template is parsed to read all task nodes and their relationships. According to the configuration information, each task node is configured to set the input and output. Among them, the functional requirements include data cleaning and data analysis, and the task requirements include data accuracy > 95% and processing time < 1 hour.

[0086] For example, in combination with Figure 2 , Figure 2 is a schematic diagram of a target process in an embodiment. It includes six nodes, namely, configuration template, route scheduling module, template storage module, task execution module, result verification module, and message notification module.

[0087] Step S108, integrity verification and business rule verification are performed on the target application process.

[0088] Optionally, the initial process template can be verified by comparing a verification comparison file, such as a sha512 file. Then, the target application process is verified for integrity according to the verification comparison file.

[0089] Optionally, the connection order of the business connection is verified to ensure compliance with the business logic, and the output parameters of the task nodes are verified to ensure compliance with the business rule requirements.

[0090] In this embodiment, the purpose of completing the integrity verification and business rule verification of the target application process is to ensure the accuracy of the process and to ensure business compliance. At the same time, it can also improve the efficiency of process management.

[0091] Step S110, if the integrity verification and business rule verification are both passed, then the target application process is deployed.

[0092] In the case where the integrity verification and business rule verification are both passed, the target application process is deployed to the specified environment to ensure that all nodes and tasks are executed as expected.

[0093] Optionally, the deployment process can also be monitored in real time to discover and handle possible problems in a timely manner.

[0094] In the application flow deployment method, the initial flow template corresponding to the template label is acquired, and the initial application flow is generated according to the initial flow template and the configuration information, so that the basic structure and logic of the initial flow can be ensured to be correct. The initial flow template is standardized designed and verified, and can provide a reliable basic framework. The initial flow template is updated according to the configuration information, so that the structure and logic of the flow can be ensured to match the specific business requirements. Then, each task node is configured according to the configuration information, and the target application flow is obtained, so that the target application flow can be customized and meet the business requirements. Through the detailed configuration, the target application flow not only has the advantages of the standard flow, but also has high adaptability and flexibility. Finally, the target application flow is deployed after the integrity verification and the business rule verification, so that the reliability and correctness of the flow can be ensured, and the deployment risk can be reduced to the greatest extent.

[0095] In one of the embodiments, the initial flow template corresponding to the template label is acquired, and the initial application flow is generated according to the initial flow template and the configuration information; including: acquiring the initial flow template corresponding to the template label from the template library; updating the initial flow template according to the flow structure in the configuration information to obtain the initial application flow.

[0096] The template library includes the initial flow template that is standardized designed and verified, and provides a reliable basic framework for generating the target application flow. After the target application flow is obtained, the target application flow can also be saved as a template in the template library.

[0097] Optionally, the initial flow template can be drawn in advance using a flow designer. First, all nodes of the current deployment job are drawn using the flow designer, and all nodes are connected in the order of event occurrence through the connection line of the standard flow engine; the flow can support multiple parallel operations, rollback to any node, and the like.

[0098] Optionally, the flow structure in the configuration information is read and parsed, the initial flow template corresponding to the template label is acquired from the template library, each node and flow structure in the initial flow template are modified, added or deleted according to the parsed flow structure, and finally the initial application flow meeting the business requirements is generated based on the updated initial flow template.

[0099] Further, in the process of updating the initial process template according to the process structure, operations of adding nodes, deleting nodes, modifying node attributes, and updating connections and conditions can be performed. The adding nodes and deleting nodes are not described in detail herein. The modifying node attributes is to update the attributes of each node in the initial process template according to the configuration information, such as task name, execution condition, input and output parameters, and the like. The updating connections and conditions is to adjust the connection relationship and condition judgment between task nodes according to the configuration information, to ensure that the process logic meets the business requirements.

[0100] For example, in combination with Figure 3 , Figure 3 The initial process template includes four nodes of order creation, order payment, order delivery, and order completion. At this time, an order audit node can be added after the order creation and before the order payment, and the order delivery process can be deleted because it is a virtual product and does not need to be delivered. In addition, the payment method attribute of the order payment node can be changed to support multiple payment methods, such as Alipay, WeChat payment, and credit card. Finally, the connections and conditions are modified, and after the order audit passes, the order payment node is entered. In this embodiment, the updated process includes order creation, order audit, order payment, and order completion.

[0101] In the above embodiment, the initial process template is updated according to the process structure in the configuration information, which can ensure that the generated initial application process has the advantages of standardized process and can flexibly adapt to specific business requirements.

[0102] In one of the embodiments, each task node is configured according to the configuration information to obtain a target application process, including: obtaining the functional requirements and task requirements in the configuration information; obtaining the node templates of each task node corresponding to the functional requirements and the task templates of each task node corresponding to the task requirements; configuring the task node templates based on the functional requirements and configuring the task templates based on the task requirements; and obtaining the target application process based on the configured node templates, task templates, and initial application process.

[0103] The functional requirements are used to define the specific functions of each task node, such as "user authentication", "data processing", "sending notification", and the like; and the task requirements are used to define the specific indicators and parameters when each task node executes a task, such as whether the authentication method of the "user authentication" node is a password or a fingerprint, the data source and processing method of the "data processing" node, and the like.

[0104] The node template refers to a predefined node configuration template; and the task template refers to a predefined task configuration template, including detailed configurations and parameters of task execution.

[0105] Optionally, the attributes and configurations of the node templates are adjusted according to the functional requirements, for example, the authentication mode is configured for the "user authentication" node, and the data source and processing method are configured for the "data processing" node.

[0106] Optionally, the specific execution parameters and indicators of the task templates are adjusted according to the task requirements, for example, the notification mode such as short message and email is configured for the "sending notification" task, and the data processing rule and condition are configured for the "data processing" task.

[0107] Continuing to combine the example of the e-commerce virtual commodity transaction process in the above embodiment, the target application process includes four nodes of user ordering, order payment, and order auditing. The functional requirements corresponding to the user ordering node include product selection, quantity determination, and delivery address filling. The task requirements include whether the delivery address is correct, whether the quantity is limited by inventory, and the accuracy and real-time of the product information. The functional requirements corresponding to the order payment include supporting multiple payment methods such as Alipay, WeChat payment, and credit card. The task requirements include whether the amount is normal, and data encryption and secure transmission during the payment process. The functional requirements corresponding to the order auditing include manual auditing. The task requirements include verifying the registration information of the buyer and the seller to ensure the authenticity and consistency of the information.

[0108] For example, the configuration of the user ordering node is to obtain the user ordering node template from the node template library, configure the product selection, quantity determination, and delivery address filling according to the functional requirements, and configure according to whether the delivery address is correct, whether the quantity is limited by inventory, and the accuracy and real-time of the product information included in the task requirements.

[0109] In the above embodiment, the standardized initial process template can be effectively converted into the target application process that meets the specific business requirements, ensuring the executability and efficiency of the process.

[0110] In one of the embodiments, the above method further includes saving the target application process to the template library.

[0111] In this embodiment, the target application process is saved to the template library for next use.

[0112] Further, in one of the embodiments, the above saving of the target application process, the configured node templates, and the configured task templates to the template library includes: generating a storage path according to the grouping identifier, the template label, and the version number corresponding to the target application process; storing the target application process and the grouping identifier, the template label, and the version number corresponding to the target application process into a preset configuration file; and saving the preset configuration file to the template library according to the storage path.

[0113] The preset configuration file is a par file. The par file can be a compressed file format, and is usually used to store a volume compressed package of software. The file format can help a user effectively save storage space.

[0114] For example, the storage path is generated according to the group identifier, the template label and the version number, wherein the “.” in the group identifier is replaced by a file path symbol “ / ”. The storage path is groupId / moduleId / version / moduleId-version.par.

[0115] Optionally, the target application flow and the generated plugin.xml file are packaged into a par file, and the plugin.xml file is placed in the META-INF directory of the par file. The plugin.xml file is a self-description file of the target application flow. The self-description file is generated according to the group identifier, the template label, the version number, description information, author information, an organization to which the self-description file belongs, a creation time, a template type, required dependency information, output information and an MD5 or SHA-512 check code of a required resource file.

[0116] In other embodiments, a node storage path can be generated according to the group identifier, the template label and the version number corresponding to the configured node template, and the configured node template and the group identifier, the template label and the version number corresponding to the configured node template can be packaged into a node preset configuration file, and the node preset configuration file can be saved according to the node storage path. The generation manner of the self-description file of the node template is consistent with that of the target application flow, and will not be repeatedly described herein.

[0117] Similarly, in another embodiment, a task storage path can be generated according to the group identifier, the template label and the version number corresponding to the configured task template, and the configured task template and the group identifier, the template label and the version number corresponding to the configured task template can be packaged into a task preset configuration file, and the task preset configuration file can be saved according to the task storage path. The generation manner of the self-description file of the task template is consistent with that of the target application flow, and will not be repeatedly described herein.

[0118] Exemplarily, the grouping identifier of the above-mentioned e-commerce virtual item transaction process is com.ccb.demo, the template label is order-process, and the version number is 1.0.0. The groupId replacement path is: com / ccb / demo, and the generated path is: com / ccb / demo / order-process / 1.0.0 / order-process-1.0.0.par. The target application process and the plugin.xml file are packaged into the order-process-1.0.0.par file. The plugin.xml file is placed under the META-INF directory of the par file. The par file, the plugin.xml file, and the SHA check file are saved to the corresponding path.

[0119] In the above-mentioned embodiments, the configured node template and the task template are saved to the template library, which can be reused in future projects, reducing the workload of repeated configuration and improving the development efficiency.

[0120] In one of the embodiments, the integrity verification of the target application process includes: obtaining a verification comparison file from the same path of the initial process template; calculating the initial process template based on a hash algorithm to obtain a reference check file; and verifying the target application process based on the verification comparison file and the reference check file.

[0121] Optionally, the verification comparison file is obtained from the same path of the initial process template. The file stores the hash value of the initial process template, which is used to verify the integrity of the template. The verification comparison file is usually a.sha512 file. The initial process template is calculated based on a hash algorithm to obtain a reference check file. The reference check file contains the calculated hash value, which is used for comparison with the hash value in the verification comparison file. The target application process is verified based on the hash value in the verification comparison file and the hash value in the reference check file. It is ensured that the target application process has not been tampered with or damaged.

[0122] Exemplarily, the file path of the initial process template is / templates / initial-template.bpmn, and the corresponding verification comparison file path is / templates / initial-template.sha512. The initial process template file initial-template.bpmn is calculated using a hash algorithm, such as SHA-512, to obtain a reference check file. The hash value in the verification comparison file is compared with the hash value in the reference check file. If the two match, it means that the integrity of the target application process has been verified and has not been tampered with or damaged.

[0123] In the above embodiments, the hash value check ensures that the process template and the application process are not tampered or damaged during transmission and storage, ensuring the reliability and security of the process.

[0124] In one embodiment, the business rule verification of the target application process includes verifying the connection order of each task node and the output parameters of each task node in the target application process.

[0125] The connection order is verified to ensure that the connection order of each task node in the target application process conforms to the business logic, avoiding logical errors or process abnormalities.

[0126] The output parameters of each task node are verified to ensure that they can be correctly passed to the next task node and conform to the business requirements and expected format.

[0127] For example, continuing with the example of the e-commerce virtual item transaction process, order creation should be connected to order review, order review should be connected to order payment, and order payment should be connected to order completion, ensuring that there are no circular dependencies or isolated nodes in the process diagram. If a node is directly connected to an unexpected node, such as order creation directly connected to order completion, there is a logical error that needs to be corrected.

[0128] For example, the output parameter of the data verification node is the verification result, which should be of boolean type; the input parameter of the data processing node is the verification result, which should be the output parameter of the data verification node. If the type or format of the output parameter does not match, it needs to be corrected.

[0129] In the above embodiments, through integrity verification and business rule verification, it is ensured that the deployed target application process is correct in logic and data, improving the reliability of the process and the efficiency of achieving business goals.

[0130] In one example embodiment, assume that company B needs to deploy an e-commerce platform that supports virtual item transactions, and virtual goods can be game props, data gift cards, etc.

[0131] First, configuration information is acquired, and a template tag is acquired from the configuration information. An initial process template corresponding to the template tag is acquired from a template library according to the template tag, and an initial application process is generated according to the initial process template and the configuration information. The directory structure of the template library is as follows: groupId / moduleId / version / moduleId-version.par. The directory structure of the template library is generated according to a group identifier, a template tag, and a version number, that is, according to the template tag. An example is: groupId / moduleId / version / moduleId-version.par. The corresponding directory is: com / example / webapp-deploy / 1.0.0 / webapp-deploy-1.0.0.par. The template file is decompressed to acquire an initial process template (such as a BPMN 2.0 file) and a configuration file (such as a plugin.xml) contained therein. The BPMN 2.0 file is parsed to read all task nodes and their relationships in the initial process template, and to ensure that the basic structure of the process is complete.

[0132] Then, the initial process template is updated according to the process structure in the configuration information, the initial process template is adjusted, nodes are added or deleted, and node connection relationships are updated, so as to meet specific business requirements, and an initial application process is obtained. In this embodiment, the initial process template is updated according to the process structure in the configuration information. For example, the nodes included in the initial process template are order creation, order payment, order delivery, and order completion. Because it is a virtual product, delivery is not required. In addition, the payment method attribute of the order payment node can be changed to support multiple payment methods, such as Alipay, WeChat payment, and credit cards. Finally, the connection and condition are modified, and after the order is audited, the order payment node is entered. In this embodiment, the updated process includes order creation, order audit, order payment, and order completion.

[0133] According to the configuration information, each task node is configured specifically to obtain a target application process. The configuration of each task node according to the configuration information includes configuration of the task node template based on the functional requirement and configuration of the task template based on the task requirement. In this embodiment, when each task node is configured according to the functional requirement and the task requirement, the corresponding node template is obtained from the node template library and the task template is obtained from the task template library, and then the configuration is performed according to the functional requirement and the task requirement included in the configuration information. Continue to combine the above embodiment, the corresponding functional requirement of the user order includes product selection, quantity determination, and delivery address filling, and the node template may only include basic requirements, for example, only includes product selection and delivery address filling, and does not include quantity determination. Therefore, the node template is configured according to the functional requirement. Conversely, if the node template also includes other requirements, the corresponding other requirements are deleted. The configuration process of the task requirement is consistent with the configuration process of the node template, and therefore is not repeated.

[0134] The target application process is subjected to integrity verification and business rule verification. The verification comparison file (such as the sha512 file) of the initial process template is obtained, and the target application process is subjected to integrity verification according to the verification comparison file. In addition, the connection order of the business connection is verified to ensure that it conforms to the business logic, and the output parameters of the task node are verified to ensure that they conform to the business rule requirements.

[0135] In the case where the integrity verification and the business rule verification are passed, the target application process is deployed. The target application process is deployed to a specified environment to ensure that all nodes and tasks are executed as expected.

[0136] After the integrity verification and the business rule verification are performed, the target application process is also saved to the corresponding template library. It should be noted that when saving, the node template, the task template, and the process template are saved separately. The specific saving method can refer to the saving method in the above embodiment, which is not repeated here.

[0137] In addition, when the target application process is saved, the similarity with the templates already saved in the template library is calculated, and if the similarity is less than a preset threshold, it is saved to reduce the redundancy of the templates in the template library. Since the process template is a workflow model, their structures can be compared, for example, the graph edit distance is used to measure the difference between two flowcharts. The node template and the task template are stored in text form, and therefore the text similarity measurement methods such as cosine similarity, Jaccard similarity index, etc. can be used to calculate the similarity.

[0138] In the above embodiments, the target application process is generated flexibly according to actual conditions by parsing the initial process template, adjusting the process structure, configuring the task nodes, and generating the updated process template. Through such detailed configuration, the target application process not only has the advantages of the standard process, but also has high adaptability and flexibility.

[0139] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily sequential, but can be alternately executed with at least part of other steps or steps or stages in other steps.

[0140] Based on the same inventive concept, the embodiments of the present application also provide an application process deployment apparatus for implementing the above-mentioned application process deployment method. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme described in the above method, and therefore the specific limitations in one or more application process deployment apparatus embodiments provided below can refer to the limitations of the application process deployment method described above, which will not be repeated here.

[0141] In one exemplary embodiment, as shown in Figure 4 An application process deployment apparatus is provided, comprising: an acquisition module, a process generation module, a process generation module, a verification module, and a deployment module, wherein:

[0142] The acquisition module 410 is configured to acquire configuration information, and the configuration information carries a template tag.

[0143] The process generation module 420 is configured to acquire an initial process template corresponding to the template tag, and generate an initial application process according to the initial process template and the configuration information; the initial application process includes a plurality of task nodes.

[0144] The configuration module 430 is configured to configure each task node according to the configuration information to obtain a target application process.

[0145] The verification module 440 is configured to perform integrity verification and business rule verification on the target application process.

[0146] The deployment module 450 is configured to perform integrity verification and business rule verification on the target application process, and publish the target application process if the integrity verification and the business rule verification are passed.

[0147] The process generation module includes:

[0148] The first template acquisition unit is configured to acquire an initial process template corresponding to the template tag from a template library.

[0149] The template updating unit is configured to update the initial process template according to the process structure in the configuration information to obtain an initial application process.

[0150] In one embodiment, the configuration module includes:

[0151] The requirement acquisition unit is configured to acquire functional requirements and task requirements in the configuration information.

[0152] The second template acquisition unit is configured to acquire node templates of each task node corresponding to the functional requirements and task templates of each task node corresponding to the task requirements.

[0153] The information configuration unit is configured to configure the task node templates based on the functional requirements and configure the task templates based on the task requirements.

[0154] The process obtaining unit is configured to obtain a target application process based on the configured node templates, the configured task templates, and the initial application process.

[0155] In one embodiment, the configuration module further includes:

[0156] The template saving unit is configured to save the target application process, the configured node templates, and the configured task templates to the template library.

[0157] In one embodiment, the template saving unit includes:

[0158] The path generation subunit is configured to generate a storage path according to a group identifier, a template tag, and a version number corresponding to the target application process.

[0159] The file generation subunit is configured to store the target application process and the group identifier, the template tag, and the version number corresponding to the target application process into a preset configuration file.

[0160] The saving unit is configured to save the preset configuration file to the template library according to the storage path.

[0161] In one embodiment, the verification module includes:

[0162] The verification acquisition unit is configured to acquire a verification comparison file from the same path as the initial flow template.

[0163] The hash calculation unit is configured to calculate the initial flow template based on a hash algorithm to obtain a reference check file.

[0164] The first check unit is configured to verify the target application flow based on the verification comparison file and the reference check file.

[0165] In one of the embodiments, the verification module further includes:

[0166] The second check unit is configured to verify the connection order of the task nodes and the output parameters of the task nodes in the target application flow.

[0167] The modules in the application flow deployment apparatus can be implemented by software, hardware, or a combination thereof. The modules can be embedded in or independent of the processor of the computer device in hardware form, or stored in the memory of the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the modules.

[0168] In one of the exemplary embodiments, a computer device is provided, which can be a server, and the internal structure diagram of the computer device can be as shown in Figure 5 The computer device includes a processor, a memory, an input / output interface, and a communication interface. The processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured 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 operating system and the computer program in the non-volatile storage medium to run. The database of the computer device is configured to store flow templates. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with external terminals through a network connection. The computer program is executed by the processor to implement an application flow deployment method.

[0169] Those skilled in the art can understand that Figure 5 the structure shown in the above-mentioned embodiments is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0170] In one example embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: obtaining configuration information, the configuration information carrying a template label; obtaining an initial process template corresponding to the template label, and generating an initial application process according to the initial process template and the configuration information; the initial application process comprising a plurality of task nodes; configuring each task node according to the configuration information to obtain a target application process; performing integrity verification and business rule verification on the target application process; and deploying the target application process if the integrity verification and the business rule verification are both passed.

[0171] In one embodiment, the processor further implements the following steps when executing the computer program: obtaining the initial process template corresponding to the template label from a template library; and updating the initial process template according to a process structure in the configuration information to obtain the initial application process.

[0172] In one embodiment, the processor further implements the following steps when executing the computer program: obtaining a function requirement and a task requirement in the configuration information; obtaining a node template of each task node corresponding to the function requirement and a task template of each task node performing a corresponding task corresponding to the task requirement; configuring the task node template based on the function requirement and configuring the task template based on the task requirement; and obtaining the target application process based on the configured node template, the configured task template, and the initial application process.

[0173] In one embodiment, the processor further implements the following steps when executing the computer program: saving the target application process, the configured node template, and the configured task template to the template library.

[0174] In one embodiment, the processor further implements the following steps when executing the computer program: generating a storage path according to a group identifier, a template label, and a version number corresponding to the target application process; storing the target application process and the group identifier, the template label, and the version number corresponding to the target application process in a preset configuration file; and saving the preset configuration file to the template library according to the storage path.

[0175] In one embodiment, the processor further implements the following steps when executing the computer program: obtaining a verification comparison file from the same path of the initial process template; calculating the initial process template based on a hash algorithm to obtain a reference verification file; and verifying the target application process based on the verification comparison file and the reference verification file.

[0176] In one embodiment, the processor further implements the following steps when executing the computer program: verifying a connection order of each task node in the target application process and an output parameter of each task node.

[0177] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps: obtaining configuration information, the configuration information carrying a template label; obtaining an initial process template corresponding to the template label, and generating an initial application process according to the initial process template and the configuration information; the initial application process includes a plurality of task nodes; configuring each task node according to the configuration information to obtain a target application process; performing integrity verification and business rule verification on the target application process; and deploying the target application process if the integrity verification and the business rule verification are both passed. In one embodiment, the computer program is executed by the processor to further implement the following steps: obtaining the initial process template corresponding to the template label from a template library; and updating the initial process template according to a process structure in the configuration information to obtain the initial application process.

[0178] In one embodiment, the computer program is executed by the processor to further implement the following steps: obtaining a function requirement and a task requirement in the configuration information; obtaining a node template of each task node corresponding to the function requirement and a task template of each task node performing a corresponding task corresponding to the task requirement; configuring the task node template based on the function requirement and configuring the task template based on the task requirement; and obtaining the target application process based on the configured node template, the configured task template, and the initial application process.

[0179] In one embodiment, the computer program is executed by the processor to further implement the following steps: saving the target application process, the configured node template, and the configured task template to the template library.

[0180] In one embodiment, the computer program is executed by the processor to further implement the following steps:

[0181] generating a storage path according to the group identifier, the template label, and the version number corresponding to the target application process; storing the target application process and the group identifier, the template label, and the version number corresponding to the target application process in a preset configuration file; and saving the preset configuration file to the template library according to the storage path.

[0182] In one embodiment, the computer program is executed by the processor to further implement the following steps: obtaining a verification comparison file from the same path of the initial process template; calculating the initial process template based on a hash algorithm to obtain a reference verification file; and verifying the target application process based on the verification comparison file and the reference verification file. In one embodiment, the computer program is executed by the processor to further implement the following steps: verifying the connection order of each task node in the target application process and the output parameter of each task node.

[0183] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps: obtaining configuration information, the configuration information carrying a template label; obtaining an initial process template corresponding to the template label, and generating an initial application process according to the initial process template and the configuration information; the initial application process comprising a plurality of task nodes; configuring each task node according to the configuration information to obtain a target application process; performing integrity verification and business rule verification on the target application process; and deploying the target application process if the integrity verification and the business rule verification are both passed.

[0184] In one embodiment, the computer program, when executed by the processor, further implements the following steps: obtaining the initial process template corresponding to the template label from a template library; and updating the initial process template according to a process structure in the configuration information to obtain the initial application process.

[0185] In one embodiment, the computer program, when executed by the processor, further implements the following steps: obtaining a function requirement and a task requirement in the configuration information; obtaining a node template of each task node corresponding to the function requirement and a task template of each task node performing a corresponding task corresponding to the task requirement; configuring the task node template based on the function requirement and configuring the task template based on the task requirement; and obtaining the target application process based on the configured node template, the configured task template, and the initial application process.

[0186] In one embodiment, the computer program, when executed by the processor, further implements the following steps: saving the target application process, the configured node template, and the configured task template to the template library.

[0187] In one embodiment, the computer program, when executed by the processor, further implements the following steps: generating a storage path according to a group identifier, a template label, and a version number corresponding to the target application process; storing the target application process and the group identifier, the template label, and the version number corresponding to the target application process in a preset configuration file; and saving the preset configuration file to the template library according to the storage path.

[0188] In one embodiment, the computer program, when executed by the processor, further implements the following steps: obtaining a verification comparison file from the same path of the initial process template; calculating the initial process template based on a hash algorithm to obtain a reference verification file; and verifying the target application process based on the verification comparison file and the reference verification file.

[0189] In one embodiment, the computer program, when executed by the processor, further implements the following steps: verifying a connection order of each task node in the target application process and an output parameter of each task node.

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

[0191] The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.

[0192] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.

Claims

1. An application flow deployment method, characterized by, The method comprises: obtaining configuration information carrying a template label; obtaining an initial process template corresponding to the template label, and generating an initial application process according to the initial process template and the configuration information; the initial application process comprises a plurality of task nodes; configuring each task node according to the configuration information to obtain a target application process; performing integrity verification and business rule verification on the target application process; in the case that the integrity verification and the business rule verification are passed, deploying the target application process; the obtaining an initial process template corresponding to the template label, and generating an initial application process according to the initial process template and the configuration information comprises: obtaining an initial process template corresponding to the template label from a template library; updating the initial process template according to a process structure in the configuration information to obtain the initial application process.

2. The application flow deployment method of claim 1, wherein, the configuring each task node according to the configuration information to obtain a target application process comprises: obtaining a functional requirement and a task requirement in the configuration information; obtaining a node template of each task node corresponding to the functional requirement and a task template of each task node corresponding to the task requirement; configuring the task node template based on the functional requirement and configuring the task template based on the task requirement; obtaining the target application process based on the configured node template, the task template and the initial application process.

3. The application flow deployment method of claim 1, wherein, The method further comprises: saving the target application process, the configured node template and the configured task template to the template library.

4. The application flow deployment method of claim 3, wherein, the saving the target application process, the configured node template and the configured task template to the template library comprises: generating a storage path according to a group identifier, a template label and a version number corresponding to the target application process; storing the target application process and the group identifier, the template label and the version number corresponding to the target application process into a preset configuration file; saving the preset configuration file to the template library according to the storage path.

5. The application flow deployment method of claim 1, wherein, the performing integrity verification on the target application process comprises: obtaining a verification comparison file from the same path of the initial process template; calculating the initial process template based on a hash algorithm to obtain a reference check file; verifying the target application process based on the verification comparison file and the reference check file.

6. The application flow deployment method of claim 1, wherein, the performing business rule verification on the target application process comprises: verifying a connection order of each task node in the target application process and an output parameter of each task node.

7. An application flow deployment apparatus characterized by comprising: The device comprises: an obtaining module configured to obtain configuration information carrying a template label; a process generation module configured to obtain an initial process template corresponding to the template label, and generate an initial application process according to the initial process template and the configuration information; the initial application process comprises a plurality of task nodes; A configuration module is configured to configure each of the task nodes according to the configuration information to obtain a target application flow; A verification module is configured to verify the integrity and business rules of the target application flow; A deployment module is configured to verify the integrity and business rules of the target application flow, and publish the target application flow if the verification passes. The flow generation module comprises: A first template acquisition unit is configured to acquire an initial flow template corresponding to the template tag from a template library; A template updating unit is configured to update the initial flow template according to the flow structure in the configuration information to obtain the initial application flow.

8. The application flow deployment apparatus according to claim 7, wherein The configuration module comprises: A requirement acquisition unit is configured to acquire the functional requirements and task requirements in the configuration information; A second template acquisition unit is configured to acquire a node template of each of the nodes corresponding to the functional requirements and a task template of each of the task nodes corresponding to the task requirements; An information configuration unit is configured to configure the node template based on the functional requirements and configure the task template based on the task requirements; A flow obtaining unit is configured to obtain the target application flow based on the configured node template, the task template, and the initial application flow.

9. The application flow deployment apparatus according to claim 7, wherein The configuration module further comprises: A template saving unit is configured to save the target application flow, the configured node template, and the configured task template to the template library.

10. The application flow deployment apparatus according to claim 9, wherein The template saving unit comprises: A path generation subunit is configured to generate a storage path according to the group identifier, the template tag, and the version number corresponding to the target application flow; A file generation subunit is configured to store the target application flow and the group identifier, the template tag, and the version number corresponding to the target application flow into a preset configuration file; A saving unit is configured to save the preset configuration file to the template library according to the storage path.

11. The application flow deployment apparatus according to Claim 7, wherein The verification module comprises: A verification acquisition unit is configured to acquire a verification comparison file from the same path of the initial flow template; A hash calculation unit is configured to calculate the initial flow template based on a hash algorithm to obtain a reference verification file; A first verification unit is configured to verify the target application flow based on the verification comparison file and the reference verification file.

12. The application flow deployment apparatus according to claim 7, wherein The verification module further comprises: A second verification unit is configured to verify the connection order of each of the task nodes in the target application flow and the output parameters of each of the task nodes.

13. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the steps of the method of any one of claims 1 to 6.

14. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.

15. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Application program publishing system and method

    CN117149256A

  • Application deployment method, device and equipment, readable storage medium and program product

    CN117193798A