Task processing method and device, computer equipment and storage medium

By introducing multiple tenant extension modules and logical modules into the SaaS system and generating a customized logical framework based on tenant tags, the problem that existing technology cannot meet the personalized customization needs of SaaS at the logical level is solved, and customization and customization at the logical level are realized. Data isolation.

CN119336296APending Publication Date: 2025-01-21SHENZHEN QIANHAI HUANRONG LIANYI INFORMATION TECHNOLOGY SERVICES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411446251.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The existing technology cannot meet the personalized customization needs of tenants for SaaS software at the logical level, and only realizes data-level isolation.

Method used

By introducing multiple tenant extension modules and logic modules into the target SaaS system, including general logic modules and customizable logic modules, tasks carrying tenant tags are obtained, and customizable logic modules are rewritten according to the target tenant extension module to generate a customized logic framework. to perform tasks.

Benefits of technology

It realizes SaaS customization at the logical level, meets the personalized needs of different tenants, improves tenant experience, and ensures data isolation and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336296A_ABST
    Figure CN119336296A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a task processing method and device, computer equipment and a storage medium. The task processing method is applied to a target SaaS system, the target SaaS system comprises a plurality of tenant extension modules and a plurality of logic modules connected in series, the plurality of logic modules comprise a universal logic module and a customizable logic module, and the method comprises the steps of obtaining a target task carrying a target tenant mark; judging whether a target tenant extension module corresponding to the target tenant mark is included in the plurality of tenant extension modules or not; if yes, the corresponding customizable logic module is rewritten according to the target tenant extension module, a target customized logic module is obtained, a target logic framework is obtained based on the target customized logic module, and the target logic framework comprises a universal logic module and the target customized logic module; and executing the target task according to the target logic framework. By implementing the embodiment of the invention, SaaS customization requirements of different tenants can be realized on a logic level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a task processing method, device, computer equipment and storage medium. Background Art

[0002] Software as a Service (SaaS) allows tenants to use cloud-based applications through an Internet connection. Common applications include email and office tools. This technology does not require tenants to install software products on their own computers or servers to use the required services.

[0003] As tenants' requirements for SaaS gradually increase, their demand for customization of SaaS's personalized scenarios gradually increases, which brings challenges to the software development industry. However, existing technologies often only isolate SaaS software at the data level, and the isolation cannot meet the customization needs of tenants' personalized scenarios. Summary of the invention

[0004] The embodiments of the present application provide a task processing method, apparatus, computer equipment and storage medium, which can customize different logical frameworks for different tenants, thereby realizing the SaaS customization requirements of different tenants at the logical level.

[0005] In a first aspect, an embodiment of the present application provides a task processing method, which is applied to a target SaaS system, wherein the target SaaS system includes multiple tenant extension modules and multiple logic modules connected in series, wherein the multiple logic modules include a general logic module and a customizable logic module, and the method includes:

[0006] Get the target task with the target tenant tag;

[0007] Determining whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag;

[0008] If the target tenant extension module is included, rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module;

[0009] The target task is executed according to the target logical framework.

[0010] In a second aspect, an embodiment of the present application further provides a task processing device, which is deployed in a target SaaS system, wherein the target SaaS system includes a plurality of tenant extension modules and a plurality of logic modules connected in series, wherein the plurality of logic modules include a general logic module and a customizable logic module, and the task processing device includes:

[0011] A transceiver unit, used to obtain a target task carrying a target tenant tag;

[0012] a processing unit, configured to determine whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag; if the target tenant extension module is included, rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module; and execute the target task according to the target logic framework.

[0013] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions can implement the above method when executed by a processor.

