Workflow design, storage, deployment and monitoring method based on low-code platform
By leveraging the visual designer and monitoring tools of the low-code platform, the problem of time-consuming traditional workflow design is solved, enabling rapid design, dynamic storage, and efficient monitoring of workflow deployment.
Patent Information
- Application Number
- CN202310403397.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-04-17
AI Technical Summary
Traditional workflow design requires separate design of business forms and workflows when business changes, resulting in excessively long deployment times.
The visual designer, which utilizes a low-code platform, allows for drag-and-drop design of forms and workflows. It incorporates the BPMN 2.0 protocol, stores data in a relational database, instantiates workflows using the Flowable workflow engine, and leverages Micrometer and Prometheus for monitoring, enabling dynamic deployment and monitoring.
It improves the efficiency of workflow design and deployment for operations personnel, enabling rapid workflow design and dynamic storage and monitoring through a visual interface, and optimizing the performance of time-consuming nodes.
Smart Images

Figure CN116501302B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of low-code platform technology, specifically a method for workflow design, storage, deployment, and monitoring based on a low-code platform. Background Technology
[0002] Traditional workflow design can efficiently and effectively define and design processes based on the BPNM protocol, but it cannot support rapid business iteration and development. That is, when the business changes, business forms, workflows, and related business logic need to be designed separately, which makes the deployment of form business and workflow very time-consuming.
[0003] As a workspace for rapid application development, the low-code platform provides a comprehensive front-end component library and supports rich features such as custom components, custom dictionaries, and cross-domain calls to third-party APIs. This allows non-technical personnel and engineers to collaborate on application development and deployment. When business needs change, business users can drag and drop components to represent the revised business logic, and the same method supports changes to workflow definitions. The low-code platform handles the connection between business forms and workflows, significantly saving business users' design time. The low-code platform's multi-data source compatibility and one-click deployment capabilities enable dynamic deployment of business forms across multiple data sources, allowing business users to quickly iterate on their business needs. Summary of the Invention
[0004] This invention addresses the problem that traditional workflow design requires separate design of business forms, workflows, and related business logic when business changes occur, leading to time-consuming deployment of both forms and workflows. It provides a workflow design, storage, deployment, and monitoring method based on a low-code platform.
[0005] The present invention provides a workflow design, storage, deployment, and monitoring method based on a low-code platform, and the technical solution adopted to solve the above-mentioned technical problems is as follows:
[0006] A workflow design, storage, deployment, and monitoring method based on a low-code platform includes the following steps:
[0007] S1. Based on the visual designer provided by the low-code platform, components representing business data can be combined into forms from the component library by dragging and dropping. At the same time, based on the BPMN2.0 protocol, workflow components can be arranged, combined, and their attributes filled from the component library by dragging and dropping to achieve workflow design.
[0008] S2, the low-code platform stores forms and workflows based on the BPMN 2.0 protocol in a relational database as database tables;
[0009] S3. Based on the visual form interface provided by the low-code platform, business data is entered, and database table records are added, deleted, modified and queried through the database adapter. The workflow is instantiated through the Flowable workflow engine.
[0010] S4. By actively embedding data points through Micrometer, we can monitor workflow execution events and visualize the workflow monitoring output through Prometheus and Grafana.
[0011] Optionally, in step S2, the form is submitted to the low-code platform in JSON data format. The low-code platform first converts the JSON form data into metadata containing detailed information about each field of the database table. Then, it creates DDL statements in the local database language for the form data by calling the database adapter, creates the database table through the database executor, and finally validates the metadata using relational database field rules. After successful validation, it generates localized DML statements, which are then executed in the relational database by the database executor to generate the database table.
[0012] Alternatively, when the low-code platform queries the database table of the form from the relational database for the first deployment of the form, the low-code platform will save the database table structure information generated by the database executor as version 1.
[0013] Based on the visual designer provided by the low-code platform, the components of the version 1 form are adjusted to form a new version. When the new version form is submitted to the low-code platform's server in JSON format, the server first compares the differences between the JSON data of version 1 and the new version and records the differences in JSON format. Then, it calls the database adapter to parse the JSON data and generate localized DML statements. After assembly and verification, it calls the database executor to change the database tables and form a new version of the database tables. Thus, the dynamic deployment of the form is achieved through database table version iteration.
[0014] Optionally, in step S2, the workflow based on the BPMN 2.0 protocol is stored in a relational database in the form of a database table. The workflow database table consists of the business information to which it belongs and a description of the process definition based on the BPMN 2.0 protocol. The business information to which it belongs includes business data and its own attributes.
[0015] Alternatively, the workflow definition based on the BPMN 2.0 protocol can be submitted to the server of the low-code platform in JSON format. The server calls the Flowable workflow engine to create a workflow model, persists it to the database table managed by the Flowable workflow engine, and creates a corresponding XML file on the local file system.
[0016] Alternatively, changes to the process definition based on the BPMN 2.0 protocol will not directly affect the database table structure of the form, but will instead form a new process definition and update the corresponding fields in JSON format. At runtime, the Flowable process engine will parse it into the new process definition to achieve dynamic deployment of the workflow.
[0017] Optionally, monitoring of workflow execution events can be achieved through proactive data tracking using Micrometer. This process specifically includes:
[0018] The Flowable workflow engine event listener enables monitoring of workflow instance events, while the low-code platform implements monitoring metrics for workflow instance running status by customizing Counter, Guge, and Timer in the listener.
[0019] The low-code platform automatically exposes the event tracking data through Micrometer's Prometheus adapter;
[0020] Configure the service address in Prometheus, and Prometheus will actively request the service to obtain the event tracking metrics and store them in the local time series library.
[0021] Preferably, workflow execution events include workflow instance events such as creation, initialization, deletion, update, pause, and execution.
[0022] Alternatively, by actively embedding data points in Micrometer, monitoring of workflow execution events can be achieved. During this process...
[0023] Configure Prometheus alarm rules to trigger alarms for specified events;
[0024] The operations staff are notified via email or SMS using the routing policies and recipients provided by Prometheus.
[0025] The workflow design, storage, deployment, and monitoring method based on a low-code platform, as proposed in this invention, has the following advantages compared to existing technologies:
[0026] This invention helps operations personnel quickly design and organize workflows on a low-code platform through a visual interface based on their own business needs. It also enables dynamic relational database storage through workflow metadata. During the workflow operation phase, it helps operations personnel monitor nodes through formatted logs, perform targeted performance optimization on nodes with long execution times, and improve operational efficiency. Attached Figure Description
[0027] Appendix Figure 1This is a flowchart of the method according to Embodiment 1 of the present invention;
[0028] Appendix Figure 2 This is a flowchart illustrating the dynamic deployment of forms according to Embodiment 1 of the present invention. Detailed Implementation
[0029] To make the technical solution, the technical problem solved, and the technical effect of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with specific embodiments.
[0030] Example 1:
[0031] Combined with appendix Figure 1 This embodiment proposes a workflow design, storage, deployment, and monitoring method based on a low-code platform, which includes the following steps:
[0032] S1. Based on the visual designer provided by the low-code platform, components representing business data can be combined into forms by dragging and dropping from the component library. At the same time, based on the BPMN2.0 protocol, workflow components can be arranged, combined, and their attributes filled by dragging and dropping from the component library to achieve workflow design.
[0033] S2, the low-code platform, stores forms and workflows based on the BPMN 2.0 protocol in a relational database as database tables.
[0034] S3. Based on the visual form interface provided by the low-code platform, business data is entered, and database table records are added, deleted, modified and queried through the database adapter. The workflow is instantiated through the Flowable workflow engine.
[0035] S4. By actively embedding data points through Micrometer, we can monitor workflow execution events and visualize the workflow monitoring output through Prometheus and Grafana.
[0036] In step S2, the form is submitted to the low-code platform in JSON data format. The low-code platform first converts the JSON form data into metadata containing detailed information for each field in the database table. Then, it creates DDL statements in the database's native language by calling the database adapter. The database table is then created using the database executor. Finally, the metadata is validated using relational database field rules. If validation passes, localized DML statements are generated and executed in the relational database by the database executor to generate the database table. The low-code platform queries the form's database table from the relational database. During the initial deployment of the form, the low-code platform saves the database table structure information generated by the database executor as version 1; combined with the attached... Figure 2Based on the visual designer provided by the low-code platform, the components of the version 1 form are adjusted to form a new version. When the new version form is submitted to the low-code platform's server in JSON format, the server first compares the differences between the JSON data of version 1 and the new version and records the differences in JSON format. Then, it calls the database adapter to parse the JSON data and generate localized DML statements. After assembly and verification, it calls the database executor to change the database tables and form a new version of the database tables. Thus, the dynamic deployment of the form is achieved through database table version iteration.
[0037] In step S2, the workflow based on the BPMN 2.0 protocol is stored in a relational database as a table. The workflow database table consists of the associated business information and a description of the process definition based on the BPMN 2.0 protocol. The associated business information includes business data and its own attributes. The workflow definition based on the BPMN 2.0 protocol is submitted to the server of the low-code platform via JSON. The server calls the Flowable workflow engine to create a workflow model, persists it to the database table managed by the Flowable workflow engine, and creates a corresponding XML file on the local file system.
[0038] It should be added that changes to the process definition based on the BPMN2.0 protocol will not directly affect the database table structure of the form. Instead, it will form a new process definition and update the corresponding fields in JSON format. At runtime, the Flowable process engine will parse it into the new process definition to realize the dynamic deployment of the workflow.
[0039] Step S4 involves using Micrometer to proactively embed tracking points to monitor events such as the creation, initialization, deletion, update, pause, and execution of workflow instances. This process specifically includes:
[0040] The Flowable workflow engine event listener enables monitoring of workflow instance events, while the low-code platform implements monitoring metrics for workflow instance running status by customizing Counter, Guge, and Timer in the listener.
[0041] The low-code platform automatically exposes the event tracking data through Micrometer's Prometheus adapter;
[0042] Configure the service address in Prometheus, and Prometheus will actively request the service to obtain the event tracking metrics and store them in the local time series library.
[0043] During the monitoring of workflow instance events, configure Prometheus alarm rules to trigger alarms for specified events. Through the routing policies and recipients provided by Prometheus, notify operations personnel via email or SMS.
[0044] In summary, the workflow design, storage, deployment, and monitoring method based on a low-code platform, as proposed in this invention, can help operations personnel quickly design and organize workflows on a low-code platform through a visual interface according to their own business needs. Furthermore, it can dynamically implement relational database storage through workflow metadata. During the workflow operation phase, it can help operations personnel monitor nodes through formatted logs, perform targeted performance optimization on nodes with longer processing times, and improve operational efficiency.
[0045] The above specific examples illustrate the principles and implementation methods of the present invention in detail. These embodiments are merely for the purpose of helping to understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made to the present invention by those skilled in the art without departing from the principles of the present invention should fall within the patent protection scope of the present invention.
Claims
1. A workflow design, storage, deployment, and monitoring method based on a low-code platform, characterized in that: It includes the following steps: S1. Based on the visual designer provided by the low-code platform, components representing business data can be combined into forms from the component library by dragging and dropping. At the same time, based on the BPMN2.0 protocol, workflow components can be arranged, combined, and their attributes filled from the component library by dragging and dropping to achieve workflow design. S2. The low-code platform stores forms and workflows based on the BPMN 2.0 protocol in a relational database as database tables. When the low-code platform queries the form's database table for the initial deployment of the form, it saves the database table structure information generated by the database executor as version 1. Using the visual designer provided by the low-code platform, the components of version 1 are adjusted to create a new version form. This new version form is then submitted to the low-code platform's server in JSON format. The server first compares the differences between version 1 and the new version's JSON data, records the differences in JSON format, and then calls the database adapter to parse the JSON data and generate localized DML statements. After assembly and verification, the database executor is called to modify the database table, creating a new version of the database table. This dynamic deployment of the form is achieved through database table version iteration. S3. Based on the visual form interface provided by the low-code platform, business data is entered, and database table records are added, deleted, modified and queried through the database adapter. The workflow is instantiated through the Flowable workflow engine. S4. By actively embedding data points through Micrometer, we can monitor workflow execution events and visualize the workflow monitoring output through Prometheus and Grafana.
2. The workflow design, storage, deployment, and monitoring method based on a low-code platform according to claim 1, characterized in that, In step S2, the form is submitted to the low-code platform in JSON data format. The low-code platform first converts the JSON form data into metadata containing detailed information about each field of the database table. Then, it creates DDL statements in the local database language for the form data by calling the database adapter, creates the database table through the database executor, and finally validates the metadata using relational database field rules. After successful validation, it generates localized DML statements, which are then executed in the relational database by the database executor to generate the database table.
3. The workflow design, storage, deployment, and monitoring method based on a low-code platform according to claim 2, characterized in that, In step S2, the workflow based on the BPMN 2.0 protocol is stored in a relational database in the form of a database table. The workflow database table consists of the business information to which it belongs and a description of the process definition based on the BPMN 2.0 protocol. The business information to which it belongs includes business data and its own attributes.
4. The workflow design, storage, deployment, and monitoring method based on a low-code platform according to claim 3, characterized in that, Workflow definitions based on the BPMN 2.0 protocol are submitted to the server of the low-code platform in JSON format. The server calls the Flowable workflow engine to create a workflow model, persists it to the database table managed by the Flowable workflow engine, and creates a corresponding XML file on the local file system.
5. The workflow design, storage, deployment, and monitoring method based on a low-code platform according to claim 4, characterized in that, Changes to the process definition based on the BPMN 2.0 protocol will not directly affect the database table structure of the form. Instead, a new process definition will be generated and updated to the corresponding fields in JSON format. At runtime, the Flowable process engine will parse it into the new process definition to achieve dynamic deployment of the workflow.
6. The workflow design, storage, deployment, and monitoring method based on a low-code platform according to claim 1, characterized in that, By proactively embedding data points in Micrometer, we can monitor workflow execution events. This process specifically includes: The Flowable workflow engine event listener enables monitoring of workflow instance events, while the low-code platform implements monitoring metrics for workflow instance running status by customizing Counter, Guge, and Timer in the listener. The low-code platform automatically exposes the event tracking data through Micrometer's Prometheus adapter; Configure the service address in Prometheus, and Prometheus will actively request the service to obtain the event tracking metrics and store them in the local time series library.
7. The workflow design, storage, deployment, and monitoring method based on a low-code platform according to claim 6, characterized in that, Workflow execution events include workflow instance events such as creation, initialization, deletion, update, pause, and execution.
8. The workflow design, storage, deployment, and monitoring method based on a low-code platform according to claim 6, characterized in that, By actively embedding data points in Micrometer, we can monitor workflow events. During this process... Configure Prometheus alarm rules to trigger alarms for specified events; The operations staff are notified via email or SMS using the routing policies and recipients provided by Prometheus.
Citation Information
Patent Citations
Data storage system and storage method based on workflow engine and low-code platform
CN113886362A
Workflow management system based on Flowable process engine development
CN115964072A
