Search

CN-121998395-A - Workflow model building and executing method supporting multi-tenant and related system

CN121998395ACN 121998395 ACN121998395 ACN 121998395ACN-121998395-A

Abstract

The invention belongs to the field of workflow model establishment, and discloses a workflow model establishment method supporting multiple tenants and a related system. Through the organization code identification tenant, different branch institutions can establish a flow model based on a unified workflow modeling framework, meanwhile, the independence and the safety of each branch institution are guaranteed, and the mutual interference of flow definitions is avoided. The invention improves the consistency and the expandability of the cross-mechanism flow management. The unified modeling method ensures that all branch institutions keep consistent in terms of flow logic, node configuration, key data generation and the like, thereby facilitating centralized control and overall optimization of headquarters. Meanwhile, unique codes are generated and stored for different tenants, and the system can be rapidly identified and tracked when the system is expanded. The invention simplifies the multiplexing and maintenance of the flow model.

Inventors

  • Qi Zhouteng
  • ZHAO XUAN
  • WANG TAO
  • HAN CHENHUI

Assignees

  • 西安热工研究院有限公司

Dates

Publication Date
20260508
Application Date
20260116

Claims (10)

  1. 1. A workflow model building method supporting multi-tenancy is characterized by comprising the following steps: Acquiring a new workflow model execution command; Creating a workflow model, configuring relevant parameters of the workflow model and mechanism codes corresponding to the workflow model, taking the mechanism codes as tenant IDs of the workflow model, and completing configuration of basic data of the workflow model; Configuring workflow and flow nodes of a workflow model, and configuring key information of the workflow and the flow nodes to complete configuration of flow data of the workflow model; The basic data and the flow data of the workflow model are saved and used as a new workflow model; And releasing the new workflow model, generating release key data of the new workflow model, generating a unique code according to the basic data of the new workflow model, and storing to finish the establishment of the workflow model supporting multiple tenants.
  2. 2. The method for building a workflow model supporting multiple tenants as recited in claim 1, wherein the related parameters of the workflow model include workflow model name and workflow model code.
  3. 3. The workflow model creation method supporting multiple tenants as recited in claim 1, wherein the key information of the flow node includes approval personnel or roles of the flow node and listener information of the flow node.
  4. 4. The workflow model creation method supporting multiple tenants as recited in claim 1, wherein the unique code of the new workflow model comprises a model code, a version number, and a tenant ID of the new workflow model.
  5. 5. A workflow model creation system supporting multiple tenants, comprising: The data acquisition module is used for acquiring a new workflow model execution command; The basic data configuration module is used for creating a workflow model, configuring relevant parameters of the workflow model and mechanism codes corresponding to the workflow model, taking the mechanism codes as tenant IDs of the workflow model, and completing configuration of basic data of the workflow model; The flow data configuration module is used for configuring the workflow and the flow nodes of the workflow model, configuring key information of the workflow and the flow nodes and completing configuration of the flow data of the workflow model; the workflow model generation module is used for storing basic data and flow data of the workflow model as a new workflow model; The model release module is used for releasing the new workflow model, generating release key data of the new workflow model, generating unique codes according to basic data of the new workflow model and storing the unique codes to finish the establishment of the workflow model supporting multiple tenants.
  6. 6. A workflow model execution method supporting multiple tenants, characterized by being based on a workflow model established by the workflow model establishment method supporting multiple tenants according to claim 1, comprising the steps of: Acquiring tenant IDs and related workflows; selecting a corresponding workflow model according to the acquired tenant ID, matching the selected workflow model with a corresponding workflow according to the acquired related workflow, and generating a workflow task to be handled according to the workflow model matched with the workflow; And when the current workflow task to be handled is completed, generating a corresponding workflow task to be handled at the next flow node according to the flow data of the workflow model until the flow is ended.
  7. 7. The method for executing a workflow model supporting multiple tenants according to claim 6, wherein after generating the workflow task to be handled, the corresponding workflow task to be handled is obtained by inputting the corresponding tenant ID and the current user information, and the current workflow task to be handled is completed.
  8. 8. A workflow model execution system supporting multiple tenants, comprising: The execution information acquisition module is used for acquiring tenant IDs and related workflows; The to-be-handled task generating module is used for selecting a corresponding workflow model according to the acquired tenant ID, matching the selected workflow model with a corresponding workflow according to the acquired related workflow, and generating a workflow to-be-handled task according to the workflow model with the matched workflow; and the to-be-handled task processing module is used for generating a corresponding workflow to-be-handled task at the next flow node according to the flow data of the workflow model when the current workflow to-be-handled task is completed, and ending the flow.
  9. 9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of a multi-tenant supported workflow model building method according to any one of claims 1 to 4 when the computer program is executed.
  10. 10. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of a multi-tenant supported workflow model execution method of any one of claims 6 to 7 when the computer program is executed.