[0015] The embodiment of the present application provides a task processing method, device, computer equipment and storage medium. The task processing method is applied to a target SaaS system, the target SaaS system includes multiple tenant extension modules and multiple logic modules in series, the multiple logic modules include a general logic module and a customizable logic module, the method includes: obtaining a target task carrying a target tenant tag; judging whether the multiple tenant extension modules include a target tenant extension module corresponding to the target tenant tag; if the target tenant extension module is included, rewriting the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtaining a target logic framework based on the target customized logic module, the target logic framework includes the general logic module and the target customized logic module; executing the target task according to the target logic framework. Before executing the target task, the target SaaS system in the embodiment of the present application will first generate a target logic framework corresponding to the tenant according to the tenant tag corresponding to the target task, and execute the target task based on the target logic framework. Different customized tenants can use different logic frameworks to execute tasks, thereby realizing the SaaS customization requirements of different tenants at the logical level. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 A schematic diagram of the structure of a target SaaS system in the task processing method provided in an embodiment of the present application;

[0018] Figure 2 A flowchart of a task processing method provided in an embodiment of the present application;

[0019] Figure 3 A schematic block diagram of a task processing device provided in an embodiment of the present application;

[0020] Figure 4 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0022] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0023] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0024] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0025] Embodiments of the present application provide a task processing method, apparatus, computer equipment, and storage medium.

[0026] The executor of the task processing method may be the task processing device provided in the embodiment of the present application, or a computer device integrating the task processing device, wherein the task processing device may be implemented in hardware or software, and the computer device is a server, specifically a cloud server with the target SaaS system installed.

[0027] See also Figure 1 , Figure 1 A schematic diagram of a target SaaS system in the task processing method provided in an embodiment of the present application, Figure 1 The structural diagram in the figure only illustrates one structure of the target SaaS system. Figure 1 In the embodiment, there are 4 general logic modules, 1 customizable logic module, and 3 tenant extension modules. According to actual needs, the serial connection order of the logic modules in the target SaaS system can also be other situations. For example, the customizable logic module is serially connected between multiple general logic modules, or is serially connected before the general logic module. In addition, the number of logic modules and tenant extension modules can also be set according to actual needs, and the specific number is not limited in this embodiment.

[0028] like Figure 1 As shown, the target SaaS system includes multiple tenant extension modules and multiple logic modules connected in series, and the multiple logic modules include general logic modules and customizable logic modules. Specifically, when the target SaaS system obtains the target task carrying the target tenant tag, it will first determine whether the multiple tenant extension modules include the target tenant extension module corresponding to the target tenant tag. If the target tenant extension module is included, it means that the tenant is a personalized customized tenant. At this time, the corresponding customizable logic module is rewritten according to the target tenant extension module to obtain the target customized logic module, and the target logic framework is obtained based on the target customized logic module. The target logic framework includes the general logic module and the target customized logic module; finally, the target task is executed according to the target logic framework, so as to realize the SaaS customization requirements of different tenants at the logical level.

[0029] Among them, in some embodiments, when the target task is a container application task, the general logic module in this application includes a verification parameter module, a quotation information verification module, a financing application module, and a module for initiating financing to a bank, etc. The customizable logic modules for different tenants include a financing status synchronization module for the corresponding tenant.

[0030] Figure 2 is a flowchart of a task processing method provided in an embodiment of the present application. Figure 2 As shown, the method includes the following steps S110-S160.

[0031] S110: Acquire a target task carrying a target tenant tag.

[0032] Among them, the target tenant mark is an identifier that can identify the identity of the target tenant. The target tenant mark includes a target application tenant mark and a target data tenant mark. The target application tenant mark is used to indicate whether the target tenant is a personalized customized tenant, and the target data tenant mark is used to indicate the database corresponding to the tenant in the target SaaS system. It can be seen that the target SaaS system provided in the embodiment of the present application not only realizes logical isolation for different personalized customized tenants, but also isolates databases for different tenants.

[0033] In some embodiments, before acquiring the target task carrying the target tenant tag, the method further includes:

[0034] Obtain a target office system login request sent by the second terminal and carrying a target tenant login name and a target tenant password; perform a login verification on the target tenant login name and the target tenant password; if the login verification passes, determine the target tenant interface data corresponding to the target tenant login name from a plurality of preset tenant interface data; generate a target display interface according to the target tenant interface data, and return the target display interface to the second terminal, so that the tenant triggers the target task based on the target display interface displayed in the second terminal.

