Application process deployment method and device, computer equipment, readable storage medium and program product
By obtaining configuration information and template tags to generate initial application process, configuring and verifying task nodes, the problem that existing CI/CD tools cannot operate effectively in complex deployment scenarios is solved, efficient and reliable automated deployment is achieved, and the process is ensured. Integrity and compliance with business rules.
Patent Information
- Application Number
- CN202411085641.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-08
AI Technical Summary
In complex deployment scenarios and massive deployment tasks, existing CI/CD tools cannot run effectively, resulting in the impact of deployment effects. Especially in the deployment process with multiple roles, the integrity of the process and the verification of business rules cannot be guaranteed.
By obtaining configuration information and template tags, the initial application process is generated, the task node is configured and validated, the integrity of the target application process and the compliance of business rules is ensured, and the target application process is finally deployed.
It realizes efficient automated deployment, ensures the reliability and correctness of the process, reduces deployment risks, and has the advantages of standard processes and a high degree of adaptability and flexibility.
Smart Images

Figure CN119002941A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data, and in particular to an application process deployment method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] In modern software development and operation, automated deployment has become a key factor in improving efficiency and reducing errors. As application complexity and deployment tasks increase, the limitations of manual operations become more and more 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 to improve the efficiency and quality of application process deployment. Continuous integration allows developers to submit code frequently and find and solve errors in a timely manner through automated building, testing and deployment, thereby ensuring the stability and reliability of the software. Continuous delivery goes a step further on the basis of continuous integration, automating the entire software delivery process, optimizing the release process, shortening delivery time, reducing human errors, and improving software quality.
[0004] Although CI / CD tools can simplify and automate some deployment tasks, they are not effective when faced with complex deployment scenarios and massive deployment tasks. For example, when there are complicated steps and multiple roles involved in the deployment process, they cannot run effectively, thus affecting the final deployment effect. Summary of the invention
[0005] Based on this, 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 in response to the above technical problems.
[0006] In a first aspect, the present application provides an application process deployment method, comprising:
[0007] Obtain configuration information, where the configuration information carries a template tag;
[0008] 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;
[0009] Configure each of the task nodes according to the configuration information to obtain a target application process;
[0010] Perform integrity verification and business rule verification on the target application process;
[0011] If both the integrity verification and the business rule verification are passed, the target application process is deployed; the initial process template corresponding to the template tag is obtained, and the initial application process is generated according to the initial process template and the configuration information; including:
[0012] Acquire an initial process template corresponding to the template tag from a template library;
[0013] The initial process template is updated according to the process structure in the configuration information to obtain the initial application process.
[0014] In one embodiment, configuring each of the task nodes according to the configuration information to obtain a target application process includes:
[0015] Obtaining functional requirements and task requirements in the configuration information;
[0016] Acquire node templates of the nodes corresponding to the functional requirements and task templates of the task nodes corresponding to the task requirements for executing corresponding tasks;
[0017] The task node template is configured based on the functional requirements, and the task template is configured based on the task requirements;
[0018] The target application process is obtained based on the configured node template, the task template and the initial application process.
[0019] In one embodiment, the method further comprises:
[0020] The target application process, the configured node template and the configured task template are saved to the template library.
[0021] In one embodiment, the step of saving the target application process, the configured node template, and the configured task template to a template library includes:
[0022] Generate a storage path according to the group identifier, template tag and version number corresponding to the target application process;
[0023] Storing the target application process and the group identifier, template tag and version number corresponding to the target application process in a preset configuration file;
[0024] The preset configuration file is saved to the template library according to the storage path.
[0025] In one embodiment, the integrity verification of the target application process includes:
[0026] Obtain a verification comparison file from the same path of the initial process template;
[0027] Calculating the initial process template based on the hash algorithm to obtain a reference verification file;
[0028] The target application process is verified based on the verification comparison file and the reference verification file.
[0029] In one embodiment, business rule verification of the target application process includes:
[0030] The connection sequence of each of the task nodes in the target application process and the output parameters of each of the task nodes are verified.
[0031] In a second aspect of the present application, an application process deployment device is proposed, the device comprising:
[0032] An acquisition module, used to acquire configuration information, wherein the configuration information carries a template tag;
[0033] A process generation module, used to obtain 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;
[0034] A configuration module, used to configure each of the task nodes according to the configuration information to obtain a target application process;
[0035] A verification module, used to verify the integrity and business rules of the target application process;
[0036] A deployment module is used to perform integrity verification and business rule verification on the target application process, and if the integrity verification and the business rule verification pass, the target application process is released;
[0037] The process generation module includes:
[0038] A first template acquisition unit, configured to acquire an initial process template corresponding to the template tag from a template library;
[0039] The template updating unit is used to update the initial process template according to the process structure in the configuration information to obtain the initial application process.
[0040] In one embodiment, the configuration module includes:
[0041] A requirement acquisition unit, used to acquire the functional requirements and task requirements in the configuration information;
[0042] A second template acquisition unit, used to acquire a node template of each of the task nodes corresponding to the functional requirements and a task template for each of the task nodes corresponding to the task requirements to perform a corresponding task;
[0043] An information configuration unit, configured to configure the node template based on the functional requirement, and to configure the task template based on the task requirement;
[0044] A process obtaining unit is used to obtain the target application process based on the configured task node template, the task template and the initial application process.
[0045] In one embodiment, the configuration module further includes:
[0046] The template saving unit is used to save the target application process, the configured node template and the configured task template to the template library.
[0047] In one embodiment, the template storage unit includes:
[0048] A path generation subunit, used to generate a storage path according to the group identifier, template tag and version number corresponding to the target application process;
[0049] A file generation subunit, used for storing the target application process and the group identifier, template tag and version number corresponding to the target application process into a preset configuration file respectively;
[0050] A saving unit is used to save the preset configuration file to the template library according to the storage path.
[0051] In one embodiment, the verification module includes:
[0052] A verification acquisition unit, used to acquire a first verification code in the initial process template and to acquire a verification file from the same path of the initial process template;
[0053] The first verification unit is used to calculate the verification file based on a hash algorithm to obtain a second verification code, and verify the target application process based on the first verification code and the second verification code.
[0054] In one embodiment, the verification module further includes:
[0055] The second verification unit is used to verify the connection sequence of each of the task nodes in the target application process and the output parameters of each of the task nodes.
[0056] In a third aspect of the present application, the present application proposes a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0057] In a fourth aspect of the present application, the present application proposes a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0058] In a fifth aspect of the present application, the present application proposes a computer program product, comprising a computer program, which implements the steps of the above method when executed by a processor.
[0059] The above-mentioned application process deployment method, device, computer equipment, computer-readable storage medium and computer program product obtain the initial process template corresponding to the template tag, and generate the initial application process according to the initial process template and configuration information, which can ensure that the basic structure and logic of the initial process are correct. The initial process template is standardized and verified, and can provide a reliable basic framework. Updating the initial process template according to the configuration information can ensure that the structure and logic of the process match the specific business needs. After that, each task node is configured according to the configuration information to obtain the target application process, which can ensure that the target application process is customized and meets the business needs. Through this detailed configuration, the target application process not only has the advantages of the standard process, but also has a high degree of adaptability and flexibility. Finally, after integrity verification and business rule verification, deploying the target application process can ensure the reliability and correctness of the process and minimize the deployment risk. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0061] FIG1 is a schematic diagram of a process flow of an application process deployment method in one embodiment;
[0062] FIG2 is a schematic diagram of a target flow chart in one embodiment;
[0063] FIG3 is a schematic diagram of an e-commerce virtual item transaction process in one embodiment;
[0064] FIG4 is a structural block diagram of an application process deployment device in one embodiment;
[0065] FIG. 5 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0067] It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it 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 used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.
[0069] In one embodiment, as shown in FIG1 , an application process deployment method is provided. This embodiment uses the method applied to a terminal as an example for illustration. It is understandable 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 is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0070] Step S102, obtaining configuration information, where the configuration information carries a template tag.
[0071] Among them, the template tag is an identifier used to uniquely identify a template. It usually consists of three elements, including the group identifier (groupId), the template identifier (moduleId), and the version number (version). The group identifier is usually the reverse form of the domain name of the company or organization. For example, if the company's domain name is example.com, then the GroupId can be com.example; the template identifier directly 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, which is used to distinguish different versions of templates. For example, 1.0.0. Combined, a template tag may be com.example.webapp-deploy:1.0.0.
[0072] Configuration information refers to the detailed information used to define and guide process generation and task configuration. Configuration information usually includes template tags, process structure, functional requirements, and task requirements. The process structure defines the steps and sequence 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 for each functional module when performing tasks.
[0073] For example, if the staff needs to build a target application process, they can select the drop-down option box in the corresponding pop-up interface and select the corresponding template, process, function and task according to their needs. After the staff selects the corresponding template, process, function and task, the front-end page will send the configuration information and template tag to the back-end, and the back-end will generate the corresponding target application process based on 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 configuration information; the initial application process includes a plurality of task nodes.
[0075] After receiving the template tag, connect to the template library and search for the corresponding initial process template according to the template tag. The directory structure of the template library may be groupId / moduleId / version / moduleId-version.
[0076] par. The directory of the template library is generated according to the template tag.
[0077] When a template file is found, for example, the template file is webapp-deploy-1.0.0.par, it is decompressed and the initial process template (such as BPMN 2.0 file) and configuration file (such as plugin.xml) are obtained. The BPMN 2.0 file is parsed, all task nodes and their relationships in the initial process template are read, and the connections between the nodes are checked to ensure that the basic structure of the process is complete. The plugin.xml file is read and parsed to obtain configuration variables, environment variables, file resources and other information.
[0078] Furthermore, the initial process template will be updated according to the process structure in the configuration information to obtain the initial application process.
[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 to meet specific business needs. After the above updates, an initial application process adapted to the current business needs is obtained.
[0080] Step S106, configuring each task node according to the configuration information to obtain the target application process.
[0081] Initialize each task node according to the functional requirements and task requirements in the configuration information. Set the input and output of each node, including the output of the previous node and the calculation result. If a node needs to perform a specific task, configure the task module for the node and set its input and output.
[0082] For example, the following is the deployment process of a Web application. Template tag: com.example.
[0083] webapp-deploy:1.0.0, obtain webapp-deploy-1.0.0.par from the template library, decompress it to obtain the initial process template. The initial process template includes node environment check, database deployment, application deployment, and testing. Parse the initial process template and read all task nodes and their relationships. Configure each task node according to the configuration information and set input and output. Functional requirements include environment check and database deployment, and task requirements include success rate > 99% and response time < 200ms.
[0084] For example, the following is to deploy a data processing flow. Template tag: com.example.data-proce
[0085] ssing:2.0.0, get data-processing-2.0.0.par from the template library, decompress it to get the initial process template. The initial process template includes node data import, data cleaning, data analysis, and result export. Parse the initial process template and read all task nodes and their relationships. Configure each task node according to the configuration information and set 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 conjunction with Figure 2, Figure 2 is a schematic diagram of a target flow in an embodiment, which includes six nodes, namely, a configuration template, a route arrangement module, a template storage module, a task execution module, a result verification module and a message notification module.
[0087] Step S108, performing integrity verification and business rule verification on the target application process.
[0088] Optionally, you can obtain a verification comparison file of the initial process template, such as a sha512 file, and then perform integrity verification on the target application process based on the verification comparison file.
[0089] Optionally, verify the connection order of the business connection to ensure compliance with the business logic and verify the output parameters of the task node to ensure compliance with business rule requirements.
[0090] In this embodiment, the purpose of completing and verifying the target application process is to ensure the accuracy of the process and the compliance of the business, and at the same time, to improve the efficiency of process management.
[0091] Step S110: if both the integrity verification and the business rule verification are passed, the target application process is deployed.
[0092] After ensuring that the verification is completed and the business rule verification is passed, the target application process is deployed to the specified environment to ensure that all nodes and tasks are executed as expected.
[0093] Optionally, you can also monitor the deployment process in real time to promptly identify and resolve any problems that may arise.
[0094] In the above-mentioned application process deployment method, the initial process template corresponding to the template tag is obtained, and the initial application process is generated according to the initial process template and configuration information, which can ensure that the basic structure and logic of the initial process are correct. The initial process template is standardized and verified, and can provide a reliable basic framework. Updating the initial process template according to the configuration information can ensure that the structure and logic of the process match the specific business requirements. After that, each task node is configured according to the configuration information to obtain the target application process, which can ensure that the target application process is customized and meets business requirements. Through this detailed configuration, the target application process not only has the advantages of the standard process, but also has high adaptability and flexibility. Finally, after integrity verification and business rule verification, deploying the target application process can ensure the reliability and correctness of the process and minimize deployment risks.
[0095] In one of the embodiments, the above-mentioned obtaining of the initial process template corresponding to the template tag, and generating the initial application process based on the initial process template and configuration information, includes: obtaining the initial process template corresponding to the template tag from the template library; updating the initial process template according to the process structure in the configuration information to obtain the initial application process.
[0096] The template library includes the initial process templates that have been standardized and verified, providing a reliable basic framework for generating the target application process. Moreover, after obtaining the target application process, the target application process can also be saved as a template in the template library.
[0097] Optionally, the initial process template can be drawn in advance using a process designer. First, use the process designer to draw all the nodes of this deployment job, and connect all the nodes in the order in which the events occurred through standard process engine connection lines; the process can support multiple parallel operations, roll back to any previous node, and other operations.
[0098] Optionally, read and parse the process structure in the configuration information, obtain the initial process template corresponding to the template tag from the template library, modify, add or delete each node and process structure in the initial process template according to the parsed process structure, and finally generate an initial application process that meets business needs based on the updated initial process template.
[0099] Furthermore, in the process of updating the initial process template according to the process structure, you can add nodes, delete nodes, modify node properties, and update connections and conditions. Adding nodes and deleting nodes are not elaborated in detail here. Modifying node properties is to update the properties of each node in the initial process template according to the configuration information, such as task name, execution conditions, input and output parameters, etc. Update connections and conditions: According to the configuration information, adjust the connection relationship and condition judgment between task nodes to ensure that the process logic meets business needs.
[0100] Exemplarily, in conjunction with Figure 3, Figure 3 is a schematic diagram of the e-commerce virtual item transaction process in an embodiment. The initial process template contains four nodes: order creation, order payment, order delivery, and order completion. At this time, an order review node can be added after the order is created and before the order is paid, and the order delivery process can be deleted because it is a virtual product and does not need to be shipped. In addition, the payment method attribute of the order payment node can be changed to support multiple payment methods, such as Alipay, WeChat Pay, and credit cards. Finally, modify the connection and conditions, and enter the order payment node only after the order review is passed. In this embodiment, the updated process includes order creation, order review, 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 a standardized process and can flexibly adapt to specific business needs.
[0102] In one of the embodiments, each task node is configured according to the configuration information to obtain a target application process, including: obtaining functional requirements and task requirements in the configuration information; obtaining node templates of each task node corresponding to the functional requirements and task templates for each task node corresponding to the task requirements to perform corresponding tasks; configuring the task node template based on the functional requirements and configuring the task template based on the task requirements; and obtaining the target application process based on the configured node template, task template and initial application process.
[0103] Among them, functional requirements are used to define the specific functions of each task node, such as "user authentication", "data processing", "sending notifications", etc.; task requirements are used to define the specific indicators and parameters of each task node when performing tasks, such as the authentication method of the "user authentication" node is password or fingerprint, the data source and processing method of the "data processing" node, etc.
[0104] Among them, the node template refers to the predefined node configuration template; the task template refers to the predefined task configuration template, which contains the detailed configuration and parameters of task execution.
[0105] Optionally, adjust the properties and configuration of the node template according to functional requirements, such as configuring the authentication method for the "User Authentication" node, configuring the data source and processing method for the "Data Processing" node, etc.
[0106] Optionally, adjust the specific execution parameters and indicators of the task template according to the task requirements, for example, configure the notification method for the "Send Notification" task, such as SMS and email, and configure the data processing rules and conditions for the "Data Processing" task.
[0107] Continuing with the example of the e-commerce virtual item transaction process in the above embodiment, the target application process includes four nodes: user ordering, order payment, and order review. The functional requirements corresponding to the user ordering node include product selection, quantity determination, and delivery address filling, and the task requirements are whether the delivery address is correct, whether the quantity is subject to inventory restrictions, and the accuracy and real-time nature of the product information; the functional requirement corresponding to order payment is to support multiple payment methods, such as Alipay, WeChat Pay, and credit cards, and the task requirements are whether the amount is normal, and data encryption and secure transmission during the payment process; the functional requirement corresponding to order review is manual review, and the task requirement is to verify the registration information of buyers and sellers to ensure the authenticity and consistency of the information.
[0108] Exemplarily, the configuration of the user order node is to obtain the user order node template from the node template library, configure the product selection, quantity determination and delivery address filling according to the functional requirements, and make corresponding configurations based on whether the delivery address included in the task requirements is correct, whether the quantity is subject to inventory restrictions, and the accuracy and real-time nature of the product information.
[0109] In the above embodiment, the standardized initial process template can be effectively converted into a target application process that meets specific business requirements, ensuring the executability and efficiency of the process.
[0110] In one of the embodiments, the method further includes: saving the target application process to a template library.
[0111] In this embodiment, the target application process is saved in the template library for next use.
[0112] Furthermore, in one of the embodiments, the above-mentioned saving of the target application process, the configured node template and the configured task template to the template library includes: generating a storage path according to the group identifier, template label and version number corresponding to the target application process; storing the target application process and the group identifier, template label and version number corresponding to the target application process to a preset configuration file respectively; saving the preset configuration file to the template library according to the storage path.
[0113] The preset configuration file is a par file, which can be a compressed file format, usually used to store sub-volume compressed packages of software. This file format can help users effectively save storage space.
[0114] Exemplarily, a storage path is generated according to the group identifier, template tag and version number, wherein the "." in groupId needs to be replaced with the file path symbol " / ". The storage path is groupId / moduleId / version / moduleId-version.par.
[0115] Optionally, package the target application process and the generated plugin.xml file into a par file, and place the plugin.xml file in the META-INF directory of the par file. The plugin.xml file is a self-describing file of the target application process. The self-describing file is generated based on the group identifier, template tag, version number, description information, author information, organization, creation time, template type, required dependency information, output information, and MD5 or SHA-512 checksum of the required resource file.
[0116] In other embodiments, a node storage path may be generated according to the group identifier, template label and version number corresponding to the configured node template, and the configured node template and the group identifier, template label and version number corresponding to the configured node template may be packaged into a corresponding node preset configuration file, and the node preset configuration file may be saved according to the node storage path. The generation method of the self-describing file of the node template is consistent with that of the target application process, and will not be described again here.
[0117] Similarly, in another embodiment, a task storage path can be generated according to the group identifier, template tag and version number corresponding to the configured task template, and the configured task template and the group identifier, template tag and version number corresponding to the configured task template can be packaged into a corresponding task preset configuration file, and the task preset configuration file can be saved according to the task storage path. The generation method of the self-describing file of the task template is consistent with that of the target application process, and will not be described again here.
[0118] Exemplarily, the group identifier of the above-mentioned e-commerce virtual item transaction process is com.ccb.demo, the template tag is order-process, and the version number is 1.0.0. The path after groupId replacement is: com / ccb / demo, and the generated path is: com / ccb / demo / order-process / 1.0.0 / order-process-1.0.0.par. Package the target application process and plugin.xml file into the order-process-1.0.0.par file. Place the plugin.xml file in the META-INF directory of the par file. Save the par file, plugin.xml file, and SHA verification file to the corresponding path.
[0119] In the above embodiment, the configured node templates and task templates are saved in the template library and can be reused in subsequent projects, thereby reducing the workload of repeated configuration and improving development efficiency.
[0120] In one of the embodiments, the above-mentioned 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 verification file; and verifying the target application process based on the verification comparison file and the reference verification file.
[0121] Optionally, obtain a verification comparison file from the same path as the initial process template. This file stores the hash value of the initial process template and 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 the hash algorithm to obtain a reference verification file. The reference verification file contains the calculated hash value for comparison with 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 verification file. Ensure 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. Use a hash algorithm, such as SHA-512, to calculate the initial process template file initial-template.bpmn to obtain a reference verification file. Compare the hash value in the verification comparison file with the hash value in the reference verification 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 embodiment, hash value verification is used to ensure that the process template and the application process are not tampered with or damaged during transmission and storage, thereby 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 sequence of each task node in the target application process and the output parameters of each task node.
[0125] The purpose of verifying the connection sequence is to ensure that the connection sequence of each task node in the target application process complies with the business logic to avoid logical errors or process anomalies.
[0126] Among them, the output parameters of each task node are verified to ensure that they can be correctly passed to the next task node and meet business requirements and expected formats.
[0127] For example, in conjunction 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 unconnected isolated nodes in the flowchart. 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, and its value should be a Boolean type; the input parameter of the data processing node is the verification result, and its value 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 embodiment, integrity verification and business rule verification are used to ensure that the deployed target application process is correct in logic and data, thereby improving the reliability of the process and the efficiency of achieving business goals.
[0130] In an exemplary embodiment, it is assumed that company B needs to deploy an e-commerce platform that supports virtual item transactions. The virtual items may be game props, data gift cards, etc.
[0131] First, obtain the configuration information, and obtain the template tag from the configuration information, obtain the corresponding initial process template from the template library according to the template tag, and generate the initial application process 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 the grouping identifier, template tag and version number, that is, it is generated according to the template tag. Exemplarily, groupId / moduleId / version / moduleId-version.par, the corresponding directory is com / example / webapp-deploy / 1.0.0 / webapp-deploy-1.0.0.par. Unzip the template file and obtain the contained initial process template (such as BPMN 2.0 file) and configuration file (such as plugin.xml). Parse the BPMN 2.0 file, read all task nodes and their relationships in the initial process template, and 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 the node connection relationship is updated to meet specific business needs, and the initial application process is obtained. Among them, 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, it does not need to be shipped. 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, modify the connection and conditions, and enter the order payment node only after the order is reviewed and passed. In this embodiment, the updated process includes order creation, order review, order payment, and order completion.
[0133] According to the configuration information, each task node is specifically configured to obtain the target application process. Among them, the specific configuration of each task node according to the configuration information includes configuring the task node template based on the functional requirements and configuring the task template based on the task requirements. In this embodiment, when each task node is specifically configured according to the functional requirements and task requirements, the corresponding node template and the task template are obtained from the node template library and the task template library, and then configured according to the functional requirements and task requirements included in the configuration information. Continuing with the above embodiment, the functional requirements corresponding to the user's order include product selection, quantity determination, and delivery address filling, and the node template may only include basic requirements, such as only including product selection and delivery address filling, but not including the quantity determination requirement, so the node template will be configured according to the functional requirements. On the contrary, if the node template also includes other requirements, the other requirements will be deleted accordingly. The configuration of task requirements is consistent with the configuration process of node templates, so it will not be repeated.
[0134] Verify the integrity and business rules of the target application process. Obtain the verification comparison file (such as sha512 file) of the initial process template, and verify the integrity of the target application process based on the verification comparison file. Also, verify the connection sequence of the business connection to ensure compliance with the business logic and verify the output parameters of the task node to ensure compliance with the business rule requirements.
[0135] When both integrity verification and business rule verification pass, deploy the target application process. Deploy the target application process to the specified environment to ensure that all nodes and tasks are executed as expected.
[0136] After integrity verification and business rule verification, the target application process will also be saved to the corresponding template library. It should be noted here that when saving, the node template, task template and process template will be saved separately. The specific saving method can refer to the saving embodiment in the above embodiment, which will not be repeated here.
[0137] In addition, when saving the target application process, the similarity with the templates already saved in the template library will be calculated. If the similarity is less than the preset threshold, it will be saved to reduce the redundancy of templates in the template library. Since process templates are workflow models, their structures can be compared, for example, using the Graph Edit Distance to measure the difference between two flowcharts. Node templates and task templates are stored in text form, so text similarity metrics such as cosine similarity and Jaccard similarity index can be used to calculate similarity.
[0138] In the above embodiment, by parsing the initial process template, adjusting the process structure, configuring the task nodes and generating the updated process template, the target process application is flexibly generated according to the actual situation. Through this detailed configuration, the target application process not only has the advantages of the standard process, but also has a high degree of adaptability and flexibility.
[0139] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0140] Based on the same inventive concept, the embodiment of the present application also provides an application process deployment device for implementing the above-mentioned application process deployment method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more application process deployment device embodiments provided below can refer to the limitations of the application process deployment method above, and will not be repeated here.
[0141] In an exemplary embodiment, as shown in FIG4 , an application process deployment device is provided, including: 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 used to acquire configuration information, where the configuration information carries a template tag.
[0143] The process generation module 420 is used to obtain an initial process template corresponding to the template tag, and generate an initial application process according to the initial process template and configuration information; the initial application process includes multiple task nodes.
[0144] The configuration module 430 is used to configure each task node according to the configuration information to obtain the target application process.
[0145] The verification module 440 is used to perform integrity verification and business rule verification on the target application process.
[0146] The deployment module 450 is used to perform integrity verification and business rule verification on the target application process. If the integrity verification and business rule verification pass, the target application process is released.
[0147] The above process generation module includes:
[0148] The first template acquisition unit is used to acquire an initial process template corresponding to the template tag from the template library.
[0149] The template updating unit is used to update the initial process template according to the process structure in the configuration information to obtain the initial application process.
[0150] In one embodiment, the configuration module includes:
[0151] The requirement acquisition unit is used to obtain the functional requirements and task requirements in the configuration information.
[0152] The second template acquisition unit is used to acquire the node template of each task node corresponding to the functional requirement and the task template for each task node corresponding to the task requirement to perform the corresponding task.
[0153] The information configuration unit is used to configure the task node template based on the functional requirements and configure the task template based on the task requirements.
[0154] The process acquisition unit is used to obtain the target application process based on the configured node template, task template and initial application process.
[0155] In one embodiment, the configuration module further includes:
[0156] The template saving unit is used to save the target application process, the configured node template and the configured task template to the template library.
[0157] In one embodiment, the template storage unit includes:
[0158] The path generation subunit is used to generate a storage path according to the group identifier, template label and version number corresponding to the target application process.
[0159] The file generation subunit is used to store the target application process and the group identifier, template tag and version number corresponding to the target application process into a preset configuration file.
[0160] A saving unit is used 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 used to obtain the verification comparison file from the same path of the initial process template.
[0163] The hash calculation unit is used to calculate the initial process template based on the hash algorithm to obtain a reference verification file.
[0164] The first verification unit is used to verify the target application process based on the verification comparison file and the reference verification file.
[0165] In one embodiment, the verification module further includes:
[0166] The second verification unit is used to verify the connection sequence of each task node in the target application process and the output parameters of each task node.
[0167] Each module in the above application process deployment device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0168] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store process templates. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application process deployment method is implemented.
[0169] Those skilled in the art will understand that the structure shown in FIG. 5 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0170] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: obtaining configuration information, wherein the configuration information carries a template tag; 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 multiple 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 both the integrity verification and the business rule verification are passed.
[0171] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining an initial process template corresponding to the template tag from the template library; updating the initial process template according to the process structure in the configuration information to obtain an initial application process.
[0172] In one embodiment, when the processor executes the computer program, the following steps are also implemented: 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 for each task node corresponding to the task requirements to perform the corresponding tasks; 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.
[0173] In one embodiment, when the processor executes the computer program, the following steps are also implemented: saving the target application process, the configured node template, and the configured task template to a template library.
[0174] In one embodiment, when the processor executes the computer program, the following steps are also implemented: generating a storage path according to the group identifier, template tag and version number corresponding to the target application process; storing the target application process and the group identifier, template tag and version number corresponding to the target application process in a preset configuration file; saving the preset configuration file to the template library according to the storage path.
[0175] In one embodiment, when the processor executes the computer program, it also 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.
[0176] In one embodiment, when the processor executes the computer program, the following steps are further implemented: verifying the connection sequence of each task node in the target application process and the output parameters of each task node.
[0177] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining configuration information, the configuration information carries a template tag; 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 multiple 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 when both the integrity verification and the business rule verification are passed. In one embodiment, when the computer program is executed by a processor, the following steps are also implemented: obtaining an initial process template corresponding to the template tag from a template library; updating the initial process template according to the process structure in the configuration information to obtain an initial application process.
[0178] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining functional requirements and task requirements in the configuration information; obtaining node templates of each task node corresponding to the functional requirements and task templates for each task node corresponding to the task requirements to perform corresponding tasks; configuring the task node template based on the functional requirements and configuring the task template based on the task requirements; obtaining the target application process based on the configured node template, task template and initial application process.
[0179] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: saving the target application process, the configured node template, and the configured task template to a template library.
[0180] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0181] Generate a storage path according to the group identifier, template tag and version number corresponding to the target application process; store the target application process and the group identifier, template tag and version number corresponding to the target application process in a preset configuration file; save the preset configuration file to the template library according to the storage path.
[0182] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: 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, when the computer program is executed by the processor, the following steps are also implemented: verifying the connection order of each task node in the target application process and the output parameters of each task node.
[0183] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: obtaining configuration information, the configuration information carrying a template tag; obtaining an initial process template corresponding to the template tag, and generating an initial application process based on the initial process template and the configuration information; the initial application process includes multiple 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 both the integrity verification and the business rule verification are passed.
[0184] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining an initial process template corresponding to the template tag from the template library; updating the initial process template according to the process structure in the configuration information to obtain an initial application process.
[0185] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining functional requirements and task requirements in the configuration information; obtaining node templates of each task node corresponding to the functional requirements and task templates for each task node corresponding to the task requirements to perform corresponding tasks; configuring the task node template based on the functional requirements and configuring the task template based on the task requirements; obtaining the target application process based on the configured node template, task template and initial application process.
[0186] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: saving the target application process, the configured node template, and the configured task template to a template library.
[0187] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: generating a storage path based on the group identifier, template tag and version number corresponding to the target application process; storing the target application process and the group identifier, template tag and version number corresponding to the target application process in a preset configuration file; saving the preset configuration file to the template library according to the storage path.
[0188] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: 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, when the computer program is executed by the processor, the following steps are also implemented: verifying the connection sequence of each task node in the target application process and the output parameters of each task node.
[0190] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0191] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0192] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An application process deployment method, characterized in that: The method comprises: Obtain configuration information, where the configuration information carries a template tag; 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; Configure each of the task nodes according to the configuration information to obtain a target application process; Perform integrity verification and business rule verification on the target application process; If both the integrity verification and the business rule verification are passed, deploying the target application process; The acquiring of the initial process template corresponding to the template tag and generating the initial application process according to the initial process template and the configuration information comprises: Acquire an initial process template corresponding to the template tag from a template library; The initial process template is updated according to the process structure in the configuration information to obtain the initial application process.
2. The application process deployment method according to claim 1, characterized in that: The configuring each of the task nodes according to the configuration information to obtain a target application process includes: Obtaining functional requirements and task requirements in the configuration information; Acquire a node template of each of the task nodes corresponding to the functional requirements and a task template for each of the task nodes corresponding to the task requirements to perform a corresponding task; The task node template is configured based on the functional requirements, and the task template is configured based on the task requirements; The target application process is obtained based on the configured node template, the task template and the initial application process.
3. The application process deployment method according to claim 1, characterized in that: The method further comprises: The target application process, the configured node template and the configured task template are saved to the template library.
4. The application process deployment method according to claim 3, characterized in that: The step of saving the target application process, the configured node template, and the configured task template to a template library includes: Generate a storage path according to the group identifier, template tag and version number corresponding to the target application process; Storing the target application process and the group identifier, template tag and version number corresponding to the target application process in a preset configuration file; The preset configuration file is saved to the template library according to the storage path.
5. The application process deployment method according to claim 1, characterized in that: Perform integrity verification on the target application process, including: Obtain a verification comparison file from the same path of the initial process template; Calculating the initial process template based on the hash algorithm to obtain a reference verification file; The target application process is verified based on the verification comparison file and the reference verification file.
6. The application process deployment method according to claim 1, characterized in that: Business rule verification is performed on the target application process, including: The connection sequence of each of the task nodes in the target application process and the output parameters of each of the task nodes are verified.
7. An application process deployment device, characterized in that: The device comprises: An acquisition module, used to acquire configuration information, wherein the configuration information carries a template tag; A process generation module, used to obtain 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; A configuration module, used to configure each of the task nodes according to the configuration information to obtain a target application process; A verification module, used to verify the integrity and business rules of the target application process; A deployment module is used to perform integrity verification and business rule verification on the target application process, and if the integrity verification and the business rule verification pass, the target application process is released; The process generation module includes: A first template acquisition unit, configured to acquire an initial process template corresponding to the template tag from a template library; The template updating unit is used to update the initial process template according to the process structure in the configuration information to obtain the initial application process.
8. The application process deployment device according to claim 7, characterized in that: The configuration module includes: A requirement acquisition unit, used to acquire the functional requirements and task requirements in the configuration information; A second template acquisition unit, used to acquire a node template of each of the nodes corresponding to the functional requirements and a task template for each of the task nodes corresponding to the task requirements to perform a corresponding task; An information configuration unit, configured to configure the node template based on the functional requirement, and to configure the task template based on the task requirement; A process obtaining unit is used to obtain the target application process based on the configured node template, the task template and the initial application process.
9. The application process deployment device according to claim 7, characterized in that: The configuration module also includes: The template saving unit is used to save the target application process, the configured node template and the configured task template to the template library.
10. The application process deployment device according to claim 9, characterized in that: The template storage unit includes: A path generation subunit, used to generate a storage path according to the group identifier, template tag and version number corresponding to the target application process; A file generation subunit, used for storing the target application process and the group identifier, template tag and version number corresponding to the target application process into a preset configuration file; A saving unit is used to save the preset configuration file to the template library according to the storage path.
11. The application process deployment device according to claim 7, characterized in that: The verification module comprises: A verification acquisition unit, used to acquire a verification comparison file from the same path of the initial process template; A hash calculation unit, used to calculate the initial process template based on the hash algorithm to obtain a reference verification file; The first verification unit is used to verify the target application process based on the verification comparison file and the reference verification file.
12. The application process deployment device according to claim 7, characterized in that: The verification module also includes: The second verification unit is used to verify the connection sequence of each of the task nodes in the target application process and the output parameters of each of the task nodes.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Application program publishing system and method
CN117149256A
Application deployment method, device and equipment, readable storage medium and program product
CN117193798A
Business process processing method, device and system, storage medium and processor
CN118260738A
Application runtime expert for deployment of an application on multiple computer systems
US20110209144A1
Method for data interaction between multiple devices, and related device
WO2022078345A1