Description

Workflow model building and executing method supporting multi-tenant and related system Technical Field The invention belongs to the field of workflow model establishment, and particularly relates to a workflow model establishment method supporting multi-tenant and a related system. Background Workflow is a widely used technology, and for large group enterprises, the subordinate branches are numerous, each branch has differences between organization levels and posts, and the same approval process has differences in specific approval links. For example, the approval process is approved, the employee of the branch office a submits the document and the employee of the branch office B submits the document and the employee of the branch office C may need to be approved in three stages, and the approval process of the business system may need to be approved in four stages, which requires that the approval process of the business system be defined differently according to the branch office. Workflow multi-tenant is one of solutions, which allows different branch institutions to define respective approval flow models, and after employees of the different branch institutions log into a system, the same application is initiated, and the flow models defined by the respective affiliated institutions are actually executed. Disclosure of Invention The invention aims to solve the problem that different branch institutions cannot execute the same flow model, and provides a workflow model building method supporting multi-tenancy and a related system. In order to achieve the above purpose, the invention adopts the following technical scheme: In a first aspect, the present invention provides a workflow model building method supporting multiple tenants, including the steps of: Acquiring a new workflow model execution command; Creating a workflow model, configuring relevant parameters of the workflow model and mechanism codes corresponding to the workflow model, taking the mechanism codes as tenant IDs of the workflow model, and completing configuration of basic data of the workflow model; Configuring workflow and flow nodes of a workflow model, and configuring key information of the workflow and the flow nodes to complete configuration of flow data of the workflow model; The basic data and the flow data of the workflow model are saved and used as a new workflow model; And releasing the new workflow model, generating release key data of the new workflow model, generating a unique code according to the basic data of the new workflow model, and storing to finish the establishment of the workflow model supporting multiple tenants. A further improvement of the invention is that the relevant parameters of the workflow model comprise a workflow model name and a workflow model code. The invention is further improved in that the key information of the flow node comprises approval personnel or roles of the flow node and monitor information of the flow node. The invention is further improved in that the unique code of the new workflow model comprises the model code, version number and tenant ID of the new workflow model. In a second aspect, the present invention provides a workflow model building system supporting multiple tenants, including: The data acquisition module is used for acquiring a new workflow model execution command; The basic data configuration module is used for creating a workflow model, configuring relevant parameters of the workflow model and mechanism codes corresponding to the workflow model, taking the mechanism codes as tenant IDs of the workflow model, and completing configuration of basic data of the workflow model; The flow data configuration module is used for configuring the workflow and the flow nodes of the workflow model, configuring key information of the workflow and the flow nodes and completing configuration of the flow data of the workflow model; the workflow model generation module is used for storing basic data and flow data of the workflow model as a new workflow model; The model release module is used for releasing the new workflow model, generating release key data of the new workflow model, generating unique codes according to basic data of the new workflow model and storing the unique codes to finish the establishment of the workflow model supporting multiple tenants. In a third aspect, the present invention provides a workflow model execution method supporting multiple tenants, including the steps of: Acquiring tenant IDs and related workflows; selecting a corresponding workflow model according to the acquired tenant ID, matching the selected workflow model with a corresponding workflow according to the acquired related workflow, and generating a workflow task to be handled according to the workflow model matched with the workflow; And when the current workflow task to be handled is completed, generating a corresponding workflow task to be handled at the next flow node according to the flow dat