[0035] Specifically, when the target tenant needs to use the target SaaS system, he first opens the login interface of the target SaaS system through the terminal browser, fills in the target tenant login name (an identifier that can identify the target tenant's identity) and the target tenant password in the corresponding login box, and then triggers the login button to send a target office system login request to the target SaaS system. The target SaaS system then performs a login verification based on the target tenant login name and target tenant password carried in the login request. If the login verification passes, it further determines whether there is target tenant interface data corresponding to the target tenant login name in the system. If so, it generates a target display interface based on the target tenant interface data. Specifically, the target tenant interface data is filled in the preset position in the display interface template to obtain the target display interface, and the target display interface is returned to the corresponding terminal.

[0036] It can be seen that the target SaaS system provided in this embodiment also provides different system display interfaces for different personalized tenants. For example, the tenant interface data of tenant A is displayed in the system display interface of tenant A, and the tenant interface data of tenant B is displayed in the system display interface of tenant B, wherein the tenant interface data includes the tenant name and tenant image of the corresponding tenant, such as the company name and company logo image, and the tenant can trigger the target task based on the corresponding display interface to realize the personalized customization of the system display interfaces of different tenants and improve the tenant experience.

[0037] Among them, the target SaaS system in this embodiment includes multiple tenant extension modules and multiple SaaS subsystems, each SaaS subsystem includes multiple logic modules connected in series, and different SaaS subsystems have different logic modules connected in series, and different SaaS subsystems correspond to different functions in the display interface. When the target tenant clicks on the financing application function based on the target display interface and fills in the corresponding financing application information, the tenant terminal generates a financing application task based on the target tenant tag stored on the terminal side and the financing application information entered by the tenant, and sends the financing application task to the target SaaS system. At this time, the financing application task is the target task.

[0038] Among them, the target tenant tag stored in the terminal side in this embodiment is issued when the target tenant logs in to the target SaaS system. Specifically, when the target SaaS system passes the login verification, the target SaaS system determines the tenant tag corresponding to the target tenant login name from the preset multiple tenant tags as the target tenant tag based on the correspondence between the preset tenant login name and the tenant tag, and sends the target tenant tag to the corresponding login terminal.

[0039] Before acquiring the target task carrying the target tenant tag, the method further includes:

[0040] Obtain a customization request for the customizable logic module, wherein the customization request includes the target tenant tag and a target customized logic code corresponding to the customizable logic module; create a target customized container, and put the target customized logic code and the target tenant tag into the target customized container to obtain the target tenant extension module.

[0041] It can be seen that the target tenant extension module provided in this embodiment is created by the tenant, so that the created tenant extension module is more in line with the tenant's needs. In addition, the tenant extension module provided in this embodiment is isolated using a container, which can ensure the isolation of the tenant extension module and prevent the tenant extension module from affecting the business processing logic.

[0042] S120, determining whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag, if so, executing steps S130-S140, if not, executing steps S150-S160.

[0043] The target tenant tag includes a target application tenant tag and a target data tenant tag. Specifically, this embodiment determines whether the plurality of tenant extension modules include a target tenant tag corresponding to the target application tenant tag.

[0044] In some embodiments, the target SaaS system includes multiple tenant extension modules and multiple SaaS subsystems, each SaaS subsystem includes multiple logic modules connected in series, different SaaS subsystems are used to execute tasks of different task types, and different SaaS subsystems are provided with different tenant extension modules; when the target task is acquired, the target SaaS subsystem corresponding to the target task type is first determined from multiple SaaS subsystems according to the target task type of the target task.

[0045] Then, determine whether the tenant extension module in the target SaaS subsystem includes a target tenant extension module corresponding to the target tenant tag. If yes, it means that the target task needs to be executed based on personalized logic, otherwise, the target task is executed based on general logic.

[0046] S130. Rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module.

[0047] In this embodiment, when it is determined that the target tenant extension module corresponding to the target tenant tag is included in the plurality of tenant extension modules, the corresponding customizable logic module is rewritten according to the target tenant extension module.

[0048] The customizable logic module includes at least one, the target tenant extension module includes at least one, and rewriting the corresponding customizable logic module according to the target tenant extension module to obtain the target customized logic module includes:

[0049] Determine the customizable logic modules corresponding to each of the target tenant extension modules; for each of the customizable logic modules, modify the mapping address in the customizable logic module to the module address corresponding to the target tenant extension module to obtain the target customized logic module.

[0050] Specifically, each tenant extension module carries a corresponding module name, and each customizable logic module also carries a corresponding module name. In this embodiment, the customizable logic module with the same module name as the target tenant extension module is determined as the corresponding customizable logic module, and then the mapping address in the customizable logic module is modified to the module address of the corresponding target tenant extension module. At this time, when the system calls the customizable logic module, the corresponding target tenant extension module is actually called.

[0051] When the target SaaS system includes multiple tenant extension modules and multiple SaaS subsystems, a target logic framework is obtained based on the target customized logic module, specifically including:

[0052] The target general logic module corresponding to the target SaaS subsystem is determined, and the target logic framework is obtained by connecting the target general logic module and the target customized logic module in series.

[0053] S140: Execute the target task according to the target logical framework.

[0054] In this embodiment, before executing the target task, the method further includes: determining a target database corresponding to the target data tenant tag from a plurality of preset databases;

[0055] At this time, executing the target task according to the target logical framework includes: executing the target task according to the target logical framework and the target database.

[0056] It can be seen that the target SaaS system provided by the embodiment of the present application not only realizes logical isolation for different personalized customized tenants, but also isolates the databases for different tenants, thereby ensuring the data security of different tenants.

[0057] In some embodiments, the target customization logic module is a personalized output module; and executing the target task according to the target logic framework includes:

[0058] The target task is executed according to the general logic module in the target logic framework to obtain an initial processing result; and personalized output processing is performed on the initial processing result according to the personalized output module in the target logic framework.

[0059] Furthermore, the target task also includes a target sending address; the personalized output processing of the initial processing result according to the personalized output module in the target logic framework includes:

[0060] Fill the data in the initial processing result into the personalized template of the personalized output module to obtain the target task processing result; and send the target task processing result to the first terminal according to the target sending address.

[0061] For example, the target SaaS system provides email services. At this time, after the initial processing results are generated, the data in the initial processing results are also filled into the personalized template of the personalized output module, such as an email template. The email template includes the company name corresponding to the tenant and the company logo image, etc.

[0062] S150: Determine a general logic framework according to the general logic module and the customizable logic module.

[0063] In this embodiment, the mapping address in the customizable logic module is empty or is the address of a general logic module. When the mapping address is empty, it means that for non-personalized customized tenants, the execution of the customizable logic module can be skipped; when the mapping address is the address of a general logic module, it means that for non-personalized customized tenants, when the customizable logic module is executed, general logic is used for execution without personalization. When the mapping address is the address of a general logic module, the address of the general logic module can indicate the customizable logic module itself, that is, the customizable logic module contains general logic.

[0064] S160: Execute the target task according to the general logical framework.

[0065] In this embodiment, after the general logical framework is determined, the target task is executed according to the general logical framework.

[0066] To sum up, before executing the target task, the target SaaS system in the embodiment of the present application will first generate a target logical framework corresponding to the tenant according to the tenant tag corresponding to the target task, and execute the target task based on the target logical framework. Different customized tenants can use different logical frameworks to perform tasks, thereby realizing the SaaS customization requirements of different tenants at the logical level.

[0067] Figure 3 is a schematic block diagram of a task processing device 300 provided in an embodiment of the present application. Figure 3 As shown, corresponding to the above task processing method, the present application also provides a task processing device 300. The task processing device 300 includes a unit for executing the above task processing method. The task processing device 300 can be configured in a target SaaS system. The target SaaS system includes multiple tenant extension modules and multiple logic modules connected in series. The multiple logic modules include general logic modules and customizable logic modules. The task processing device 300 includes a transceiver unit 301 and a processing unit 302, wherein:

[0068] The transceiver unit 301 is used to obtain a target task carrying a target tenant tag;

[0069] The processing unit 302 is configured to determine whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag; if the target tenant extension module is included, rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module; and execute the target task according to the target logic framework.

[0070] Among them, the target tenant mark is an identifier that can identify the identity of the target tenant. The target tenant mark includes a target application tenant mark and a target data tenant mark. The target application tenant mark is used to indicate whether the target tenant is a personalized customized tenant, and the target data tenant mark is used to indicate the database corresponding to the tenant in the target SaaS system. It can be seen that the target SaaS system provided in the embodiment of the present application not only realizes logical isolation for different personalized customized tenants, but also isolates databases for different tenants.

[0071] In some embodiments, the target SaaS system includes multiple tenant extension modules and multiple SaaS subsystems, each SaaS subsystem includes multiple logic modules connected in series, different SaaS subsystems are used to execute tasks of different task types, and different SaaS subsystems are provided with different tenant extension modules; when the target task is acquired, the target SaaS subsystem corresponding to the target task type is first determined from multiple SaaS subsystems according to the target task type of the target task.

[0072] Then, determine whether the tenant extension module in the target SaaS subsystem includes a target tenant extension module corresponding to the target tenant tag. If yes, it means that the target task needs to be executed based on personalized logic, otherwise, the target task is executed based on general logic.

[0073] In some embodiments, the customizable logic module includes at least one, and the target tenant extension module includes at least one; when the processing unit 302 executes the step of rewriting the corresponding customizable logic module according to the target tenant extension module to obtain the target customized logic module, it is specifically used to:

[0074] Determine the customizable logic modules corresponding to the target tenant extension modules respectively;

[0075] For each of the customizable logic modules, the mapping address in the customizable logic module is modified to the module address of the corresponding target tenant extension module to obtain the target customized logic module.

[0076] Specifically, each tenant extension module carries a corresponding module name, and each customizable logic module also carries a corresponding module name. In this embodiment, the customizable logic module with the same module name as the target tenant extension module is determined as the corresponding customizable logic module, and then the mapping address in the customizable logic module is modified to the module address of the corresponding target tenant extension module. At this time, when the system calls the customizable logic module, the corresponding target tenant extension module is actually called.

[0077] In some embodiments, the target tenant tag includes a target application tenant tag and a target data tenant tag; when the processing unit 302 executes the step of determining whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag, it is specifically configured to:

[0078] Determining whether the plurality of tenant extension modules include a target tenant tag corresponding to the target application tenant tag;

[0079] Wherein, before executing the step of executing the target task according to the target logical framework, the processing is further used to:

[0080] Determining a target database corresponding to the target data tenant tag from a plurality of preset databases;

[0081] When executing the target task according to the target logical framework, the processing is specifically used to:

[0082] The target task is executed according to the target logical framework and the target database.

[0083] It can be seen that the target SaaS system provided by the embodiment of the present application not only realizes logical isolation for different personalized customized tenants, but also isolates the databases for different tenants, thereby ensuring the data security of different tenants.

[0084] In some embodiments, the target customization logic module is a personalized output module; when the processing unit 302 executes the step of executing the target task according to the target logic framework, it is specifically used to:

[0085] The target task is executed according to the general logic module in the target logic framework to obtain an initial processing result; and personalized output processing is performed on the initial processing result according to the personalized output module in the target logic framework.

[0086] In some embodiments, the target task also includes a target sending address; when the processing unit 302 executes the step of performing personalized output processing on the initial processing result according to the personalized output module in the target logic framework, it is specifically used to:

[0087] Fill the data in the initial processing result into the personalized template of the personalized output module to obtain the target task processing result; and send the target task processing result to the first terminal according to the target sending address.

[0088] For example, the target SaaS system provides email services. At this time, after the initial processing results are generated, the data in the initial processing results are also filled into the personalized template of the personalized output module, such as an email template. The email template includes the company name corresponding to the tenant and the company logo image, etc.

[0089] In some embodiments, before the transceiver unit 301 executes the step of acquiring the target task carrying the target tenant tag, the processing unit 302 is further configured to:

[0090] A target office system login request carrying a target tenant login name and a target tenant password sent by the second terminal is obtained through the transceiver unit 301; a login verification is performed on the target tenant login name and the target tenant password; if the login verification passes, the target tenant interface data corresponding to the target tenant login name is determined from a plurality of preset tenant interface data; a target display interface is generated according to the target tenant interface data, and the target display interface is returned to the second terminal through the transceiver unit 301, so that the tenant triggers the target task based on the target display interface displayed in the second terminal.

[0091] Specifically, when the target tenant needs to use the target SaaS system, he first opens the login interface of the target SaaS system through the terminal browser, fills in the target tenant login name (an identifier that can identify the target tenant's identity) and the target tenant password in the corresponding login box, and then triggers the login button to send a target office system login request to the target SaaS system. The target SaaS system then performs a login verification based on the target tenant login name and target tenant password carried in the login request. If the login verification passes, it further determines whether there is target tenant interface data corresponding to the target tenant login name in the system. If so, it generates a target display interface based on the target tenant interface data. Specifically, the target tenant interface data is filled in the preset position in the display interface template to obtain the target display interface, and the target display interface is returned to the corresponding terminal.

[0092] It can be seen that the target SaaS system provided in this embodiment also provides different system display interfaces for different personalized tenants. For example, the tenant interface data of tenant A is displayed in the system display interface of tenant A, and the tenant interface data of tenant B is displayed in the system display interface of tenant B, wherein the tenant interface data includes the tenant name and tenant image of the corresponding tenant, such as the company name and company logo image, and the tenant can trigger the target task based on the corresponding display interface to realize the personalized customization of the system display interfaces of different tenants and improve the tenant experience.

[0093] In some embodiments, before the transceiver unit 301 executes the step of acquiring the target task carrying the target tenant tag, the processing unit 302 is further configured to:

[0094] A customization request for the customizable logic module is obtained through the transceiver unit 301, wherein the customization request includes the target tenant tag and the target customized logic code corresponding to the customizable logic module; a target customized container is created, and the target customized logic code and the target tenant tag are placed in the target customized container to obtain the target tenant extension module.

[0095] It can be seen that the target tenant extension module provided in this embodiment is created by the tenant, so that the created tenant extension module is more in line with the tenant's needs. In addition, the tenant extension module provided in this embodiment is isolated using a container, which can ensure the isolation of the tenant extension module and prevent the tenant extension module from affecting the business processing logic.

[0096] To sum up, before executing the target task, the target SaaS system in the embodiment of the present application will first generate a target logical framework corresponding to the tenant according to the tenant tag corresponding to the target task, and execute the target task based on the target logical framework. Different customized tenants can use different logical frameworks to perform tasks, thereby realizing the SaaS customization requirements of different tenants at the logical level.

[0097] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned task processing device 300 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0098] The task processing device can be implemented in the form of a computer program. Figure 4 Runs on the computer device shown.

[0099] See also Figure 4 , Figure 4 400 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 400 may be a server. The server may be an independent server or a server cluster composed of multiple servers.

[0100] The target SaaS system is deployed in the computer device 400, and the target SaaS system includes a plurality of tenant extension modules and a plurality of logic modules connected in series, wherein the plurality of logic modules include a general logic module and a customizable logic module.

[0101] See also Figure 4 The computer device 400 includes a processor 402 , a memory and a network interface 405 connected via a system bus 401 , wherein the memory may include a non-volatile storage medium 403 and an internal memory 404 .

[0102] The non-volatile storage medium 403 can store an operating system 4031 and a computer program 4032. The computer program 4032 includes program instructions, and when the program instructions are executed, the processor 402 can execute a task processing method.

[0103] The processor 402 is used to provide computing and control capabilities to support the operation of the entire computer device 400 .

[0104] The internal memory 404 provides an environment for the operation of the computer program 4032 in the non-volatile storage medium 403. When the computer program 4032 is executed by the processor 402, the processor 402 can execute a task processing method.

[0105] The network interface 405 is used to communicate with other devices over the network. Figure 4 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 400 to which the solution of the present application is applied. The specific computer device 400 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] The processor 402 is used to run the computer program 4032 stored in the memory to implement the following steps:

[0107] Get the target task with the target tenant tag;

[0108] Determining whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag;

[0109] If the target tenant extension module is included, rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module;

[0110] The target task is executed according to the target logical framework.

[0111] It should be understood that in the embodiment of the present application, the processor 402 may be a central processing unit (CPU), and the processor 402 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0112] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0113] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:

[0114] Get the target task with the target tenant tag;

[0115] Determining whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag;

[0116] If the target tenant extension module is included, rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module;

[0117] The target task is executed according to the target logical framework.

[0118] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0119] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0120] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0121] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0122] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0123] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A task processing method, characterized in that: The task processing method is applied to a target SaaS system, the target SaaS system includes a plurality of tenant extension modules and a plurality of logic modules connected in series, the plurality of logic modules include a general logic module and a customizable logic module, and the method includes: Get the target task with the target tenant tag; Determining whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag; If the target tenant extension module is included, rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module; The target task is executed according to the target logical framework.

2. The method according to claim 1, characterized in that The customizable logic module includes at least one, and the target tenant extension module includes at least one; and rewriting the corresponding customizable logic module according to the target tenant extension module to obtain the target customized logic module includes: Determine the customizable logic modules corresponding to the target tenant extension modules respectively; For each of the customizable logic modules, the mapping address in the customizable logic module is modified to the module address of the corresponding target tenant extension module to obtain the target customized logic module.

3. The method according to claim 1, characterized in that The target tenant tag includes a target application tenant tag and a target data tenant tag; The determining whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag includes: Determining whether the plurality of tenant extension modules include a target tenant tag corresponding to the target application tenant tag; Before executing the target task according to the target logical framework, the method further includes: Determining a target database corresponding to the target data tenant tag from a plurality of preset databases; The performing of the target task according to the target logical framework includes: The target task is executed according to the target logical framework and the target database.

4. The method according to claim 1, characterized in that: The target customization logic module is a personalized output module; the executing the target task according to the target logic framework includes: Execute the target task according to the general logic module in the target logic framework to obtain an initial processing result; The initial processing result is subjected to personalized output processing according to the personalized output module in the target logic framework.

5. The method according to claim 4, characterized in that The target task also includes a target sending address; the personalized output processing of the initial processing result according to the personalized output module in the target logic framework includes: Filling the data in the initial processing result into the personalized template of the personalized output module to obtain the target task processing result; The target task processing result is sent to the first terminal according to the target sending address.

6. The method according to claim 1, characterized in that Before acquiring the target task carrying the target tenant tag, the method further includes: Obtaining a target office system login request sent by the second terminal and carrying a target tenant login name and a target tenant password; Performing login verification on the target tenant login name and the target tenant password; If the login verification passes, determining the target tenant interface data corresponding to the target tenant login name from the preset multiple tenant interface data; A target display interface is generated according to the target tenant interface data, and the target display interface is returned to the second terminal, so that the tenant triggers the target task based on the target display interface displayed in the second terminal.

7. The method according to any one of claims 1 to 6, characterized in that Before acquiring the target task carrying the target tenant tag, the method further includes: Obtaining a customization request for the customizable logic module, the customization request including the target tenant tag and a target customized logic code corresponding to the customizable logic module; A target customized container is created, and the target customized logic code and the target tenant tag are placed into the target customized container to obtain the target tenant extension module.

8. A task processing device, characterized in that: The task processing device is deployed in a target SaaS system, the target SaaS system includes a plurality of tenant extension modules and a plurality of logic modules connected in series, the plurality of logic modules include a general logic module and a customizable logic module, and the task processing device includes: A transceiver unit, used to obtain a target task carrying a target tenant tag; a processing unit, configured to determine whether the plurality of tenant extension modules include a target tenant extension module corresponding to the target tenant tag; if the target tenant extension module is included, rewrite the corresponding customizable logic module according to the target tenant extension module to obtain a target customized logic module, and obtain a target logic framework based on the target customized logic module, wherein the target logic framework includes the general logic module and the target customized logic module; and execute the target task according to the target logic framework.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the task processing method according to any one of claims 1 to 7 is implemented.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the task processing method according to any one of claims 1 to 7.